@jctrans-materials/comps-vue2 1.0.40 → 1.0.41-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/JcLoginDialog/cmps/ThirdBindLogin.d.ts +30 -5
- package/dist/index.cjs.js +12 -12
- package/dist/index.css +1 -1
- package/dist/index.esm.js +398 -397
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("vue-demi"),b=require("@jctrans-materials/shared"),U=require("jctrans-ui"),ht=require("crypto-js"),Mt=require("js-cookie"),gv=require("qrcode");function vv(i){const e=C.ref([]),r="_search_history_cache",s=typeof window!="undefined"&&typeof localStorage!="undefined",u=C.computed(()=>(i.value||"")+r),p=C.computed(()=>!!i.value&&i.value!==""),l=A=>{if(!A||!s)return;const v=e.value.filter(T=>T.id&&T.id!==A.id||T.display!==A.display);v.unshift(A);const x=v.slice(0,4);if(p.value){e.value=x;try{localStorage.setItem(u.value,JSON.stringify(x))}catch(T){console.warn("LocalStorage save failed:",T)}}},m=()=>{e.value=[],s&&localStorage.removeItem(u.value)};return C.onMounted(()=>{if(s&&p.value){const A=localStorage.getItem(u.value);if(A)try{e.value=JSON.parse(A)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:l,clearHistory:m,HasHistory:p}}async function yv(i,e=["Continent","Country","City","Seaport","Airport"],r={}){return b.locationSearchV2.searchByName({keyword:i,displayInfo:e,...r})}const ja=(i,e)=>b.locationSearchV2.searchByIdWithType(i,e);function Cv(i,e){const r=C.ref([]),s=C.ref(!1),u=C.ref(!1),p=C.ref(1),l=C.ref(0),m=C.ref(10),A=C.computed(()=>l.value===0?!1:r.value.length>=l.value),v=C.computed(()=>{const I=[...e.value];return I.includes("Country")&&!I.includes("Region")&&I.push("Region"),I}),x=I=>!I||!Array.isArray(I)?[]:I.filter(B=>v.value.includes(B.type));return{searchResults:r,loading:s,isFetchingMore:u,isFinished:A,currentPage:p,total:l,fetchData:async(I=1,B=!1)=>{if(!i.value.trim()&&!B){r.value=[],l.value=0;return}if(!(B&&(u.value||A.value))&&!(!B&&s.value)){B?u.value=!0:(s.value=!0,p.value=1);try{const D=await yv(i.value,e.value,{current:I,size:m.value}),W=D.records||[],k=x(W);B?r.value=[...r.value,...k]:r.value=k,l.value=D.total||0,p.value=I}catch(D){console.error("Failed to fetch search results:",D)}finally{s.value=!1,u.value=!1}}},filterByTypes:x}}const kn=Math.min,$e=Math.max,ci=Math.round,oi=Math.floor,wt=i=>({x:i,y:i}),_v={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(i,e,r){return $e(i,kn(e,r))}function fr(i,e){return typeof i=="function"?i(e):i}function Zt(i){return i.split("-")[0]}function dr(i){return i.split("-")[1]}function ac(i){return i==="x"?"y":"x"}function sc(i){return i==="y"?"height":"width"}function Nt(i){const e=i[0];return e==="t"||e==="b"?"y":"x"}function oc(i){return ac(Nt(i))}function Av(i,e,r){r===void 0&&(r=!1);const s=dr(i),u=oc(i),p=sc(u);let l=u==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[p]>e.floating[p]&&(l=ui(l)),[l,ui(l)]}function wv(i){const e=ui(i);return[$a(i),e,$a(e)]}function $a(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}const Hl=["left","right"],Gl=["right","left"],bv=["top","bottom"],Ev=["bottom","top"];function Sv(i,e,r){switch(i){case"top":case"bottom":return r?e?Gl:Hl:e?Hl:Gl;case"left":case"right":return e?bv:Ev;default:return[]}}function Iv(i,e,r,s){const u=dr(i);let p=Sv(Zt(i),r==="start",s);return u&&(p=p.map(l=>l+"-"+u),e&&(p=p.concat(p.map($a)))),p}function ui(i){const e=Zt(i);return _v[e]+i.slice(e.length)}function xv(i){return{top:0,right:0,bottom:0,left:0,...i}}function Tv(i){return typeof i!="number"?xv(i):{top:i,right:i,bottom:i,left:i}}function fi(i){const{x:e,y:r,width:s,height:u}=i;return{width:s,height:u,top:r,left:e,right:e+s,bottom:r+u,x:e,y:r}}function Jl(i,e,r){let{reference:s,floating:u}=i;const p=Nt(e),l=oc(e),m=sc(l),A=Zt(e),v=p==="y",x=s.x+s.width/2-u.width/2,T=s.y+s.height/2-u.height/2,I=s[m]/2-u[m]/2;let B;switch(A){case"top":B={x,y:s.y-u.height};break;case"bottom":B={x,y:s.y+s.height};break;case"right":B={x:s.x+s.width,y:T};break;case"left":B={x:s.x-u.width,y:T};break;default:B={x:s.x,y:s.y}}switch(dr(e)){case"start":B[l]-=I*(r&&v?-1:1);break;case"end":B[l]+=I*(r&&v?-1:1);break}return B}async function Rv(i,e){var r;e===void 0&&(e={});const{x:s,y:u,platform:p,rects:l,elements:m,strategy:A}=i,{boundary:v="clippingAncestors",rootBoundary:x="viewport",elementContext:T="floating",altBoundary:I=!1,padding:B=0}=fr(e,i),D=Tv(B),k=m[I?T==="floating"?"reference":"floating":T],S=fi(await p.getClippingRect({element:(r=await(p.isElement==null?void 0:p.isElement(k)))==null||r?k:k.contextElement||await(p.getDocumentElement==null?void 0:p.getDocumentElement(m.floating)),boundary:v,rootBoundary:x,strategy:A})),N=T==="floating"?{x:s,y:u,width:l.floating.width,height:l.floating.height}:l.reference,H=await(p.getOffsetParent==null?void 0:p.getOffsetParent(m.floating)),Q=await(p.isElement==null?void 0:p.isElement(H))?await(p.getScale==null?void 0:p.getScale(H))||{x:1,y:1}:{x:1,y:1},z=fi(p.convertOffsetParentRelativeRectToViewportRelativeRect?await p.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:N,offsetParent:H,strategy:A}):N);return{top:(S.top-z.top+D.top)/Q.y,bottom:(z.bottom-S.bottom+D.bottom)/Q.y,left:(S.left-z.left+D.left)/Q.x,right:(z.right-S.right+D.right)/Q.x}}const Bv=50,Fv=async(i,e,r)=>{const{placement:s="bottom",strategy:u="absolute",middleware:p=[],platform:l}=r,m=l.detectOverflow?l:{...l,detectOverflow:Rv},A=await(l.isRTL==null?void 0:l.isRTL(e));let v=await l.getElementRects({reference:i,floating:e,strategy:u}),{x,y:T}=Jl(v,s,A),I=s,B=0;const D={};for(let W=0;W<p.length;W++){const k=p[W];if(!k)continue;const{name:S,fn:N}=k,{x:H,y:Q,data:z,reset:E}=await N({x,y:T,initialPlacement:s,placement:I,strategy:u,middlewareData:D,rects:v,platform:m,elements:{reference:i,floating:e}});x=H!=null?H:x,T=Q!=null?Q:T,D[S]={...D[S],...z},E&&B<Bv&&(B++,typeof E=="object"&&(E.placement&&(I=E.placement),E.rects&&(v=E.rects===!0?await l.getElementRects({reference:i,floating:e,strategy:u}):E.rects),{x,y:T}=Jl(v,I,A)),W=-1)}return{x,y:T,placement:I,strategy:u,middlewareData:D}},Pv=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var r,s;const{placement:u,middlewareData:p,rects:l,initialPlacement:m,platform:A,elements:v}=e,{mainAxis:x=!0,crossAxis:T=!0,fallbackPlacements:I,fallbackStrategy:B="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:W=!0,...k}=fr(i,e);if((r=p.arrow)!=null&&r.alignmentOffset)return{};const S=Zt(u),N=Nt(m),H=Zt(m)===m,Q=await(A.isRTL==null?void 0:A.isRTL(v.floating)),z=I||(H||!W?[ui(m)]:wv(m)),E=D!=="none";!I&&E&&z.push(...Iv(m,W,D,Q));const q=[m,...z],F=await A.detectOverflow(e,k),w=[];let M=((s=p.flip)==null?void 0:s.overflows)||[];if(x&&w.push(F[S]),T){const _e=Av(u,l,Q);w.push(F[_e[0]],F[_e[1]])}if(M=[...M,{placement:u,overflows:w}],!w.every(_e=>_e<=0)){var G,$;const _e=(((G=p.flip)==null?void 0:G.index)||0)+1,Ge=q[_e];if(Ge&&(!(T==="alignment"?N!==Nt(Ge):!1)||M.every(j=>Nt(j.placement)===N?j.overflows[0]>0:!0)))return{data:{index:_e,overflows:M},reset:{placement:Ge}};let Fe=($=M.filter(X=>X.overflows[0]<=0).sort((X,j)=>X.overflows[1]-j.overflows[1])[0])==null?void 0:$.placement;if(!Fe)switch(B){case"bestFit":{var le;const X=(le=M.filter(j=>{if(E){const ne=Nt(j.placement);return ne===N||ne==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(ne=>ne>0).reduce((ne,ye)=>ne+ye,0)]).sort((j,ne)=>j[1]-ne[1])[0])==null?void 0:le[0];X&&(Fe=X);break}case"initialPlacement":Fe=m;break}if(u!==Fe)return{reset:{placement:Fe}}}return{}}}},kv=new Set(["left","top"]);async function Dv(i,e){const{placement:r,platform:s,elements:u}=i,p=await(s.isRTL==null?void 0:s.isRTL(u.floating)),l=Zt(r),m=dr(r),A=Nt(r)==="y",v=kv.has(l)?-1:1,x=p&&A?-1:1,T=fr(e,i);let{mainAxis:I,crossAxis:B,alignmentAxis:D}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:T.mainAxis||0,crossAxis:T.crossAxis||0,alignmentAxis:T.alignmentAxis};return m&&typeof D=="number"&&(B=m==="end"?D*-1:D),A?{x:B*x,y:I*v}:{x:I*v,y:B*x}}const Ov=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(e){var r,s;const{x:u,y:p,placement:l,middlewareData:m}=e,A=await Dv(e,i);return l===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:u+A.x,y:p+A.y,data:{...A,placement:l}}}}},Lv=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(e){const{x:r,y:s,placement:u,platform:p}=e,{mainAxis:l=!0,crossAxis:m=!1,limiter:A={fn:S=>{let{x:N,y:H}=S;return{x:N,y:H}}},...v}=fr(i,e),x={x:r,y:s},T=await p.detectOverflow(e,v),I=Nt(Zt(u)),B=ac(I);let D=x[B],W=x[I];if(l){const S=B==="y"?"top":"left",N=B==="y"?"bottom":"right",H=D+T[S],Q=D-T[N];D=Wl(H,D,Q)}if(m){const S=I==="y"?"top":"left",N=I==="y"?"bottom":"right",H=W+T[S],Q=W-T[N];W=Wl(H,W,Q)}const k=A.fn({...e,[B]:D,[I]:W});return{...k,data:{x:k.x-r,y:k.y-s,enabled:{[B]:l,[I]:m}}}}}},Nv=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(e){var r,s;const{placement:u,rects:p,platform:l,elements:m}=e,{apply:A=()=>{},...v}=fr(i,e),x=await l.detectOverflow(e,v),T=Zt(u),I=dr(u),B=Nt(u)==="y",{width:D,height:W}=p.floating;let k,S;T==="top"||T==="bottom"?(k=T,S=I===(await(l.isRTL==null?void 0:l.isRTL(m.floating))?"start":"end")?"left":"right"):(S=T,k=I==="end"?"top":"bottom");const N=W-x.top-x.bottom,H=D-x.left-x.right,Q=kn(W-x[k],N),z=kn(D-x[S],H),E=!e.middlewareData.shift;let q=Q,F=z;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(F=H),(s=e.middlewareData.shift)!=null&&s.enabled.y&&(q=N),E&&!I){const M=$e(x.left,0),G=$e(x.right,0),$=$e(x.top,0),le=$e(x.bottom,0);B?F=D-2*(M!==0||G!==0?M+G:$e(x.left,x.right)):q=W-2*($!==0||le!==0?$+le:$e(x.top,x.bottom))}await A({...e,availableWidth:F,availableHeight:q});const w=await l.getDimensions(m.floating);return D!==w.width||W!==w.height?{reset:{rects:!0}}:{}}}};function mi(){return typeof window!="undefined"}function Mn(i){return lc(i)?(i.nodeName||"").toLowerCase():"#document"}function Ze(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function bt(i){var e;return(e=(lc(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function lc(i){return mi()?i instanceof Node||i instanceof Ze(i).Node:!1}function mt(i){return mi()?i instanceof Element||i instanceof Ze(i).Element:!1}function qt(i){return mi()?i instanceof HTMLElement||i instanceof Ze(i).HTMLElement:!1}function jl(i){return!mi()||typeof ShadowRoot=="undefined"?!1:i instanceof ShadowRoot||i instanceof Ze(i).ShadowRoot}function pr(i){const{overflow:e,overflowX:r,overflowY:s,display:u}=gt(i);return/auto|scroll|overlay|hidden|clip/.test(e+s+r)&&u!=="inline"&&u!=="contents"}function Mv(i){return/^(table|td|th)$/.test(Mn(i))}function gi(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}const Uv=/transform|translate|scale|rotate|perspective|filter/,qv=/paint|layout|strict|content/,hn=i=>!!i&&i!=="none";let za;function ns(i){const e=mt(i)?gt(i):i;return hn(e.transform)||hn(e.translate)||hn(e.scale)||hn(e.rotate)||hn(e.perspective)||!rs()&&(hn(e.backdropFilter)||hn(e.filter))||Uv.test(e.willChange||"")||qv.test(e.contain||"")}function Vv(i){let e=en(i);for(;qt(e)&&!Dn(e);){if(ns(e))return e;if(gi(e))return null;e=en(e)}return null}function rs(){return za==null&&(za=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),za}function Dn(i){return/^(html|body|#document)$/.test(Mn(i))}function gt(i){return Ze(i).getComputedStyle(i)}function vi(i){return mt(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function en(i){if(Mn(i)==="html")return i;const e=i.assignedSlot||i.parentNode||jl(i)&&i.host||bt(i);return jl(e)?e.host:e}function cc(i){const e=en(i);return Dn(e)?i.ownerDocument?i.ownerDocument.body:i.body:qt(e)&&pr(e)?e:cc(e)}function ur(i,e,r){var s;e===void 0&&(e=[]),r===void 0&&(r=!0);const u=cc(i),p=u===((s=i.ownerDocument)==null?void 0:s.body),l=Ze(u);if(p){const m=Za(l);return e.concat(l,l.visualViewport||[],pr(u)?u:[],m&&r?ur(m):[])}else return e.concat(u,ur(u,[],r))}function Za(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function uc(i){const e=gt(i);let r=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const u=qt(i),p=u?i.offsetWidth:r,l=u?i.offsetHeight:s,m=ci(r)!==p||ci(s)!==l;return m&&(r=p,s=l),{width:r,height:s,$:m}}function is(i){return mt(i)?i:i.contextElement}function Pn(i){const e=is(i);if(!qt(e))return wt(1);const r=e.getBoundingClientRect(),{width:s,height:u,$:p}=uc(e);let l=(p?ci(r.width):r.width)/s,m=(p?ci(r.height):r.height)/u;return(!l||!Number.isFinite(l))&&(l=1),(!m||!Number.isFinite(m))&&(m=1),{x:l,y:m}}const Wv=wt(0);function fc(i){const e=Ze(i);return!rs()||!e.visualViewport?Wv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Hv(i,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ze(i)?!1:e}function mn(i,e,r,s){e===void 0&&(e=!1),r===void 0&&(r=!1);const u=i.getBoundingClientRect(),p=is(i);let l=wt(1);e&&(s?mt(s)&&(l=Pn(s)):l=Pn(i));const m=Hv(p,r,s)?fc(p):wt(0);let A=(u.left+m.x)/l.x,v=(u.top+m.y)/l.y,x=u.width/l.x,T=u.height/l.y;if(p){const I=Ze(p),B=s&&mt(s)?Ze(s):s;let D=I,W=Za(D);for(;W&&s&&B!==D;){const k=Pn(W),S=W.getBoundingClientRect(),N=gt(W),H=S.left+(W.clientLeft+parseFloat(N.paddingLeft))*k.x,Q=S.top+(W.clientTop+parseFloat(N.paddingTop))*k.y;A*=k.x,v*=k.y,x*=k.x,T*=k.y,A+=H,v+=Q,D=Ze(W),W=Za(D)}}return fi({width:x,height:T,x:A,y:v})}function yi(i,e){const r=vi(i).scrollLeft;return e?e.left+r:mn(bt(i)).left+r}function dc(i,e){const r=i.getBoundingClientRect(),s=r.left+e.scrollLeft-yi(i,r),u=r.top+e.scrollTop;return{x:s,y:u}}function Gv(i){let{elements:e,rect:r,offsetParent:s,strategy:u}=i;const p=u==="fixed",l=bt(s),m=e?gi(e.floating):!1;if(s===l||m&&p)return r;let A={scrollLeft:0,scrollTop:0},v=wt(1);const x=wt(0),T=qt(s);if((T||!T&&!p)&&((Mn(s)!=="body"||pr(l))&&(A=vi(s)),T)){const B=mn(s);v=Pn(s),x.x=B.x+s.clientLeft,x.y=B.y+s.clientTop}const I=l&&!T&&!p?dc(l,A):wt(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-A.scrollLeft*v.x+x.x+I.x,y:r.y*v.y-A.scrollTop*v.y+x.y+I.y}}function Jv(i){return Array.from(i.getClientRects())}function jv(i){const e=bt(i),r=vi(i),s=i.ownerDocument.body,u=$e(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),p=$e(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let l=-r.scrollLeft+yi(i);const m=-r.scrollTop;return gt(s).direction==="rtl"&&(l+=$e(e.clientWidth,s.clientWidth)-u),{width:u,height:p,x:l,y:m}}const zl=25;function zv(i,e){const r=Ze(i),s=bt(i),u=r.visualViewport;let p=s.clientWidth,l=s.clientHeight,m=0,A=0;if(u){p=u.width,l=u.height;const x=rs();(!x||x&&e==="fixed")&&(m=u.offsetLeft,A=u.offsetTop)}const v=yi(s);if(v<=0){const x=s.ownerDocument,T=x.body,I=getComputedStyle(T),B=x.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,D=Math.abs(s.clientWidth-T.clientWidth-B);D<=zl&&(p-=D)}else v<=zl&&(p+=v);return{width:p,height:l,x:m,y:A}}function Qv(i,e){const r=mn(i,!0,e==="fixed"),s=r.top+i.clientTop,u=r.left+i.clientLeft,p=qt(i)?Pn(i):wt(1),l=i.clientWidth*p.x,m=i.clientHeight*p.y,A=u*p.x,v=s*p.y;return{width:l,height:m,x:A,y:v}}function Ql(i,e,r){let s;if(e==="viewport")s=zv(i,r);else if(e==="document")s=jv(bt(i));else if(mt(e))s=Qv(e,r);else{const u=fc(i);s={x:e.x-u.x,y:e.y-u.y,width:e.width,height:e.height}}return fi(s)}function pc(i,e){const r=en(i);return r===e||!mt(r)||Dn(r)?!1:gt(r).position==="fixed"||pc(r,e)}function Kv(i,e){const r=e.get(i);if(r)return r;let s=ur(i,[],!1).filter(m=>mt(m)&&Mn(m)!=="body"),u=null;const p=gt(i).position==="fixed";let l=p?en(i):i;for(;mt(l)&&!Dn(l);){const m=gt(l),A=ns(l);!A&&m.position==="fixed"&&(u=null),(p?!A&&!u:!A&&m.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||pr(l)&&!A&&pc(i,l))?s=s.filter(x=>x!==l):u=m,l=en(l)}return e.set(i,s),s}function Xv(i){let{element:e,boundary:r,rootBoundary:s,strategy:u}=i;const l=[...r==="clippingAncestors"?gi(e)?[]:Kv(e,this._c):[].concat(r),s],m=Ql(e,l[0],u);let A=m.top,v=m.right,x=m.bottom,T=m.left;for(let I=1;I<l.length;I++){const B=Ql(e,l[I],u);A=$e(B.top,A),v=kn(B.right,v),x=kn(B.bottom,x),T=$e(B.left,T)}return{width:v-T,height:x-A,x:T,y:A}}function Yv(i){const{width:e,height:r}=uc(i);return{width:e,height:r}}function $v(i,e,r){const s=qt(e),u=bt(e),p=r==="fixed",l=mn(i,!0,p,e);let m={scrollLeft:0,scrollTop:0};const A=wt(0);function v(){A.x=yi(u)}if(s||!s&&!p)if((Mn(e)!=="body"||pr(u))&&(m=vi(e)),s){const B=mn(e,!0,p,e);A.x=B.x+e.clientLeft,A.y=B.y+e.clientTop}else u&&v();p&&!s&&u&&v();const x=u&&!s&&!p?dc(u,m):wt(0),T=l.left+m.scrollLeft-A.x-x.x,I=l.top+m.scrollTop-A.y-x.y;return{x:T,y:I,width:l.width,height:l.height}}function Qa(i){return gt(i).position==="static"}function Kl(i,e){if(!qt(i)||gt(i).position==="fixed")return null;if(e)return e(i);let r=i.offsetParent;return bt(i)===r&&(r=r.ownerDocument.body),r}function hc(i,e){const r=Ze(i);if(gi(i))return r;if(!qt(i)){let u=en(i);for(;u&&!Dn(u);){if(mt(u)&&!Qa(u))return u;u=en(u)}return r}let s=Kl(i,e);for(;s&&Mv(s)&&Qa(s);)s=Kl(s,e);return s&&Dn(s)&&Qa(s)&&!ns(s)?r:s||Vv(i)||r}const Zv=async function(i){const e=this.getOffsetParent||hc,r=this.getDimensions,s=await r(i.floating);return{reference:$v(i.reference,await e(i.floating),i.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function ey(i){return gt(i).direction==="rtl"}const ty={convertOffsetParentRelativeRectToViewportRelativeRect:Gv,getDocumentElement:bt,getClippingRect:Xv,getOffsetParent:hc,getElementRects:Zv,getClientRects:Jv,getDimensions:Yv,getScale:Pn,isElement:mt,isRTL:ey};function mc(i,e){return i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height}function ny(i,e){let r=null,s;const u=bt(i);function p(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function l(m,A){m===void 0&&(m=!1),A===void 0&&(A=1),p();const v=i.getBoundingClientRect(),{left:x,top:T,width:I,height:B}=v;if(m||e(),!I||!B)return;const D=oi(T),W=oi(u.clientWidth-(x+I)),k=oi(u.clientHeight-(T+B)),S=oi(x),H={rootMargin:-D+"px "+-W+"px "+-k+"px "+-S+"px",threshold:$e(0,kn(1,A))||1};let Q=!0;function z(E){const q=E[0].intersectionRatio;if(q!==A){if(!Q)return l();q?l(!1,q):s=setTimeout(()=>{l(!1,1e-7)},1e3)}q===1&&!mc(v,i.getBoundingClientRect())&&l(),Q=!1}try{r=new IntersectionObserver(z,{...H,root:u.ownerDocument})}catch{r=new IntersectionObserver(z,H)}r.observe(i)}return l(!0),p}function ry(i,e,r,s){s===void 0&&(s={});const{ancestorScroll:u=!0,ancestorResize:p=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:A=!1}=s,v=is(i),x=u||p?[...v?ur(v):[],...e?ur(e):[]]:[];x.forEach(S=>{u&&S.addEventListener("scroll",r,{passive:!0}),p&&S.addEventListener("resize",r)});const T=v&&m?ny(v,r):null;let I=-1,B=null;l&&(B=new ResizeObserver(S=>{let[N]=S;N&&N.target===v&&B&&e&&(B.unobserve(e),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var H;(H=B)==null||H.observe(e)})),r()}),v&&!A&&B.observe(v),e&&B.observe(e));let D,W=A?mn(i):null;A&&k();function k(){const S=mn(i);W&&!mc(W,S)&&r(),W=S,D=requestAnimationFrame(k)}return r(),()=>{var S;x.forEach(N=>{u&&N.removeEventListener("scroll",r),p&&N.removeEventListener("resize",r)}),T==null||T(),(S=B)==null||S.disconnect(),B=null,A&&cancelAnimationFrame(D)}}const iy=Ov,ay=Lv,sy=Pv,oy=Nv,ly=(i,e,r)=>{const s=new Map,u={platform:ty,...r},p={...u.platform,_c:s};return Fv(i,e,{...u,platform:p})};function cy(i,e){const r=C.ref({position:"fixed",left:"0",top:"0",zIndex:3e3});let s=null;const u=()=>{!i.value||!e.value||ly(i.value,e.value,{placement:"bottom-start",strategy:"fixed",middleware:[iy(6),sy(),ay({padding:10}),oy({apply({rects:m,elements:A,availableWidth:v}){const x=`${m.reference.width}px`,T=m.reference.width;Object.assign(A.floating.style,{width:"max-content",minWidth:x,maxWidth:`${Math.max(T,v-20)}px`})}})]}).then(({x:m,y:A})=>{Object.assign(r.value,{left:`${m}px`,top:`${A}px`})})},p=()=>{i.value&&e.value&&(s=ry(i.value,e.value,u))},l=()=>{s&&(s(),s=null)};return C.onBeforeUnmount(l),{floatingStyles:r,startTrack:p,stopTrack:l}}const gc="data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e",Ci="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",uy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",fy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACC0lEQVR4AXxRv2tTURT+zk1iIjgoOMShkIJV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qAHPWMztTb24myvEBBuRM+WlUnbzDEXeya2D4XC0zrJqnXwsO3pG3mCMGWMK6lQZk2A0hH2GMSxL9VlI6lVkd90RgGKkVFrrc+9REXubjLH9FxfbbVUVGG5v4i2p8LD8x9ax65C66KTfKGCSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII=";function my(i,e,r){const s=C.ref(!1),u=()=>s.value=!0,p=()=>s.value=!1;return{isDropdownVisible:s,openDropdown:u,closeDropdown:p,handleAfterSelect:()=>{var A,v;i?(A=e.value)==null||A.focus():(r.value="",p(),(v=e.value)==null||v.blur())},handleBlur:()=>{setTimeout(()=>{p(),i&&(r.value="")},200)}}}const gy=C.defineComponent({name:"GlobalSearch",model:{prop:"value",event:"input"},props:{value:{type:[Object,Array],default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{type:Array,default:()=>["City","Seaport","Airport","Country"]},historyKey:{type:String,default:""},lang:{type:String,default:""},placeholder:{type:String,default:""},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},setup(i,{emit:e}){const r=C.ref(""),s=C.ref(!1),u=C.ref(""),p=C.ref(null),l=C.ref(null),m=C.ref(null),A=C.ref(null),v=C.ref(!1),{searchHistory:x,saveToHistory:T,clearHistory:I}=vv(C.toRef(i,"historyKey")),{searchResults:B,loading:D,isFetchingMore:W,isFinished:k,currentPage:S,fetchData:N,filterByTypes:H}=Cv(r,C.toRef(i,"searchTypeList")),{floatingStyles:Q,startTrack:z,stopTrack:E}=cy(m,A),{isDropdownVisible:q,openDropdown:F,handleAfterSelect:w,handleBlur:M}=my(C.toRef(i,"multiple").value,l,r),G=async()=>{if(F(),!i.multiple&&s.value&&B.value.length===0){const j=i.value;if(j!=null&&j.id){D.value=!0;try{const ne=await ja(j.id,j.type);B.value=H(ne.records)}finally{D.value=!1}}}},$=j=>{j.target.value===""&&!i.multiple&&(s.value=!1,e("input",null),e("update:value",null))},le=()=>{var j;if(i.multiple&&!r.value&&((j=i.value)==null?void 0:j.length)>0){const ne=[...i.value],ye=ne.pop();e("input",ne),e("update:value",ne),e("remove",ye)}};C.watch(q,j=>j?z():E()),C.watch(r,j=>{if(!j.trim()){B.value=[];return}p.value&&clearTimeout(p.value),p.value=setTimeout(()=>N(1,!1),300)});const _e=C.computed(()=>i.lang?i.lang==="en"||i.lang==="en-US":typeof document!="undefined"?/(^|;\s*)jc-language=en(-US)?(;|$)/.test(document.cookie||""):!1),Ge=C.computed(()=>B.value.length>0||D.value||r.value||x.value.length>0),Fe=j=>_e.value?j.displayEn||j.display||j.nameEn||"":j.displayCn||j.display||j.nameCn||j.name||"",X=j=>{e("apply-data",j)};return C.watch(()=>i.value,async(j,ne)=>{if(JSON.stringify(j)===JSON.stringify(ne))return;if(i.multiple&&Array.isArray(j)){const Le=[...j],Ee=Le.filter(Ae=>Ae&&Ae.id&&Ae.type);if(Ee.length>0)try{const Ae=Ee.map(Wt=>Wt.id),vt=await ja(Ae,Ee[0].type);if(vt&&vt.records){let Wt=!1;const Et=Le.map(St=>{const gr=vt.records.find(rn=>rn.id===St.id);return gr&&!St.display?(Wt=!0,{...St,...gr}):St});Wt&&(e("input",Et),e("update:value",Et))}}catch(Ae){console.error("Batch fetch detail failed:",Ae)}return}const ye=j;if(!ye){s.value=!1,u.value="";return}if(typeof ye=="object")if(ye.id&&ye.type&&!ye.display)try{const Ee=(await ja(ye.id,ye.type)).records.find(Ae=>Ae.id===ye.id);Ee&&(u.value=Fe(Ee),s.value=!0)}catch(Le){console.error("Single fetch detail failed:",Le)}else u.value=Fe(ye),s.value=!!u.value;else u.value=String(ye),s.value=!!ye},{immediate:!0,deep:!0}),C.onBeforeUnmount(E),{query:r,isSelected:s,isDropdownVisible:q,applyDataVisible:v,selectedLabel:u,inputRef:l,referenceRef:m,floatingRef:A,hasContentToShow:Ge,searchHistory:x,searchResults:B,loading:D,isFetchingMore:W,isFinished:k,currentPage:S,floatingStyles:Q,saveToHistory:T,clearHistory:I,fetchData:N,filterByTypes:H,startTrack:z,stopTrack:E,onFocus:G,handleBlur:M,onInput:$,handleDelete:le,handleConfirmApplyData:X,handleAfterSelect:w,openDropdown:F,SearchIcon:gc,ICON_MORE:Ci}},computed:{isEn(){var i,e,r,s,u,p;if(this.lang&&this.lang!=="")return this.lang==="en"||this.lang==="en-US";try{if(typeof useCookie=="function"){const l=(i=useCookie("jc-language"))==null?void 0:i.value;if(l)return/^en(-US)?$/.test(l)}}catch{}if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}try{if(typeof useNuxtApp=="function"){const l=useNuxtApp(),m=((p=(u=(s=(r=(e=l==null?void 0:l.ssrContext)==null?void 0:e.event)==null?void 0:r.node)==null?void 0:s.req)==null?void 0:u.headers)==null?void 0:p.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(m)}}catch{}return!1},selectedItems(){return this.value?Array.isArray(this.value)?this.value:[this.value]:[]},displayedTags(){return this.collapseTags?this.selectedItems.slice(0,1):this.selectedItems},hasValue(){return this.query||this.selectedItems.length>0},inputWidth(){return this.multiple?this.query?`${this.query.length*10+20}px`:"10px":"100%"},currentPlaceholder(){return this.multiple&&this.selectedItems.length>0?"":this.isSelected&&!this.multiple?this.selectedLabel:this.placeholder?this.placeholder:this.isEn?"Please enter...":"请输入..."}},methods:{focusInput(){var i;(i=this.$refs.inputRef)==null||i.focus()},getItemLabel(i){return this.isEn?i.displayEn||i.display||"":i.displayCn||i.display||""},getItemType(i){const e={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}};return this.isEn?e[i].en:e[i].cn},isItemActive(i){return this.selectedItems.some(e=>e.id===i.id)},selectItem(i){this.saveToHistory(i),this.multiple?this.isItemActive(i)||(this.$emit("input",[...this.selectedItems,i]),this.$emit("update:value",[...this.selectedItems,i])):(this.isSelected=!0,this.selectedLabel=this.getItemLabel(i),this.$emit("input",i),this.$emit("update:value",i)),this.$emit("select",i),this.$emit("change",i),this.handleAfterSelect()},removeItem(i){const e=this.selectedItems.filter(r=>r.id!==i.id);this.$emit("input",e),this.$emit("update:value",e),this.$emit("remove",i)},clearAll(){this.query="",this.isSelected=!1,this.selectedLabel="",this.$emit("input",this.multiple?[]:null),this.$emit("update:value",this.multiple?[]:null)},handleSearch(){const i=this.multiple?this.selectedItems:this.isSelected?this.value:null;this.$emit("submit-search",i),this.isDropdownVisible=!1},getIconUrl(i){return{City:uy,Seaport:fy,Airport:dy,Country:py}[i]||hy},handleScroll(i){const{scrollTop:e,scrollHeight:r,clientHeight:s}=i.target;e+s>=r-20&&!this.loading&&!this.isFetchingMore&&!this.isFinished&&this.query&&this.fetchData(this.currentPage+1,!0)}}});function me(i,e,r,s,u,p,l,m){var A=typeof i=="function"?i.options:i;return e&&(A.render=e,A.staticRenderFns=r,A._compiled=!0),p&&(A._scopeId="data-v-"+p),{exports:i,options:A}}var vy=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"search-container",class:{"is-disabled":e.disabled}},[r("div",{ref:"referenceRef",staticClass:"search-input-wrapper",class:{"is-multiple":e.multiple},on:{click:e.focusInput}},[r("div",{staticClass:"selection-wrapper"},[e.multiple&&e.selectedItems.length>0?[e._l(e.displayedTags,function(s,u){return r("div",{key:s.id||u,staticClass:"search-tag"},[r("span",{staticClass:"tag-text"},[e._v(e._s(e.getItemLabel(s)))]),r("span",{staticClass:"tag-close",on:{click:function(p){return p.stopPropagation(),e.removeItem(s)}}},[e._v("×")])])}),e.collapseTags&&e.selectedItems.length>1?r("div",{staticClass:"search-tag collapse"},[e._v(" + "+e._s(e.selectedItems.length-1)+" ")]):e._e()]:e._e(),r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",class:{"is-selected-state":e.isSelected&&!e.multiple},style:{width:e.inputWidth},attrs:{type:"text",placeholder:e.currentPlaceholder},domProps:{value:e.query},on:{focus:e.onFocus,blur:e.handleBlur,input:[function(s){s.target.composing||(e.query=s.target.value)},e.onInput],keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"delete",[8,46],s.key,["Backspace","Delete","Del"])?null:e.handleDelete.apply(null,arguments)}}})],2),r("div",{staticClass:"suffix-area"},[e.hasValue?r("span",{staticClass:"clear-icon",on:{mousedown:function(s){s.preventDefault()},click:function(s){return s.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v("ⓧ")]):e._e(),e.loading&&!e.isFetchingMore?r("div",{staticClass:"loading-spinner"}):!e.loading&&e.showSearchIcon?r("button",{staticClass:"search-btn",on:{click:function(s){return s.stopPropagation(),e.handleSearch.apply(null,arguments)}}},[r("span",{staticClass:"search-icon"},[r("img",{attrs:{src:e.SearchIcon,alt:"search"}})])]):e._e()])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isDropdownVisible&&e.hasContentToShow,expression:"isDropdownVisible && hasContentToShow"}],ref:"floatingRef",staticClass:"dropdown-list",style:e.floatingStyles,on:{scroll:e.handleScroll}},[e._t("history",function(){return[e.searchHistory.length>0&&!e.query?r("div",{staticClass:"history-section"},[r("div",{staticClass:"history-header"},[r("span",[e._v(e._s(e.isEn?"Recent search":"最近搜索"))]),r("span",{staticClass:"clear-btn",on:{mousedown:function(s){s.preventDefault()},click:function(s){return s.stopPropagation(),e.clearHistory.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),e._l(e.searchHistory,function(s,u){return r("div",{key:"hist-"+u,staticClass:"dropdown-item",on:{mousedown:function(p){return p.preventDefault(),e.selectItem(s)}}},[r("div",{staticClass:"category-tag",style:e.showItemTag?{}:{display:"none"}},[r("img",{staticClass:"type-icon",attrs:{src:e.getIconUrl(s.type),alt:""}}),r("span",{staticClass:"type-text"},[e._v(e._s(e.getItemType(s.type)))])]),r("div",{staticClass:"result-text"},[e._v(e._s(e.getItemLabel(s)))])])}),r("hr",{staticClass:"divider"})],2):e._e()]},{searchHistory:e.searchHistory}),e.loading&&!e.isFetchingMore?r("div",{staticClass:"status-msg"},[e._v(" "+e._s(e.isEn?"Searching...":"正在搜索中...")+" ")]):e.searchResults.length>0?[e._t("results",function(){return e._l(e.searchResults,function(s,u){return r("div",{key:u,staticClass:"dropdown-item",class:{"is-active":e.isItemActive(s)},on:{mousedown:function(p){return p.preventDefault(),e.selectItem(s)}}},[r("div",{staticClass:"category-tag",style:e.showItemTag?{}:{display:"none"}},[r("img",{staticClass:"type-icon",attrs:{src:e.getIconUrl(s.type),alt:""}}),r("span",{staticClass:"type-text"},[e._v(e._s(e.getItemType(s.type)))])]),r("div",{staticClass:"result-text"},[e._v(e._s(e.getItemLabel(s)))])])})},{searchResults:e.searchResults}),e.isFetchingMore?r("div",{staticClass:"load-more-msg"},[e._v(" "+e._s(e.isEn?"Loading more...":"正在加载更多...")+" ")]):e._e()]:e.query&&!e.loading?r("div",{staticClass:"status-msg"},[e._t("noData",function(){return[e.showApplyData?r("div",{staticClass:"no-result-label"},[e._v(" "+e._s(e.isEn?"No results found.":"暂无结果,")+" "),r("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"4px"}},[r("span",{staticClass:"apply-data",style:{cursor:"pointer",marginLeft:"4px"},on:{click:function(s){return s.stopPropagation(),(()=>e.applyDataVisible=!0).apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据 "))]),r("img",{staticClass:"apply-data-more-icon",attrs:{src:e.ICON_MORE,alt:""},on:{click:function(s){return s.stopPropagation(),(()=>e.applyDataVisible=!0).apply(null,arguments)}}})])]):r("p",{staticClass:"no-result-label"},[e._v(" "+e._s(e.isEn?`No results found related to "${e.query}".`:`未找到与 "${e.query}" 相关的结果`)+" ")])]})],2):e._e()],2),r("ApplyDataDialog",{attrs:{value:e.applyDataVisible},on:{"update:value":function(s){e.applyDataVisible=s},confirm:e.handleConfirmApplyData}})],1)},yy=[],Cy=me(gy,vy,yy,!1,null,"37e83283");const hr=Cy.exports,_y=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),Ay={__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:i=>["","en","en-US","zh-CN","cn"].includes(i)},placeholder:{type:String,default:""}},emits:["update:value","confirm"],setup(i,{emit:e}){const r=i,s=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],u=C.ref(null),p=C.ref(!1),l=C.reactive({name:"",country:""}),m=C.reactive({name:"",type:"City"}),A=C.computed(()=>{var T,I,B,D,W,k;if(r.lang&&r.lang!=="")return r.lang==="en"||r.lang==="en-US";try{if(typeof useCookie=="function"){const S=(T=useCookie("jc-language"))==null?void 0:T.value;if(S)return/^en(-US)?$/.test(S)}}catch{}if(typeof document!="undefined"){const S=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(S)}try{if(typeof useNuxtApp=="function"){const S=useNuxtApp(),N=((k=(W=(D=(B=(I=S==null?void 0:S.ssrContext)==null?void 0:I.event)==null?void 0:B.node)==null?void 0:D.req)==null?void 0:W.headers)==null?void 0:k.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(N)}}catch{}return!1}),v=()=>{l.name="",l.country="",p.value=!1,e("update:value",!1)};function x(){l.name="",l.country="";let T=!0;m.name.trim()||(l.name=A.value?"Please enter the data":"请输入需要补充的数据",T=!1),u.value||(l.country=A.value?"Please select a country":"请选择国家",T=!1),T&&b.reportNewTypeDataApi({reportData:m.name,reportType:m.type.toLocaleLowerCase(),countryId:u.value.id}).then(I=>{I.code===0&&(p.value=!0,U.Message.success(A.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),e("confirm",{...m,country:u.value}))}).catch(I=>{}).finally(()=>{})}return{__sfc:!0,props:r,emit:e,typeOptions:s,displayQuery:u,submitSuccess:p,errors:l,formData:m,isEn:A,handleClose:v,handleConfirm:x,Search:hr}}};var wy=function(){var u,p;var e=this,r=e._self._c,s=e._self._setupProxy;return e.value?r("div",{staticClass:"modal-mask",on:{click:function(l){return l.target!==l.currentTarget?null:s.handleClose.apply(null,arguments)}}},[s.submitSuccess?r("div",{staticClass:"apply-success-container"},[r("div",{staticClass:"apply-success-container__content"},[r("div",{staticClass:"icon"}),r("div",{staticClass:"desc"},[e._v(" "+e._s(s.isEn?"Submit successfully!":"提交成功!")+" ")])]),r("div",{staticClass:"apply-success-container__btns"},[r("div",{staticClass:"button",on:{click:function(l){return l.stopPropagation(),s.handleClose.apply(null,arguments)}}},[e._v(" "+e._s(s.isEn?"OK":"好的")+" ")])])]):r("div",{staticClass:"modal-container"},[r("div",{staticClass:"modal-header"},[r("span",{staticClass:"header-title"},[e._v(e._s(s.isEn?"Apply for data addition":"申请补充数据"))]),r("div",{staticClass:"close-btn",on:{click:s.handleClose}},[e._v("×")])]),r("div",{staticClass:"modal-body"},[r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Data To Add":"需补充的数据"))]),r("div",{staticClass:"input-box"},[r("input",{directives:[{name:"model",rawName:"v-model",value:s.formData.name,expression:"formData.name"}],class:["custom-input",{"input-error":s.errors.name}],attrs:{type:"text",placeholder:(u=e.placeholder)!=null?u:s.isEn?" Please enter":"请输入"},domProps:{value:s.formData.name},on:{input:[function(l){l.target.composing||e.$set(s.formData,"name",l.target.value)},function(l){s.errors.name=""}]}})]),s.errors.name?r("div",{staticClass:"error-message"},[e._v(e._s(s.errors.name))]):e._e()]),r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Type":"所属类别"))]),r("div",{staticClass:"type-group"},e._l(s.typeOptions,function(l){return r("div",{key:l.type,class:["type-btn",{active:s.formData.type===l.type}],on:{click:function(m){s.formData.type=l.type}}},[e._v(" "+e._s(s.isEn?l.typeEn:l.typeCn)+" "),s.formData.type===l.type?r("div",{staticClass:"check-mark"}):e._e()])}),0)]),r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Country":"国家"))]),r("div",{class:{"search-error-wrap":s.errors.country}},[r(s.Search,{style:{margin:"0 auto"},attrs:{"search-type-list":["Country"],lang:e.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:(p=e.placeholder)!=null?p:s.isEn?" Please enter":"请输入"},on:{"update:model-value":function(l){s.errors.country=""}},model:{value:s.displayQuery,callback:function(l){s.displayQuery=l},expression:"displayQuery"}})],1),s.errors.country?r("div",{staticClass:"error-message"},[e._v(" "+e._s(s.errors.country)+" ")]):e._e()])]),r("div",{staticClass:"modal-footer"},[r("button",{staticClass:"confirm-btn",on:{click:s.handleConfirm}},[e._v(" "+e._s(s.isEn?"Submit":"申请补充")+" ")])])])]):e._e()},by=[],Ey=me(Ay,wy,by,!1,null,"eeb8a8a0");const Sy=Ey.exports,Iy=Object.freeze(Object.defineProperty({__proto__:null,default:Sy},Symbol.toStringTag,{value:"Module"}));var li=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},cr={exports:{}};/**
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("vue-demi"),b=require("@jctrans-materials/shared"),U=require("jctrans-ui"),ht=require("crypto-js"),Mt=require("js-cookie"),gv=require("qrcode");function vv(i){const e=C.ref([]),r="_search_history_cache",s=typeof window!="undefined"&&typeof localStorage!="undefined",u=C.computed(()=>(i.value||"")+r),p=C.computed(()=>!!i.value&&i.value!==""),l=A=>{if(!A||!s)return;const v=e.value.filter(T=>T.id&&T.id!==A.id||T.display!==A.display);v.unshift(A);const x=v.slice(0,4);if(p.value){e.value=x;try{localStorage.setItem(u.value,JSON.stringify(x))}catch(T){console.warn("LocalStorage save failed:",T)}}},m=()=>{e.value=[],s&&localStorage.removeItem(u.value)};return C.onMounted(()=>{if(s&&p.value){const A=localStorage.getItem(u.value);if(A)try{e.value=JSON.parse(A)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:l,clearHistory:m,HasHistory:p}}async function yv(i,e=["Continent","Country","City","Seaport","Airport"],r={}){return b.locationSearchV2.searchByName({keyword:i,displayInfo:e,...r})}const ja=(i,e)=>b.locationSearchV2.searchByIdWithType(i,e);function Cv(i,e){const r=C.ref([]),s=C.ref(!1),u=C.ref(!1),p=C.ref(1),l=C.ref(0),m=C.ref(10),A=C.computed(()=>l.value===0?!1:r.value.length>=l.value),v=C.computed(()=>{const I=[...e.value];return I.includes("Country")&&!I.includes("Region")&&I.push("Region"),I}),x=I=>!I||!Array.isArray(I)?[]:I.filter(B=>v.value.includes(B.type));return{searchResults:r,loading:s,isFetchingMore:u,isFinished:A,currentPage:p,total:l,fetchData:async(I=1,B=!1)=>{if(!i.value.trim()&&!B){r.value=[],l.value=0;return}if(!(B&&(u.value||A.value))&&!(!B&&s.value)){B?u.value=!0:(s.value=!0,p.value=1);try{const D=await yv(i.value,e.value,{current:I,size:m.value}),W=D.records||[],k=x(W);B?r.value=[...r.value,...k]:r.value=k,l.value=D.total||0,p.value=I}catch(D){console.error("Failed to fetch search results:",D)}finally{s.value=!1,u.value=!1}}},filterByTypes:x}}const kn=Math.min,$e=Math.max,ci=Math.round,oi=Math.floor,wt=i=>({x:i,y:i}),_v={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(i,e,r){return $e(i,kn(e,r))}function fr(i,e){return typeof i=="function"?i(e):i}function Zt(i){return i.split("-")[0]}function dr(i){return i.split("-")[1]}function ac(i){return i==="x"?"y":"x"}function sc(i){return i==="y"?"height":"width"}function Nt(i){const e=i[0];return e==="t"||e==="b"?"y":"x"}function oc(i){return ac(Nt(i))}function Av(i,e,r){r===void 0&&(r=!1);const s=dr(i),u=oc(i),p=sc(u);let l=u==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[p]>e.floating[p]&&(l=ui(l)),[l,ui(l)]}function wv(i){const e=ui(i);return[$a(i),e,$a(e)]}function $a(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}const Hl=["left","right"],Gl=["right","left"],bv=["top","bottom"],Ev=["bottom","top"];function Sv(i,e,r){switch(i){case"top":case"bottom":return r?e?Gl:Hl:e?Hl:Gl;case"left":case"right":return e?bv:Ev;default:return[]}}function Iv(i,e,r,s){const u=dr(i);let p=Sv(Zt(i),r==="start",s);return u&&(p=p.map(l=>l+"-"+u),e&&(p=p.concat(p.map($a)))),p}function ui(i){const e=Zt(i);return _v[e]+i.slice(e.length)}function xv(i){return{top:0,right:0,bottom:0,left:0,...i}}function Tv(i){return typeof i!="number"?xv(i):{top:i,right:i,bottom:i,left:i}}function fi(i){const{x:e,y:r,width:s,height:u}=i;return{width:s,height:u,top:r,left:e,right:e+s,bottom:r+u,x:e,y:r}}function Jl(i,e,r){let{reference:s,floating:u}=i;const p=Nt(e),l=oc(e),m=sc(l),A=Zt(e),v=p==="y",x=s.x+s.width/2-u.width/2,T=s.y+s.height/2-u.height/2,I=s[m]/2-u[m]/2;let B;switch(A){case"top":B={x,y:s.y-u.height};break;case"bottom":B={x,y:s.y+s.height};break;case"right":B={x:s.x+s.width,y:T};break;case"left":B={x:s.x-u.width,y:T};break;default:B={x:s.x,y:s.y}}switch(dr(e)){case"start":B[l]-=I*(r&&v?-1:1);break;case"end":B[l]+=I*(r&&v?-1:1);break}return B}async function Rv(i,e){var r;e===void 0&&(e={});const{x:s,y:u,platform:p,rects:l,elements:m,strategy:A}=i,{boundary:v="clippingAncestors",rootBoundary:x="viewport",elementContext:T="floating",altBoundary:I=!1,padding:B=0}=fr(e,i),D=Tv(B),k=m[I?T==="floating"?"reference":"floating":T],S=fi(await p.getClippingRect({element:(r=await(p.isElement==null?void 0:p.isElement(k)))==null||r?k:k.contextElement||await(p.getDocumentElement==null?void 0:p.getDocumentElement(m.floating)),boundary:v,rootBoundary:x,strategy:A})),N=T==="floating"?{x:s,y:u,width:l.floating.width,height:l.floating.height}:l.reference,H=await(p.getOffsetParent==null?void 0:p.getOffsetParent(m.floating)),Q=await(p.isElement==null?void 0:p.isElement(H))?await(p.getScale==null?void 0:p.getScale(H))||{x:1,y:1}:{x:1,y:1},z=fi(p.convertOffsetParentRelativeRectToViewportRelativeRect?await p.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:N,offsetParent:H,strategy:A}):N);return{top:(S.top-z.top+D.top)/Q.y,bottom:(z.bottom-S.bottom+D.bottom)/Q.y,left:(S.left-z.left+D.left)/Q.x,right:(z.right-S.right+D.right)/Q.x}}const Bv=50,Fv=async(i,e,r)=>{const{placement:s="bottom",strategy:u="absolute",middleware:p=[],platform:l}=r,m=l.detectOverflow?l:{...l,detectOverflow:Rv},A=await(l.isRTL==null?void 0:l.isRTL(e));let v=await l.getElementRects({reference:i,floating:e,strategy:u}),{x,y:T}=Jl(v,s,A),I=s,B=0;const D={};for(let W=0;W<p.length;W++){const k=p[W];if(!k)continue;const{name:S,fn:N}=k,{x:H,y:Q,data:z,reset:E}=await N({x,y:T,initialPlacement:s,placement:I,strategy:u,middlewareData:D,rects:v,platform:m,elements:{reference:i,floating:e}});x=H!=null?H:x,T=Q!=null?Q:T,D[S]={...D[S],...z},E&&B<Bv&&(B++,typeof E=="object"&&(E.placement&&(I=E.placement),E.rects&&(v=E.rects===!0?await l.getElementRects({reference:i,floating:e,strategy:u}):E.rects),{x,y:T}=Jl(v,I,A)),W=-1)}return{x,y:T,placement:I,strategy:u,middlewareData:D}},Pv=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var r,s;const{placement:u,middlewareData:p,rects:l,initialPlacement:m,platform:A,elements:v}=e,{mainAxis:x=!0,crossAxis:T=!0,fallbackPlacements:I,fallbackStrategy:B="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:W=!0,...k}=fr(i,e);if((r=p.arrow)!=null&&r.alignmentOffset)return{};const S=Zt(u),N=Nt(m),H=Zt(m)===m,Q=await(A.isRTL==null?void 0:A.isRTL(v.floating)),z=I||(H||!W?[ui(m)]:wv(m)),E=D!=="none";!I&&E&&z.push(...Iv(m,W,D,Q));const q=[m,...z],F=await A.detectOverflow(e,k),w=[];let M=((s=p.flip)==null?void 0:s.overflows)||[];if(x&&w.push(F[S]),T){const fe=Av(u,l,Q);w.push(F[fe[0]],F[fe[1]])}if(M=[...M,{placement:u,overflows:w}],!w.every(fe=>fe<=0)){var G,$;const fe=(((G=p.flip)==null?void 0:G.index)||0)+1,Te=q[fe];if(Te&&(!(T==="alignment"?N!==Nt(Te):!1)||M.every(j=>Nt(j.placement)===N?j.overflows[0]>0:!0)))return{data:{index:fe,overflows:M},reset:{placement:Te}};let Pe=($=M.filter(X=>X.overflows[0]<=0).sort((X,j)=>X.overflows[1]-j.overflows[1])[0])==null?void 0:$.placement;if(!Pe)switch(B){case"bestFit":{var ye;const X=(ye=M.filter(j=>{if(E){const ne=Nt(j.placement);return ne===N||ne==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(ne=>ne>0).reduce((ne,Ce)=>ne+Ce,0)]).sort((j,ne)=>j[1]-ne[1])[0])==null?void 0:ye[0];X&&(Pe=X);break}case"initialPlacement":Pe=m;break}if(u!==Pe)return{reset:{placement:Pe}}}return{}}}},kv=new Set(["left","top"]);async function Dv(i,e){const{placement:r,platform:s,elements:u}=i,p=await(s.isRTL==null?void 0:s.isRTL(u.floating)),l=Zt(r),m=dr(r),A=Nt(r)==="y",v=kv.has(l)?-1:1,x=p&&A?-1:1,T=fr(e,i);let{mainAxis:I,crossAxis:B,alignmentAxis:D}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:T.mainAxis||0,crossAxis:T.crossAxis||0,alignmentAxis:T.alignmentAxis};return m&&typeof D=="number"&&(B=m==="end"?D*-1:D),A?{x:B*x,y:I*v}:{x:I*v,y:B*x}}const Ov=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(e){var r,s;const{x:u,y:p,placement:l,middlewareData:m}=e,A=await Dv(e,i);return l===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:u+A.x,y:p+A.y,data:{...A,placement:l}}}}},Lv=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(e){const{x:r,y:s,placement:u,platform:p}=e,{mainAxis:l=!0,crossAxis:m=!1,limiter:A={fn:S=>{let{x:N,y:H}=S;return{x:N,y:H}}},...v}=fr(i,e),x={x:r,y:s},T=await p.detectOverflow(e,v),I=Nt(Zt(u)),B=ac(I);let D=x[B],W=x[I];if(l){const S=B==="y"?"top":"left",N=B==="y"?"bottom":"right",H=D+T[S],Q=D-T[N];D=Wl(H,D,Q)}if(m){const S=I==="y"?"top":"left",N=I==="y"?"bottom":"right",H=W+T[S],Q=W-T[N];W=Wl(H,W,Q)}const k=A.fn({...e,[B]:D,[I]:W});return{...k,data:{x:k.x-r,y:k.y-s,enabled:{[B]:l,[I]:m}}}}}},Nv=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(e){var r,s;const{placement:u,rects:p,platform:l,elements:m}=e,{apply:A=()=>{},...v}=fr(i,e),x=await l.detectOverflow(e,v),T=Zt(u),I=dr(u),B=Nt(u)==="y",{width:D,height:W}=p.floating;let k,S;T==="top"||T==="bottom"?(k=T,S=I===(await(l.isRTL==null?void 0:l.isRTL(m.floating))?"start":"end")?"left":"right"):(S=T,k=I==="end"?"top":"bottom");const N=W-x.top-x.bottom,H=D-x.left-x.right,Q=kn(W-x[k],N),z=kn(D-x[S],H),E=!e.middlewareData.shift;let q=Q,F=z;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(F=H),(s=e.middlewareData.shift)!=null&&s.enabled.y&&(q=N),E&&!I){const M=$e(x.left,0),G=$e(x.right,0),$=$e(x.top,0),ye=$e(x.bottom,0);B?F=D-2*(M!==0||G!==0?M+G:$e(x.left,x.right)):q=W-2*($!==0||ye!==0?$+ye:$e(x.top,x.bottom))}await A({...e,availableWidth:F,availableHeight:q});const w=await l.getDimensions(m.floating);return D!==w.width||W!==w.height?{reset:{rects:!0}}:{}}}};function mi(){return typeof window!="undefined"}function Mn(i){return lc(i)?(i.nodeName||"").toLowerCase():"#document"}function Ze(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function bt(i){var e;return(e=(lc(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function lc(i){return mi()?i instanceof Node||i instanceof Ze(i).Node:!1}function mt(i){return mi()?i instanceof Element||i instanceof Ze(i).Element:!1}function qt(i){return mi()?i instanceof HTMLElement||i instanceof Ze(i).HTMLElement:!1}function jl(i){return!mi()||typeof ShadowRoot=="undefined"?!1:i instanceof ShadowRoot||i instanceof Ze(i).ShadowRoot}function pr(i){const{overflow:e,overflowX:r,overflowY:s,display:u}=gt(i);return/auto|scroll|overlay|hidden|clip/.test(e+s+r)&&u!=="inline"&&u!=="contents"}function Mv(i){return/^(table|td|th)$/.test(Mn(i))}function gi(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}const Uv=/transform|translate|scale|rotate|perspective|filter/,qv=/paint|layout|strict|content/,hn=i=>!!i&&i!=="none";let za;function ns(i){const e=mt(i)?gt(i):i;return hn(e.transform)||hn(e.translate)||hn(e.scale)||hn(e.rotate)||hn(e.perspective)||!rs()&&(hn(e.backdropFilter)||hn(e.filter))||Uv.test(e.willChange||"")||qv.test(e.contain||"")}function Vv(i){let e=en(i);for(;qt(e)&&!Dn(e);){if(ns(e))return e;if(gi(e))return null;e=en(e)}return null}function rs(){return za==null&&(za=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),za}function Dn(i){return/^(html|body|#document)$/.test(Mn(i))}function gt(i){return Ze(i).getComputedStyle(i)}function vi(i){return mt(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function en(i){if(Mn(i)==="html")return i;const e=i.assignedSlot||i.parentNode||jl(i)&&i.host||bt(i);return jl(e)?e.host:e}function cc(i){const e=en(i);return Dn(e)?i.ownerDocument?i.ownerDocument.body:i.body:qt(e)&&pr(e)?e:cc(e)}function ur(i,e,r){var s;e===void 0&&(e=[]),r===void 0&&(r=!0);const u=cc(i),p=u===((s=i.ownerDocument)==null?void 0:s.body),l=Ze(u);if(p){const m=Za(l);return e.concat(l,l.visualViewport||[],pr(u)?u:[],m&&r?ur(m):[])}else return e.concat(u,ur(u,[],r))}function Za(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function uc(i){const e=gt(i);let r=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const u=qt(i),p=u?i.offsetWidth:r,l=u?i.offsetHeight:s,m=ci(r)!==p||ci(s)!==l;return m&&(r=p,s=l),{width:r,height:s,$:m}}function is(i){return mt(i)?i:i.contextElement}function Pn(i){const e=is(i);if(!qt(e))return wt(1);const r=e.getBoundingClientRect(),{width:s,height:u,$:p}=uc(e);let l=(p?ci(r.width):r.width)/s,m=(p?ci(r.height):r.height)/u;return(!l||!Number.isFinite(l))&&(l=1),(!m||!Number.isFinite(m))&&(m=1),{x:l,y:m}}const Wv=wt(0);function fc(i){const e=Ze(i);return!rs()||!e.visualViewport?Wv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Hv(i,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ze(i)?!1:e}function mn(i,e,r,s){e===void 0&&(e=!1),r===void 0&&(r=!1);const u=i.getBoundingClientRect(),p=is(i);let l=wt(1);e&&(s?mt(s)&&(l=Pn(s)):l=Pn(i));const m=Hv(p,r,s)?fc(p):wt(0);let A=(u.left+m.x)/l.x,v=(u.top+m.y)/l.y,x=u.width/l.x,T=u.height/l.y;if(p){const I=Ze(p),B=s&&mt(s)?Ze(s):s;let D=I,W=Za(D);for(;W&&s&&B!==D;){const k=Pn(W),S=W.getBoundingClientRect(),N=gt(W),H=S.left+(W.clientLeft+parseFloat(N.paddingLeft))*k.x,Q=S.top+(W.clientTop+parseFloat(N.paddingTop))*k.y;A*=k.x,v*=k.y,x*=k.x,T*=k.y,A+=H,v+=Q,D=Ze(W),W=Za(D)}}return fi({width:x,height:T,x:A,y:v})}function yi(i,e){const r=vi(i).scrollLeft;return e?e.left+r:mn(bt(i)).left+r}function dc(i,e){const r=i.getBoundingClientRect(),s=r.left+e.scrollLeft-yi(i,r),u=r.top+e.scrollTop;return{x:s,y:u}}function Gv(i){let{elements:e,rect:r,offsetParent:s,strategy:u}=i;const p=u==="fixed",l=bt(s),m=e?gi(e.floating):!1;if(s===l||m&&p)return r;let A={scrollLeft:0,scrollTop:0},v=wt(1);const x=wt(0),T=qt(s);if((T||!T&&!p)&&((Mn(s)!=="body"||pr(l))&&(A=vi(s)),T)){const B=mn(s);v=Pn(s),x.x=B.x+s.clientLeft,x.y=B.y+s.clientTop}const I=l&&!T&&!p?dc(l,A):wt(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-A.scrollLeft*v.x+x.x+I.x,y:r.y*v.y-A.scrollTop*v.y+x.y+I.y}}function Jv(i){return Array.from(i.getClientRects())}function jv(i){const e=bt(i),r=vi(i),s=i.ownerDocument.body,u=$e(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),p=$e(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let l=-r.scrollLeft+yi(i);const m=-r.scrollTop;return gt(s).direction==="rtl"&&(l+=$e(e.clientWidth,s.clientWidth)-u),{width:u,height:p,x:l,y:m}}const zl=25;function zv(i,e){const r=Ze(i),s=bt(i),u=r.visualViewport;let p=s.clientWidth,l=s.clientHeight,m=0,A=0;if(u){p=u.width,l=u.height;const x=rs();(!x||x&&e==="fixed")&&(m=u.offsetLeft,A=u.offsetTop)}const v=yi(s);if(v<=0){const x=s.ownerDocument,T=x.body,I=getComputedStyle(T),B=x.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,D=Math.abs(s.clientWidth-T.clientWidth-B);D<=zl&&(p-=D)}else v<=zl&&(p+=v);return{width:p,height:l,x:m,y:A}}function Qv(i,e){const r=mn(i,!0,e==="fixed"),s=r.top+i.clientTop,u=r.left+i.clientLeft,p=qt(i)?Pn(i):wt(1),l=i.clientWidth*p.x,m=i.clientHeight*p.y,A=u*p.x,v=s*p.y;return{width:l,height:m,x:A,y:v}}function Ql(i,e,r){let s;if(e==="viewport")s=zv(i,r);else if(e==="document")s=jv(bt(i));else if(mt(e))s=Qv(e,r);else{const u=fc(i);s={x:e.x-u.x,y:e.y-u.y,width:e.width,height:e.height}}return fi(s)}function pc(i,e){const r=en(i);return r===e||!mt(r)||Dn(r)?!1:gt(r).position==="fixed"||pc(r,e)}function Kv(i,e){const r=e.get(i);if(r)return r;let s=ur(i,[],!1).filter(m=>mt(m)&&Mn(m)!=="body"),u=null;const p=gt(i).position==="fixed";let l=p?en(i):i;for(;mt(l)&&!Dn(l);){const m=gt(l),A=ns(l);!A&&m.position==="fixed"&&(u=null),(p?!A&&!u:!A&&m.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||pr(l)&&!A&&pc(i,l))?s=s.filter(x=>x!==l):u=m,l=en(l)}return e.set(i,s),s}function Xv(i){let{element:e,boundary:r,rootBoundary:s,strategy:u}=i;const l=[...r==="clippingAncestors"?gi(e)?[]:Kv(e,this._c):[].concat(r),s],m=Ql(e,l[0],u);let A=m.top,v=m.right,x=m.bottom,T=m.left;for(let I=1;I<l.length;I++){const B=Ql(e,l[I],u);A=$e(B.top,A),v=kn(B.right,v),x=kn(B.bottom,x),T=$e(B.left,T)}return{width:v-T,height:x-A,x:T,y:A}}function Yv(i){const{width:e,height:r}=uc(i);return{width:e,height:r}}function $v(i,e,r){const s=qt(e),u=bt(e),p=r==="fixed",l=mn(i,!0,p,e);let m={scrollLeft:0,scrollTop:0};const A=wt(0);function v(){A.x=yi(u)}if(s||!s&&!p)if((Mn(e)!=="body"||pr(u))&&(m=vi(e)),s){const B=mn(e,!0,p,e);A.x=B.x+e.clientLeft,A.y=B.y+e.clientTop}else u&&v();p&&!s&&u&&v();const x=u&&!s&&!p?dc(u,m):wt(0),T=l.left+m.scrollLeft-A.x-x.x,I=l.top+m.scrollTop-A.y-x.y;return{x:T,y:I,width:l.width,height:l.height}}function Qa(i){return gt(i).position==="static"}function Kl(i,e){if(!qt(i)||gt(i).position==="fixed")return null;if(e)return e(i);let r=i.offsetParent;return bt(i)===r&&(r=r.ownerDocument.body),r}function hc(i,e){const r=Ze(i);if(gi(i))return r;if(!qt(i)){let u=en(i);for(;u&&!Dn(u);){if(mt(u)&&!Qa(u))return u;u=en(u)}return r}let s=Kl(i,e);for(;s&&Mv(s)&&Qa(s);)s=Kl(s,e);return s&&Dn(s)&&Qa(s)&&!ns(s)?r:s||Vv(i)||r}const Zv=async function(i){const e=this.getOffsetParent||hc,r=this.getDimensions,s=await r(i.floating);return{reference:$v(i.reference,await e(i.floating),i.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function ey(i){return gt(i).direction==="rtl"}const ty={convertOffsetParentRelativeRectToViewportRelativeRect:Gv,getDocumentElement:bt,getClippingRect:Xv,getOffsetParent:hc,getElementRects:Zv,getClientRects:Jv,getDimensions:Yv,getScale:Pn,isElement:mt,isRTL:ey};function mc(i,e){return i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height}function ny(i,e){let r=null,s;const u=bt(i);function p(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function l(m,A){m===void 0&&(m=!1),A===void 0&&(A=1),p();const v=i.getBoundingClientRect(),{left:x,top:T,width:I,height:B}=v;if(m||e(),!I||!B)return;const D=oi(T),W=oi(u.clientWidth-(x+I)),k=oi(u.clientHeight-(T+B)),S=oi(x),H={rootMargin:-D+"px "+-W+"px "+-k+"px "+-S+"px",threshold:$e(0,kn(1,A))||1};let Q=!0;function z(E){const q=E[0].intersectionRatio;if(q!==A){if(!Q)return l();q?l(!1,q):s=setTimeout(()=>{l(!1,1e-7)},1e3)}q===1&&!mc(v,i.getBoundingClientRect())&&l(),Q=!1}try{r=new IntersectionObserver(z,{...H,root:u.ownerDocument})}catch{r=new IntersectionObserver(z,H)}r.observe(i)}return l(!0),p}function ry(i,e,r,s){s===void 0&&(s={});const{ancestorScroll:u=!0,ancestorResize:p=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:A=!1}=s,v=is(i),x=u||p?[...v?ur(v):[],...e?ur(e):[]]:[];x.forEach(S=>{u&&S.addEventListener("scroll",r,{passive:!0}),p&&S.addEventListener("resize",r)});const T=v&&m?ny(v,r):null;let I=-1,B=null;l&&(B=new ResizeObserver(S=>{let[N]=S;N&&N.target===v&&B&&e&&(B.unobserve(e),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var H;(H=B)==null||H.observe(e)})),r()}),v&&!A&&B.observe(v),e&&B.observe(e));let D,W=A?mn(i):null;A&&k();function k(){const S=mn(i);W&&!mc(W,S)&&r(),W=S,D=requestAnimationFrame(k)}return r(),()=>{var S;x.forEach(N=>{u&&N.removeEventListener("scroll",r),p&&N.removeEventListener("resize",r)}),T==null||T(),(S=B)==null||S.disconnect(),B=null,A&&cancelAnimationFrame(D)}}const iy=Ov,ay=Lv,sy=Pv,oy=Nv,ly=(i,e,r)=>{const s=new Map,u={platform:ty,...r},p={...u.platform,_c:s};return Fv(i,e,{...u,platform:p})};function cy(i,e){const r=C.ref({position:"fixed",left:"0",top:"0",zIndex:3e3});let s=null;const u=()=>{!i.value||!e.value||ly(i.value,e.value,{placement:"bottom-start",strategy:"fixed",middleware:[iy(6),sy(),ay({padding:10}),oy({apply({rects:m,elements:A,availableWidth:v}){const x=`${m.reference.width}px`,T=m.reference.width;Object.assign(A.floating.style,{width:"max-content",minWidth:x,maxWidth:`${Math.max(T,v-20)}px`})}})]}).then(({x:m,y:A})=>{Object.assign(r.value,{left:`${m}px`,top:`${A}px`})})},p=()=>{i.value&&e.value&&(s=ry(i.value,e.value,u))},l=()=>{s&&(s(),s=null)};return C.onBeforeUnmount(l),{floatingStyles:r,startTrack:p,stopTrack:l}}const gc="data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e",Ci="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",uy="data:image/png;base64,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8/9hAAACgUlEQVR4AXRST0hUYRD/zbfbrqahQpAHlQ3dSurYoaBAwWNQkIT7J/ve09DQsOigkNCha4ckl4Lct0/S3QI7REFEBB08FBHRIYLwIJEodOlUurnfNN+6mq9weMPM+818v2/mm1HYQXK5XH02mz9h1fo7pOE/gkwmU+v5+fuGot8phJdWmSLLnl+4I0RV/xIFCGxCdU3DUwaOkULX18Uve1ydrC4xdwLcwRR9bnO2kwQIoCIDEowpXjsZ4vBCSyx+w/Nnb1KElkkwG4OqGhG79QUImEkT0T2JrpZ4fV5sF0Ad6je9BrBKxLeZuVv8rS9IAG4qGf5oTPSolNxIXOyUNjqlpb0W4xI+Cd62dVqcAAGBVqSCVmPMIoPCttzm2MEBAoeLir4hRK2AWPyVIAHRHMH0Ly0tCBF3M5t+Aq6A0HPJSSyCeZAIz7BNAgQwqxNyc1NL7MCoeyH1xNWpuKsTcet7fv46QI0/zdoEtkmAwHGcHyFQj/Q57vuPzm7m+X5efB6HYj3kOCubuLVlApltfdbPX5uaetCmdeKVAqUN1mdy04XR3PTsqAHPWMztTb24myvEBBuRM+WlUnbzDEXeya2D4XC0zrJqnXwsO3pG3mCMGWMK6lQZk2A0hH2GMSxL9VlI6lVkd90RgGKkVFrrc+9REXubjLH9FxfbbVUVGG5v4i2p8LD8x9ax65C66KTfKGCSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII=";function my(i,e,r){const s=C.ref(!1),u=()=>s.value=!0,p=()=>s.value=!1;return{isDropdownVisible:s,openDropdown:u,closeDropdown:p,handleAfterSelect:()=>{var A,v;i?(A=e.value)==null||A.focus():(r.value="",p(),(v=e.value)==null||v.blur())},handleBlur:()=>{setTimeout(()=>{p(),i&&(r.value="")},200)}}}const gy=C.defineComponent({name:"GlobalSearch",model:{prop:"value",event:"input"},props:{value:{type:[Object,Array],default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{type:Array,default:()=>["City","Seaport","Airport","Country"]},historyKey:{type:String,default:""},lang:{type:String,default:""},placeholder:{type:String,default:""},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},setup(i,{emit:e}){const r=C.ref(""),s=C.ref(!1),u=C.ref(""),p=C.ref(null),l=C.ref(null),m=C.ref(null),A=C.ref(null),v=C.ref(!1),{searchHistory:x,saveToHistory:T,clearHistory:I}=vv(C.toRef(i,"historyKey")),{searchResults:B,loading:D,isFetchingMore:W,isFinished:k,currentPage:S,fetchData:N,filterByTypes:H}=Cv(r,C.toRef(i,"searchTypeList")),{floatingStyles:Q,startTrack:z,stopTrack:E}=cy(m,A),{isDropdownVisible:q,openDropdown:F,handleAfterSelect:w,handleBlur:M}=my(C.toRef(i,"multiple").value,l,r),G=async()=>{if(F(),!i.multiple&&s.value&&B.value.length===0){const j=i.value;if(j!=null&&j.id){D.value=!0;try{const ne=await ja(j.id,j.type);B.value=H(ne.records)}finally{D.value=!1}}}},$=j=>{j.target.value===""&&!i.multiple&&(s.value=!1,e("input",null),e("update:value",null))},ye=()=>{var j;if(i.multiple&&!r.value&&((j=i.value)==null?void 0:j.length)>0){const ne=[...i.value],Ce=ne.pop();e("input",ne),e("update:value",ne),e("remove",Ce)}};C.watch(q,j=>j?z():E()),C.watch(r,j=>{if(!j.trim()){B.value=[];return}p.value&&clearTimeout(p.value),p.value=setTimeout(()=>N(1,!1),300)});const fe=C.computed(()=>i.lang?i.lang==="en"||i.lang==="en-US":typeof document!="undefined"?/(^|;\s*)jc-language=en(-US)?(;|$)/.test(document.cookie||""):!1),Te=C.computed(()=>B.value.length>0||D.value||r.value||x.value.length>0),Pe=j=>fe.value?j.displayEn||j.display||j.nameEn||"":j.displayCn||j.display||j.nameCn||j.name||"",X=j=>{e("apply-data",j)};return C.watch(()=>i.value,async(j,ne)=>{if(JSON.stringify(j)===JSON.stringify(ne))return;if(i.multiple&&Array.isArray(j)){const Ne=[...j],Ee=Ne.filter(Ae=>Ae&&Ae.id&&Ae.type);if(Ee.length>0)try{const Ae=Ee.map(Wt=>Wt.id),vt=await ja(Ae,Ee[0].type);if(vt&&vt.records){let Wt=!1;const Et=Ne.map(St=>{const gr=vt.records.find(rn=>rn.id===St.id);return gr&&!St.display?(Wt=!0,{...St,...gr}):St});Wt&&(e("input",Et),e("update:value",Et))}}catch(Ae){console.error("Batch fetch detail failed:",Ae)}return}const Ce=j;if(!Ce){s.value=!1,u.value="";return}if(typeof Ce=="object")if(Ce.id&&Ce.type&&!Ce.display)try{const Ee=(await ja(Ce.id,Ce.type)).records.find(Ae=>Ae.id===Ce.id);Ee&&(u.value=Pe(Ee),s.value=!0)}catch(Ne){console.error("Single fetch detail failed:",Ne)}else u.value=Pe(Ce),s.value=!!u.value;else u.value=String(Ce),s.value=!!Ce},{immediate:!0,deep:!0}),C.onBeforeUnmount(E),{query:r,isSelected:s,isDropdownVisible:q,applyDataVisible:v,selectedLabel:u,inputRef:l,referenceRef:m,floatingRef:A,hasContentToShow:Te,searchHistory:x,searchResults:B,loading:D,isFetchingMore:W,isFinished:k,currentPage:S,floatingStyles:Q,saveToHistory:T,clearHistory:I,fetchData:N,filterByTypes:H,startTrack:z,stopTrack:E,onFocus:G,handleBlur:M,onInput:$,handleDelete:ye,handleConfirmApplyData:X,handleAfterSelect:w,openDropdown:F,SearchIcon:gc,ICON_MORE:Ci}},computed:{isEn(){var i,e,r,s,u,p;if(this.lang&&this.lang!=="")return this.lang==="en"||this.lang==="en-US";try{if(typeof useCookie=="function"){const l=(i=useCookie("jc-language"))==null?void 0:i.value;if(l)return/^en(-US)?$/.test(l)}}catch{}if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}try{if(typeof useNuxtApp=="function"){const l=useNuxtApp(),m=((p=(u=(s=(r=(e=l==null?void 0:l.ssrContext)==null?void 0:e.event)==null?void 0:r.node)==null?void 0:s.req)==null?void 0:u.headers)==null?void 0:p.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(m)}}catch{}return!1},selectedItems(){return this.value?Array.isArray(this.value)?this.value:[this.value]:[]},displayedTags(){return this.collapseTags?this.selectedItems.slice(0,1):this.selectedItems},hasValue(){return this.query||this.selectedItems.length>0},inputWidth(){return this.multiple?this.query?`${this.query.length*10+20}px`:"10px":"100%"},currentPlaceholder(){return this.multiple&&this.selectedItems.length>0?"":this.isSelected&&!this.multiple?this.selectedLabel:this.placeholder?this.placeholder:this.isEn?"Please enter...":"请输入..."}},methods:{focusInput(){var i;(i=this.$refs.inputRef)==null||i.focus()},getItemLabel(i){return this.isEn?i.displayEn||i.display||"":i.displayCn||i.display||""},getItemType(i){const e={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}};return this.isEn?e[i].en:e[i].cn},isItemActive(i){return this.selectedItems.some(e=>e.id===i.id)},selectItem(i){this.saveToHistory(i),this.multiple?this.isItemActive(i)||(this.$emit("input",[...this.selectedItems,i]),this.$emit("update:value",[...this.selectedItems,i])):(this.isSelected=!0,this.selectedLabel=this.getItemLabel(i),this.$emit("input",i),this.$emit("update:value",i)),this.$emit("select",i),this.$emit("change",i),this.handleAfterSelect()},removeItem(i){const e=this.selectedItems.filter(r=>r.id!==i.id);this.$emit("input",e),this.$emit("update:value",e),this.$emit("remove",i)},clearAll(){this.query="",this.isSelected=!1,this.selectedLabel="",this.$emit("input",this.multiple?[]:null),this.$emit("update:value",this.multiple?[]:null)},handleSearch(){const i=this.multiple?this.selectedItems:this.isSelected?this.value:null;this.$emit("submit-search",i),this.isDropdownVisible=!1},getIconUrl(i){return{City:uy,Seaport:fy,Airport:dy,Country:py}[i]||hy},handleScroll(i){const{scrollTop:e,scrollHeight:r,clientHeight:s}=i.target;e+s>=r-20&&!this.loading&&!this.isFetchingMore&&!this.isFinished&&this.query&&this.fetchData(this.currentPage+1,!0)}}});function me(i,e,r,s,u,p,l,m){var A=typeof i=="function"?i.options:i;return e&&(A.render=e,A.staticRenderFns=r,A._compiled=!0),p&&(A._scopeId="data-v-"+p),{exports:i,options:A}}var vy=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"search-container",class:{"is-disabled":e.disabled}},[r("div",{ref:"referenceRef",staticClass:"search-input-wrapper",class:{"is-multiple":e.multiple},on:{click:e.focusInput}},[r("div",{staticClass:"selection-wrapper"},[e.multiple&&e.selectedItems.length>0?[e._l(e.displayedTags,function(s,u){return r("div",{key:s.id||u,staticClass:"search-tag"},[r("span",{staticClass:"tag-text"},[e._v(e._s(e.getItemLabel(s)))]),r("span",{staticClass:"tag-close",on:{click:function(p){return p.stopPropagation(),e.removeItem(s)}}},[e._v("×")])])}),e.collapseTags&&e.selectedItems.length>1?r("div",{staticClass:"search-tag collapse"},[e._v(" + "+e._s(e.selectedItems.length-1)+" ")]):e._e()]:e._e(),r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",class:{"is-selected-state":e.isSelected&&!e.multiple},style:{width:e.inputWidth},attrs:{type:"text",placeholder:e.currentPlaceholder},domProps:{value:e.query},on:{focus:e.onFocus,blur:e.handleBlur,input:[function(s){s.target.composing||(e.query=s.target.value)},e.onInput],keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"delete",[8,46],s.key,["Backspace","Delete","Del"])?null:e.handleDelete.apply(null,arguments)}}})],2),r("div",{staticClass:"suffix-area"},[e.hasValue?r("span",{staticClass:"clear-icon",on:{mousedown:function(s){s.preventDefault()},click:function(s){return s.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v("ⓧ")]):e._e(),e.loading&&!e.isFetchingMore?r("div",{staticClass:"loading-spinner"}):!e.loading&&e.showSearchIcon?r("button",{staticClass:"search-btn",on:{click:function(s){return s.stopPropagation(),e.handleSearch.apply(null,arguments)}}},[r("span",{staticClass:"search-icon"},[r("img",{attrs:{src:e.SearchIcon,alt:"search"}})])]):e._e()])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isDropdownVisible&&e.hasContentToShow,expression:"isDropdownVisible && hasContentToShow"}],ref:"floatingRef",staticClass:"dropdown-list",style:e.floatingStyles,on:{scroll:e.handleScroll}},[e._t("history",function(){return[e.searchHistory.length>0&&!e.query?r("div",{staticClass:"history-section"},[r("div",{staticClass:"history-header"},[r("span",[e._v(e._s(e.isEn?"Recent search":"最近搜索"))]),r("span",{staticClass:"clear-btn",on:{mousedown:function(s){s.preventDefault()},click:function(s){return s.stopPropagation(),e.clearHistory.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),e._l(e.searchHistory,function(s,u){return r("div",{key:"hist-"+u,staticClass:"dropdown-item",on:{mousedown:function(p){return p.preventDefault(),e.selectItem(s)}}},[r("div",{staticClass:"category-tag",style:e.showItemTag?{}:{display:"none"}},[r("img",{staticClass:"type-icon",attrs:{src:e.getIconUrl(s.type),alt:""}}),r("span",{staticClass:"type-text"},[e._v(e._s(e.getItemType(s.type)))])]),r("div",{staticClass:"result-text"},[e._v(e._s(e.getItemLabel(s)))])])}),r("hr",{staticClass:"divider"})],2):e._e()]},{searchHistory:e.searchHistory}),e.loading&&!e.isFetchingMore?r("div",{staticClass:"status-msg"},[e._v(" "+e._s(e.isEn?"Searching...":"正在搜索中...")+" ")]):e.searchResults.length>0?[e._t("results",function(){return e._l(e.searchResults,function(s,u){return r("div",{key:u,staticClass:"dropdown-item",class:{"is-active":e.isItemActive(s)},on:{mousedown:function(p){return p.preventDefault(),e.selectItem(s)}}},[r("div",{staticClass:"category-tag",style:e.showItemTag?{}:{display:"none"}},[r("img",{staticClass:"type-icon",attrs:{src:e.getIconUrl(s.type),alt:""}}),r("span",{staticClass:"type-text"},[e._v(e._s(e.getItemType(s.type)))])]),r("div",{staticClass:"result-text"},[e._v(e._s(e.getItemLabel(s)))])])})},{searchResults:e.searchResults}),e.isFetchingMore?r("div",{staticClass:"load-more-msg"},[e._v(" "+e._s(e.isEn?"Loading more...":"正在加载更多...")+" ")]):e._e()]:e.query&&!e.loading?r("div",{staticClass:"status-msg"},[e._t("noData",function(){return[e.showApplyData?r("div",{staticClass:"no-result-label"},[e._v(" "+e._s(e.isEn?"No results found.":"暂无结果,")+" "),r("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"4px"}},[r("span",{staticClass:"apply-data",style:{cursor:"pointer",marginLeft:"4px"},on:{click:function(s){return s.stopPropagation(),(()=>e.applyDataVisible=!0).apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据 "))]),r("img",{staticClass:"apply-data-more-icon",attrs:{src:e.ICON_MORE,alt:""},on:{click:function(s){return s.stopPropagation(),(()=>e.applyDataVisible=!0).apply(null,arguments)}}})])]):r("p",{staticClass:"no-result-label"},[e._v(" "+e._s(e.isEn?`No results found related to "${e.query}".`:`未找到与 "${e.query}" 相关的结果`)+" ")])]})],2):e._e()],2),r("ApplyDataDialog",{attrs:{value:e.applyDataVisible},on:{"update:value":function(s){e.applyDataVisible=s},confirm:e.handleConfirmApplyData}})],1)},yy=[],Cy=me(gy,vy,yy,!1,null,"37e83283");const hr=Cy.exports,_y=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),Ay={__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:i=>["","en","en-US","zh-CN","cn"].includes(i)},placeholder:{type:String,default:""}},emits:["update:value","confirm"],setup(i,{emit:e}){const r=i,s=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],u=C.ref(null),p=C.ref(!1),l=C.reactive({name:"",country:""}),m=C.reactive({name:"",type:"City"}),A=C.computed(()=>{var T,I,B,D,W,k;if(r.lang&&r.lang!=="")return r.lang==="en"||r.lang==="en-US";try{if(typeof useCookie=="function"){const S=(T=useCookie("jc-language"))==null?void 0:T.value;if(S)return/^en(-US)?$/.test(S)}}catch{}if(typeof document!="undefined"){const S=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(S)}try{if(typeof useNuxtApp=="function"){const S=useNuxtApp(),N=((k=(W=(D=(B=(I=S==null?void 0:S.ssrContext)==null?void 0:I.event)==null?void 0:B.node)==null?void 0:D.req)==null?void 0:W.headers)==null?void 0:k.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(N)}}catch{}return!1}),v=()=>{l.name="",l.country="",p.value=!1,e("update:value",!1)};function x(){l.name="",l.country="";let T=!0;m.name.trim()||(l.name=A.value?"Please enter the data":"请输入需要补充的数据",T=!1),u.value||(l.country=A.value?"Please select a country":"请选择国家",T=!1),T&&b.reportNewTypeDataApi({reportData:m.name,reportType:m.type.toLocaleLowerCase(),countryId:u.value.id}).then(I=>{I.code===0&&(p.value=!0,U.Message.success(A.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),e("confirm",{...m,country:u.value}))}).catch(I=>{}).finally(()=>{})}return{__sfc:!0,props:r,emit:e,typeOptions:s,displayQuery:u,submitSuccess:p,errors:l,formData:m,isEn:A,handleClose:v,handleConfirm:x,Search:hr}}};var wy=function(){var u,p;var e=this,r=e._self._c,s=e._self._setupProxy;return e.value?r("div",{staticClass:"modal-mask",on:{click:function(l){return l.target!==l.currentTarget?null:s.handleClose.apply(null,arguments)}}},[s.submitSuccess?r("div",{staticClass:"apply-success-container"},[r("div",{staticClass:"apply-success-container__content"},[r("div",{staticClass:"icon"}),r("div",{staticClass:"desc"},[e._v(" "+e._s(s.isEn?"Submit successfully!":"提交成功!")+" ")])]),r("div",{staticClass:"apply-success-container__btns"},[r("div",{staticClass:"button",on:{click:function(l){return l.stopPropagation(),s.handleClose.apply(null,arguments)}}},[e._v(" "+e._s(s.isEn?"OK":"好的")+" ")])])]):r("div",{staticClass:"modal-container"},[r("div",{staticClass:"modal-header"},[r("span",{staticClass:"header-title"},[e._v(e._s(s.isEn?"Apply for data addition":"申请补充数据"))]),r("div",{staticClass:"close-btn",on:{click:s.handleClose}},[e._v("×")])]),r("div",{staticClass:"modal-body"},[r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Data To Add":"需补充的数据"))]),r("div",{staticClass:"input-box"},[r("input",{directives:[{name:"model",rawName:"v-model",value:s.formData.name,expression:"formData.name"}],class:["custom-input",{"input-error":s.errors.name}],attrs:{type:"text",placeholder:(u=e.placeholder)!=null?u:s.isEn?" Please enter":"请输入"},domProps:{value:s.formData.name},on:{input:[function(l){l.target.composing||e.$set(s.formData,"name",l.target.value)},function(l){s.errors.name=""}]}})]),s.errors.name?r("div",{staticClass:"error-message"},[e._v(e._s(s.errors.name))]):e._e()]),r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Type":"所属类别"))]),r("div",{staticClass:"type-group"},e._l(s.typeOptions,function(l){return r("div",{key:l.type,class:["type-btn",{active:s.formData.type===l.type}],on:{click:function(m){s.formData.type=l.type}}},[e._v(" "+e._s(s.isEn?l.typeEn:l.typeCn)+" "),s.formData.type===l.type?r("div",{staticClass:"check-mark"}):e._e()])}),0)]),r("div",{staticClass:"form-item"},[r("label",{staticClass:"required"},[e._v(e._s(s.isEn?"Country":"国家"))]),r("div",{class:{"search-error-wrap":s.errors.country}},[r(s.Search,{style:{margin:"0 auto"},attrs:{"search-type-list":["Country"],lang:e.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:(p=e.placeholder)!=null?p:s.isEn?" Please enter":"请输入"},on:{"update:model-value":function(l){s.errors.country=""}},model:{value:s.displayQuery,callback:function(l){s.displayQuery=l},expression:"displayQuery"}})],1),s.errors.country?r("div",{staticClass:"error-message"},[e._v(" "+e._s(s.errors.country)+" ")]):e._e()])]),r("div",{staticClass:"modal-footer"},[r("button",{staticClass:"confirm-btn",on:{click:s.handleConfirm}},[e._v(" "+e._s(s.isEn?"Submit":"申请补充")+" ")])])])]):e._e()},by=[],Ey=me(Ay,wy,by,!1,null,"eeb8a8a0");const Sy=Ey.exports,Iy=Object.freeze(Object.defineProperty({__proto__:null,default:Sy},Symbol.toStringTag,{value:"Module"}));var li=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},cr={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/var xy=cr.exports,Xl;function Ty(){return Xl||(Xl=1,(function(i,e){(function(){var r,s="4.18.1",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",m="Invalid `variable` option passed into `_.template`",A="Invalid `imports` option passed into `_.template`",v="__lodash_hash_undefined__",x=500,T="__lodash_placeholder__",I=1,B=2,D=4,W=1,k=2,S=1,N=2,H=4,Q=8,z=16,E=32,q=64,F=128,w=256,M=512,G=30,$="...",le=800,_e=16,Ge=1,Fe=2,X=3,j=1/0,ne=9007199254740991,ye=17976931348623157e292,Le=NaN,Ee=4294967295,Ae=Ee-1,vt=Ee>>>1,Wt=[["ary",F],["bind",S],["bindKey",N],["curry",Q],["curryRight",z],["flip",M],["partial",E],["partialRight",q],["rearg",w]],Et="[object Arguments]",St="[object Array]",gr="[object AsyncFunction]",rn="[object Boolean]",qn="[object Date]",kc="[object DOMException]",vr="[object Error]",yr="[object Function]",ls="[object GeneratorFunction]",ot="[object Map]",Vn="[object Number]",Dc="[object Null]",It="[object Object]",cs="[object Promise]",Oc="[object Proxy]",Wn="[object RegExp]",lt="[object Set]",Hn="[object String]",Cr="[object Symbol]",Lc="[object Undefined]",Gn="[object WeakMap]",Nc="[object WeakSet]",Jn="[object ArrayBuffer]",vn="[object DataView]",Ei="[object Float32Array]",Si="[object Float64Array]",Ii="[object Int8Array]",xi="[object Int16Array]",Ti="[object Int32Array]",Ri="[object Uint8Array]",Bi="[object Uint8ClampedArray]",Fi="[object Uint16Array]",Pi="[object Uint32Array]",Mc=/\b__p \+= '';/g,Uc=/\b(__p \+=) '' \+/g,qc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,us=/&(?:amp|lt|gt|quot|#39);/g,fs=/[&<>"']/g,Vc=RegExp(us.source),Wc=RegExp(fs.source),Hc=/<%-([\s\S]+?)%>/g,Gc=/<%([\s\S]+?)%>/g,ds=/<%=([\s\S]+?)%>/g,Jc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jc=/^\w*$/,zc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/[\\^$.*+?()[\]{}|]/g,Qc=RegExp(ki.source),Di=/^\s+/,Kc=/\s/,Xc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yc=/\{\n\/\* \[wrapped with (.+)\] \*/,$c=/,? & /,Zc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ps=/[()=,{}\[\]\/\s]/,eu=/\\(\\)?/g,tu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hs=/\w*$/,nu=/^[-+]0x[0-9a-f]+$/i,ru=/^0b[01]+$/i,iu=/^\[object .+?Constructor\]$/,au=/^0o[0-7]+$/i,su=/^(?:0|[1-9]\d*)$/,ou=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_r=/($^)/,lu=/['\n\r\u2028\u2029\\]/g,Ar="\\ud800-\\udfff",cu="\\u0300-\\u036f",uu="\\ufe20-\\ufe2f",fu="\\u20d0-\\u20ff",ms=cu+uu+fu,gs="\\u2700-\\u27bf",vs="a-z\\xdf-\\xf6\\xf8-\\xff",du="\\xac\\xb1\\xd7\\xf7",pu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hu="\\u2000-\\u206f",mu=" \\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",ys="A-Z\\xc0-\\xd6\\xd8-\\xde",Cs="\\ufe0e\\ufe0f",_s=du+pu+hu+mu,Oi="['’]",gu="["+Ar+"]",As="["+_s+"]",wr="["+ms+"]",ws="\\d+",vu="["+gs+"]",bs="["+vs+"]",Es="[^"+Ar+_s+ws+gs+vs+ys+"]",Li="\\ud83c[\\udffb-\\udfff]",yu="(?:"+wr+"|"+Li+")",Ss="[^"+Ar+"]",Ni="(?:\\ud83c[\\udde6-\\uddff]){2}",Mi="[\\ud800-\\udbff][\\udc00-\\udfff]",yn="["+ys+"]",Is="\\u200d",xs="(?:"+bs+"|"+Es+")",Cu="(?:"+yn+"|"+Es+")",Ts="(?:"+Oi+"(?:d|ll|m|re|s|t|ve))?",Rs="(?:"+Oi+"(?:D|LL|M|RE|S|T|VE))?",Bs=yu+"?",Fs="["+Cs+"]?",_u="(?:"+Is+"(?:"+[Ss,Ni,Mi].join("|")+")"+Fs+Bs+")*",Au="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ps=Fs+Bs+_u,bu="(?:"+[vu,Ni,Mi].join("|")+")"+Ps,Eu="(?:"+[Ss+wr+"?",wr,Ni,Mi,gu].join("|")+")",Su=RegExp(Oi,"g"),Iu=RegExp(wr,"g"),Ui=RegExp(Li+"(?="+Li+")|"+Eu+Ps,"g"),xu=RegExp([yn+"?"+bs+"+"+Ts+"(?="+[As,yn,"$"].join("|")+")",Cu+"+"+Rs+"(?="+[As,yn+xs,"$"].join("|")+")",yn+"?"+xs+"+"+Ts,yn+"+"+Rs,wu,Au,ws,bu].join("|"),"g"),Tu=RegExp("["+Is+Ar+ms+Cs+"]"),Ru=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fu=-1,Ce={};Ce[Ei]=Ce[Si]=Ce[Ii]=Ce[xi]=Ce[Ti]=Ce[Ri]=Ce[Bi]=Ce[Fi]=Ce[Pi]=!0,Ce[Et]=Ce[St]=Ce[Jn]=Ce[rn]=Ce[vn]=Ce[qn]=Ce[vr]=Ce[yr]=Ce[ot]=Ce[Vn]=Ce[It]=Ce[Wn]=Ce[lt]=Ce[Hn]=Ce[Gn]=!1;var ve={};ve[Et]=ve[St]=ve[Jn]=ve[vn]=ve[rn]=ve[qn]=ve[Ei]=ve[Si]=ve[Ii]=ve[xi]=ve[Ti]=ve[ot]=ve[Vn]=ve[It]=ve[Wn]=ve[lt]=ve[Hn]=ve[Cr]=ve[Ri]=ve[Bi]=ve[Fi]=ve[Pi]=!0,ve[vr]=ve[yr]=ve[Gn]=!1;var Pu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E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:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ku={"&":"&","<":"<",">":">",'"':""","'":"'"},Du={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ou={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lu=parseFloat,Nu=parseInt,ks=typeof li=="object"&&li&&li.Object===Object&&li,Mu=typeof self=="object"&&self&&self.Object===Object&&self,Pe=ks||Mu||Function("return this")(),qi=e&&!e.nodeType&&e,an=qi&&!0&&i&&!i.nodeType&&i,Ds=an&&an.exports===qi,Vi=Ds&&ks.process,et=(function(){try{var y=an&&an.require&&an.require("util").types;return y||Vi&&Vi.binding&&Vi.binding("util")}catch{}})(),Os=et&&et.isArrayBuffer,Ls=et&&et.isDate,Ns=et&&et.isMap,Ms=et&&et.isRegExp,Us=et&&et.isSet,qs=et&&et.isTypedArray;function Je(y,P,R){switch(R.length){case 0:return y.call(P);case 1:return y.call(P,R[0]);case 2:return y.call(P,R[0],R[1]);case 3:return y.call(P,R[0],R[1],R[2])}return y.apply(P,R)}function Uu(y,P,R,K){for(var re=-1,de=y==null?0:y.length;++re<de;){var Te=y[re];P(K,Te,R(Te),y)}return K}function je(y,P){for(var R=-1,K=y==null?0:y.length;++R<K&&P(y[R],R,y)!==!1;);return y}function qu(y,P){for(var R=y==null?0:y.length;R--&&P(y[R],R,y)!==!1;);return y}function Vs(y,P){for(var R=-1,K=y==null?0:y.length;++R<K;)if(!P(y[R],R,y))return!1;return!0}function Ht(y,P){for(var R=-1,K=y==null?0:y.length,re=0,de=[];++R<K;){var Te=y[R];P(Te,R,y)&&(de[re++]=Te)}return de}function br(y,P){var R=y==null?0:y.length;return!!R&&Cn(y,P,0)>-1}function Wi(y,P,R){for(var K=-1,re=y==null?0:y.length;++K<re;)if(R(P,y[K]))return!0;return!1}function we(y,P){for(var R=-1,K=y==null?0:y.length,re=Array(K);++R<K;)re[R]=P(y[R],R,y);return re}function Gt(y,P){for(var R=-1,K=P.length,re=y.length;++R<K;)y[re+R]=P[R];return y}function Hi(y,P,R,K){var re=-1,de=y==null?0:y.length;for(K&&de&&(R=y[++re]);++re<de;)R=P(R,y[re],re,y);return R}function Vu(y,P,R,K){var re=y==null?0:y.length;for(K&&re&&(R=y[--re]);re--;)R=P(R,y[re],re,y);return R}function Gi(y,P){for(var R=-1,K=y==null?0:y.length;++R<K;)if(P(y[R],R,y))return!0;return!1}var Wu=Ji("length");function Hu(y){return y.split("")}function Gu(y){return y.match(Zc)||[]}function Ws(y,P,R){var K;return R(y,function(re,de,Te){if(P(re,de,Te))return K=de,!1}),K}function Er(y,P,R,K){for(var re=y.length,de=R+(K?1:-1);K?de--:++de<re;)if(P(y[de],de,y))return de;return-1}function Cn(y,P,R){return P===P?nf(y,P,R):Er(y,Hs,R)}function Ju(y,P,R,K){for(var re=R-1,de=y.length;++re<de;)if(K(y[re],P))return re;return-1}function Hs(y){return y!==y}function Gs(y,P){var R=y==null?0:y.length;return R?zi(y,P)/R:Le}function Ji(y){return function(P){return P==null?r:P[y]}}function ji(y){return function(P){return y==null?r:y[P]}}function Js(y,P,R,K,re){return re(y,function(de,Te,ge){R=K?(K=!1,de):P(R,de,Te,ge)}),R}function ju(y,P){var R=y.length;for(y.sort(P);R--;)y[R]=y[R].value;return y}function zi(y,P){for(var R,K=-1,re=y.length;++K<re;){var de=P(y[K]);de!==r&&(R=R===r?de:R+de)}return R}function Qi(y,P){for(var R=-1,K=Array(y);++R<y;)K[R]=P(R);return K}function zu(y,P){return we(P,function(R){return[R,y[R]]})}function js(y){return y&&y.slice(0,Xs(y)+1).replace(Di,"")}function ze(y){return function(P){return y(P)}}function Ki(y,P){return we(P,function(R){return y[R]})}function jn(y,P){return y.has(P)}function zs(y,P){for(var R=-1,K=y.length;++R<K&&Cn(P,y[R],0)>-1;);return R}function Qs(y,P){for(var R=y.length;R--&&Cn(P,y[R],0)>-1;);return R}function Qu(y,P){for(var R=y.length,K=0;R--;)y[R]===P&&++K;return K}var Ku=ji(Pu),Xu=ji(ku);function Yu(y){return"\\"+Ou[y]}function $u(y,P){return y==null?r:y[P]}function _n(y){return Tu.test(y)}function Zu(y){return Ru.test(y)}function ef(y){for(var P,R=[];!(P=y.next()).done;)R.push(P.value);return R}function Xi(y){var P=-1,R=Array(y.size);return y.forEach(function(K,re){R[++P]=[re,K]}),R}function Ks(y,P){return function(R){return y(P(R))}}function Jt(y,P){for(var R=-1,K=y.length,re=0,de=[];++R<K;){var Te=y[R];(Te===P||Te===T)&&(y[R]=T,de[re++]=R)}return de}function Sr(y){var P=-1,R=Array(y.size);return y.forEach(function(K){R[++P]=K}),R}function tf(y){var P=-1,R=Array(y.size);return y.forEach(function(K){R[++P]=[K,K]}),R}function nf(y,P,R){for(var K=R-1,re=y.length;++K<re;)if(y[K]===P)return K;return-1}function rf(y,P,R){for(var K=R+1;K--;)if(y[K]===P)return K;return K}function An(y){return _n(y)?sf(y):Wu(y)}function ct(y){return _n(y)?of(y):Hu(y)}function Xs(y){for(var P=y.length;P--&&Kc.test(y.charAt(P)););return P}var af=ji(Du);function sf(y){for(var P=Ui.lastIndex=0;Ui.test(y);)++P;return P}function of(y){return y.match(Ui)||[]}function lf(y){return y.match(xu)||[]}var cf=(function y(P){P=P==null?Pe:wn.defaults(Pe.Object(),P,wn.pick(Pe,Bu));var R=P.Array,K=P.Date,re=P.Error,de=P.Function,Te=P.Math,ge=P.Object,Yi=P.RegExp,uf=P.String,tt=P.TypeError,Ir=R.prototype,ff=de.prototype,bn=ge.prototype,xr=P["__core-js_shared__"],Tr=ff.toString,pe=bn.hasOwnProperty,df=0,Ys=(function(){var t=/[^.]+$/.exec(xr&&xr.keys&&xr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),Rr=bn.toString,pf=Tr.call(ge),hf=Pe._,mf=Yi("^"+Tr.call(pe).replace(ki,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Br=Ds?P.Buffer:r,jt=P.Symbol,Fr=P.Uint8Array,$s=Br?Br.allocUnsafe:r,Pr=Ks(ge.getPrototypeOf,ge),Zs=ge.create,eo=bn.propertyIsEnumerable,kr=Ir.splice,to=jt?jt.isConcatSpreadable:r,zn=jt?jt.iterator:r,sn=jt?jt.toStringTag:r,Dr=(function(){try{var t=fn(ge,"defineProperty");return t({},"",{}),t}catch{}})(),gf=P.clearTimeout!==Pe.clearTimeout&&P.clearTimeout,vf=K&&K.now!==Pe.Date.now&&K.now,yf=P.setTimeout!==Pe.setTimeout&&P.setTimeout,Or=Te.ceil,Lr=Te.floor,$i=ge.getOwnPropertySymbols,Cf=Br?Br.isBuffer:r,no=P.isFinite,_f=Ir.join,Af=Ks(ge.keys,ge),Re=Te.max,De=Te.min,wf=K.now,bf=P.parseInt,ro=Te.random,Ef=Ir.reverse,Zi=fn(P,"DataView"),Qn=fn(P,"Map"),ea=fn(P,"Promise"),En=fn(P,"Set"),Kn=fn(P,"WeakMap"),Xn=fn(ge,"create"),Nr=Kn&&new Kn,Sn={},Sf=dn(Zi),If=dn(Qn),xf=dn(ea),Tf=dn(En),Rf=dn(Kn),Mr=jt?jt.prototype:r,Yn=Mr?Mr.valueOf:r,io=Mr?Mr.toString:r;function f(t){if(Se(t)&&!ie(t)&&!(t instanceof ue)){if(t instanceof nt)return t;if(pe.call(t,"__wrapped__"))return sl(t)}return new nt(t)}var In=(function(){function t(){}return function(n){if(!be(n))return{};if(Zs)return Zs(n);t.prototype=n;var a=new t;return t.prototype=r,a}})();function Ur(){}function nt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=r}f.templateSettings={escape:Hc,evaluate:Gc,interpolate:ds,variable:"",imports:{_:f}},f.prototype=Ur.prototype,f.prototype.constructor=f,nt.prototype=In(Ur.prototype),nt.prototype.constructor=nt;function ue(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function Bf(){var t=new ue(this.__wrapped__);return t.__actions__=qe(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=qe(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=qe(this.__views__),t}function Ff(){if(this.__filtered__){var t=new ue(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Pf(){var t=this.__wrapped__.value(),n=this.__dir__,a=ie(t),o=n<0,c=a?t.length:0,d=Gd(0,c,this.__views__),h=d.start,g=d.end,_=g-h,O=o?g:h-1,L=this.__iteratees__,V=L.length,J=0,Y=De(_,this.__takeCount__);if(!a||!o&&c==_&&Y==_)return Ro(t,this.__actions__);var te=[];e:for(;_--&&J<Y;){O+=n;for(var se=-1,Z=t[O];++se<V;){var ce=L[se],fe=ce.iteratee,Xe=ce.type,Ue=fe(Z);if(Xe==Fe)Z=Ue;else if(!Ue){if(Xe==Ge)continue e;break e}}te[J++]=Z}return te}ue.prototype=In(Ur.prototype),ue.prototype.constructor=ue;function on(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function kf(){this.__data__=Xn?Xn(null):{},this.size=0}function Df(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function Of(t){var n=this.__data__;if(Xn){var a=n[t];return a===v?r:a}return pe.call(n,t)?n[t]:r}function Lf(t){var n=this.__data__;return Xn?n[t]!==r:pe.call(n,t)}function Nf(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Xn&&n===r?v:n,this}on.prototype.clear=kf,on.prototype.delete=Df,on.prototype.get=Of,on.prototype.has=Lf,on.prototype.set=Nf;function xt(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function Mf(){this.__data__=[],this.size=0}function Uf(t){var n=this.__data__,a=qr(n,t);if(a<0)return!1;var o=n.length-1;return a==o?n.pop():kr.call(n,a,1),--this.size,!0}function qf(t){var n=this.__data__,a=qr(n,t);return a<0?r:n[a][1]}function Vf(t){return qr(this.__data__,t)>-1}function Wf(t,n){var a=this.__data__,o=qr(a,t);return o<0?(++this.size,a.push([t,n])):a[o][1]=n,this}xt.prototype.clear=Mf,xt.prototype.delete=Uf,xt.prototype.get=qf,xt.prototype.has=Vf,xt.prototype.set=Wf;function Tt(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function Hf(){this.size=0,this.__data__={hash:new on,map:new(Qn||xt),string:new on}}function Gf(t){var n=$r(this,t).delete(t);return this.size-=n?1:0,n}function Jf(t){return $r(this,t).get(t)}function jf(t){return $r(this,t).has(t)}function zf(t,n){var a=$r(this,t),o=a.size;return a.set(t,n),this.size+=a.size==o?0:1,this}Tt.prototype.clear=Hf,Tt.prototype.delete=Gf,Tt.prototype.get=Jf,Tt.prototype.has=jf,Tt.prototype.set=zf;function ln(t){var n=-1,a=t==null?0:t.length;for(this.__data__=new Tt;++n<a;)this.add(t[n])}function Qf(t){return this.__data__.set(t,v),this}function Kf(t){return this.__data__.has(t)}ln.prototype.add=ln.prototype.push=Qf,ln.prototype.has=Kf;function ut(t){var n=this.__data__=new xt(t);this.size=n.size}function Xf(){this.__data__=new xt,this.size=0}function Yf(t){var n=this.__data__,a=n.delete(t);return this.size=n.size,a}function $f(t){return this.__data__.get(t)}function Zf(t){return this.__data__.has(t)}function ed(t,n){var a=this.__data__;if(a instanceof xt){var o=a.__data__;if(!Qn||o.length<u-1)return o.push([t,n]),this.size=++a.size,this;a=this.__data__=new Tt(o)}return a.set(t,n),this.size=a.size,this}ut.prototype.clear=Xf,ut.prototype.delete=Yf,ut.prototype.get=$f,ut.prototype.has=Zf,ut.prototype.set=ed;function ao(t,n){var a=ie(t),o=!a&&pn(t),c=!a&&!o&&Yt(t),d=!a&&!o&&!c&&Bn(t),h=a||o||c||d,g=h?Qi(t.length,uf):[],_=g.length;for(var O in t)(n||pe.call(t,O))&&!(h&&(O=="length"||c&&(O=="offset"||O=="parent")||d&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||Ft(O,_)))&&g.push(O);return g}function so(t){var n=t.length;return n?t[fa(0,n-1)]:r}function td(t,n){return Zr(qe(t),cn(n,0,t.length))}function nd(t){return Zr(qe(t))}function ta(t,n,a){(a!==r&&!dt(t[n],a)||a===r&&!(n in t))&&yt(t,n,a)}function $n(t,n,a){var o=t[n];(!(pe.call(t,n)&&dt(o,a))||a===r&&!(n in t))&&yt(t,n,a)}function qr(t,n){for(var a=t.length;a--;)if(dt(t[a][0],n))return a;return-1}function rd(t,n,a,o){return zt(t,function(c,d,h){n(o,c,a(c),h)}),o}function oo(t,n){return t&&_t(n,Be(n),t)}function id(t,n){return t&&_t(n,We(n),t)}function yt(t,n,a){n=="__proto__"&&Dr?Dr(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}function na(t,n){for(var a=-1,o=n.length,c=R(o),d=t==null;++a<o;)c[a]=d?r:Na(t,n[a]);return c}function cn(t,n,a){return t===t&&(a!==r&&(t=t<=a?t:a),n!==r&&(t=t>=n?t:n)),t}function rt(t,n,a,o,c,d){var h,g=n&I,_=n&B,O=n&D;if(a&&(h=c?a(t,o,c,d):a(t)),h!==r)return h;if(!be(t))return t;var L=ie(t);if(L){if(h=jd(t),!g)return qe(t,h)}else{var V=Oe(t),J=V==yr||V==ls;if(Yt(t))return Po(t,g);if(V==It||V==Et||J&&!c){if(h=_||J?{}:Yo(t),!g)return _?Od(t,id(h,t)):Dd(t,oo(h,t))}else{if(!ve[V])return c?t:{};h=zd(t,V,g)}}d||(d=new ut);var Y=d.get(t);if(Y)return Y;d.set(t,h),Il(t)?t.forEach(function(Z){h.add(rt(Z,n,a,Z,t,d))}):El(t)&&t.forEach(function(Z,ce){h.set(ce,rt(Z,n,a,ce,t,d))});var te=O?_?wa:Aa:_?We:Be,se=L?r:te(t);return je(se||t,function(Z,ce){se&&(ce=Z,Z=t[ce]),$n(h,ce,rt(Z,n,a,ce,t,d))}),h}function ad(t){var n=Be(t);return function(a){return lo(a,t,n)}}function lo(t,n,a){var o=a.length;if(t==null)return!o;for(t=ge(t);o--;){var c=a[o],d=n[c],h=t[c];if(h===r&&!(c in t)||!d(h))return!1}return!0}function co(t,n,a){if(typeof t!="function")throw new tt(l);return ar(function(){t.apply(r,a)},n)}function Zn(t,n,a,o){var c=-1,d=br,h=!0,g=t.length,_=[],O=n.length;if(!g)return _;a&&(n=we(n,ze(a))),o?(d=Wi,h=!1):n.length>=u&&(d=jn,h=!1,n=new ln(n));e:for(;++c<g;){var L=t[c],V=a==null?L:a(L);if(L=o||L!==0?L:0,h&&V===V){for(var J=O;J--;)if(n[J]===V)continue e;_.push(L)}else d(n,V,o)||_.push(L)}return _}var zt=No(Ct),uo=No(ia,!0);function sd(t,n){var a=!0;return zt(t,function(o,c,d){return a=!!n(o,c,d),a}),a}function Vr(t,n,a){for(var o=-1,c=t.length;++o<c;){var d=t[o],h=n(d);if(h!=null&&(g===r?h===h&&!Ke(h):a(h,g)))var g=h,_=d}return _}function od(t,n,a,o){var c=t.length;for(a=ae(a),a<0&&(a=-a>c?0:c+a),o=o===r||o>c?c:ae(o),o<0&&(o+=c),o=a>o?0:Tl(o);a<o;)t[a++]=n;return t}function fo(t,n){var a=[];return zt(t,function(o,c,d){n(o,c,d)&&a.push(o)}),a}function ke(t,n,a,o,c){var d=-1,h=t.length;for(a||(a=Kd),c||(c=[]);++d<h;){var g=t[d];n>0&&a(g)?n>1?ke(g,n-1,a,o,c):Gt(c,g):o||(c[c.length]=g)}return c}var ra=Mo(),po=Mo(!0);function Ct(t,n){return t&&ra(t,n,Be)}function ia(t,n){return t&&po(t,n,Be)}function Wr(t,n){return Ht(n,function(a){return Pt(t[a])})}function un(t,n){n=Kt(n,t);for(var a=0,o=n.length;t!=null&&a<o;)t=t[ft(n[a++])];return a&&a==o?t:r}function ho(t,n,a){var o=n(t);return ie(t)?o:Gt(o,a(t))}function Ne(t){return t==null?t===r?Lc:Dc:sn&&sn in ge(t)?Hd(t):np(t)}function aa(t,n){return t>n}function ld(t,n){return t!=null&&pe.call(t,n)}function cd(t,n){return t!=null&&n in ge(t)}function ud(t,n,a){return t>=De(n,a)&&t<Re(n,a)}function sa(t,n,a){for(var o=a?Wi:br,c=t[0].length,d=t.length,h=d,g=R(d),_=1/0,O=[];h--;){var L=t[h];h&&n&&(L=we(L,ze(n))),_=De(L.length,_),g[h]=!a&&(n||c>=120&&L.length>=120)?new ln(h&&L):r}L=t[0];var V=-1,J=g[0];e:for(;++V<c&&O.length<_;){var Y=L[V],te=n?n(Y):Y;if(Y=a||Y!==0?Y:0,!(J?jn(J,te):o(O,te,a))){for(h=d;--h;){var se=g[h];if(!(se?jn(se,te):o(t[h],te,a)))continue e}J&&J.push(te),O.push(Y)}}return O}function fd(t,n,a,o){return Ct(t,function(c,d,h){n(o,a(c),d,h)}),o}function er(t,n,a){n=Kt(n,t),t=tl(t,n);var o=t==null?t:t[ft(at(n))];return o==null?r:Je(o,t,a)}function mo(t){return Se(t)&&Ne(t)==Et}function dd(t){return Se(t)&&Ne(t)==Jn}function pd(t){return Se(t)&&Ne(t)==qn}function tr(t,n,a,o,c){return t===n?!0:t==null||n==null||!Se(t)&&!Se(n)?t!==t&&n!==n:hd(t,n,a,o,tr,c)}function hd(t,n,a,o,c,d){var h=ie(t),g=ie(n),_=h?St:Oe(t),O=g?St:Oe(n);_=_==Et?It:_,O=O==Et?It:O;var L=_==It,V=O==It,J=_==O;if(J&&Yt(t)){if(!Yt(n))return!1;h=!0,L=!1}if(J&&!L)return d||(d=new ut),h||Bn(t)?Qo(t,n,a,o,c,d):Vd(t,n,_,a,o,c,d);if(!(a&W)){var Y=L&&pe.call(t,"__wrapped__"),te=V&&pe.call(n,"__wrapped__");if(Y||te){var se=Y?t.value():t,Z=te?n.value():n;return d||(d=new ut),c(se,Z,a,o,d)}}return J?(d||(d=new ut),Wd(t,n,a,o,c,d)):!1}function md(t){return Se(t)&&Oe(t)==ot}function oa(t,n,a,o){var c=a.length,d=c,h=!o;if(t==null)return!d;for(t=ge(t);c--;){var g=a[c];if(h&&g[2]?g[1]!==t[g[0]]:!(g[0]in t))return!1}for(;++c<d;){g=a[c];var _=g[0],O=t[_],L=g[1];if(h&&g[2]){if(O===r&&!(_ in t))return!1}else{var V=new ut;if(o)var J=o(O,L,_,t,n,V);if(!(J===r?tr(L,O,W|k,o,V):J))return!1}}return!0}function go(t){if(!be(t)||Yd(t))return!1;var n=Pt(t)?mf:iu;return n.test(dn(t))}function gd(t){return Se(t)&&Ne(t)==Wn}function vd(t){return Se(t)&&Oe(t)==lt}function yd(t){return Se(t)&&ai(t.length)&&!!Ce[Ne(t)]}function vo(t){return typeof t=="function"?t:t==null?He:typeof t=="object"?ie(t)?_o(t[0],t[1]):Co(t):ql(t)}function la(t){if(!ir(t))return Af(t);var n=[];for(var a in ge(t))pe.call(t,a)&&a!="constructor"&&n.push(a);return n}function Cd(t){if(!be(t))return tp(t);var n=ir(t),a=[];for(var o in t)o=="constructor"&&(n||!pe.call(t,o))||a.push(o);return a}function ca(t,n){return t<n}function yo(t,n){var a=-1,o=Ve(t)?R(t.length):[];return zt(t,function(c,d,h){o[++a]=n(c,d,h)}),o}function Co(t){var n=Ea(t);return n.length==1&&n[0][2]?Zo(n[0][0],n[0][1]):function(a){return a===t||oa(a,t,n)}}function _o(t,n){return Ia(t)&&$o(n)?Zo(ft(t),n):function(a){var o=Na(a,t);return o===r&&o===n?Ma(a,t):tr(n,o,W|k)}}function Hr(t,n,a,o,c){t!==n&&ra(n,function(d,h){if(c||(c=new ut),be(d))_d(t,n,h,a,Hr,o,c);else{var g=o?o(Ta(t,h),d,h+"",t,n,c):r;g===r&&(g=d),ta(t,h,g)}},We)}function _d(t,n,a,o,c,d,h){var g=Ta(t,a),_=Ta(n,a),O=h.get(_);if(O){ta(t,a,O);return}var L=d?d(g,_,a+"",t,n,h):r,V=L===r;if(V){var J=ie(_),Y=!J&&Yt(_),te=!J&&!Y&&Bn(_);L=_,J||Y||te?ie(g)?L=g:Ie(g)?L=qe(g):Y?(V=!1,L=Po(_,!0)):te?(V=!1,L=ko(_,!0)):L=[]:sr(_)||pn(_)?(L=g,pn(g)?L=Rl(g):(!be(g)||Pt(g))&&(L=Yo(_))):V=!1}V&&(h.set(_,L),c(L,_,o,d,h),h.delete(_)),ta(t,a,L)}function Ao(t,n){var a=t.length;if(a)return n+=n<0?a:0,Ft(n,a)?t[n]:r}function wo(t,n,a){n.length?n=we(n,function(d){return ie(d)?function(h){return un(h,d.length===1?d[0]:d)}:d}):n=[He];var o=-1;n=we(n,ze(ee()));var c=yo(t,function(d,h,g){var _=we(n,function(O){return O(d)});return{criteria:_,index:++o,value:d}});return ju(c,function(d,h){return kd(d,h,a)})}function Ad(t,n){return bo(t,n,function(a,o){return Ma(t,o)})}function bo(t,n,a){for(var o=-1,c=n.length,d={};++o<c;){var h=n[o],g=un(t,h);a(g,h)&&nr(d,Kt(h,t),g)}return d}function wd(t){return function(n){return un(n,t)}}function ua(t,n,a,o){var c=o?Ju:Cn,d=-1,h=n.length,g=t;for(t===n&&(n=qe(n)),a&&(g=we(t,ze(a)));++d<h;)for(var _=0,O=n[d],L=a?a(O):O;(_=c(g,L,_,o))>-1;)g!==t&&kr.call(g,_,1),kr.call(t,_,1);return t}function Eo(t,n){for(var a=t?n.length:0,o=a-1;a--;){var c=n[a];if(a==o||c!==d){var d=c;Ft(c)?kr.call(t,c,1):ha(t,c)}}return t}function fa(t,n){return t+Lr(ro()*(n-t+1))}function bd(t,n,a,o){for(var c=-1,d=Re(Or((n-t)/(a||1)),0),h=R(d);d--;)h[o?d:++c]=t,t+=a;return h}function da(t,n){var a="";if(!t||n<1||n>ne)return a;do n%2&&(a+=t),n=Lr(n/2),n&&(t+=t);while(n);return a}function oe(t,n){return Ra(el(t,n,He),t+"")}function Ed(t){return so(Fn(t))}function Sd(t,n){var a=Fn(t);return Zr(a,cn(n,0,a.length))}function nr(t,n,a,o){if(!be(t))return t;n=Kt(n,t);for(var c=-1,d=n.length,h=d-1,g=t;g!=null&&++c<d;){var _=ft(n[c]),O=a;if(_==="__proto__"||_==="constructor"||_==="prototype")return t;if(c!=h){var L=g[_];O=o?o(L,_,g):r,O===r&&(O=be(L)?L:Ft(n[c+1])?[]:{})}$n(g,_,O),g=g[_]}return t}var So=Nr?function(t,n){return Nr.set(t,n),t}:He,Id=Dr?function(t,n){return Dr(t,"toString",{configurable:!0,enumerable:!1,value:qa(n),writable:!0})}:He;function xd(t){return Zr(Fn(t))}function it(t,n,a){var o=-1,c=t.length;n<0&&(n=-n>c?0:c+n),a=a>c?c:a,a<0&&(a+=c),c=n>a?0:a-n>>>0,n>>>=0;for(var d=R(c);++o<c;)d[o]=t[o+n];return d}function Td(t,n){var a;return zt(t,function(o,c,d){return a=n(o,c,d),!a}),!!a}function Gr(t,n,a){var o=0,c=t==null?o:t.length;if(typeof n=="number"&&n===n&&c<=vt){for(;o<c;){var d=o+c>>>1,h=t[d];h!==null&&!Ke(h)&&(a?h<=n:h<n)?o=d+1:c=d}return c}return pa(t,n,He,a)}function pa(t,n,a,o){var c=0,d=t==null?0:t.length;if(d===0)return 0;n=a(n);for(var h=n!==n,g=n===null,_=Ke(n),O=n===r;c<d;){var L=Lr((c+d)/2),V=a(t[L]),J=V!==r,Y=V===null,te=V===V,se=Ke(V);if(h)var Z=o||te;else O?Z=te&&(o||J):g?Z=te&&J&&(o||!Y):_?Z=te&&J&&!Y&&(o||!se):Y||se?Z=!1:Z=o?V<=n:V<n;Z?c=L+1:d=L}return De(d,Ae)}function Io(t,n){for(var a=-1,o=t.length,c=0,d=[];++a<o;){var h=t[a],g=n?n(h):h;if(!a||!dt(g,_)){var _=g;d[c++]=h===0?0:h}}return d}function xo(t){return typeof t=="number"?t:Ke(t)?Le:+t}function Qe(t){if(typeof t=="string")return t;if(ie(t))return we(t,Qe)+"";if(Ke(t))return io?io.call(t):"";var n=t+"";return n=="0"&&1/t==-j?"-0":n}function Qt(t,n,a){var o=-1,c=br,d=t.length,h=!0,g=[],_=g;if(a)h=!1,c=Wi;else if(d>=u){var O=n?null:Ud(t);if(O)return Sr(O);h=!1,c=jn,_=new ln}else _=n?[]:g;e:for(;++o<d;){var L=t[o],V=n?n(L):L;if(L=a||L!==0?L:0,h&&V===V){for(var J=_.length;J--;)if(_[J]===V)continue e;n&&_.push(V),g.push(L)}else c(_,V,a)||(_!==g&&_.push(V),g.push(L))}return g}function ha(t,n){n=Kt(n,t);var a=-1,o=n.length;if(!o)return!0;for(;++a<o;){var c=ft(n[a]);if(c==="__proto__"&&!pe.call(t,"__proto__")||(c==="constructor"||c==="prototype")&&a<o-1)return!1}var d=tl(t,n);return d==null||delete d[ft(at(n))]}function To(t,n,a,o){return nr(t,n,a(un(t,n)),o)}function Jr(t,n,a,o){for(var c=t.length,d=o?c:-1;(o?d--:++d<c)&&n(t[d],d,t););return a?it(t,o?0:d,o?d+1:c):it(t,o?d+1:0,o?c:d)}function Ro(t,n){var a=t;return a instanceof ue&&(a=a.value()),Hi(n,function(o,c){return c.func.apply(c.thisArg,Gt([o],c.args))},a)}function ma(t,n,a){var o=t.length;if(o<2)return o?Qt(t[0]):[];for(var c=-1,d=R(o);++c<o;)for(var h=t[c],g=-1;++g<o;)g!=c&&(d[c]=Zn(d[c]||h,t[g],n,a));return Qt(ke(d,1),n,a)}function Bo(t,n,a){for(var o=-1,c=t.length,d=n.length,h={};++o<c;){var g=o<d?n[o]:r;a(h,t[o],g)}return h}function ga(t){return Ie(t)?t:[]}function va(t){return typeof t=="function"?t:He}function Kt(t,n){return ie(t)?t:Ia(t,n)?[t]:al(he(t))}var Rd=oe;function Xt(t,n,a){var o=t.length;return a=a===r?o:a,!n&&a>=o?t:it(t,n,a)}var Fo=gf||function(t){return Pe.clearTimeout(t)};function Po(t,n){if(n)return t.slice();var a=t.length,o=$s?$s(a):new t.constructor(a);return t.copy(o),o}function ya(t){var n=new t.constructor(t.byteLength);return new Fr(n).set(new Fr(t)),n}function Bd(t,n){var a=n?ya(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function Fd(t){var n=new t.constructor(t.source,hs.exec(t));return n.lastIndex=t.lastIndex,n}function Pd(t){return Yn?ge(Yn.call(t)):{}}function ko(t,n){var a=n?ya(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function Do(t,n){if(t!==n){var a=t!==r,o=t===null,c=t===t,d=Ke(t),h=n!==r,g=n===null,_=n===n,O=Ke(n);if(!g&&!O&&!d&&t>n||d&&h&&_&&!g&&!O||o&&h&&_||!a&&_||!c)return 1;if(!o&&!d&&!O&&t<n||O&&a&&c&&!o&&!d||g&&a&&c||!h&&c||!_)return-1}return 0}function kd(t,n,a){for(var o=-1,c=t.criteria,d=n.criteria,h=c.length,g=a.length;++o<h;){var _=Do(c[o],d[o]);if(_){if(o>=g)return _;var O=a[o];return _*(O=="desc"?-1:1)}}return t.index-n.index}function Oo(t,n,a,o){for(var c=-1,d=t.length,h=a.length,g=-1,_=n.length,O=Re(d-h,0),L=R(_+O),V=!o;++g<_;)L[g]=n[g];for(;++c<h;)(V||c<d)&&(L[a[c]]=t[c]);for(;O--;)L[g++]=t[c++];return L}function Lo(t,n,a,o){for(var c=-1,d=t.length,h=-1,g=a.length,_=-1,O=n.length,L=Re(d-g,0),V=R(L+O),J=!o;++c<L;)V[c]=t[c];for(var Y=c;++_<O;)V[Y+_]=n[_];for(;++h<g;)(J||c<d)&&(V[Y+a[h]]=t[c++]);return V}function qe(t,n){var a=-1,o=t.length;for(n||(n=R(o));++a<o;)n[a]=t[a];return n}function _t(t,n,a,o){var c=!a;a||(a={});for(var d=-1,h=n.length;++d<h;){var g=n[d],_=o?o(a[g],t[g],g,a,t):r;_===r&&(_=t[g]),c?yt(a,g,_):$n(a,g,_)}return a}function Dd(t,n){return _t(t,Sa(t),n)}function Od(t,n){return _t(t,Ko(t),n)}function jr(t,n){return function(a,o){var c=ie(a)?Uu:rd,d=n?n():{};return c(a,t,ee(o,2),d)}}function xn(t){return oe(function(n,a){var o=-1,c=a.length,d=c>1?a[c-1]:r,h=c>2?a[2]:r;for(d=t.length>3&&typeof d=="function"?(c--,d):r,h&&Me(a[0],a[1],h)&&(d=c<3?r:d,c=1),n=ge(n);++o<c;){var g=a[o];g&&t(n,g,o,d)}return n})}function No(t,n){return function(a,o){if(a==null)return a;if(!Ve(a))return t(a,o);for(var c=a.length,d=n?c:-1,h=ge(a);(n?d--:++d<c)&&o(h[d],d,h)!==!1;);return a}}function Mo(t){return function(n,a,o){for(var c=-1,d=ge(n),h=o(n),g=h.length;g--;){var _=h[t?g:++c];if(a(d[_],_,d)===!1)break}return n}}function Ld(t,n,a){var o=n&S,c=rr(t);function d(){var h=this&&this!==Pe&&this instanceof d?c:t;return h.apply(o?a:this,arguments)}return d}function Uo(t){return function(n){n=he(n);var a=_n(n)?ct(n):r,o=a?a[0]:n.charAt(0),c=a?Xt(a,1).join(""):n.slice(1);return o[t]()+c}}function Tn(t){return function(n){return Hi(Ml(Nl(n).replace(Su,"")),t,"")}}function rr(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var a=In(t.prototype),o=t.apply(a,n);return be(o)?o:a}}function Nd(t,n,a){var o=rr(t);function c(){for(var d=arguments.length,h=R(d),g=d,_=Rn(c);g--;)h[g]=arguments[g];var O=d<3&&h[0]!==_&&h[d-1]!==_?[]:Jt(h,_);if(d-=O.length,d<a)return Go(t,n,zr,c.placeholder,r,h,O,r,r,a-d);var L=this&&this!==Pe&&this instanceof c?o:t;return Je(L,this,h)}return c}function qo(t){return function(n,a,o){var c=ge(n);if(!Ve(n)){var d=ee(a,3);n=Be(n),a=function(g){return d(c[g],g,c)}}var h=t(n,a,o);return h>-1?c[d?n[h]:h]:r}}function Vo(t){return Bt(function(n){var a=n.length,o=a,c=nt.prototype.thru;for(t&&n.reverse();o--;){var d=n[o];if(typeof d!="function")throw new tt(l);if(c&&!h&&Yr(d)=="wrapper")var h=new nt([],!0)}for(o=h?o:a;++o<a;){d=n[o];var g=Yr(d),_=g=="wrapper"?ba(d):r;_&&xa(_[0])&&_[1]==(F|Q|E|w)&&!_[4].length&&_[9]==1?h=h[Yr(_[0])].apply(h,_[3]):h=d.length==1&&xa(d)?h[g]():h.thru(d)}return function(){var O=arguments,L=O[0];if(h&&O.length==1&&ie(L))return h.plant(L).value();for(var V=0,J=a?n[V].apply(this,O):L;++V<a;)J=n[V].call(this,J);return J}})}function zr(t,n,a,o,c,d,h,g,_,O){var L=n&F,V=n&S,J=n&N,Y=n&(Q|z),te=n&M,se=J?r:rr(t);function Z(){for(var ce=arguments.length,fe=R(ce),Xe=ce;Xe--;)fe[Xe]=arguments[Xe];if(Y)var Ue=Rn(Z),Ye=Qu(fe,Ue);if(o&&(fe=Oo(fe,o,c,Y)),d&&(fe=Lo(fe,d,h,Y)),ce-=Ye,Y&&ce<O){var xe=Jt(fe,Ue);return Go(t,n,zr,Z.placeholder,a,fe,xe,g,_,O-ce)}var pt=V?a:this,Dt=J?pt[t]:t;return ce=fe.length,g?fe=rp(fe,g):te&&ce>1&&fe.reverse(),L&&_<ce&&(fe.length=_),this&&this!==Pe&&this instanceof Z&&(Dt=se||rr(Dt)),Dt.apply(pt,fe)}return Z}function Wo(t,n){return function(a,o){return fd(a,t,n(o),{})}}function Qr(t,n){return function(a,o){var c;if(a===r&&o===r)return n;if(a!==r&&(c=a),o!==r){if(c===r)return o;typeof a=="string"||typeof o=="string"?(a=Qe(a),o=Qe(o)):(a=xo(a),o=xo(o)),c=t(a,o)}return c}}function Ca(t){return Bt(function(n){return n=we(n,ze(ee())),oe(function(a){var o=this;return t(n,function(c){return Je(c,o,a)})})})}function Kr(t,n){n=n===r?" ":Qe(n);var a=n.length;if(a<2)return a?da(n,t):n;var o=da(n,Or(t/An(n)));return _n(n)?Xt(ct(o),0,t).join(""):o.slice(0,t)}function Md(t,n,a,o){var c=n&S,d=rr(t);function h(){for(var g=-1,_=arguments.length,O=-1,L=o.length,V=R(L+_),J=this&&this!==Pe&&this instanceof h?d:t;++O<L;)V[O]=o[O];for(;_--;)V[O++]=arguments[++g];return Je(J,c?a:this,V)}return h}function Ho(t){return function(n,a,o){return o&&typeof o!="number"&&Me(n,a,o)&&(a=o=r),n=kt(n),a===r?(a=n,n=0):a=kt(a),o=o===r?n<a?1:-1:kt(o),bd(n,a,o,t)}}function Xr(t){return function(n,a){return typeof n=="string"&&typeof a=="string"||(n=st(n),a=st(a)),t(n,a)}}function Go(t,n,a,o,c,d,h,g,_,O){var L=n&Q,V=L?h:r,J=L?r:h,Y=L?d:r,te=L?r:d;n|=L?E:q,n&=~(L?q:E),n&H||(n&=-4);var se=[t,n,c,Y,V,te,J,g,_,O],Z=a.apply(r,se);return xa(t)&&nl(Z,se),Z.placeholder=o,rl(Z,t,n)}function _a(t){var n=Te[t];return function(a,o){if(a=st(a),o=o==null?0:De(ae(o),292),o&&no(a)){var c=(he(a)+"e").split("e"),d=n(c[0]+"e"+(+c[1]+o));return c=(he(d)+"e").split("e"),+(c[0]+"e"+(+c[1]-o))}return n(a)}}var Ud=En&&1/Sr(new En([,-0]))[1]==j?function(t){return new En(t)}:Ha;function Jo(t){return function(n){var a=Oe(n);return a==ot?Xi(n):a==lt?tf(n):zu(n,t(n))}}function Rt(t,n,a,o,c,d,h,g){var _=n&N;if(!_&&typeof t!="function")throw new tt(l);var O=o?o.length:0;if(O||(n&=-97,o=c=r),h=h===r?h:Re(ae(h),0),g=g===r?g:ae(g),O-=c?c.length:0,n&q){var L=o,V=c;o=c=r}var J=_?r:ba(t),Y=[t,n,a,o,c,L,V,d,h,g];if(J&&ep(Y,J),t=Y[0],n=Y[1],a=Y[2],o=Y[3],c=Y[4],g=Y[9]=Y[9]===r?_?0:t.length:Re(Y[9]-O,0),!g&&n&(Q|z)&&(n&=-25),!n||n==S)var te=Ld(t,n,a);else n==Q||n==z?te=Nd(t,n,g):(n==E||n==(S|E))&&!c.length?te=Md(t,n,a,o):te=zr.apply(r,Y);var se=J?So:nl;return rl(se(te,Y),t,n)}function jo(t,n,a,o){return t===r||dt(t,bn[a])&&!pe.call(o,a)?n:t}function zo(t,n,a,o,c,d){return be(t)&&be(n)&&(d.set(n,t),Hr(t,n,r,zo,d),d.delete(n)),t}function qd(t){return sr(t)?r:t}function Qo(t,n,a,o,c,d){var h=a&W,g=t.length,_=n.length;if(g!=_&&!(h&&_>g))return!1;var O=d.get(t),L=d.get(n);if(O&&L)return O==n&&L==t;var V=-1,J=!0,Y=a&k?new ln:r;for(d.set(t,n),d.set(n,t);++V<g;){var te=t[V],se=n[V];if(o)var Z=h?o(se,te,V,n,t,d):o(te,se,V,t,n,d);if(Z!==r){if(Z)continue;J=!1;break}if(Y){if(!Gi(n,function(ce,fe){if(!jn(Y,fe)&&(te===ce||c(te,ce,a,o,d)))return Y.push(fe)})){J=!1;break}}else if(!(te===se||c(te,se,a,o,d))){J=!1;break}}return d.delete(t),d.delete(n),J}function Vd(t,n,a,o,c,d,h){switch(a){case vn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case Jn:return!(t.byteLength!=n.byteLength||!d(new Fr(t),new Fr(n)));case rn:case qn:case Vn:return dt(+t,+n);case vr:return t.name==n.name&&t.message==n.message;case Wn:case Hn:return t==n+"";case ot:var g=Xi;case lt:var _=o&W;if(g||(g=Sr),t.size!=n.size&&!_)return!1;var O=h.get(t);if(O)return O==n;o|=k,h.set(t,n);var L=Qo(g(t),g(n),o,c,d,h);return h.delete(t),L;case Cr:if(Yn)return Yn.call(t)==Yn.call(n)}return!1}function Wd(t,n,a,o,c,d){var h=a&W,g=Aa(t),_=g.length,O=Aa(n),L=O.length;if(_!=L&&!h)return!1;for(var V=_;V--;){var J=g[V];if(!(h?J in n:pe.call(n,J)))return!1}var Y=d.get(t),te=d.get(n);if(Y&&te)return Y==n&&te==t;var se=!0;d.set(t,n),d.set(n,t);for(var Z=h;++V<_;){J=g[V];var ce=t[J],fe=n[J];if(o)var Xe=h?o(fe,ce,J,n,t,d):o(ce,fe,J,t,n,d);if(!(Xe===r?ce===fe||c(ce,fe,a,o,d):Xe)){se=!1;break}Z||(Z=J=="constructor")}if(se&&!Z){var Ue=t.constructor,Ye=n.constructor;Ue!=Ye&&"constructor"in t&&"constructor"in n&&!(typeof Ue=="function"&&Ue instanceof Ue&&typeof Ye=="function"&&Ye instanceof Ye)&&(se=!1)}return d.delete(t),d.delete(n),se}function Bt(t){return Ra(el(t,r,cl),t+"")}function Aa(t){return ho(t,Be,Sa)}function wa(t){return ho(t,We,Ko)}var ba=Nr?function(t){return Nr.get(t)}:Ha;function Yr(t){for(var n=t.name+"",a=Sn[n],o=pe.call(Sn,n)?a.length:0;o--;){var c=a[o],d=c.func;if(d==null||d==t)return c.name}return n}function Rn(t){var n=pe.call(f,"placeholder")?f:t;return n.placeholder}function ee(){var t=f.iteratee||Va;return t=t===Va?vo:t,arguments.length?t(arguments[0],arguments[1]):t}function $r(t,n){var a=t.__data__;return Xd(n)?a[typeof n=="string"?"string":"hash"]:a.map}function Ea(t){for(var n=Be(t),a=n.length;a--;){var o=n[a],c=t[o];n[a]=[o,c,$o(c)]}return n}function fn(t,n){var a=$u(t,n);return go(a)?a:r}function Hd(t){var n=pe.call(t,sn),a=t[sn];try{t[sn]=r;var o=!0}catch{}var c=Rr.call(t);return o&&(n?t[sn]=a:delete t[sn]),c}var Sa=$i?function(t){return t==null?[]:(t=ge(t),Ht($i(t),function(n){return eo.call(t,n)}))}:Ga,Ko=$i?function(t){for(var n=[];t;)Gt(n,Sa(t)),t=Pr(t);return n}:Ga,Oe=Ne;(Zi&&Oe(new Zi(new ArrayBuffer(1)))!=vn||Qn&&Oe(new Qn)!=ot||ea&&Oe(ea.resolve())!=cs||En&&Oe(new En)!=lt||Kn&&Oe(new Kn)!=Gn)&&(Oe=function(t){var n=Ne(t),a=n==It?t.constructor:r,o=a?dn(a):"";if(o)switch(o){case Sf:return vn;case If:return ot;case xf:return cs;case Tf:return lt;case Rf:return Gn}return n});function Gd(t,n,a){for(var o=-1,c=a.length;++o<c;){var d=a[o],h=d.size;switch(d.type){case"drop":t+=h;break;case"dropRight":n-=h;break;case"take":n=De(n,t+h);break;case"takeRight":t=Re(t,n-h);break}}return{start:t,end:n}}function Jd(t){var n=t.match(Yc);return n?n[1].split($c):[]}function Xo(t,n,a){n=Kt(n,t);for(var o=-1,c=n.length,d=!1;++o<c;){var h=ft(n[o]);if(!(d=t!=null&&a(t,h)))break;t=t[h]}return d||++o!=c?d:(c=t==null?0:t.length,!!c&&ai(c)&&Ft(h,c)&&(ie(t)||pn(t)))}function jd(t){var n=t.length,a=new t.constructor(n);return n&&typeof t[0]=="string"&&pe.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function Yo(t){return typeof t.constructor=="function"&&!ir(t)?In(Pr(t)):{}}function zd(t,n,a){var o=t.constructor;switch(n){case Jn:return ya(t);case rn:case qn:return new o(+t);case vn:return Bd(t,a);case Ei:case Si:case Ii:case xi:case Ti:case Ri:case Bi:case Fi:case Pi:return ko(t,a);case ot:return new o;case Vn:case Hn:return new o(t);case Wn:return Fd(t);case lt:return new o;case Cr:return Pd(t)}}function Qd(t,n){var a=n.length;if(!a)return t;var o=a-1;return n[o]=(a>1?"& ":"")+n[o],n=n.join(a>2?", ":" "),t.replace(Xc,`{
|
|
8
|
+
*/var xy=cr.exports,Xl;function Ty(){return Xl||(Xl=1,(function(i,e){(function(){var r,s="4.18.1",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",m="Invalid `variable` option passed into `_.template`",A="Invalid `imports` option passed into `_.template`",v="__lodash_hash_undefined__",x=500,T="__lodash_placeholder__",I=1,B=2,D=4,W=1,k=2,S=1,N=2,H=4,Q=8,z=16,E=32,q=64,F=128,w=256,M=512,G=30,$="...",ye=800,fe=16,Te=1,Pe=2,X=3,j=1/0,ne=9007199254740991,Ce=17976931348623157e292,Ne=NaN,Ee=4294967295,Ae=Ee-1,vt=Ee>>>1,Wt=[["ary",F],["bind",S],["bindKey",N],["curry",Q],["curryRight",z],["flip",M],["partial",E],["partialRight",q],["rearg",w]],Et="[object Arguments]",St="[object Array]",gr="[object AsyncFunction]",rn="[object Boolean]",qn="[object Date]",kc="[object DOMException]",vr="[object Error]",yr="[object Function]",ls="[object GeneratorFunction]",ot="[object Map]",Vn="[object Number]",Dc="[object Null]",It="[object Object]",cs="[object Promise]",Oc="[object Proxy]",Wn="[object RegExp]",lt="[object Set]",Hn="[object String]",Cr="[object Symbol]",Lc="[object Undefined]",Gn="[object WeakMap]",Nc="[object WeakSet]",Jn="[object ArrayBuffer]",vn="[object DataView]",Ei="[object Float32Array]",Si="[object Float64Array]",Ii="[object Int8Array]",xi="[object Int16Array]",Ti="[object Int32Array]",Ri="[object Uint8Array]",Bi="[object Uint8ClampedArray]",Fi="[object Uint16Array]",Pi="[object Uint32Array]",Mc=/\b__p \+= '';/g,Uc=/\b(__p \+=) '' \+/g,qc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,us=/&(?:amp|lt|gt|quot|#39);/g,fs=/[&<>"']/g,Vc=RegExp(us.source),Wc=RegExp(fs.source),Hc=/<%-([\s\S]+?)%>/g,Gc=/<%([\s\S]+?)%>/g,ds=/<%=([\s\S]+?)%>/g,Jc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jc=/^\w*$/,zc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/[\\^$.*+?()[\]{}|]/g,Qc=RegExp(ki.source),Di=/^\s+/,Kc=/\s/,Xc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yc=/\{\n\/\* \[wrapped with (.+)\] \*/,$c=/,? & /,Zc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ps=/[()=,{}\[\]\/\s]/,eu=/\\(\\)?/g,tu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hs=/\w*$/,nu=/^[-+]0x[0-9a-f]+$/i,ru=/^0b[01]+$/i,iu=/^\[object .+?Constructor\]$/,au=/^0o[0-7]+$/i,su=/^(?:0|[1-9]\d*)$/,ou=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_r=/($^)/,lu=/['\n\r\u2028\u2029\\]/g,Ar="\\ud800-\\udfff",cu="\\u0300-\\u036f",uu="\\ufe20-\\ufe2f",fu="\\u20d0-\\u20ff",ms=cu+uu+fu,gs="\\u2700-\\u27bf",vs="a-z\\xdf-\\xf6\\xf8-\\xff",du="\\xac\\xb1\\xd7\\xf7",pu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hu="\\u2000-\\u206f",mu=" \\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",ys="A-Z\\xc0-\\xd6\\xd8-\\xde",Cs="\\ufe0e\\ufe0f",_s=du+pu+hu+mu,Oi="['’]",gu="["+Ar+"]",As="["+_s+"]",wr="["+ms+"]",ws="\\d+",vu="["+gs+"]",bs="["+vs+"]",Es="[^"+Ar+_s+ws+gs+vs+ys+"]",Li="\\ud83c[\\udffb-\\udfff]",yu="(?:"+wr+"|"+Li+")",Ss="[^"+Ar+"]",Ni="(?:\\ud83c[\\udde6-\\uddff]){2}",Mi="[\\ud800-\\udbff][\\udc00-\\udfff]",yn="["+ys+"]",Is="\\u200d",xs="(?:"+bs+"|"+Es+")",Cu="(?:"+yn+"|"+Es+")",Ts="(?:"+Oi+"(?:d|ll|m|re|s|t|ve))?",Rs="(?:"+Oi+"(?:D|LL|M|RE|S|T|VE))?",Bs=yu+"?",Fs="["+Cs+"]?",_u="(?:"+Is+"(?:"+[Ss,Ni,Mi].join("|")+")"+Fs+Bs+")*",Au="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ps=Fs+Bs+_u,bu="(?:"+[vu,Ni,Mi].join("|")+")"+Ps,Eu="(?:"+[Ss+wr+"?",wr,Ni,Mi,gu].join("|")+")",Su=RegExp(Oi,"g"),Iu=RegExp(wr,"g"),Ui=RegExp(Li+"(?="+Li+")|"+Eu+Ps,"g"),xu=RegExp([yn+"?"+bs+"+"+Ts+"(?="+[As,yn,"$"].join("|")+")",Cu+"+"+Rs+"(?="+[As,yn+xs,"$"].join("|")+")",yn+"?"+xs+"+"+Ts,yn+"+"+Rs,wu,Au,ws,bu].join("|"),"g"),Tu=RegExp("["+Is+Ar+ms+Cs+"]"),Ru=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fu=-1,_e={};_e[Ei]=_e[Si]=_e[Ii]=_e[xi]=_e[Ti]=_e[Ri]=_e[Bi]=_e[Fi]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",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ku={"&":"&","<":"<",">":">",'"':""","'":"'"},Du={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ou={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lu=parseFloat,Nu=parseInt,ks=typeof li=="object"&&li&&li.Object===Object&&li,Mu=typeof self=="object"&&self&&self.Object===Object&&self,ke=ks||Mu||Function("return this")(),qi=e&&!e.nodeType&&e,an=qi&&!0&&i&&!i.nodeType&&i,Ds=an&&an.exports===qi,Vi=Ds&&ks.process,et=(function(){try{var y=an&&an.require&&an.require("util").types;return y||Vi&&Vi.binding&&Vi.binding("util")}catch{}})(),Os=et&&et.isArrayBuffer,Ls=et&&et.isDate,Ns=et&&et.isMap,Ms=et&&et.isRegExp,Us=et&&et.isSet,qs=et&&et.isTypedArray;function Je(y,P,R){switch(R.length){case 0:return y.call(P);case 1:return y.call(P,R[0]);case 2:return y.call(P,R[0],R[1]);case 3:return y.call(P,R[0],R[1],R[2])}return y.apply(P,R)}function Uu(y,P,R,K){for(var re=-1,de=y==null?0:y.length;++re<de;){var Re=y[re];P(K,Re,R(Re),y)}return K}function je(y,P){for(var R=-1,K=y==null?0:y.length;++R<K&&P(y[R],R,y)!==!1;);return y}function qu(y,P){for(var R=y==null?0:y.length;R--&&P(y[R],R,y)!==!1;);return y}function Vs(y,P){for(var R=-1,K=y==null?0:y.length;++R<K;)if(!P(y[R],R,y))return!1;return!0}function Ht(y,P){for(var R=-1,K=y==null?0:y.length,re=0,de=[];++R<K;){var Re=y[R];P(Re,R,y)&&(de[re++]=Re)}return de}function br(y,P){var R=y==null?0:y.length;return!!R&&Cn(y,P,0)>-1}function Wi(y,P,R){for(var K=-1,re=y==null?0:y.length;++K<re;)if(R(P,y[K]))return!0;return!1}function we(y,P){for(var R=-1,K=y==null?0:y.length,re=Array(K);++R<K;)re[R]=P(y[R],R,y);return re}function Gt(y,P){for(var R=-1,K=P.length,re=y.length;++R<K;)y[re+R]=P[R];return y}function Hi(y,P,R,K){var re=-1,de=y==null?0:y.length;for(K&&de&&(R=y[++re]);++re<de;)R=P(R,y[re],re,y);return R}function Vu(y,P,R,K){var re=y==null?0:y.length;for(K&&re&&(R=y[--re]);re--;)R=P(R,y[re],re,y);return R}function Gi(y,P){for(var R=-1,K=y==null?0:y.length;++R<K;)if(P(y[R],R,y))return!0;return!1}var Wu=Ji("length");function Hu(y){return y.split("")}function Gu(y){return y.match(Zc)||[]}function Ws(y,P,R){var K;return R(y,function(re,de,Re){if(P(re,de,Re))return K=de,!1}),K}function Er(y,P,R,K){for(var re=y.length,de=R+(K?1:-1);K?de--:++de<re;)if(P(y[de],de,y))return de;return-1}function Cn(y,P,R){return P===P?nf(y,P,R):Er(y,Hs,R)}function Ju(y,P,R,K){for(var re=R-1,de=y.length;++re<de;)if(K(y[re],P))return re;return-1}function Hs(y){return y!==y}function Gs(y,P){var R=y==null?0:y.length;return R?zi(y,P)/R:Ne}function Ji(y){return function(P){return P==null?r:P[y]}}function ji(y){return function(P){return y==null?r:y[P]}}function Js(y,P,R,K,re){return re(y,function(de,Re,ge){R=K?(K=!1,de):P(R,de,Re,ge)}),R}function ju(y,P){var R=y.length;for(y.sort(P);R--;)y[R]=y[R].value;return y}function zi(y,P){for(var R,K=-1,re=y.length;++K<re;){var de=P(y[K]);de!==r&&(R=R===r?de:R+de)}return R}function Qi(y,P){for(var R=-1,K=Array(y);++R<y;)K[R]=P(R);return K}function zu(y,P){return we(P,function(R){return[R,y[R]]})}function js(y){return y&&y.slice(0,Xs(y)+1).replace(Di,"")}function ze(y){return function(P){return y(P)}}function Ki(y,P){return we(P,function(R){return y[R]})}function jn(y,P){return y.has(P)}function zs(y,P){for(var R=-1,K=y.length;++R<K&&Cn(P,y[R],0)>-1;);return R}function Qs(y,P){for(var R=y.length;R--&&Cn(P,y[R],0)>-1;);return R}function Qu(y,P){for(var R=y.length,K=0;R--;)y[R]===P&&++K;return K}var Ku=ji(Pu),Xu=ji(ku);function Yu(y){return"\\"+Ou[y]}function $u(y,P){return y==null?r:y[P]}function _n(y){return Tu.test(y)}function Zu(y){return Ru.test(y)}function ef(y){for(var P,R=[];!(P=y.next()).done;)R.push(P.value);return R}function Xi(y){var P=-1,R=Array(y.size);return y.forEach(function(K,re){R[++P]=[re,K]}),R}function Ks(y,P){return function(R){return y(P(R))}}function Jt(y,P){for(var R=-1,K=y.length,re=0,de=[];++R<K;){var Re=y[R];(Re===P||Re===T)&&(y[R]=T,de[re++]=R)}return de}function Sr(y){var P=-1,R=Array(y.size);return y.forEach(function(K){R[++P]=K}),R}function tf(y){var P=-1,R=Array(y.size);return y.forEach(function(K){R[++P]=[K,K]}),R}function nf(y,P,R){for(var K=R-1,re=y.length;++K<re;)if(y[K]===P)return K;return-1}function rf(y,P,R){for(var K=R+1;K--;)if(y[K]===P)return K;return K}function An(y){return _n(y)?sf(y):Wu(y)}function ct(y){return _n(y)?of(y):Hu(y)}function Xs(y){for(var P=y.length;P--&&Kc.test(y.charAt(P)););return P}var af=ji(Du);function sf(y){for(var P=Ui.lastIndex=0;Ui.test(y);)++P;return P}function of(y){return y.match(Ui)||[]}function lf(y){return y.match(xu)||[]}var cf=(function y(P){P=P==null?ke:wn.defaults(ke.Object(),P,wn.pick(ke,Bu));var R=P.Array,K=P.Date,re=P.Error,de=P.Function,Re=P.Math,ge=P.Object,Yi=P.RegExp,uf=P.String,tt=P.TypeError,Ir=R.prototype,ff=de.prototype,bn=ge.prototype,xr=P["__core-js_shared__"],Tr=ff.toString,pe=bn.hasOwnProperty,df=0,Ys=(function(){var t=/[^.]+$/.exec(xr&&xr.keys&&xr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),Rr=bn.toString,pf=Tr.call(ge),hf=ke._,mf=Yi("^"+Tr.call(pe).replace(ki,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Br=Ds?P.Buffer:r,jt=P.Symbol,Fr=P.Uint8Array,$s=Br?Br.allocUnsafe:r,Pr=Ks(ge.getPrototypeOf,ge),Zs=ge.create,eo=bn.propertyIsEnumerable,kr=Ir.splice,to=jt?jt.isConcatSpreadable:r,zn=jt?jt.iterator:r,sn=jt?jt.toStringTag:r,Dr=(function(){try{var t=fn(ge,"defineProperty");return t({},"",{}),t}catch{}})(),gf=P.clearTimeout!==ke.clearTimeout&&P.clearTimeout,vf=K&&K.now!==ke.Date.now&&K.now,yf=P.setTimeout!==ke.setTimeout&&P.setTimeout,Or=Re.ceil,Lr=Re.floor,$i=ge.getOwnPropertySymbols,Cf=Br?Br.isBuffer:r,no=P.isFinite,_f=Ir.join,Af=Ks(ge.keys,ge),Be=Re.max,Oe=Re.min,wf=K.now,bf=P.parseInt,ro=Re.random,Ef=Ir.reverse,Zi=fn(P,"DataView"),Qn=fn(P,"Map"),ea=fn(P,"Promise"),En=fn(P,"Set"),Kn=fn(P,"WeakMap"),Xn=fn(ge,"create"),Nr=Kn&&new Kn,Sn={},Sf=dn(Zi),If=dn(Qn),xf=dn(ea),Tf=dn(En),Rf=dn(Kn),Mr=jt?jt.prototype:r,Yn=Mr?Mr.valueOf:r,io=Mr?Mr.toString:r;function f(t){if(Se(t)&&!ie(t)&&!(t instanceof ce)){if(t instanceof nt)return t;if(pe.call(t,"__wrapped__"))return sl(t)}return new nt(t)}var In=(function(){function t(){}return function(n){if(!be(n))return{};if(Zs)return Zs(n);t.prototype=n;var a=new t;return t.prototype=r,a}})();function Ur(){}function nt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=r}f.templateSettings={escape:Hc,evaluate:Gc,interpolate:ds,variable:"",imports:{_:f}},f.prototype=Ur.prototype,f.prototype.constructor=f,nt.prototype=In(Ur.prototype),nt.prototype.constructor=nt;function ce(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function Bf(){var t=new ce(this.__wrapped__);return t.__actions__=Ve(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ve(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ve(this.__views__),t}function Ff(){if(this.__filtered__){var t=new ce(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Pf(){var t=this.__wrapped__.value(),n=this.__dir__,a=ie(t),o=n<0,c=a?t.length:0,d=Gd(0,c,this.__views__),h=d.start,g=d.end,_=g-h,O=o?g:h-1,L=this.__iteratees__,V=L.length,J=0,Y=Oe(_,this.__takeCount__);if(!a||!o&&c==_&&Y==_)return Ro(t,this.__actions__);var te=[];e:for(;_--&&J<Y;){O+=n;for(var se=-1,Z=t[O];++se<V;){var le=L[se],ue=le.iteratee,Xe=le.type,qe=ue(Z);if(Xe==Pe)Z=qe;else if(!qe){if(Xe==Te)continue e;break e}}te[J++]=Z}return te}ce.prototype=In(Ur.prototype),ce.prototype.constructor=ce;function on(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function kf(){this.__data__=Xn?Xn(null):{},this.size=0}function Df(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function Of(t){var n=this.__data__;if(Xn){var a=n[t];return a===v?r:a}return pe.call(n,t)?n[t]:r}function Lf(t){var n=this.__data__;return Xn?n[t]!==r:pe.call(n,t)}function Nf(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Xn&&n===r?v:n,this}on.prototype.clear=kf,on.prototype.delete=Df,on.prototype.get=Of,on.prototype.has=Lf,on.prototype.set=Nf;function xt(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function Mf(){this.__data__=[],this.size=0}function Uf(t){var n=this.__data__,a=qr(n,t);if(a<0)return!1;var o=n.length-1;return a==o?n.pop():kr.call(n,a,1),--this.size,!0}function qf(t){var n=this.__data__,a=qr(n,t);return a<0?r:n[a][1]}function Vf(t){return qr(this.__data__,t)>-1}function Wf(t,n){var a=this.__data__,o=qr(a,t);return o<0?(++this.size,a.push([t,n])):a[o][1]=n,this}xt.prototype.clear=Mf,xt.prototype.delete=Uf,xt.prototype.get=qf,xt.prototype.has=Vf,xt.prototype.set=Wf;function Tt(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var o=t[n];this.set(o[0],o[1])}}function Hf(){this.size=0,this.__data__={hash:new on,map:new(Qn||xt),string:new on}}function Gf(t){var n=$r(this,t).delete(t);return this.size-=n?1:0,n}function Jf(t){return $r(this,t).get(t)}function jf(t){return $r(this,t).has(t)}function zf(t,n){var a=$r(this,t),o=a.size;return a.set(t,n),this.size+=a.size==o?0:1,this}Tt.prototype.clear=Hf,Tt.prototype.delete=Gf,Tt.prototype.get=Jf,Tt.prototype.has=jf,Tt.prototype.set=zf;function ln(t){var n=-1,a=t==null?0:t.length;for(this.__data__=new Tt;++n<a;)this.add(t[n])}function Qf(t){return this.__data__.set(t,v),this}function Kf(t){return this.__data__.has(t)}ln.prototype.add=ln.prototype.push=Qf,ln.prototype.has=Kf;function ut(t){var n=this.__data__=new xt(t);this.size=n.size}function Xf(){this.__data__=new xt,this.size=0}function Yf(t){var n=this.__data__,a=n.delete(t);return this.size=n.size,a}function $f(t){return this.__data__.get(t)}function Zf(t){return this.__data__.has(t)}function ed(t,n){var a=this.__data__;if(a instanceof xt){var o=a.__data__;if(!Qn||o.length<u-1)return o.push([t,n]),this.size=++a.size,this;a=this.__data__=new Tt(o)}return a.set(t,n),this.size=a.size,this}ut.prototype.clear=Xf,ut.prototype.delete=Yf,ut.prototype.get=$f,ut.prototype.has=Zf,ut.prototype.set=ed;function ao(t,n){var a=ie(t),o=!a&&pn(t),c=!a&&!o&&Yt(t),d=!a&&!o&&!c&&Bn(t),h=a||o||c||d,g=h?Qi(t.length,uf):[],_=g.length;for(var O in t)(n||pe.call(t,O))&&!(h&&(O=="length"||c&&(O=="offset"||O=="parent")||d&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||Ft(O,_)))&&g.push(O);return g}function so(t){var n=t.length;return n?t[fa(0,n-1)]:r}function td(t,n){return Zr(Ve(t),cn(n,0,t.length))}function nd(t){return Zr(Ve(t))}function ta(t,n,a){(a!==r&&!dt(t[n],a)||a===r&&!(n in t))&&yt(t,n,a)}function $n(t,n,a){var o=t[n];(!(pe.call(t,n)&&dt(o,a))||a===r&&!(n in t))&&yt(t,n,a)}function qr(t,n){for(var a=t.length;a--;)if(dt(t[a][0],n))return a;return-1}function rd(t,n,a,o){return zt(t,function(c,d,h){n(o,c,a(c),h)}),o}function oo(t,n){return t&&_t(n,Fe(n),t)}function id(t,n){return t&&_t(n,He(n),t)}function yt(t,n,a){n=="__proto__"&&Dr?Dr(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}function na(t,n){for(var a=-1,o=n.length,c=R(o),d=t==null;++a<o;)c[a]=d?r:Na(t,n[a]);return c}function cn(t,n,a){return t===t&&(a!==r&&(t=t<=a?t:a),n!==r&&(t=t>=n?t:n)),t}function rt(t,n,a,o,c,d){var h,g=n&I,_=n&B,O=n&D;if(a&&(h=c?a(t,o,c,d):a(t)),h!==r)return h;if(!be(t))return t;var L=ie(t);if(L){if(h=jd(t),!g)return Ve(t,h)}else{var V=Le(t),J=V==yr||V==ls;if(Yt(t))return Po(t,g);if(V==It||V==Et||J&&!c){if(h=_||J?{}:Yo(t),!g)return _?Od(t,id(h,t)):Dd(t,oo(h,t))}else{if(!ve[V])return c?t:{};h=zd(t,V,g)}}d||(d=new ut);var Y=d.get(t);if(Y)return Y;d.set(t,h),Il(t)?t.forEach(function(Z){h.add(rt(Z,n,a,Z,t,d))}):El(t)&&t.forEach(function(Z,le){h.set(le,rt(Z,n,a,le,t,d))});var te=O?_?wa:Aa:_?He:Fe,se=L?r:te(t);return je(se||t,function(Z,le){se&&(le=Z,Z=t[le]),$n(h,le,rt(Z,n,a,le,t,d))}),h}function ad(t){var n=Fe(t);return function(a){return lo(a,t,n)}}function lo(t,n,a){var o=a.length;if(t==null)return!o;for(t=ge(t);o--;){var c=a[o],d=n[c],h=t[c];if(h===r&&!(c in t)||!d(h))return!1}return!0}function co(t,n,a){if(typeof t!="function")throw new tt(l);return ar(function(){t.apply(r,a)},n)}function Zn(t,n,a,o){var c=-1,d=br,h=!0,g=t.length,_=[],O=n.length;if(!g)return _;a&&(n=we(n,ze(a))),o?(d=Wi,h=!1):n.length>=u&&(d=jn,h=!1,n=new ln(n));e:for(;++c<g;){var L=t[c],V=a==null?L:a(L);if(L=o||L!==0?L:0,h&&V===V){for(var J=O;J--;)if(n[J]===V)continue e;_.push(L)}else d(n,V,o)||_.push(L)}return _}var zt=No(Ct),uo=No(ia,!0);function sd(t,n){var a=!0;return zt(t,function(o,c,d){return a=!!n(o,c,d),a}),a}function Vr(t,n,a){for(var o=-1,c=t.length;++o<c;){var d=t[o],h=n(d);if(h!=null&&(g===r?h===h&&!Ke(h):a(h,g)))var g=h,_=d}return _}function od(t,n,a,o){var c=t.length;for(a=ae(a),a<0&&(a=-a>c?0:c+a),o=o===r||o>c?c:ae(o),o<0&&(o+=c),o=a>o?0:Tl(o);a<o;)t[a++]=n;return t}function fo(t,n){var a=[];return zt(t,function(o,c,d){n(o,c,d)&&a.push(o)}),a}function De(t,n,a,o,c){var d=-1,h=t.length;for(a||(a=Kd),c||(c=[]);++d<h;){var g=t[d];n>0&&a(g)?n>1?De(g,n-1,a,o,c):Gt(c,g):o||(c[c.length]=g)}return c}var ra=Mo(),po=Mo(!0);function Ct(t,n){return t&&ra(t,n,Fe)}function ia(t,n){return t&&po(t,n,Fe)}function Wr(t,n){return Ht(n,function(a){return Pt(t[a])})}function un(t,n){n=Kt(n,t);for(var a=0,o=n.length;t!=null&&a<o;)t=t[ft(n[a++])];return a&&a==o?t:r}function ho(t,n,a){var o=n(t);return ie(t)?o:Gt(o,a(t))}function Me(t){return t==null?t===r?Lc:Dc:sn&&sn in ge(t)?Hd(t):np(t)}function aa(t,n){return t>n}function ld(t,n){return t!=null&&pe.call(t,n)}function cd(t,n){return t!=null&&n in ge(t)}function ud(t,n,a){return t>=Oe(n,a)&&t<Be(n,a)}function sa(t,n,a){for(var o=a?Wi:br,c=t[0].length,d=t.length,h=d,g=R(d),_=1/0,O=[];h--;){var L=t[h];h&&n&&(L=we(L,ze(n))),_=Oe(L.length,_),g[h]=!a&&(n||c>=120&&L.length>=120)?new ln(h&&L):r}L=t[0];var V=-1,J=g[0];e:for(;++V<c&&O.length<_;){var Y=L[V],te=n?n(Y):Y;if(Y=a||Y!==0?Y:0,!(J?jn(J,te):o(O,te,a))){for(h=d;--h;){var se=g[h];if(!(se?jn(se,te):o(t[h],te,a)))continue e}J&&J.push(te),O.push(Y)}}return O}function fd(t,n,a,o){return Ct(t,function(c,d,h){n(o,a(c),d,h)}),o}function er(t,n,a){n=Kt(n,t),t=tl(t,n);var o=t==null?t:t[ft(at(n))];return o==null?r:Je(o,t,a)}function mo(t){return Se(t)&&Me(t)==Et}function dd(t){return Se(t)&&Me(t)==Jn}function pd(t){return Se(t)&&Me(t)==qn}function tr(t,n,a,o,c){return t===n?!0:t==null||n==null||!Se(t)&&!Se(n)?t!==t&&n!==n:hd(t,n,a,o,tr,c)}function hd(t,n,a,o,c,d){var h=ie(t),g=ie(n),_=h?St:Le(t),O=g?St:Le(n);_=_==Et?It:_,O=O==Et?It:O;var L=_==It,V=O==It,J=_==O;if(J&&Yt(t)){if(!Yt(n))return!1;h=!0,L=!1}if(J&&!L)return d||(d=new ut),h||Bn(t)?Qo(t,n,a,o,c,d):Vd(t,n,_,a,o,c,d);if(!(a&W)){var Y=L&&pe.call(t,"__wrapped__"),te=V&&pe.call(n,"__wrapped__");if(Y||te){var se=Y?t.value():t,Z=te?n.value():n;return d||(d=new ut),c(se,Z,a,o,d)}}return J?(d||(d=new ut),Wd(t,n,a,o,c,d)):!1}function md(t){return Se(t)&&Le(t)==ot}function oa(t,n,a,o){var c=a.length,d=c,h=!o;if(t==null)return!d;for(t=ge(t);c--;){var g=a[c];if(h&&g[2]?g[1]!==t[g[0]]:!(g[0]in t))return!1}for(;++c<d;){g=a[c];var _=g[0],O=t[_],L=g[1];if(h&&g[2]){if(O===r&&!(_ in t))return!1}else{var V=new ut;if(o)var J=o(O,L,_,t,n,V);if(!(J===r?tr(L,O,W|k,o,V):J))return!1}}return!0}function go(t){if(!be(t)||Yd(t))return!1;var n=Pt(t)?mf:iu;return n.test(dn(t))}function gd(t){return Se(t)&&Me(t)==Wn}function vd(t){return Se(t)&&Le(t)==lt}function yd(t){return Se(t)&&ai(t.length)&&!!_e[Me(t)]}function vo(t){return typeof t=="function"?t:t==null?Ge:typeof t=="object"?ie(t)?_o(t[0],t[1]):Co(t):ql(t)}function la(t){if(!ir(t))return Af(t);var n=[];for(var a in ge(t))pe.call(t,a)&&a!="constructor"&&n.push(a);return n}function Cd(t){if(!be(t))return tp(t);var n=ir(t),a=[];for(var o in t)o=="constructor"&&(n||!pe.call(t,o))||a.push(o);return a}function ca(t,n){return t<n}function yo(t,n){var a=-1,o=We(t)?R(t.length):[];return zt(t,function(c,d,h){o[++a]=n(c,d,h)}),o}function Co(t){var n=Ea(t);return n.length==1&&n[0][2]?Zo(n[0][0],n[0][1]):function(a){return a===t||oa(a,t,n)}}function _o(t,n){return Ia(t)&&$o(n)?Zo(ft(t),n):function(a){var o=Na(a,t);return o===r&&o===n?Ma(a,t):tr(n,o,W|k)}}function Hr(t,n,a,o,c){t!==n&&ra(n,function(d,h){if(c||(c=new ut),be(d))_d(t,n,h,a,Hr,o,c);else{var g=o?o(Ta(t,h),d,h+"",t,n,c):r;g===r&&(g=d),ta(t,h,g)}},He)}function _d(t,n,a,o,c,d,h){var g=Ta(t,a),_=Ta(n,a),O=h.get(_);if(O){ta(t,a,O);return}var L=d?d(g,_,a+"",t,n,h):r,V=L===r;if(V){var J=ie(_),Y=!J&&Yt(_),te=!J&&!Y&&Bn(_);L=_,J||Y||te?ie(g)?L=g:Ie(g)?L=Ve(g):Y?(V=!1,L=Po(_,!0)):te?(V=!1,L=ko(_,!0)):L=[]:sr(_)||pn(_)?(L=g,pn(g)?L=Rl(g):(!be(g)||Pt(g))&&(L=Yo(_))):V=!1}V&&(h.set(_,L),c(L,_,o,d,h),h.delete(_)),ta(t,a,L)}function Ao(t,n){var a=t.length;if(a)return n+=n<0?a:0,Ft(n,a)?t[n]:r}function wo(t,n,a){n.length?n=we(n,function(d){return ie(d)?function(h){return un(h,d.length===1?d[0]:d)}:d}):n=[Ge];var o=-1;n=we(n,ze(ee()));var c=yo(t,function(d,h,g){var _=we(n,function(O){return O(d)});return{criteria:_,index:++o,value:d}});return ju(c,function(d,h){return kd(d,h,a)})}function Ad(t,n){return bo(t,n,function(a,o){return Ma(t,o)})}function bo(t,n,a){for(var o=-1,c=n.length,d={};++o<c;){var h=n[o],g=un(t,h);a(g,h)&&nr(d,Kt(h,t),g)}return d}function wd(t){return function(n){return un(n,t)}}function ua(t,n,a,o){var c=o?Ju:Cn,d=-1,h=n.length,g=t;for(t===n&&(n=Ve(n)),a&&(g=we(t,ze(a)));++d<h;)for(var _=0,O=n[d],L=a?a(O):O;(_=c(g,L,_,o))>-1;)g!==t&&kr.call(g,_,1),kr.call(t,_,1);return t}function Eo(t,n){for(var a=t?n.length:0,o=a-1;a--;){var c=n[a];if(a==o||c!==d){var d=c;Ft(c)?kr.call(t,c,1):ha(t,c)}}return t}function fa(t,n){return t+Lr(ro()*(n-t+1))}function bd(t,n,a,o){for(var c=-1,d=Be(Or((n-t)/(a||1)),0),h=R(d);d--;)h[o?d:++c]=t,t+=a;return h}function da(t,n){var a="";if(!t||n<1||n>ne)return a;do n%2&&(a+=t),n=Lr(n/2),n&&(t+=t);while(n);return a}function oe(t,n){return Ra(el(t,n,Ge),t+"")}function Ed(t){return so(Fn(t))}function Sd(t,n){var a=Fn(t);return Zr(a,cn(n,0,a.length))}function nr(t,n,a,o){if(!be(t))return t;n=Kt(n,t);for(var c=-1,d=n.length,h=d-1,g=t;g!=null&&++c<d;){var _=ft(n[c]),O=a;if(_==="__proto__"||_==="constructor"||_==="prototype")return t;if(c!=h){var L=g[_];O=o?o(L,_,g):r,O===r&&(O=be(L)?L:Ft(n[c+1])?[]:{})}$n(g,_,O),g=g[_]}return t}var So=Nr?function(t,n){return Nr.set(t,n),t}:Ge,Id=Dr?function(t,n){return Dr(t,"toString",{configurable:!0,enumerable:!1,value:qa(n),writable:!0})}:Ge;function xd(t){return Zr(Fn(t))}function it(t,n,a){var o=-1,c=t.length;n<0&&(n=-n>c?0:c+n),a=a>c?c:a,a<0&&(a+=c),c=n>a?0:a-n>>>0,n>>>=0;for(var d=R(c);++o<c;)d[o]=t[o+n];return d}function Td(t,n){var a;return zt(t,function(o,c,d){return a=n(o,c,d),!a}),!!a}function Gr(t,n,a){var o=0,c=t==null?o:t.length;if(typeof n=="number"&&n===n&&c<=vt){for(;o<c;){var d=o+c>>>1,h=t[d];h!==null&&!Ke(h)&&(a?h<=n:h<n)?o=d+1:c=d}return c}return pa(t,n,Ge,a)}function pa(t,n,a,o){var c=0,d=t==null?0:t.length;if(d===0)return 0;n=a(n);for(var h=n!==n,g=n===null,_=Ke(n),O=n===r;c<d;){var L=Lr((c+d)/2),V=a(t[L]),J=V!==r,Y=V===null,te=V===V,se=Ke(V);if(h)var Z=o||te;else O?Z=te&&(o||J):g?Z=te&&J&&(o||!Y):_?Z=te&&J&&!Y&&(o||!se):Y||se?Z=!1:Z=o?V<=n:V<n;Z?c=L+1:d=L}return Oe(d,Ae)}function Io(t,n){for(var a=-1,o=t.length,c=0,d=[];++a<o;){var h=t[a],g=n?n(h):h;if(!a||!dt(g,_)){var _=g;d[c++]=h===0?0:h}}return d}function xo(t){return typeof t=="number"?t:Ke(t)?Ne:+t}function Qe(t){if(typeof t=="string")return t;if(ie(t))return we(t,Qe)+"";if(Ke(t))return io?io.call(t):"";var n=t+"";return n=="0"&&1/t==-j?"-0":n}function Qt(t,n,a){var o=-1,c=br,d=t.length,h=!0,g=[],_=g;if(a)h=!1,c=Wi;else if(d>=u){var O=n?null:Ud(t);if(O)return Sr(O);h=!1,c=jn,_=new ln}else _=n?[]:g;e:for(;++o<d;){var L=t[o],V=n?n(L):L;if(L=a||L!==0?L:0,h&&V===V){for(var J=_.length;J--;)if(_[J]===V)continue e;n&&_.push(V),g.push(L)}else c(_,V,a)||(_!==g&&_.push(V),g.push(L))}return g}function ha(t,n){n=Kt(n,t);var a=-1,o=n.length;if(!o)return!0;for(;++a<o;){var c=ft(n[a]);if(c==="__proto__"&&!pe.call(t,"__proto__")||(c==="constructor"||c==="prototype")&&a<o-1)return!1}var d=tl(t,n);return d==null||delete d[ft(at(n))]}function To(t,n,a,o){return nr(t,n,a(un(t,n)),o)}function Jr(t,n,a,o){for(var c=t.length,d=o?c:-1;(o?d--:++d<c)&&n(t[d],d,t););return a?it(t,o?0:d,o?d+1:c):it(t,o?d+1:0,o?c:d)}function Ro(t,n){var a=t;return a instanceof ce&&(a=a.value()),Hi(n,function(o,c){return c.func.apply(c.thisArg,Gt([o],c.args))},a)}function ma(t,n,a){var o=t.length;if(o<2)return o?Qt(t[0]):[];for(var c=-1,d=R(o);++c<o;)for(var h=t[c],g=-1;++g<o;)g!=c&&(d[c]=Zn(d[c]||h,t[g],n,a));return Qt(De(d,1),n,a)}function Bo(t,n,a){for(var o=-1,c=t.length,d=n.length,h={};++o<c;){var g=o<d?n[o]:r;a(h,t[o],g)}return h}function ga(t){return Ie(t)?t:[]}function va(t){return typeof t=="function"?t:Ge}function Kt(t,n){return ie(t)?t:Ia(t,n)?[t]:al(he(t))}var Rd=oe;function Xt(t,n,a){var o=t.length;return a=a===r?o:a,!n&&a>=o?t:it(t,n,a)}var Fo=gf||function(t){return ke.clearTimeout(t)};function Po(t,n){if(n)return t.slice();var a=t.length,o=$s?$s(a):new t.constructor(a);return t.copy(o),o}function ya(t){var n=new t.constructor(t.byteLength);return new Fr(n).set(new Fr(t)),n}function Bd(t,n){var a=n?ya(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function Fd(t){var n=new t.constructor(t.source,hs.exec(t));return n.lastIndex=t.lastIndex,n}function Pd(t){return Yn?ge(Yn.call(t)):{}}function ko(t,n){var a=n?ya(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function Do(t,n){if(t!==n){var a=t!==r,o=t===null,c=t===t,d=Ke(t),h=n!==r,g=n===null,_=n===n,O=Ke(n);if(!g&&!O&&!d&&t>n||d&&h&&_&&!g&&!O||o&&h&&_||!a&&_||!c)return 1;if(!o&&!d&&!O&&t<n||O&&a&&c&&!o&&!d||g&&a&&c||!h&&c||!_)return-1}return 0}function kd(t,n,a){for(var o=-1,c=t.criteria,d=n.criteria,h=c.length,g=a.length;++o<h;){var _=Do(c[o],d[o]);if(_){if(o>=g)return _;var O=a[o];return _*(O=="desc"?-1:1)}}return t.index-n.index}function Oo(t,n,a,o){for(var c=-1,d=t.length,h=a.length,g=-1,_=n.length,O=Be(d-h,0),L=R(_+O),V=!o;++g<_;)L[g]=n[g];for(;++c<h;)(V||c<d)&&(L[a[c]]=t[c]);for(;O--;)L[g++]=t[c++];return L}function Lo(t,n,a,o){for(var c=-1,d=t.length,h=-1,g=a.length,_=-1,O=n.length,L=Be(d-g,0),V=R(L+O),J=!o;++c<L;)V[c]=t[c];for(var Y=c;++_<O;)V[Y+_]=n[_];for(;++h<g;)(J||c<d)&&(V[Y+a[h]]=t[c++]);return V}function Ve(t,n){var a=-1,o=t.length;for(n||(n=R(o));++a<o;)n[a]=t[a];return n}function _t(t,n,a,o){var c=!a;a||(a={});for(var d=-1,h=n.length;++d<h;){var g=n[d],_=o?o(a[g],t[g],g,a,t):r;_===r&&(_=t[g]),c?yt(a,g,_):$n(a,g,_)}return a}function Dd(t,n){return _t(t,Sa(t),n)}function Od(t,n){return _t(t,Ko(t),n)}function jr(t,n){return function(a,o){var c=ie(a)?Uu:rd,d=n?n():{};return c(a,t,ee(o,2),d)}}function xn(t){return oe(function(n,a){var o=-1,c=a.length,d=c>1?a[c-1]:r,h=c>2?a[2]:r;for(d=t.length>3&&typeof d=="function"?(c--,d):r,h&&Ue(a[0],a[1],h)&&(d=c<3?r:d,c=1),n=ge(n);++o<c;){var g=a[o];g&&t(n,g,o,d)}return n})}function No(t,n){return function(a,o){if(a==null)return a;if(!We(a))return t(a,o);for(var c=a.length,d=n?c:-1,h=ge(a);(n?d--:++d<c)&&o(h[d],d,h)!==!1;);return a}}function Mo(t){return function(n,a,o){for(var c=-1,d=ge(n),h=o(n),g=h.length;g--;){var _=h[t?g:++c];if(a(d[_],_,d)===!1)break}return n}}function Ld(t,n,a){var o=n&S,c=rr(t);function d(){var h=this&&this!==ke&&this instanceof d?c:t;return h.apply(o?a:this,arguments)}return d}function Uo(t){return function(n){n=he(n);var a=_n(n)?ct(n):r,o=a?a[0]:n.charAt(0),c=a?Xt(a,1).join(""):n.slice(1);return o[t]()+c}}function Tn(t){return function(n){return Hi(Ml(Nl(n).replace(Su,"")),t,"")}}function rr(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var a=In(t.prototype),o=t.apply(a,n);return be(o)?o:a}}function Nd(t,n,a){var o=rr(t);function c(){for(var d=arguments.length,h=R(d),g=d,_=Rn(c);g--;)h[g]=arguments[g];var O=d<3&&h[0]!==_&&h[d-1]!==_?[]:Jt(h,_);if(d-=O.length,d<a)return Go(t,n,zr,c.placeholder,r,h,O,r,r,a-d);var L=this&&this!==ke&&this instanceof c?o:t;return Je(L,this,h)}return c}function qo(t){return function(n,a,o){var c=ge(n);if(!We(n)){var d=ee(a,3);n=Fe(n),a=function(g){return d(c[g],g,c)}}var h=t(n,a,o);return h>-1?c[d?n[h]:h]:r}}function Vo(t){return Bt(function(n){var a=n.length,o=a,c=nt.prototype.thru;for(t&&n.reverse();o--;){var d=n[o];if(typeof d!="function")throw new tt(l);if(c&&!h&&Yr(d)=="wrapper")var h=new nt([],!0)}for(o=h?o:a;++o<a;){d=n[o];var g=Yr(d),_=g=="wrapper"?ba(d):r;_&&xa(_[0])&&_[1]==(F|Q|E|w)&&!_[4].length&&_[9]==1?h=h[Yr(_[0])].apply(h,_[3]):h=d.length==1&&xa(d)?h[g]():h.thru(d)}return function(){var O=arguments,L=O[0];if(h&&O.length==1&&ie(L))return h.plant(L).value();for(var V=0,J=a?n[V].apply(this,O):L;++V<a;)J=n[V].call(this,J);return J}})}function zr(t,n,a,o,c,d,h,g,_,O){var L=n&F,V=n&S,J=n&N,Y=n&(Q|z),te=n&M,se=J?r:rr(t);function Z(){for(var le=arguments.length,ue=R(le),Xe=le;Xe--;)ue[Xe]=arguments[Xe];if(Y)var qe=Rn(Z),Ye=Qu(ue,qe);if(o&&(ue=Oo(ue,o,c,Y)),d&&(ue=Lo(ue,d,h,Y)),le-=Ye,Y&&le<O){var xe=Jt(ue,qe);return Go(t,n,zr,Z.placeholder,a,ue,xe,g,_,O-le)}var pt=V?a:this,Dt=J?pt[t]:t;return le=ue.length,g?ue=rp(ue,g):te&&le>1&&ue.reverse(),L&&_<le&&(ue.length=_),this&&this!==ke&&this instanceof Z&&(Dt=se||rr(Dt)),Dt.apply(pt,ue)}return Z}function Wo(t,n){return function(a,o){return fd(a,t,n(o),{})}}function Qr(t,n){return function(a,o){var c;if(a===r&&o===r)return n;if(a!==r&&(c=a),o!==r){if(c===r)return o;typeof a=="string"||typeof o=="string"?(a=Qe(a),o=Qe(o)):(a=xo(a),o=xo(o)),c=t(a,o)}return c}}function Ca(t){return Bt(function(n){return n=we(n,ze(ee())),oe(function(a){var o=this;return t(n,function(c){return Je(c,o,a)})})})}function Kr(t,n){n=n===r?" ":Qe(n);var a=n.length;if(a<2)return a?da(n,t):n;var o=da(n,Or(t/An(n)));return _n(n)?Xt(ct(o),0,t).join(""):o.slice(0,t)}function Md(t,n,a,o){var c=n&S,d=rr(t);function h(){for(var g=-1,_=arguments.length,O=-1,L=o.length,V=R(L+_),J=this&&this!==ke&&this instanceof h?d:t;++O<L;)V[O]=o[O];for(;_--;)V[O++]=arguments[++g];return Je(J,c?a:this,V)}return h}function Ho(t){return function(n,a,o){return o&&typeof o!="number"&&Ue(n,a,o)&&(a=o=r),n=kt(n),a===r?(a=n,n=0):a=kt(a),o=o===r?n<a?1:-1:kt(o),bd(n,a,o,t)}}function Xr(t){return function(n,a){return typeof n=="string"&&typeof a=="string"||(n=st(n),a=st(a)),t(n,a)}}function Go(t,n,a,o,c,d,h,g,_,O){var L=n&Q,V=L?h:r,J=L?r:h,Y=L?d:r,te=L?r:d;n|=L?E:q,n&=~(L?q:E),n&H||(n&=-4);var se=[t,n,c,Y,V,te,J,g,_,O],Z=a.apply(r,se);return xa(t)&&nl(Z,se),Z.placeholder=o,rl(Z,t,n)}function _a(t){var n=Re[t];return function(a,o){if(a=st(a),o=o==null?0:Oe(ae(o),292),o&&no(a)){var c=(he(a)+"e").split("e"),d=n(c[0]+"e"+(+c[1]+o));return c=(he(d)+"e").split("e"),+(c[0]+"e"+(+c[1]-o))}return n(a)}}var Ud=En&&1/Sr(new En([,-0]))[1]==j?function(t){return new En(t)}:Ha;function Jo(t){return function(n){var a=Le(n);return a==ot?Xi(n):a==lt?tf(n):zu(n,t(n))}}function Rt(t,n,a,o,c,d,h,g){var _=n&N;if(!_&&typeof t!="function")throw new tt(l);var O=o?o.length:0;if(O||(n&=-97,o=c=r),h=h===r?h:Be(ae(h),0),g=g===r?g:ae(g),O-=c?c.length:0,n&q){var L=o,V=c;o=c=r}var J=_?r:ba(t),Y=[t,n,a,o,c,L,V,d,h,g];if(J&&ep(Y,J),t=Y[0],n=Y[1],a=Y[2],o=Y[3],c=Y[4],g=Y[9]=Y[9]===r?_?0:t.length:Be(Y[9]-O,0),!g&&n&(Q|z)&&(n&=-25),!n||n==S)var te=Ld(t,n,a);else n==Q||n==z?te=Nd(t,n,g):(n==E||n==(S|E))&&!c.length?te=Md(t,n,a,o):te=zr.apply(r,Y);var se=J?So:nl;return rl(se(te,Y),t,n)}function jo(t,n,a,o){return t===r||dt(t,bn[a])&&!pe.call(o,a)?n:t}function zo(t,n,a,o,c,d){return be(t)&&be(n)&&(d.set(n,t),Hr(t,n,r,zo,d),d.delete(n)),t}function qd(t){return sr(t)?r:t}function Qo(t,n,a,o,c,d){var h=a&W,g=t.length,_=n.length;if(g!=_&&!(h&&_>g))return!1;var O=d.get(t),L=d.get(n);if(O&&L)return O==n&&L==t;var V=-1,J=!0,Y=a&k?new ln:r;for(d.set(t,n),d.set(n,t);++V<g;){var te=t[V],se=n[V];if(o)var Z=h?o(se,te,V,n,t,d):o(te,se,V,t,n,d);if(Z!==r){if(Z)continue;J=!1;break}if(Y){if(!Gi(n,function(le,ue){if(!jn(Y,ue)&&(te===le||c(te,le,a,o,d)))return Y.push(ue)})){J=!1;break}}else if(!(te===se||c(te,se,a,o,d))){J=!1;break}}return d.delete(t),d.delete(n),J}function Vd(t,n,a,o,c,d,h){switch(a){case vn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case Jn:return!(t.byteLength!=n.byteLength||!d(new Fr(t),new Fr(n)));case rn:case qn:case Vn:return dt(+t,+n);case vr:return t.name==n.name&&t.message==n.message;case Wn:case Hn:return t==n+"";case ot:var g=Xi;case lt:var _=o&W;if(g||(g=Sr),t.size!=n.size&&!_)return!1;var O=h.get(t);if(O)return O==n;o|=k,h.set(t,n);var L=Qo(g(t),g(n),o,c,d,h);return h.delete(t),L;case Cr:if(Yn)return Yn.call(t)==Yn.call(n)}return!1}function Wd(t,n,a,o,c,d){var h=a&W,g=Aa(t),_=g.length,O=Aa(n),L=O.length;if(_!=L&&!h)return!1;for(var V=_;V--;){var J=g[V];if(!(h?J in n:pe.call(n,J)))return!1}var Y=d.get(t),te=d.get(n);if(Y&&te)return Y==n&&te==t;var se=!0;d.set(t,n),d.set(n,t);for(var Z=h;++V<_;){J=g[V];var le=t[J],ue=n[J];if(o)var Xe=h?o(ue,le,J,n,t,d):o(le,ue,J,t,n,d);if(!(Xe===r?le===ue||c(le,ue,a,o,d):Xe)){se=!1;break}Z||(Z=J=="constructor")}if(se&&!Z){var qe=t.constructor,Ye=n.constructor;qe!=Ye&&"constructor"in t&&"constructor"in n&&!(typeof qe=="function"&&qe instanceof qe&&typeof Ye=="function"&&Ye instanceof Ye)&&(se=!1)}return d.delete(t),d.delete(n),se}function Bt(t){return Ra(el(t,r,cl),t+"")}function Aa(t){return ho(t,Fe,Sa)}function wa(t){return ho(t,He,Ko)}var ba=Nr?function(t){return Nr.get(t)}:Ha;function Yr(t){for(var n=t.name+"",a=Sn[n],o=pe.call(Sn,n)?a.length:0;o--;){var c=a[o],d=c.func;if(d==null||d==t)return c.name}return n}function Rn(t){var n=pe.call(f,"placeholder")?f:t;return n.placeholder}function ee(){var t=f.iteratee||Va;return t=t===Va?vo:t,arguments.length?t(arguments[0],arguments[1]):t}function $r(t,n){var a=t.__data__;return Xd(n)?a[typeof n=="string"?"string":"hash"]:a.map}function Ea(t){for(var n=Fe(t),a=n.length;a--;){var o=n[a],c=t[o];n[a]=[o,c,$o(c)]}return n}function fn(t,n){var a=$u(t,n);return go(a)?a:r}function Hd(t){var n=pe.call(t,sn),a=t[sn];try{t[sn]=r;var o=!0}catch{}var c=Rr.call(t);return o&&(n?t[sn]=a:delete t[sn]),c}var Sa=$i?function(t){return t==null?[]:(t=ge(t),Ht($i(t),function(n){return eo.call(t,n)}))}:Ga,Ko=$i?function(t){for(var n=[];t;)Gt(n,Sa(t)),t=Pr(t);return n}:Ga,Le=Me;(Zi&&Le(new Zi(new ArrayBuffer(1)))!=vn||Qn&&Le(new Qn)!=ot||ea&&Le(ea.resolve())!=cs||En&&Le(new En)!=lt||Kn&&Le(new Kn)!=Gn)&&(Le=function(t){var n=Me(t),a=n==It?t.constructor:r,o=a?dn(a):"";if(o)switch(o){case Sf:return vn;case If:return ot;case xf:return cs;case Tf:return lt;case Rf:return Gn}return n});function Gd(t,n,a){for(var o=-1,c=a.length;++o<c;){var d=a[o],h=d.size;switch(d.type){case"drop":t+=h;break;case"dropRight":n-=h;break;case"take":n=Oe(n,t+h);break;case"takeRight":t=Be(t,n-h);break}}return{start:t,end:n}}function Jd(t){var n=t.match(Yc);return n?n[1].split($c):[]}function Xo(t,n,a){n=Kt(n,t);for(var o=-1,c=n.length,d=!1;++o<c;){var h=ft(n[o]);if(!(d=t!=null&&a(t,h)))break;t=t[h]}return d||++o!=c?d:(c=t==null?0:t.length,!!c&&ai(c)&&Ft(h,c)&&(ie(t)||pn(t)))}function jd(t){var n=t.length,a=new t.constructor(n);return n&&typeof t[0]=="string"&&pe.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function Yo(t){return typeof t.constructor=="function"&&!ir(t)?In(Pr(t)):{}}function zd(t,n,a){var o=t.constructor;switch(n){case Jn:return ya(t);case rn:case qn:return new o(+t);case vn:return Bd(t,a);case Ei:case Si:case Ii:case xi:case Ti:case Ri:case Bi:case Fi:case Pi:return ko(t,a);case ot:return new o;case Vn:case Hn:return new o(t);case Wn:return Fd(t);case lt:return new o;case Cr:return Pd(t)}}function Qd(t,n){var a=n.length;if(!a)return t;var o=a-1;return n[o]=(a>1?"& ":"")+n[o],n=n.join(a>2?", ":" "),t.replace(Xc,`{
|
|
9
9
|
/* [wrapped with `+n+`] */
|
|
10
|
-
`)}function Kd(t){return ie(t)||pn(t)||!!(to&&t&&t[to])}function Ft(t,n){var a=typeof t;return n=n==null?ne:n,!!n&&(a=="number"||a!="symbol"&&su.test(t))&&t>-1&&t%1==0&&t<n}function Me(t,n,a){if(!be(a))return!1;var o=typeof n;return(o=="number"?Ve(a)&&Ft(n,a.length):o=="string"&&n in a)?dt(a[n],t):!1}function Ia(t,n){if(ie(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Ke(t)?!0:jc.test(t)||!Jc.test(t)||n!=null&&t in ge(n)}function Xd(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function xa(t){var n=Yr(t),a=f[n];if(typeof a!="function"||!(n in ue.prototype))return!1;if(t===a)return!0;var o=ba(a);return!!o&&t===o[0]}function Yd(t){return!!Ys&&Ys in t}var $d=xr?Pt:Ja;function ir(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||bn;return t===a}function $o(t){return t===t&&!be(t)}function Zo(t,n){return function(a){return a==null?!1:a[t]===n&&(n!==r||t in ge(a))}}function Zd(t){var n=ri(t,function(o){return a.size===x&&a.clear(),o}),a=n.cache;return n}function ep(t,n){var a=t[1],o=n[1],c=a|o,d=c<(S|N|F),h=o==F&&a==Q||o==F&&a==w&&t[7].length<=n[8]||o==(F|w)&&n[7].length<=n[8]&&a==Q;if(!(d||h))return t;o&S&&(t[2]=n[2],c|=a&S?0:H);var g=n[3];if(g){var _=t[3];t[3]=_?Oo(_,g,n[4]):g,t[4]=_?Jt(t[3],T):n[4]}return g=n[5],g&&(_=t[5],t[5]=_?Lo(_,g,n[6]):g,t[6]=_?Jt(t[5],T):n[6]),g=n[7],g&&(t[7]=g),o&F&&(t[8]=t[8]==null?n[8]:De(t[8],n[8])),t[9]==null&&(t[9]=n[9]),t[0]=n[0],t[1]=c,t}function tp(t){var n=[];if(t!=null)for(var a in ge(t))n.push(a);return n}function np(t){return Rr.call(t)}function el(t,n,a){return n=Re(n===r?t.length-1:n,0),function(){for(var o=arguments,c=-1,d=Re(o.length-n,0),h=R(d);++c<d;)h[c]=o[n+c];c=-1;for(var g=R(n+1);++c<n;)g[c]=o[c];return g[n]=a(h),Je(t,this,g)}}function tl(t,n){return n.length<2?t:un(t,it(n,0,-1))}function rp(t,n){for(var a=t.length,o=De(n.length,a),c=qe(t);o--;){var d=n[o];t[o]=Ft(d,a)?c[d]:r}return t}function Ta(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}var nl=il(So),ar=yf||function(t,n){return Pe.setTimeout(t,n)},Ra=il(Id);function rl(t,n,a){var o=n+"";return Ra(t,Qd(o,ip(Jd(o),a)))}function il(t){var n=0,a=0;return function(){var o=wf(),c=_e-(o-a);if(a=o,c>0){if(++n>=le)return arguments[0]}else n=0;return t.apply(r,arguments)}}function Zr(t,n){var a=-1,o=t.length,c=o-1;for(n=n===r?o:n;++a<n;){var d=fa(a,c),h=t[d];t[d]=t[a],t[a]=h}return t.length=n,t}var al=Zd(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(zc,function(a,o,c,d){n.push(c?d.replace(eu,"$1"):o||a)}),n});function ft(t){if(typeof t=="string"||Ke(t))return t;var n=t+"";return n=="0"&&1/t==-j?"-0":n}function dn(t){if(t!=null){try{return Tr.call(t)}catch{}try{return t+""}catch{}}return""}function ip(t,n){return je(Wt,function(a){var o="_."+a[0];n&a[1]&&!br(t,o)&&t.push(o)}),t.sort()}function sl(t){if(t instanceof ue)return t.clone();var n=new nt(t.__wrapped__,t.__chain__);return n.__actions__=qe(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function ap(t,n,a){(a?Me(t,n,a):n===r)?n=1:n=Re(ae(n),0);var o=t==null?0:t.length;if(!o||n<1)return[];for(var c=0,d=0,h=R(Or(o/n));c<o;)h[d++]=it(t,c,c+=n);return h}function sp(t){for(var n=-1,a=t==null?0:t.length,o=0,c=[];++n<a;){var d=t[n];d&&(c[o++]=d)}return c}function op(){var t=arguments.length;if(!t)return[];for(var n=R(t-1),a=arguments[0],o=t;o--;)n[o-1]=arguments[o];return Gt(ie(a)?qe(a):[a],ke(n,1))}var lp=oe(function(t,n){return Ie(t)?Zn(t,ke(n,1,Ie,!0)):[]}),cp=oe(function(t,n){var a=at(n);return Ie(a)&&(a=r),Ie(t)?Zn(t,ke(n,1,Ie,!0),ee(a,2)):[]}),up=oe(function(t,n){var a=at(n);return Ie(a)&&(a=r),Ie(t)?Zn(t,ke(n,1,Ie,!0),r,a):[]});function fp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),it(t,n<0?0:n,o)):[]}function dp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),n=o-n,it(t,0,n<0?0:n)):[]}function pp(t,n){return t&&t.length?Jr(t,ee(n,3),!0,!0):[]}function hp(t,n){return t&&t.length?Jr(t,ee(n,3),!0):[]}function mp(t,n,a,o){var c=t==null?0:t.length;return c?(a&&typeof a!="number"&&Me(t,n,a)&&(a=0,o=c),od(t,n,a,o)):[]}function ol(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=a==null?0:ae(a);return c<0&&(c=Re(o+c,0)),Er(t,ee(n,3),c)}function ll(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=o-1;return a!==r&&(c=ae(a),c=a<0?Re(o+c,0):De(c,o-1)),Er(t,ee(n,3),c,!0)}function cl(t){var n=t==null?0:t.length;return n?ke(t,1):[]}function gp(t){var n=t==null?0:t.length;return n?ke(t,j):[]}function vp(t,n){var a=t==null?0:t.length;return a?(n=n===r?1:ae(n),ke(t,n)):[]}function yp(t){for(var n=-1,a=t==null?0:t.length,o={};++n<a;){var c=t[n];yt(o,c[0],c[1])}return o}function ul(t){return t&&t.length?t[0]:r}function Cp(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=a==null?0:ae(a);return c<0&&(c=Re(o+c,0)),Cn(t,n,c)}function _p(t){var n=t==null?0:t.length;return n?it(t,0,-1):[]}var Ap=oe(function(t){var n=we(t,ga);return n.length&&n[0]===t[0]?sa(n):[]}),wp=oe(function(t){var n=at(t),a=we(t,ga);return n===at(a)?n=r:a.pop(),a.length&&a[0]===t[0]?sa(a,ee(n,2)):[]}),bp=oe(function(t){var n=at(t),a=we(t,ga);return n=typeof n=="function"?n:r,n&&a.pop(),a.length&&a[0]===t[0]?sa(a,r,n):[]});function Ep(t,n){return t==null?"":_f.call(t,n)}function at(t){var n=t==null?0:t.length;return n?t[n-1]:r}function Sp(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=o;return a!==r&&(c=ae(a),c=c<0?Re(o+c,0):De(c,o-1)),n===n?rf(t,n,c):Er(t,Hs,c,!0)}function Ip(t,n){return t&&t.length?Ao(t,ae(n)):r}var xp=oe(fl);function fl(t,n){return t&&t.length&&n&&n.length?ua(t,n):t}function Tp(t,n,a){return t&&t.length&&n&&n.length?ua(t,n,ee(a,2)):t}function Rp(t,n,a){return t&&t.length&&n&&n.length?ua(t,n,r,a):t}var Bp=Bt(function(t,n){var a=t==null?0:t.length,o=na(t,n);return Eo(t,we(n,function(c){return Ft(c,a)?+c:c}).sort(Do)),o});function Fp(t,n){var a=[];if(!(t&&t.length))return a;var o=-1,c=[],d=t.length;for(n=ee(n,3);++o<d;){var h=t[o];n(h,o,t)&&(a.push(h),c.push(o))}return Eo(t,c),a}function Ba(t){return t==null?t:Ef.call(t)}function Pp(t,n,a){var o=t==null?0:t.length;return o?(a&&typeof a!="number"&&Me(t,n,a)?(n=0,a=o):(n=n==null?0:ae(n),a=a===r?o:ae(a)),it(t,n,a)):[]}function kp(t,n){return Gr(t,n)}function Dp(t,n,a){return pa(t,n,ee(a,2))}function Op(t,n){var a=t==null?0:t.length;if(a){var o=Gr(t,n);if(o<a&&dt(t[o],n))return o}return-1}function Lp(t,n){return Gr(t,n,!0)}function Np(t,n,a){return pa(t,n,ee(a,2),!0)}function Mp(t,n){var a=t==null?0:t.length;if(a){var o=Gr(t,n,!0)-1;if(dt(t[o],n))return o}return-1}function Up(t){return t&&t.length?Io(t):[]}function qp(t,n){return t&&t.length?Io(t,ee(n,2)):[]}function Vp(t){var n=t==null?0:t.length;return n?it(t,1,n):[]}function Wp(t,n,a){return t&&t.length?(n=a||n===r?1:ae(n),it(t,0,n<0?0:n)):[]}function Hp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),n=o-n,it(t,n<0?0:n,o)):[]}function Gp(t,n){return t&&t.length?Jr(t,ee(n,3),!1,!0):[]}function Jp(t,n){return t&&t.length?Jr(t,ee(n,3)):[]}var jp=oe(function(t){return Qt(ke(t,1,Ie,!0))}),zp=oe(function(t){var n=at(t);return Ie(n)&&(n=r),Qt(ke(t,1,Ie,!0),ee(n,2))}),Qp=oe(function(t){var n=at(t);return n=typeof n=="function"?n:r,Qt(ke(t,1,Ie,!0),r,n)});function Kp(t){return t&&t.length?Qt(t):[]}function Xp(t,n){return t&&t.length?Qt(t,ee(n,2)):[]}function Yp(t,n){return n=typeof n=="function"?n:r,t&&t.length?Qt(t,r,n):[]}function Fa(t){if(!(t&&t.length))return[];var n=0;return t=Ht(t,function(a){if(Ie(a))return n=Re(a.length,n),!0}),Qi(n,function(a){return we(t,Ji(a))})}function dl(t,n){if(!(t&&t.length))return[];var a=Fa(t);return n==null?a:we(a,function(o){return Je(n,r,o)})}var $p=oe(function(t,n){return Ie(t)?Zn(t,n):[]}),Zp=oe(function(t){return ma(Ht(t,Ie))}),eh=oe(function(t){var n=at(t);return Ie(n)&&(n=r),ma(Ht(t,Ie),ee(n,2))}),th=oe(function(t){var n=at(t);return n=typeof n=="function"?n:r,ma(Ht(t,Ie),r,n)}),nh=oe(Fa);function rh(t,n){return Bo(t||[],n||[],$n)}function ih(t,n){return Bo(t||[],n||[],nr)}var ah=oe(function(t){var n=t.length,a=n>1?t[n-1]:r;return a=typeof a=="function"?(t.pop(),a):r,dl(t,a)});function pl(t){var n=f(t);return n.__chain__=!0,n}function sh(t,n){return n(t),t}function ei(t,n){return n(t)}var oh=Bt(function(t){var n=t.length,a=n?t[0]:0,o=this.__wrapped__,c=function(d){return na(d,t)};return n>1||this.__actions__.length||!(o instanceof ue)||!Ft(a)?this.thru(c):(o=o.slice(a,+a+(n?1:0)),o.__actions__.push({func:ei,args:[c],thisArg:r}),new nt(o,this.__chain__).thru(function(d){return n&&!d.length&&d.push(r),d}))});function lh(){return pl(this)}function ch(){return new nt(this.value(),this.__chain__)}function uh(){this.__values__===r&&(this.__values__=xl(this.value()));var t=this.__index__>=this.__values__.length,n=t?r:this.__values__[this.__index__++];return{done:t,value:n}}function fh(){return this}function dh(t){for(var n,a=this;a instanceof Ur;){var o=sl(a);o.__index__=0,o.__values__=r,n?c.__wrapped__=o:n=o;var c=o;a=a.__wrapped__}return c.__wrapped__=t,n}function ph(){var t=this.__wrapped__;if(t instanceof ue){var n=t;return this.__actions__.length&&(n=new ue(this)),n=n.reverse(),n.__actions__.push({func:ei,args:[Ba],thisArg:r}),new nt(n,this.__chain__)}return this.thru(Ba)}function hh(){return Ro(this.__wrapped__,this.__actions__)}var mh=jr(function(t,n,a){pe.call(t,a)?++t[a]:yt(t,a,1)});function gh(t,n,a){var o=ie(t)?Vs:sd;return a&&Me(t,n,a)&&(n=r),o(t,ee(n,3))}function vh(t,n){var a=ie(t)?Ht:fo;return a(t,ee(n,3))}var yh=qo(ol),Ch=qo(ll);function _h(t,n){return ke(ti(t,n),1)}function Ah(t,n){return ke(ti(t,n),j)}function wh(t,n,a){return a=a===r?1:ae(a),ke(ti(t,n),a)}function hl(t,n){var a=ie(t)?je:zt;return a(t,ee(n,3))}function ml(t,n){var a=ie(t)?qu:uo;return a(t,ee(n,3))}var bh=jr(function(t,n,a){pe.call(t,a)?t[a].push(n):yt(t,a,[n])});function Eh(t,n,a,o){t=Ve(t)?t:Fn(t),a=a&&!o?ae(a):0;var c=t.length;return a<0&&(a=Re(c+a,0)),si(t)?a<=c&&t.indexOf(n,a)>-1:!!c&&Cn(t,n,a)>-1}var Sh=oe(function(t,n,a){var o=-1,c=typeof n=="function",d=Ve(t)?R(t.length):[];return zt(t,function(h){d[++o]=c?Je(n,h,a):er(h,n,a)}),d}),Ih=jr(function(t,n,a){yt(t,a,n)});function ti(t,n){var a=ie(t)?we:yo;return a(t,ee(n,3))}function xh(t,n,a,o){return t==null?[]:(ie(n)||(n=n==null?[]:[n]),a=o?r:a,ie(a)||(a=a==null?[]:[a]),wo(t,n,a))}var Th=jr(function(t,n,a){t[a?0:1].push(n)},function(){return[[],[]]});function Rh(t,n,a){var o=ie(t)?Hi:Js,c=arguments.length<3;return o(t,ee(n,4),a,c,zt)}function Bh(t,n,a){var o=ie(t)?Vu:Js,c=arguments.length<3;return o(t,ee(n,4),a,c,uo)}function Fh(t,n){var a=ie(t)?Ht:fo;return a(t,ii(ee(n,3)))}function Ph(t){var n=ie(t)?so:Ed;return n(t)}function kh(t,n,a){(a?Me(t,n,a):n===r)?n=1:n=ae(n);var o=ie(t)?td:Sd;return o(t,n)}function Dh(t){var n=ie(t)?nd:xd;return n(t)}function Oh(t){if(t==null)return 0;if(Ve(t))return si(t)?An(t):t.length;var n=Oe(t);return n==ot||n==lt?t.size:la(t).length}function Lh(t,n,a){var o=ie(t)?Gi:Td;return a&&Me(t,n,a)&&(n=r),o(t,ee(n,3))}var Nh=oe(function(t,n){if(t==null)return[];var a=n.length;return a>1&&Me(t,n[0],n[1])?n=[]:a>2&&Me(n[0],n[1],n[2])&&(n=[n[0]]),wo(t,ke(n,1),[])}),ni=vf||function(){return Pe.Date.now()};function Mh(t,n){if(typeof n!="function")throw new tt(l);return t=ae(t),function(){if(--t<1)return n.apply(this,arguments)}}function gl(t,n,a){return n=a?r:n,n=t&&n==null?t.length:n,Rt(t,F,r,r,r,r,n)}function vl(t,n){var a;if(typeof n!="function")throw new tt(l);return t=ae(t),function(){return--t>0&&(a=n.apply(this,arguments)),t<=1&&(n=r),a}}var Pa=oe(function(t,n,a){var o=S;if(a.length){var c=Jt(a,Rn(Pa));o|=E}return Rt(t,o,n,a,c)}),yl=oe(function(t,n,a){var o=S|N;if(a.length){var c=Jt(a,Rn(yl));o|=E}return Rt(n,o,t,a,c)});function Cl(t,n,a){n=a?r:n;var o=Rt(t,Q,r,r,r,r,r,n);return o.placeholder=Cl.placeholder,o}function _l(t,n,a){n=a?r:n;var o=Rt(t,z,r,r,r,r,r,n);return o.placeholder=_l.placeholder,o}function Al(t,n,a){var o,c,d,h,g,_,O=0,L=!1,V=!1,J=!0;if(typeof t!="function")throw new tt(l);n=st(n)||0,be(a)&&(L=!!a.leading,V="maxWait"in a,d=V?Re(st(a.maxWait)||0,n):d,J="trailing"in a?!!a.trailing:J);function Y(xe){var pt=o,Dt=c;return o=c=r,O=xe,h=t.apply(Dt,pt),h}function te(xe){return O=xe,g=ar(ce,n),L?Y(xe):h}function se(xe){var pt=xe-_,Dt=xe-O,Vl=n-pt;return V?De(Vl,d-Dt):Vl}function Z(xe){var pt=xe-_,Dt=xe-O;return _===r||pt>=n||pt<0||V&&Dt>=d}function ce(){var xe=ni();if(Z(xe))return fe(xe);g=ar(ce,se(xe))}function fe(xe){return g=r,J&&o?Y(xe):(o=c=r,h)}function Xe(){g!==r&&Fo(g),O=0,o=_=c=g=r}function Ue(){return g===r?h:fe(ni())}function Ye(){var xe=ni(),pt=Z(xe);if(o=arguments,c=this,_=xe,pt){if(g===r)return te(_);if(V)return Fo(g),g=ar(ce,n),Y(_)}return g===r&&(g=ar(ce,n)),h}return Ye.cancel=Xe,Ye.flush=Ue,Ye}var Uh=oe(function(t,n){return co(t,1,n)}),qh=oe(function(t,n,a){return co(t,st(n)||0,a)});function Vh(t){return Rt(t,M)}function ri(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new tt(l);var a=function(){var o=arguments,c=n?n.apply(this,o):o[0],d=a.cache;if(d.has(c))return d.get(c);var h=t.apply(this,o);return a.cache=d.set(c,h)||d,h};return a.cache=new(ri.Cache||Tt),a}ri.Cache=Tt;function ii(t){if(typeof t!="function")throw new tt(l);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Wh(t){return vl(2,t)}var Hh=Rd(function(t,n){n=n.length==1&&ie(n[0])?we(n[0],ze(ee())):we(ke(n,1),ze(ee()));var a=n.length;return oe(function(o){for(var c=-1,d=De(o.length,a);++c<d;)o[c]=n[c].call(this,o[c]);return Je(t,this,o)})}),ka=oe(function(t,n){var a=Jt(n,Rn(ka));return Rt(t,E,r,n,a)}),wl=oe(function(t,n){var a=Jt(n,Rn(wl));return Rt(t,q,r,n,a)}),Gh=Bt(function(t,n){return Rt(t,w,r,r,r,n)});function Jh(t,n){if(typeof t!="function")throw new tt(l);return n=n===r?n:ae(n),oe(t,n)}function jh(t,n){if(typeof t!="function")throw new tt(l);return n=n==null?0:Re(ae(n),0),oe(function(a){var o=a[n],c=Xt(a,0,n);return o&&Gt(c,o),Je(t,this,c)})}function zh(t,n,a){var o=!0,c=!0;if(typeof t!="function")throw new tt(l);return be(a)&&(o="leading"in a?!!a.leading:o,c="trailing"in a?!!a.trailing:c),Al(t,n,{leading:o,maxWait:n,trailing:c})}function Qh(t){return gl(t,1)}function Kh(t,n){return ka(va(n),t)}function Xh(){if(!arguments.length)return[];var t=arguments[0];return ie(t)?t:[t]}function Yh(t){return rt(t,D)}function $h(t,n){return n=typeof n=="function"?n:r,rt(t,D,n)}function Zh(t){return rt(t,I|D)}function em(t,n){return n=typeof n=="function"?n:r,rt(t,I|D,n)}function tm(t,n){return n==null||lo(t,n,Be(n))}function dt(t,n){return t===n||t!==t&&n!==n}var nm=Xr(aa),rm=Xr(function(t,n){return t>=n}),pn=mo((function(){return arguments})())?mo:function(t){return Se(t)&&pe.call(t,"callee")&&!eo.call(t,"callee")},ie=R.isArray,im=Os?ze(Os):dd;function Ve(t){return t!=null&&ai(t.length)&&!Pt(t)}function Ie(t){return Se(t)&&Ve(t)}function am(t){return t===!0||t===!1||Se(t)&&Ne(t)==rn}var Yt=Cf||Ja,sm=Ls?ze(Ls):pd;function om(t){return Se(t)&&t.nodeType===1&&!sr(t)}function lm(t){if(t==null)return!0;if(Ve(t)&&(ie(t)||typeof t=="string"||typeof t.splice=="function"||Yt(t)||Bn(t)||pn(t)))return!t.length;var n=Oe(t);if(n==ot||n==lt)return!t.size;if(ir(t))return!la(t).length;for(var a in t)if(pe.call(t,a))return!1;return!0}function cm(t,n){return tr(t,n)}function um(t,n,a){a=typeof a=="function"?a:r;var o=a?a(t,n):r;return o===r?tr(t,n,r,a):!!o}function Da(t){if(!Se(t))return!1;var n=Ne(t);return n==vr||n==kc||typeof t.message=="string"&&typeof t.name=="string"&&!sr(t)}function fm(t){return typeof t=="number"&&no(t)}function Pt(t){if(!be(t))return!1;var n=Ne(t);return n==yr||n==ls||n==gr||n==Oc}function bl(t){return typeof t=="number"&&t==ae(t)}function ai(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ne}function be(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function Se(t){return t!=null&&typeof t=="object"}var El=Ns?ze(Ns):md;function dm(t,n){return t===n||oa(t,n,Ea(n))}function pm(t,n,a){return a=typeof a=="function"?a:r,oa(t,n,Ea(n),a)}function hm(t){return Sl(t)&&t!=+t}function mm(t){if($d(t))throw new re(p);return go(t)}function gm(t){return t===null}function vm(t){return t==null}function Sl(t){return typeof t=="number"||Se(t)&&Ne(t)==Vn}function sr(t){if(!Se(t)||Ne(t)!=It)return!1;var n=Pr(t);if(n===null)return!0;var a=pe.call(n,"constructor")&&n.constructor;return typeof a=="function"&&a instanceof a&&Tr.call(a)==pf}var Oa=Ms?ze(Ms):gd;function ym(t){return bl(t)&&t>=-ne&&t<=ne}var Il=Us?ze(Us):vd;function si(t){return typeof t=="string"||!ie(t)&&Se(t)&&Ne(t)==Hn}function Ke(t){return typeof t=="symbol"||Se(t)&&Ne(t)==Cr}var Bn=qs?ze(qs):yd;function Cm(t){return t===r}function _m(t){return Se(t)&&Oe(t)==Gn}function Am(t){return Se(t)&&Ne(t)==Nc}var wm=Xr(ca),bm=Xr(function(t,n){return t<=n});function xl(t){if(!t)return[];if(Ve(t))return si(t)?ct(t):qe(t);if(zn&&t[zn])return ef(t[zn]());var n=Oe(t),a=n==ot?Xi:n==lt?Sr:Fn;return a(t)}function kt(t){if(!t)return t===0?t:0;if(t=st(t),t===j||t===-j){var n=t<0?-1:1;return n*ye}return t===t?t:0}function ae(t){var n=kt(t),a=n%1;return n===n?a?n-a:n:0}function Tl(t){return t?cn(ae(t),0,Ee):0}function st(t){if(typeof t=="number")return t;if(Ke(t))return Le;if(be(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=be(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=js(t);var a=ru.test(t);return a||au.test(t)?Nu(t.slice(2),a?2:8):nu.test(t)?Le:+t}function Rl(t){return _t(t,We(t))}function Em(t){return t?cn(ae(t),-ne,ne):t===0?t:0}function he(t){return t==null?"":Qe(t)}var Sm=xn(function(t,n){if(ir(n)||Ve(n)){_t(n,Be(n),t);return}for(var a in n)pe.call(n,a)&&$n(t,a,n[a])}),Bl=xn(function(t,n){_t(n,We(n),t)}),Fl=xn(function(t,n,a,o){_t(n,We(n),t,o)}),La=xn(function(t,n,a,o){_t(n,Be(n),t,o)}),Im=Bt(na);function xm(t,n){var a=In(t);return n==null?a:oo(a,n)}var Tm=oe(function(t,n){t=ge(t);var a=-1,o=n.length,c=o>2?n[2]:r;for(c&&Me(n[0],n[1],c)&&(o=1);++a<o;)for(var d=n[a],h=We(d),g=-1,_=h.length;++g<_;){var O=h[g],L=t[O];(L===r||dt(L,bn[O])&&!pe.call(t,O))&&(t[O]=d[O])}return t}),Rm=oe(function(t){return t.push(r,zo),Je(Pl,r,t)});function Bm(t,n){return Ws(t,ee(n,3),Ct)}function Fm(t,n){return Ws(t,ee(n,3),ia)}function Pm(t,n){return t==null?t:ra(t,ee(n,3),We)}function km(t,n){return t==null?t:po(t,ee(n,3),We)}function Dm(t,n){return t&&Ct(t,ee(n,3))}function Om(t,n){return t&&ia(t,ee(n,3))}function Lm(t){return t==null?[]:Wr(t,Be(t))}function Nm(t){return t==null?[]:Wr(t,We(t))}function Na(t,n,a){var o=t==null?r:un(t,n);return o===r?a:o}function Mm(t,n){return t!=null&&Xo(t,n,ld)}function Ma(t,n){return t!=null&&Xo(t,n,cd)}var Um=Wo(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=Rr.call(n)),t[n]=a},qa(He)),qm=Wo(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=Rr.call(n)),pe.call(t,n)?t[n].push(a):t[n]=[a]},ee),Vm=oe(er);function Be(t){return Ve(t)?ao(t):la(t)}function We(t){return Ve(t)?ao(t,!0):Cd(t)}function Wm(t,n){var a={};return n=ee(n,3),Ct(t,function(o,c,d){yt(a,n(o,c,d),o)}),a}function Hm(t,n){var a={};return n=ee(n,3),Ct(t,function(o,c,d){yt(a,c,n(o,c,d))}),a}var Gm=xn(function(t,n,a){Hr(t,n,a)}),Pl=xn(function(t,n,a,o){Hr(t,n,a,o)}),Jm=Bt(function(t,n){var a={};if(t==null)return a;var o=!1;n=we(n,function(d){return d=Kt(d,t),o||(o=d.length>1),d}),_t(t,wa(t),a),o&&(a=rt(a,I|B|D,qd));for(var c=n.length;c--;)ha(a,n[c]);return a});function jm(t,n){return kl(t,ii(ee(n)))}var zm=Bt(function(t,n){return t==null?{}:Ad(t,n)});function kl(t,n){if(t==null)return{};var a=we(wa(t),function(o){return[o]});return n=ee(n),bo(t,a,function(o,c){return n(o,c[0])})}function Qm(t,n,a){n=Kt(n,t);var o=-1,c=n.length;for(c||(c=1,t=r);++o<c;){var d=t==null?r:t[ft(n[o])];d===r&&(o=c,d=a),t=Pt(d)?d.call(t):d}return t}function Km(t,n,a){return t==null?t:nr(t,n,a)}function Xm(t,n,a,o){return o=typeof o=="function"?o:r,t==null?t:nr(t,n,a,o)}var Dl=Jo(Be),Ol=Jo(We);function Ym(t,n,a){var o=ie(t),c=o||Yt(t)||Bn(t);if(n=ee(n,4),a==null){var d=t&&t.constructor;c?a=o?new d:[]:be(t)?a=Pt(d)?In(Pr(t)):{}:a={}}return(c?je:Ct)(t,function(h,g,_){return n(a,h,g,_)}),a}function $m(t,n){return t==null?!0:ha(t,n)}function Zm(t,n,a){return t==null?t:To(t,n,va(a))}function eg(t,n,a,o){return o=typeof o=="function"?o:r,t==null?t:To(t,n,va(a),o)}function Fn(t){return t==null?[]:Ki(t,Be(t))}function tg(t){return t==null?[]:Ki(t,We(t))}function ng(t,n,a){return a===r&&(a=n,n=r),a!==r&&(a=st(a),a=a===a?a:0),n!==r&&(n=st(n),n=n===n?n:0),cn(st(t),n,a)}function rg(t,n,a){return n=kt(n),a===r?(a=n,n=0):a=kt(a),t=st(t),ud(t,n,a)}function ig(t,n,a){if(a&&typeof a!="boolean"&&Me(t,n,a)&&(n=a=r),a===r&&(typeof n=="boolean"?(a=n,n=r):typeof t=="boolean"&&(a=t,t=r)),t===r&&n===r?(t=0,n=1):(t=kt(t),n===r?(n=t,t=0):n=kt(n)),t>n){var o=t;t=n,n=o}if(a||t%1||n%1){var c=ro();return De(t+c*(n-t+Lu("1e-"+((c+"").length-1))),n)}return fa(t,n)}var ag=Tn(function(t,n,a){return n=n.toLowerCase(),t+(a?Ll(n):n)});function Ll(t){return Ua(he(t).toLowerCase())}function Nl(t){return t=he(t),t&&t.replace(ou,Ku).replace(Iu,"")}function sg(t,n,a){t=he(t),n=Qe(n);var o=t.length;a=a===r?o:cn(ae(a),0,o);var c=a;return a-=n.length,a>=0&&t.slice(a,c)==n}function og(t){return t=he(t),t&&Wc.test(t)?t.replace(fs,Xu):t}function lg(t){return t=he(t),t&&Qc.test(t)?t.replace(ki,"\\$&"):t}var cg=Tn(function(t,n,a){return t+(a?"-":"")+n.toLowerCase()}),ug=Tn(function(t,n,a){return t+(a?" ":"")+n.toLowerCase()}),fg=Uo("toLowerCase");function dg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;if(!n||o>=n)return t;var c=(n-o)/2;return Kr(Lr(c),a)+t+Kr(Or(c),a)}function pg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;return n&&o<n?t+Kr(n-o,a):t}function hg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;return n&&o<n?Kr(n-o,a)+t:t}function mg(t,n,a){return a||n==null?n=0:n&&(n=+n),bf(he(t).replace(Di,""),n||0)}function gg(t,n,a){return(a?Me(t,n,a):n===r)?n=1:n=ae(n),da(he(t),n)}function vg(){var t=arguments,n=he(t[0]);return t.length<3?n:n.replace(t[1],t[2])}var yg=Tn(function(t,n,a){return t+(a?"_":"")+n.toLowerCase()});function Cg(t,n,a){return a&&typeof a!="number"&&Me(t,n,a)&&(n=a=r),a=a===r?Ee:a>>>0,a?(t=he(t),t&&(typeof n=="string"||n!=null&&!Oa(n))&&(n=Qe(n),!n&&_n(t))?Xt(ct(t),0,a):t.split(n,a)):[]}var _g=Tn(function(t,n,a){return t+(a?" ":"")+Ua(n)});function Ag(t,n,a){return t=he(t),a=a==null?0:cn(ae(a),0,t.length),n=Qe(n),t.slice(a,a+n.length)==n}function wg(t,n,a){var o=f.templateSettings;a&&Me(t,n,a)&&(n=r),t=he(t),n=La({},n,o,jo);var c=La({},n.imports,o.imports,jo),d=Be(c),h=Ki(c,d);je(d,function(Z){if(ps.test(Z))throw new re(A)});var g,_,O=0,L=n.interpolate||_r,V="__p += '",J=Yi((n.escape||_r).source+"|"+L.source+"|"+(L===ds?tu:_r).source+"|"+(n.evaluate||_r).source+"|$","g"),Y="//# sourceURL="+(pe.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fu+"]")+`
|
|
11
|
-
`;t.replace(J,function(Z,
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
15
|
-
__p += '`),
|
|
16
|
-
((__t = (`+
|
|
10
|
+
`)}function Kd(t){return ie(t)||pn(t)||!!(to&&t&&t[to])}function Ft(t,n){var a=typeof t;return n=n==null?ne:n,!!n&&(a=="number"||a!="symbol"&&su.test(t))&&t>-1&&t%1==0&&t<n}function Ue(t,n,a){if(!be(a))return!1;var o=typeof n;return(o=="number"?We(a)&&Ft(n,a.length):o=="string"&&n in a)?dt(a[n],t):!1}function Ia(t,n){if(ie(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Ke(t)?!0:jc.test(t)||!Jc.test(t)||n!=null&&t in ge(n)}function Xd(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function xa(t){var n=Yr(t),a=f[n];if(typeof a!="function"||!(n in ce.prototype))return!1;if(t===a)return!0;var o=ba(a);return!!o&&t===o[0]}function Yd(t){return!!Ys&&Ys in t}var $d=xr?Pt:Ja;function ir(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||bn;return t===a}function $o(t){return t===t&&!be(t)}function Zo(t,n){return function(a){return a==null?!1:a[t]===n&&(n!==r||t in ge(a))}}function Zd(t){var n=ri(t,function(o){return a.size===x&&a.clear(),o}),a=n.cache;return n}function ep(t,n){var a=t[1],o=n[1],c=a|o,d=c<(S|N|F),h=o==F&&a==Q||o==F&&a==w&&t[7].length<=n[8]||o==(F|w)&&n[7].length<=n[8]&&a==Q;if(!(d||h))return t;o&S&&(t[2]=n[2],c|=a&S?0:H);var g=n[3];if(g){var _=t[3];t[3]=_?Oo(_,g,n[4]):g,t[4]=_?Jt(t[3],T):n[4]}return g=n[5],g&&(_=t[5],t[5]=_?Lo(_,g,n[6]):g,t[6]=_?Jt(t[5],T):n[6]),g=n[7],g&&(t[7]=g),o&F&&(t[8]=t[8]==null?n[8]:Oe(t[8],n[8])),t[9]==null&&(t[9]=n[9]),t[0]=n[0],t[1]=c,t}function tp(t){var n=[];if(t!=null)for(var a in ge(t))n.push(a);return n}function np(t){return Rr.call(t)}function el(t,n,a){return n=Be(n===r?t.length-1:n,0),function(){for(var o=arguments,c=-1,d=Be(o.length-n,0),h=R(d);++c<d;)h[c]=o[n+c];c=-1;for(var g=R(n+1);++c<n;)g[c]=o[c];return g[n]=a(h),Je(t,this,g)}}function tl(t,n){return n.length<2?t:un(t,it(n,0,-1))}function rp(t,n){for(var a=t.length,o=Oe(n.length,a),c=Ve(t);o--;){var d=n[o];t[o]=Ft(d,a)?c[d]:r}return t}function Ta(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}var nl=il(So),ar=yf||function(t,n){return ke.setTimeout(t,n)},Ra=il(Id);function rl(t,n,a){var o=n+"";return Ra(t,Qd(o,ip(Jd(o),a)))}function il(t){var n=0,a=0;return function(){var o=wf(),c=fe-(o-a);if(a=o,c>0){if(++n>=ye)return arguments[0]}else n=0;return t.apply(r,arguments)}}function Zr(t,n){var a=-1,o=t.length,c=o-1;for(n=n===r?o:n;++a<n;){var d=fa(a,c),h=t[d];t[d]=t[a],t[a]=h}return t.length=n,t}var al=Zd(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(zc,function(a,o,c,d){n.push(c?d.replace(eu,"$1"):o||a)}),n});function ft(t){if(typeof t=="string"||Ke(t))return t;var n=t+"";return n=="0"&&1/t==-j?"-0":n}function dn(t){if(t!=null){try{return Tr.call(t)}catch{}try{return t+""}catch{}}return""}function ip(t,n){return je(Wt,function(a){var o="_."+a[0];n&a[1]&&!br(t,o)&&t.push(o)}),t.sort()}function sl(t){if(t instanceof ce)return t.clone();var n=new nt(t.__wrapped__,t.__chain__);return n.__actions__=Ve(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function ap(t,n,a){(a?Ue(t,n,a):n===r)?n=1:n=Be(ae(n),0);var o=t==null?0:t.length;if(!o||n<1)return[];for(var c=0,d=0,h=R(Or(o/n));c<o;)h[d++]=it(t,c,c+=n);return h}function sp(t){for(var n=-1,a=t==null?0:t.length,o=0,c=[];++n<a;){var d=t[n];d&&(c[o++]=d)}return c}function op(){var t=arguments.length;if(!t)return[];for(var n=R(t-1),a=arguments[0],o=t;o--;)n[o-1]=arguments[o];return Gt(ie(a)?Ve(a):[a],De(n,1))}var lp=oe(function(t,n){return Ie(t)?Zn(t,De(n,1,Ie,!0)):[]}),cp=oe(function(t,n){var a=at(n);return Ie(a)&&(a=r),Ie(t)?Zn(t,De(n,1,Ie,!0),ee(a,2)):[]}),up=oe(function(t,n){var a=at(n);return Ie(a)&&(a=r),Ie(t)?Zn(t,De(n,1,Ie,!0),r,a):[]});function fp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),it(t,n<0?0:n,o)):[]}function dp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),n=o-n,it(t,0,n<0?0:n)):[]}function pp(t,n){return t&&t.length?Jr(t,ee(n,3),!0,!0):[]}function hp(t,n){return t&&t.length?Jr(t,ee(n,3),!0):[]}function mp(t,n,a,o){var c=t==null?0:t.length;return c?(a&&typeof a!="number"&&Ue(t,n,a)&&(a=0,o=c),od(t,n,a,o)):[]}function ol(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=a==null?0:ae(a);return c<0&&(c=Be(o+c,0)),Er(t,ee(n,3),c)}function ll(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=o-1;return a!==r&&(c=ae(a),c=a<0?Be(o+c,0):Oe(c,o-1)),Er(t,ee(n,3),c,!0)}function cl(t){var n=t==null?0:t.length;return n?De(t,1):[]}function gp(t){var n=t==null?0:t.length;return n?De(t,j):[]}function vp(t,n){var a=t==null?0:t.length;return a?(n=n===r?1:ae(n),De(t,n)):[]}function yp(t){for(var n=-1,a=t==null?0:t.length,o={};++n<a;){var c=t[n];yt(o,c[0],c[1])}return o}function ul(t){return t&&t.length?t[0]:r}function Cp(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=a==null?0:ae(a);return c<0&&(c=Be(o+c,0)),Cn(t,n,c)}function _p(t){var n=t==null?0:t.length;return n?it(t,0,-1):[]}var Ap=oe(function(t){var n=we(t,ga);return n.length&&n[0]===t[0]?sa(n):[]}),wp=oe(function(t){var n=at(t),a=we(t,ga);return n===at(a)?n=r:a.pop(),a.length&&a[0]===t[0]?sa(a,ee(n,2)):[]}),bp=oe(function(t){var n=at(t),a=we(t,ga);return n=typeof n=="function"?n:r,n&&a.pop(),a.length&&a[0]===t[0]?sa(a,r,n):[]});function Ep(t,n){return t==null?"":_f.call(t,n)}function at(t){var n=t==null?0:t.length;return n?t[n-1]:r}function Sp(t,n,a){var o=t==null?0:t.length;if(!o)return-1;var c=o;return a!==r&&(c=ae(a),c=c<0?Be(o+c,0):Oe(c,o-1)),n===n?rf(t,n,c):Er(t,Hs,c,!0)}function Ip(t,n){return t&&t.length?Ao(t,ae(n)):r}var xp=oe(fl);function fl(t,n){return t&&t.length&&n&&n.length?ua(t,n):t}function Tp(t,n,a){return t&&t.length&&n&&n.length?ua(t,n,ee(a,2)):t}function Rp(t,n,a){return t&&t.length&&n&&n.length?ua(t,n,r,a):t}var Bp=Bt(function(t,n){var a=t==null?0:t.length,o=na(t,n);return Eo(t,we(n,function(c){return Ft(c,a)?+c:c}).sort(Do)),o});function Fp(t,n){var a=[];if(!(t&&t.length))return a;var o=-1,c=[],d=t.length;for(n=ee(n,3);++o<d;){var h=t[o];n(h,o,t)&&(a.push(h),c.push(o))}return Eo(t,c),a}function Ba(t){return t==null?t:Ef.call(t)}function Pp(t,n,a){var o=t==null?0:t.length;return o?(a&&typeof a!="number"&&Ue(t,n,a)?(n=0,a=o):(n=n==null?0:ae(n),a=a===r?o:ae(a)),it(t,n,a)):[]}function kp(t,n){return Gr(t,n)}function Dp(t,n,a){return pa(t,n,ee(a,2))}function Op(t,n){var a=t==null?0:t.length;if(a){var o=Gr(t,n);if(o<a&&dt(t[o],n))return o}return-1}function Lp(t,n){return Gr(t,n,!0)}function Np(t,n,a){return pa(t,n,ee(a,2),!0)}function Mp(t,n){var a=t==null?0:t.length;if(a){var o=Gr(t,n,!0)-1;if(dt(t[o],n))return o}return-1}function Up(t){return t&&t.length?Io(t):[]}function qp(t,n){return t&&t.length?Io(t,ee(n,2)):[]}function Vp(t){var n=t==null?0:t.length;return n?it(t,1,n):[]}function Wp(t,n,a){return t&&t.length?(n=a||n===r?1:ae(n),it(t,0,n<0?0:n)):[]}function Hp(t,n,a){var o=t==null?0:t.length;return o?(n=a||n===r?1:ae(n),n=o-n,it(t,n<0?0:n,o)):[]}function Gp(t,n){return t&&t.length?Jr(t,ee(n,3),!1,!0):[]}function Jp(t,n){return t&&t.length?Jr(t,ee(n,3)):[]}var jp=oe(function(t){return Qt(De(t,1,Ie,!0))}),zp=oe(function(t){var n=at(t);return Ie(n)&&(n=r),Qt(De(t,1,Ie,!0),ee(n,2))}),Qp=oe(function(t){var n=at(t);return n=typeof n=="function"?n:r,Qt(De(t,1,Ie,!0),r,n)});function Kp(t){return t&&t.length?Qt(t):[]}function Xp(t,n){return t&&t.length?Qt(t,ee(n,2)):[]}function Yp(t,n){return n=typeof n=="function"?n:r,t&&t.length?Qt(t,r,n):[]}function Fa(t){if(!(t&&t.length))return[];var n=0;return t=Ht(t,function(a){if(Ie(a))return n=Be(a.length,n),!0}),Qi(n,function(a){return we(t,Ji(a))})}function dl(t,n){if(!(t&&t.length))return[];var a=Fa(t);return n==null?a:we(a,function(o){return Je(n,r,o)})}var $p=oe(function(t,n){return Ie(t)?Zn(t,n):[]}),Zp=oe(function(t){return ma(Ht(t,Ie))}),eh=oe(function(t){var n=at(t);return Ie(n)&&(n=r),ma(Ht(t,Ie),ee(n,2))}),th=oe(function(t){var n=at(t);return n=typeof n=="function"?n:r,ma(Ht(t,Ie),r,n)}),nh=oe(Fa);function rh(t,n){return Bo(t||[],n||[],$n)}function ih(t,n){return Bo(t||[],n||[],nr)}var ah=oe(function(t){var n=t.length,a=n>1?t[n-1]:r;return a=typeof a=="function"?(t.pop(),a):r,dl(t,a)});function pl(t){var n=f(t);return n.__chain__=!0,n}function sh(t,n){return n(t),t}function ei(t,n){return n(t)}var oh=Bt(function(t){var n=t.length,a=n?t[0]:0,o=this.__wrapped__,c=function(d){return na(d,t)};return n>1||this.__actions__.length||!(o instanceof ce)||!Ft(a)?this.thru(c):(o=o.slice(a,+a+(n?1:0)),o.__actions__.push({func:ei,args:[c],thisArg:r}),new nt(o,this.__chain__).thru(function(d){return n&&!d.length&&d.push(r),d}))});function lh(){return pl(this)}function ch(){return new nt(this.value(),this.__chain__)}function uh(){this.__values__===r&&(this.__values__=xl(this.value()));var t=this.__index__>=this.__values__.length,n=t?r:this.__values__[this.__index__++];return{done:t,value:n}}function fh(){return this}function dh(t){for(var n,a=this;a instanceof Ur;){var o=sl(a);o.__index__=0,o.__values__=r,n?c.__wrapped__=o:n=o;var c=o;a=a.__wrapped__}return c.__wrapped__=t,n}function ph(){var t=this.__wrapped__;if(t instanceof ce){var n=t;return this.__actions__.length&&(n=new ce(this)),n=n.reverse(),n.__actions__.push({func:ei,args:[Ba],thisArg:r}),new nt(n,this.__chain__)}return this.thru(Ba)}function hh(){return Ro(this.__wrapped__,this.__actions__)}var mh=jr(function(t,n,a){pe.call(t,a)?++t[a]:yt(t,a,1)});function gh(t,n,a){var o=ie(t)?Vs:sd;return a&&Ue(t,n,a)&&(n=r),o(t,ee(n,3))}function vh(t,n){var a=ie(t)?Ht:fo;return a(t,ee(n,3))}var yh=qo(ol),Ch=qo(ll);function _h(t,n){return De(ti(t,n),1)}function Ah(t,n){return De(ti(t,n),j)}function wh(t,n,a){return a=a===r?1:ae(a),De(ti(t,n),a)}function hl(t,n){var a=ie(t)?je:zt;return a(t,ee(n,3))}function ml(t,n){var a=ie(t)?qu:uo;return a(t,ee(n,3))}var bh=jr(function(t,n,a){pe.call(t,a)?t[a].push(n):yt(t,a,[n])});function Eh(t,n,a,o){t=We(t)?t:Fn(t),a=a&&!o?ae(a):0;var c=t.length;return a<0&&(a=Be(c+a,0)),si(t)?a<=c&&t.indexOf(n,a)>-1:!!c&&Cn(t,n,a)>-1}var Sh=oe(function(t,n,a){var o=-1,c=typeof n=="function",d=We(t)?R(t.length):[];return zt(t,function(h){d[++o]=c?Je(n,h,a):er(h,n,a)}),d}),Ih=jr(function(t,n,a){yt(t,a,n)});function ti(t,n){var a=ie(t)?we:yo;return a(t,ee(n,3))}function xh(t,n,a,o){return t==null?[]:(ie(n)||(n=n==null?[]:[n]),a=o?r:a,ie(a)||(a=a==null?[]:[a]),wo(t,n,a))}var Th=jr(function(t,n,a){t[a?0:1].push(n)},function(){return[[],[]]});function Rh(t,n,a){var o=ie(t)?Hi:Js,c=arguments.length<3;return o(t,ee(n,4),a,c,zt)}function Bh(t,n,a){var o=ie(t)?Vu:Js,c=arguments.length<3;return o(t,ee(n,4),a,c,uo)}function Fh(t,n){var a=ie(t)?Ht:fo;return a(t,ii(ee(n,3)))}function Ph(t){var n=ie(t)?so:Ed;return n(t)}function kh(t,n,a){(a?Ue(t,n,a):n===r)?n=1:n=ae(n);var o=ie(t)?td:Sd;return o(t,n)}function Dh(t){var n=ie(t)?nd:xd;return n(t)}function Oh(t){if(t==null)return 0;if(We(t))return si(t)?An(t):t.length;var n=Le(t);return n==ot||n==lt?t.size:la(t).length}function Lh(t,n,a){var o=ie(t)?Gi:Td;return a&&Ue(t,n,a)&&(n=r),o(t,ee(n,3))}var Nh=oe(function(t,n){if(t==null)return[];var a=n.length;return a>1&&Ue(t,n[0],n[1])?n=[]:a>2&&Ue(n[0],n[1],n[2])&&(n=[n[0]]),wo(t,De(n,1),[])}),ni=vf||function(){return ke.Date.now()};function Mh(t,n){if(typeof n!="function")throw new tt(l);return t=ae(t),function(){if(--t<1)return n.apply(this,arguments)}}function gl(t,n,a){return n=a?r:n,n=t&&n==null?t.length:n,Rt(t,F,r,r,r,r,n)}function vl(t,n){var a;if(typeof n!="function")throw new tt(l);return t=ae(t),function(){return--t>0&&(a=n.apply(this,arguments)),t<=1&&(n=r),a}}var Pa=oe(function(t,n,a){var o=S;if(a.length){var c=Jt(a,Rn(Pa));o|=E}return Rt(t,o,n,a,c)}),yl=oe(function(t,n,a){var o=S|N;if(a.length){var c=Jt(a,Rn(yl));o|=E}return Rt(n,o,t,a,c)});function Cl(t,n,a){n=a?r:n;var o=Rt(t,Q,r,r,r,r,r,n);return o.placeholder=Cl.placeholder,o}function _l(t,n,a){n=a?r:n;var o=Rt(t,z,r,r,r,r,r,n);return o.placeholder=_l.placeholder,o}function Al(t,n,a){var o,c,d,h,g,_,O=0,L=!1,V=!1,J=!0;if(typeof t!="function")throw new tt(l);n=st(n)||0,be(a)&&(L=!!a.leading,V="maxWait"in a,d=V?Be(st(a.maxWait)||0,n):d,J="trailing"in a?!!a.trailing:J);function Y(xe){var pt=o,Dt=c;return o=c=r,O=xe,h=t.apply(Dt,pt),h}function te(xe){return O=xe,g=ar(le,n),L?Y(xe):h}function se(xe){var pt=xe-_,Dt=xe-O,Vl=n-pt;return V?Oe(Vl,d-Dt):Vl}function Z(xe){var pt=xe-_,Dt=xe-O;return _===r||pt>=n||pt<0||V&&Dt>=d}function le(){var xe=ni();if(Z(xe))return ue(xe);g=ar(le,se(xe))}function ue(xe){return g=r,J&&o?Y(xe):(o=c=r,h)}function Xe(){g!==r&&Fo(g),O=0,o=_=c=g=r}function qe(){return g===r?h:ue(ni())}function Ye(){var xe=ni(),pt=Z(xe);if(o=arguments,c=this,_=xe,pt){if(g===r)return te(_);if(V)return Fo(g),g=ar(le,n),Y(_)}return g===r&&(g=ar(le,n)),h}return Ye.cancel=Xe,Ye.flush=qe,Ye}var Uh=oe(function(t,n){return co(t,1,n)}),qh=oe(function(t,n,a){return co(t,st(n)||0,a)});function Vh(t){return Rt(t,M)}function ri(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new tt(l);var a=function(){var o=arguments,c=n?n.apply(this,o):o[0],d=a.cache;if(d.has(c))return d.get(c);var h=t.apply(this,o);return a.cache=d.set(c,h)||d,h};return a.cache=new(ri.Cache||Tt),a}ri.Cache=Tt;function ii(t){if(typeof t!="function")throw new tt(l);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Wh(t){return vl(2,t)}var Hh=Rd(function(t,n){n=n.length==1&&ie(n[0])?we(n[0],ze(ee())):we(De(n,1),ze(ee()));var a=n.length;return oe(function(o){for(var c=-1,d=Oe(o.length,a);++c<d;)o[c]=n[c].call(this,o[c]);return Je(t,this,o)})}),ka=oe(function(t,n){var a=Jt(n,Rn(ka));return Rt(t,E,r,n,a)}),wl=oe(function(t,n){var a=Jt(n,Rn(wl));return Rt(t,q,r,n,a)}),Gh=Bt(function(t,n){return Rt(t,w,r,r,r,n)});function Jh(t,n){if(typeof t!="function")throw new tt(l);return n=n===r?n:ae(n),oe(t,n)}function jh(t,n){if(typeof t!="function")throw new tt(l);return n=n==null?0:Be(ae(n),0),oe(function(a){var o=a[n],c=Xt(a,0,n);return o&&Gt(c,o),Je(t,this,c)})}function zh(t,n,a){var o=!0,c=!0;if(typeof t!="function")throw new tt(l);return be(a)&&(o="leading"in a?!!a.leading:o,c="trailing"in a?!!a.trailing:c),Al(t,n,{leading:o,maxWait:n,trailing:c})}function Qh(t){return gl(t,1)}function Kh(t,n){return ka(va(n),t)}function Xh(){if(!arguments.length)return[];var t=arguments[0];return ie(t)?t:[t]}function Yh(t){return rt(t,D)}function $h(t,n){return n=typeof n=="function"?n:r,rt(t,D,n)}function Zh(t){return rt(t,I|D)}function em(t,n){return n=typeof n=="function"?n:r,rt(t,I|D,n)}function tm(t,n){return n==null||lo(t,n,Fe(n))}function dt(t,n){return t===n||t!==t&&n!==n}var nm=Xr(aa),rm=Xr(function(t,n){return t>=n}),pn=mo((function(){return arguments})())?mo:function(t){return Se(t)&&pe.call(t,"callee")&&!eo.call(t,"callee")},ie=R.isArray,im=Os?ze(Os):dd;function We(t){return t!=null&&ai(t.length)&&!Pt(t)}function Ie(t){return Se(t)&&We(t)}function am(t){return t===!0||t===!1||Se(t)&&Me(t)==rn}var Yt=Cf||Ja,sm=Ls?ze(Ls):pd;function om(t){return Se(t)&&t.nodeType===1&&!sr(t)}function lm(t){if(t==null)return!0;if(We(t)&&(ie(t)||typeof t=="string"||typeof t.splice=="function"||Yt(t)||Bn(t)||pn(t)))return!t.length;var n=Le(t);if(n==ot||n==lt)return!t.size;if(ir(t))return!la(t).length;for(var a in t)if(pe.call(t,a))return!1;return!0}function cm(t,n){return tr(t,n)}function um(t,n,a){a=typeof a=="function"?a:r;var o=a?a(t,n):r;return o===r?tr(t,n,r,a):!!o}function Da(t){if(!Se(t))return!1;var n=Me(t);return n==vr||n==kc||typeof t.message=="string"&&typeof t.name=="string"&&!sr(t)}function fm(t){return typeof t=="number"&&no(t)}function Pt(t){if(!be(t))return!1;var n=Me(t);return n==yr||n==ls||n==gr||n==Oc}function bl(t){return typeof t=="number"&&t==ae(t)}function ai(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ne}function be(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function Se(t){return t!=null&&typeof t=="object"}var El=Ns?ze(Ns):md;function dm(t,n){return t===n||oa(t,n,Ea(n))}function pm(t,n,a){return a=typeof a=="function"?a:r,oa(t,n,Ea(n),a)}function hm(t){return Sl(t)&&t!=+t}function mm(t){if($d(t))throw new re(p);return go(t)}function gm(t){return t===null}function vm(t){return t==null}function Sl(t){return typeof t=="number"||Se(t)&&Me(t)==Vn}function sr(t){if(!Se(t)||Me(t)!=It)return!1;var n=Pr(t);if(n===null)return!0;var a=pe.call(n,"constructor")&&n.constructor;return typeof a=="function"&&a instanceof a&&Tr.call(a)==pf}var Oa=Ms?ze(Ms):gd;function ym(t){return bl(t)&&t>=-ne&&t<=ne}var Il=Us?ze(Us):vd;function si(t){return typeof t=="string"||!ie(t)&&Se(t)&&Me(t)==Hn}function Ke(t){return typeof t=="symbol"||Se(t)&&Me(t)==Cr}var Bn=qs?ze(qs):yd;function Cm(t){return t===r}function _m(t){return Se(t)&&Le(t)==Gn}function Am(t){return Se(t)&&Me(t)==Nc}var wm=Xr(ca),bm=Xr(function(t,n){return t<=n});function xl(t){if(!t)return[];if(We(t))return si(t)?ct(t):Ve(t);if(zn&&t[zn])return ef(t[zn]());var n=Le(t),a=n==ot?Xi:n==lt?Sr:Fn;return a(t)}function kt(t){if(!t)return t===0?t:0;if(t=st(t),t===j||t===-j){var n=t<0?-1:1;return n*Ce}return t===t?t:0}function ae(t){var n=kt(t),a=n%1;return n===n?a?n-a:n:0}function Tl(t){return t?cn(ae(t),0,Ee):0}function st(t){if(typeof t=="number")return t;if(Ke(t))return Ne;if(be(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=be(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=js(t);var a=ru.test(t);return a||au.test(t)?Nu(t.slice(2),a?2:8):nu.test(t)?Ne:+t}function Rl(t){return _t(t,He(t))}function Em(t){return t?cn(ae(t),-ne,ne):t===0?t:0}function he(t){return t==null?"":Qe(t)}var Sm=xn(function(t,n){if(ir(n)||We(n)){_t(n,Fe(n),t);return}for(var a in n)pe.call(n,a)&&$n(t,a,n[a])}),Bl=xn(function(t,n){_t(n,He(n),t)}),Fl=xn(function(t,n,a,o){_t(n,He(n),t,o)}),La=xn(function(t,n,a,o){_t(n,Fe(n),t,o)}),Im=Bt(na);function xm(t,n){var a=In(t);return n==null?a:oo(a,n)}var Tm=oe(function(t,n){t=ge(t);var a=-1,o=n.length,c=o>2?n[2]:r;for(c&&Ue(n[0],n[1],c)&&(o=1);++a<o;)for(var d=n[a],h=He(d),g=-1,_=h.length;++g<_;){var O=h[g],L=t[O];(L===r||dt(L,bn[O])&&!pe.call(t,O))&&(t[O]=d[O])}return t}),Rm=oe(function(t){return t.push(r,zo),Je(Pl,r,t)});function Bm(t,n){return Ws(t,ee(n,3),Ct)}function Fm(t,n){return Ws(t,ee(n,3),ia)}function Pm(t,n){return t==null?t:ra(t,ee(n,3),He)}function km(t,n){return t==null?t:po(t,ee(n,3),He)}function Dm(t,n){return t&&Ct(t,ee(n,3))}function Om(t,n){return t&&ia(t,ee(n,3))}function Lm(t){return t==null?[]:Wr(t,Fe(t))}function Nm(t){return t==null?[]:Wr(t,He(t))}function Na(t,n,a){var o=t==null?r:un(t,n);return o===r?a:o}function Mm(t,n){return t!=null&&Xo(t,n,ld)}function Ma(t,n){return t!=null&&Xo(t,n,cd)}var Um=Wo(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=Rr.call(n)),t[n]=a},qa(Ge)),qm=Wo(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=Rr.call(n)),pe.call(t,n)?t[n].push(a):t[n]=[a]},ee),Vm=oe(er);function Fe(t){return We(t)?ao(t):la(t)}function He(t){return We(t)?ao(t,!0):Cd(t)}function Wm(t,n){var a={};return n=ee(n,3),Ct(t,function(o,c,d){yt(a,n(o,c,d),o)}),a}function Hm(t,n){var a={};return n=ee(n,3),Ct(t,function(o,c,d){yt(a,c,n(o,c,d))}),a}var Gm=xn(function(t,n,a){Hr(t,n,a)}),Pl=xn(function(t,n,a,o){Hr(t,n,a,o)}),Jm=Bt(function(t,n){var a={};if(t==null)return a;var o=!1;n=we(n,function(d){return d=Kt(d,t),o||(o=d.length>1),d}),_t(t,wa(t),a),o&&(a=rt(a,I|B|D,qd));for(var c=n.length;c--;)ha(a,n[c]);return a});function jm(t,n){return kl(t,ii(ee(n)))}var zm=Bt(function(t,n){return t==null?{}:Ad(t,n)});function kl(t,n){if(t==null)return{};var a=we(wa(t),function(o){return[o]});return n=ee(n),bo(t,a,function(o,c){return n(o,c[0])})}function Qm(t,n,a){n=Kt(n,t);var o=-1,c=n.length;for(c||(c=1,t=r);++o<c;){var d=t==null?r:t[ft(n[o])];d===r&&(o=c,d=a),t=Pt(d)?d.call(t):d}return t}function Km(t,n,a){return t==null?t:nr(t,n,a)}function Xm(t,n,a,o){return o=typeof o=="function"?o:r,t==null?t:nr(t,n,a,o)}var Dl=Jo(Fe),Ol=Jo(He);function Ym(t,n,a){var o=ie(t),c=o||Yt(t)||Bn(t);if(n=ee(n,4),a==null){var d=t&&t.constructor;c?a=o?new d:[]:be(t)?a=Pt(d)?In(Pr(t)):{}:a={}}return(c?je:Ct)(t,function(h,g,_){return n(a,h,g,_)}),a}function $m(t,n){return t==null?!0:ha(t,n)}function Zm(t,n,a){return t==null?t:To(t,n,va(a))}function eg(t,n,a,o){return o=typeof o=="function"?o:r,t==null?t:To(t,n,va(a),o)}function Fn(t){return t==null?[]:Ki(t,Fe(t))}function tg(t){return t==null?[]:Ki(t,He(t))}function ng(t,n,a){return a===r&&(a=n,n=r),a!==r&&(a=st(a),a=a===a?a:0),n!==r&&(n=st(n),n=n===n?n:0),cn(st(t),n,a)}function rg(t,n,a){return n=kt(n),a===r?(a=n,n=0):a=kt(a),t=st(t),ud(t,n,a)}function ig(t,n,a){if(a&&typeof a!="boolean"&&Ue(t,n,a)&&(n=a=r),a===r&&(typeof n=="boolean"?(a=n,n=r):typeof t=="boolean"&&(a=t,t=r)),t===r&&n===r?(t=0,n=1):(t=kt(t),n===r?(n=t,t=0):n=kt(n)),t>n){var o=t;t=n,n=o}if(a||t%1||n%1){var c=ro();return Oe(t+c*(n-t+Lu("1e-"+((c+"").length-1))),n)}return fa(t,n)}var ag=Tn(function(t,n,a){return n=n.toLowerCase(),t+(a?Ll(n):n)});function Ll(t){return Ua(he(t).toLowerCase())}function Nl(t){return t=he(t),t&&t.replace(ou,Ku).replace(Iu,"")}function sg(t,n,a){t=he(t),n=Qe(n);var o=t.length;a=a===r?o:cn(ae(a),0,o);var c=a;return a-=n.length,a>=0&&t.slice(a,c)==n}function og(t){return t=he(t),t&&Wc.test(t)?t.replace(fs,Xu):t}function lg(t){return t=he(t),t&&Qc.test(t)?t.replace(ki,"\\$&"):t}var cg=Tn(function(t,n,a){return t+(a?"-":"")+n.toLowerCase()}),ug=Tn(function(t,n,a){return t+(a?" ":"")+n.toLowerCase()}),fg=Uo("toLowerCase");function dg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;if(!n||o>=n)return t;var c=(n-o)/2;return Kr(Lr(c),a)+t+Kr(Or(c),a)}function pg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;return n&&o<n?t+Kr(n-o,a):t}function hg(t,n,a){t=he(t),n=ae(n);var o=n?An(t):0;return n&&o<n?Kr(n-o,a)+t:t}function mg(t,n,a){return a||n==null?n=0:n&&(n=+n),bf(he(t).replace(Di,""),n||0)}function gg(t,n,a){return(a?Ue(t,n,a):n===r)?n=1:n=ae(n),da(he(t),n)}function vg(){var t=arguments,n=he(t[0]);return t.length<3?n:n.replace(t[1],t[2])}var yg=Tn(function(t,n,a){return t+(a?"_":"")+n.toLowerCase()});function Cg(t,n,a){return a&&typeof a!="number"&&Ue(t,n,a)&&(n=a=r),a=a===r?Ee:a>>>0,a?(t=he(t),t&&(typeof n=="string"||n!=null&&!Oa(n))&&(n=Qe(n),!n&&_n(t))?Xt(ct(t),0,a):t.split(n,a)):[]}var _g=Tn(function(t,n,a){return t+(a?" ":"")+Ua(n)});function Ag(t,n,a){return t=he(t),a=a==null?0:cn(ae(a),0,t.length),n=Qe(n),t.slice(a,a+n.length)==n}function wg(t,n,a){var o=f.templateSettings;a&&Ue(t,n,a)&&(n=r),t=he(t),n=La({},n,o,jo);var c=La({},n.imports,o.imports,jo),d=Fe(c),h=Ki(c,d);je(d,function(Z){if(ps.test(Z))throw new re(A)});var g,_,O=0,L=n.interpolate||_r,V="__p += '",J=Yi((n.escape||_r).source+"|"+L.source+"|"+(L===ds?tu:_r).source+"|"+(n.evaluate||_r).source+"|$","g"),Y="//# sourceURL="+(pe.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fu+"]")+`
|
|
11
|
+
`;t.replace(J,function(Z,le,ue,Xe,qe,Ye){return ue||(ue=Xe),V+=t.slice(O,Ye).replace(lu,Yu),le&&(g=!0,V+=`' +
|
|
12
|
+
__e(`+le+`) +
|
|
13
|
+
'`),qe&&(_=!0,V+=`';
|
|
14
|
+
`+qe+`;
|
|
15
|
+
__p += '`),ue&&(V+=`' +
|
|
16
|
+
((__t = (`+ue+`)) == null ? '' : __t) +
|
|
17
17
|
'`),O=Ye+Z.length,Z}),V+=`';
|
|
18
18
|
`;var te=pe.call(n,"variable")&&n.variable;if(!te)V=`with (obj) {
|
|
19
19
|
`+V+`
|
|
@@ -24,14 +24,14 @@ __p += '`),fe&&(V+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+V+`return __p
|
|
27
|
-
}`;var se=Ul(function(){return de(d,Y+"return "+V).apply(r,h)});if(se.source=V,Da(se))throw se;return se}function bg(t){return he(t).toLowerCase()}function Eg(t){return he(t).toUpperCase()}function Sg(t,n,a){if(t=he(t),t&&(a||n===r))return js(t);if(!t||!(n=Qe(n)))return t;var o=ct(t),c=ct(n),d=zs(o,c),h=Qs(o,c)+1;return Xt(o,d,h).join("")}function Ig(t,n,a){if(t=he(t),t&&(a||n===r))return t.slice(0,Xs(t)+1);if(!t||!(n=Qe(n)))return t;var o=ct(t),c=Qs(o,ct(n))+1;return Xt(o,0,c).join("")}function xg(t,n,a){if(t=he(t),t&&(a||n===r))return t.replace(Di,"");if(!t||!(n=Qe(n)))return t;var o=ct(t),c=zs(o,ct(n));return Xt(o,c).join("")}function Tg(t,n){var a=G,o=$;if(be(n)){var c="separator"in n?n.separator:c;a="length"in n?ae(n.length):a,o="omission"in n?Qe(n.omission):o}t=he(t);var d=t.length;if(_n(t)){var h=ct(t);d=h.length}if(a>=d)return t;var g=a-An(o);if(g<1)return o;var _=h?Xt(h,0,g).join(""):t.slice(0,g);if(c===r)return _+o;if(h&&(g+=_.length-g),Oa(c)){if(t.slice(g).search(c)){var O,L=_;for(c.global||(c=Yi(c.source,he(hs.exec(c))+"g")),c.lastIndex=0;O=c.exec(L);)var V=O.index;_=_.slice(0,V===r?g:V)}}else if(t.indexOf(Qe(c),g)!=g){var J=_.lastIndexOf(c);J>-1&&(_=_.slice(0,J))}return _+o}function Rg(t){return t=he(t),t&&Vc.test(t)?t.replace(us,af):t}var Bg=Tn(function(t,n,a){return t+(a?" ":"")+n.toUpperCase()}),Ua=Uo("toUpperCase");function Ml(t,n,a){return t=he(t),n=a?r:n,n===r?Zu(t)?lf(t):Gu(t):t.match(n)||[]}var Ul=oe(function(t,n){try{return Je(t,r,n)}catch(a){return Da(a)?a:new re(a)}}),Fg=Bt(function(t,n){return je(n,function(a){a=ft(a),yt(t,a,Pa(t[a],t))}),t});function Pg(t){var n=t==null?0:t.length,a=ee();return t=n?we(t,function(o){if(typeof o[1]!="function")throw new tt(l);return[a(o[0]),o[1]]}):[],oe(function(o){for(var c=-1;++c<n;){var d=t[c];if(Je(d[0],this,o))return Je(d[1],this,o)}})}function kg(t){return ad(rt(t,I))}function qa(t){return function(){return t}}function Dg(t,n){return t==null||t!==t?n:t}var Og=Vo(),Lg=Vo(!0);function He(t){return t}function Va(t){return vo(typeof t=="function"?t:rt(t,I))}function Ng(t){return Co(rt(t,I))}function Mg(t,n){return _o(t,rt(n,I))}var Ug=oe(function(t,n){return function(a){return er(a,t,n)}}),qg=oe(function(t,n){return function(a){return er(t,a,n)}});function Wa(t,n,a){var o=Be(n),c=Wr(n,o);a==null&&!(be(n)&&(c.length||!o.length))&&(a=n,n=t,t=this,c=Wr(n,Be(n)));var d=!(be(a)&&"chain"in a)||!!a.chain,h=Pt(t);return je(c,function(g){var _=n[g];t[g]=_,h&&(t.prototype[g]=function(){var O=this.__chain__;if(d||O){var L=t(this.__wrapped__),V=L.__actions__=qe(this.__actions__);return V.push({func:_,args:arguments,thisArg:t}),L.__chain__=O,L}return _.apply(t,Gt([this.value()],arguments))})}),t}function Vg(){return Pe._===this&&(Pe._=hf),this}function Ha(){}function Wg(t){return t=ae(t),oe(function(n){return Ao(n,t)})}var Hg=Ca(we),Gg=Ca(Vs),Jg=Ca(Gi);function ql(t){return Ia(t)?Ji(ft(t)):wd(t)}function jg(t){return function(n){return t==null?r:un(t,n)}}var zg=Ho(),Qg=Ho(!0);function Ga(){return[]}function Ja(){return!1}function Kg(){return{}}function Xg(){return""}function Yg(){return!0}function $g(t,n){if(t=ae(t),t<1||t>ne)return[];var a=Ee,o=De(t,Ee);n=ee(n),t-=Ee;for(var c=Qi(o,n);++a<t;)n(a);return c}function Zg(t){return ie(t)?we(t,ft):Ke(t)?[t]:qe(al(he(t)))}function ev(t){var n=++df;return he(t)+n}var tv=Qr(function(t,n){return t+n},0),nv=_a("ceil"),rv=Qr(function(t,n){return t/n},1),iv=_a("floor");function av(t){return t&&t.length?Vr(t,He,aa):r}function sv(t,n){return t&&t.length?Vr(t,ee(n,2),aa):r}function ov(t){return Gs(t,He)}function lv(t,n){return Gs(t,ee(n,2))}function cv(t){return t&&t.length?Vr(t,He,ca):r}function uv(t,n){return t&&t.length?Vr(t,ee(n,2),ca):r}var fv=Qr(function(t,n){return t*n},1),dv=_a("round"),pv=Qr(function(t,n){return t-n},0);function hv(t){return t&&t.length?zi(t,He):0}function mv(t,n){return t&&t.length?zi(t,ee(n,2)):0}return f.after=Mh,f.ary=gl,f.assign=Sm,f.assignIn=Bl,f.assignInWith=Fl,f.assignWith=La,f.at=Im,f.before=vl,f.bind=Pa,f.bindAll=Fg,f.bindKey=yl,f.castArray=Xh,f.chain=pl,f.chunk=ap,f.compact=sp,f.concat=op,f.cond=Pg,f.conforms=kg,f.constant=qa,f.countBy=mh,f.create=xm,f.curry=Cl,f.curryRight=_l,f.debounce=Al,f.defaults=Tm,f.defaultsDeep=Rm,f.defer=Uh,f.delay=qh,f.difference=lp,f.differenceBy=cp,f.differenceWith=up,f.drop=fp,f.dropRight=dp,f.dropRightWhile=pp,f.dropWhile=hp,f.fill=mp,f.filter=vh,f.flatMap=_h,f.flatMapDeep=Ah,f.flatMapDepth=wh,f.flatten=cl,f.flattenDeep=gp,f.flattenDepth=vp,f.flip=Vh,f.flow=Og,f.flowRight=Lg,f.fromPairs=yp,f.functions=Lm,f.functionsIn=Nm,f.groupBy=bh,f.initial=_p,f.intersection=Ap,f.intersectionBy=wp,f.intersectionWith=bp,f.invert=Um,f.invertBy=qm,f.invokeMap=Sh,f.iteratee=Va,f.keyBy=Ih,f.keys=Be,f.keysIn=We,f.map=ti,f.mapKeys=Wm,f.mapValues=Hm,f.matches=Ng,f.matchesProperty=Mg,f.memoize=ri,f.merge=Gm,f.mergeWith=Pl,f.method=Ug,f.methodOf=qg,f.mixin=Wa,f.negate=ii,f.nthArg=Wg,f.omit=Jm,f.omitBy=jm,f.once=Wh,f.orderBy=xh,f.over=Hg,f.overArgs=Hh,f.overEvery=Gg,f.overSome=Jg,f.partial=ka,f.partialRight=wl,f.partition=Th,f.pick=zm,f.pickBy=kl,f.property=ql,f.propertyOf=jg,f.pull=xp,f.pullAll=fl,f.pullAllBy=Tp,f.pullAllWith=Rp,f.pullAt=Bp,f.range=zg,f.rangeRight=Qg,f.rearg=Gh,f.reject=Fh,f.remove=Fp,f.rest=Jh,f.reverse=Ba,f.sampleSize=kh,f.set=Km,f.setWith=Xm,f.shuffle=Dh,f.slice=Pp,f.sortBy=Nh,f.sortedUniq=Up,f.sortedUniqBy=qp,f.split=Cg,f.spread=jh,f.tail=Vp,f.take=Wp,f.takeRight=Hp,f.takeRightWhile=Gp,f.takeWhile=Jp,f.tap=sh,f.throttle=zh,f.thru=ei,f.toArray=xl,f.toPairs=Dl,f.toPairsIn=Ol,f.toPath=Zg,f.toPlainObject=Rl,f.transform=Ym,f.unary=Qh,f.union=jp,f.unionBy=zp,f.unionWith=Qp,f.uniq=Kp,f.uniqBy=Xp,f.uniqWith=Yp,f.unset=$m,f.unzip=Fa,f.unzipWith=dl,f.update=Zm,f.updateWith=eg,f.values=Fn,f.valuesIn=tg,f.without=$p,f.words=Ml,f.wrap=Kh,f.xor=Zp,f.xorBy=eh,f.xorWith=th,f.zip=nh,f.zipObject=rh,f.zipObjectDeep=ih,f.zipWith=ah,f.entries=Dl,f.entriesIn=Ol,f.extend=Bl,f.extendWith=Fl,Wa(f,f),f.add=tv,f.attempt=Ul,f.camelCase=ag,f.capitalize=Ll,f.ceil=nv,f.clamp=ng,f.clone=Yh,f.cloneDeep=Zh,f.cloneDeepWith=em,f.cloneWith=$h,f.conformsTo=tm,f.deburr=Nl,f.defaultTo=Dg,f.divide=rv,f.endsWith=sg,f.eq=dt,f.escape=og,f.escapeRegExp=lg,f.every=gh,f.find=yh,f.findIndex=ol,f.findKey=Bm,f.findLast=Ch,f.findLastIndex=ll,f.findLastKey=Fm,f.floor=iv,f.forEach=hl,f.forEachRight=ml,f.forIn=Pm,f.forInRight=km,f.forOwn=Dm,f.forOwnRight=Om,f.get=Na,f.gt=nm,f.gte=rm,f.has=Mm,f.hasIn=Ma,f.head=ul,f.identity=He,f.includes=Eh,f.indexOf=Cp,f.inRange=rg,f.invoke=Vm,f.isArguments=pn,f.isArray=ie,f.isArrayBuffer=im,f.isArrayLike=Ve,f.isArrayLikeObject=Ie,f.isBoolean=am,f.isBuffer=Yt,f.isDate=sm,f.isElement=om,f.isEmpty=lm,f.isEqual=cm,f.isEqualWith=um,f.isError=Da,f.isFinite=fm,f.isFunction=Pt,f.isInteger=bl,f.isLength=ai,f.isMap=El,f.isMatch=dm,f.isMatchWith=pm,f.isNaN=hm,f.isNative=mm,f.isNil=vm,f.isNull=gm,f.isNumber=Sl,f.isObject=be,f.isObjectLike=Se,f.isPlainObject=sr,f.isRegExp=Oa,f.isSafeInteger=ym,f.isSet=Il,f.isString=si,f.isSymbol=Ke,f.isTypedArray=Bn,f.isUndefined=Cm,f.isWeakMap=_m,f.isWeakSet=Am,f.join=Ep,f.kebabCase=cg,f.last=at,f.lastIndexOf=Sp,f.lowerCase=ug,f.lowerFirst=fg,f.lt=wm,f.lte=bm,f.max=av,f.maxBy=sv,f.mean=ov,f.meanBy=lv,f.min=cv,f.minBy=uv,f.stubArray=Ga,f.stubFalse=Ja,f.stubObject=Kg,f.stubString=Xg,f.stubTrue=Yg,f.multiply=fv,f.nth=Ip,f.noConflict=Vg,f.noop=Ha,f.now=ni,f.pad=dg,f.padEnd=pg,f.padStart=hg,f.parseInt=mg,f.random=ig,f.reduce=Rh,f.reduceRight=Bh,f.repeat=gg,f.replace=vg,f.result=Qm,f.round=dv,f.runInContext=y,f.sample=Ph,f.size=Oh,f.snakeCase=yg,f.some=Lh,f.sortedIndex=kp,f.sortedIndexBy=Dp,f.sortedIndexOf=Op,f.sortedLastIndex=Lp,f.sortedLastIndexBy=Np,f.sortedLastIndexOf=Mp,f.startCase=_g,f.startsWith=Ag,f.subtract=pv,f.sum=hv,f.sumBy=mv,f.template=wg,f.times=$g,f.toFinite=kt,f.toInteger=ae,f.toLength=Tl,f.toLower=bg,f.toNumber=st,f.toSafeInteger=Em,f.toString=he,f.toUpper=Eg,f.trim=Sg,f.trimEnd=Ig,f.trimStart=xg,f.truncate=Tg,f.unescape=Rg,f.uniqueId=ev,f.upperCase=Bg,f.upperFirst=Ua,f.each=hl,f.eachRight=ml,f.first=ul,Wa(f,(function(){var t={};return Ct(f,function(n,a){pe.call(f.prototype,a)||(t[a]=n)}),t})(),{chain:!1}),f.VERSION=s,je(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){f[t].placeholder=f}),je(["drop","take"],function(t,n){ue.prototype[t]=function(a){a=a===r?1:Re(ae(a),0);var o=this.__filtered__&&!n?new ue(this):this.clone();return o.__filtered__?o.__takeCount__=De(a,o.__takeCount__):o.__views__.push({size:De(a,Ee),type:t+(o.__dir__<0?"Right":"")}),o},ue.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),je(["filter","map","takeWhile"],function(t,n){var a=n+1,o=a==Ge||a==X;ue.prototype[t]=function(c){var d=this.clone();return d.__iteratees__.push({iteratee:ee(c,3),type:a}),d.__filtered__=d.__filtered__||o,d}}),je(["head","last"],function(t,n){var a="take"+(n?"Right":"");ue.prototype[t]=function(){return this[a](1).value()[0]}}),je(["initial","tail"],function(t,n){var a="drop"+(n?"":"Right");ue.prototype[t]=function(){return this.__filtered__?new ue(this):this[a](1)}}),ue.prototype.compact=function(){return this.filter(He)},ue.prototype.find=function(t){return this.filter(t).head()},ue.prototype.findLast=function(t){return this.reverse().find(t)},ue.prototype.invokeMap=oe(function(t,n){return typeof t=="function"?new ue(this):this.map(function(a){return er(a,t,n)})}),ue.prototype.reject=function(t){return this.filter(ii(ee(t)))},ue.prototype.slice=function(t,n){t=ae(t);var a=this;return a.__filtered__&&(t>0||n<0)?new ue(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==r&&(n=ae(n),a=n<0?a.dropRight(-n):a.take(n-t)),a)},ue.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ue.prototype.toArray=function(){return this.take(Ee)},Ct(ue.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),c=f[o?"take"+(n=="last"?"Right":""):n],d=o||/^find/.test(n);c&&(f.prototype[n]=function(){var h=this.__wrapped__,g=o?[1]:arguments,_=h instanceof ue,O=g[0],L=_||ie(h),V=function(ce){var fe=c.apply(f,Gt([ce],g));return o&&J?fe[0]:fe};L&&a&&typeof O=="function"&&O.length!=1&&(_=L=!1);var J=this.__chain__,Y=!!this.__actions__.length,te=d&&!J,se=_&&!Y;if(!d&&L){h=se?h:new ue(this);var Z=t.apply(h,g);return Z.__actions__.push({func:ei,args:[V],thisArg:r}),new nt(Z,J)}return te&&se?t.apply(this,g):(Z=this.thru(V),te?o?Z.value()[0]:Z.value():Z)})}),je(["pop","push","shift","sort","splice","unshift"],function(t){var n=Ir[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);f.prototype[t]=function(){var c=arguments;if(o&&!this.__chain__){var d=this.value();return n.apply(ie(d)?d:[],c)}return this[a](function(h){return n.apply(ie(h)?h:[],c)})}}),Ct(ue.prototype,function(t,n){var a=f[n];if(a){var o=a.name+"";pe.call(Sn,o)||(Sn[o]=[]),Sn[o].push({name:n,func:a})}}),Sn[zr(r,N).name]=[{name:"wrapper",func:r}],ue.prototype.clone=Bf,ue.prototype.reverse=Ff,ue.prototype.value=Pf,f.prototype.at=oh,f.prototype.chain=lh,f.prototype.commit=ch,f.prototype.next=uh,f.prototype.plant=dh,f.prototype.reverse=ph,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=hh,f.prototype.first=f.prototype.head,zn&&(f.prototype[zn]=fh),f}),wn=cf();an?((an.exports=wn)._=wn,qi._=wn):Pe._=wn}).call(xy)})(cr,cr.exports)),cr.exports}var Ry=Ty();const By={name:"ChineseCompanySearch",components:{ElSelect:U.Select,ElOption:U.Option,ElInput:U.Input},props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},city:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1}},emits:["input","update:useKq","update:kqCode","update:kqInfo","change"],data(){return{loading:!1,options:[],isDisabled:!1}},computed:{isEn(){return b.getIsEn()},companyNameValue:{get(){return this.companyName},set(i){this.$emit("input",i)}}},created(){this.fetchOptionsDebounced=Ry.debounce(i=>{var r;console.log("🍉 ~ index.vue:119 ~ this.city:",this.city);const e={current:1,size:50,compName:i,cityName:((r=this.city)==null?void 0:r.nameCn)+"市"};b.getCompanyOptionApi(e).then(s=>{var u;this.options=((u=s.data.data.records)==null?void 0:u.map(p=>({value:p.nameCn,code:p.kqId,...p})))||[]}).catch(s=>{console.error("获取公司选项失败:",s),this.options=[]}).finally(()=>{this.loading=!1})},800)},watch:{countryId(){this.resetKq()}},beforeDestroy(){this.fetchOptionsDebounced.cancel()},methods:{handleRemoteSearch(i){i?(this.loading=!0,this.fetchOptionsDebounced(i)):this.options=[]},handleSelectChange(i){const e=this.options.find(r=>r.value===i);e?(this.$emit("update:useKq",!0),this.$emit("update:kqCode",e.code),this.$emit("update:kqInfo",e)):(this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("update:kqInfo",{})),this.$emit("change",e)},handleChange(i){this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("change",i)},resetKq(){this.$emit("input",""),this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("update:kqInfo",{}),this.options=[]}}};var Fy=function(){var e=this,r=e._self._c;return r("div",{staticClass:"global-company-input"},[[1].includes(Number(e.countryId))?r("ElSelect",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":e.allowCreate,"default-first-option":e.defaultFirstOption,"remote-method":e.handleRemoteSearch,loading:e.loading,disabled:e.isDisabled||e.disabled,placeholder:e.isEn?"Company Name in Chinese":"请输入您的公司中文名称","popper-class":"company-search dialog-join-us"},on:{change:e.handleSelectChange},model:{value:e.companyNameValue,callback:function(s){e.companyNameValue=s},expression:"companyNameValue"}},[r("template",{slot:"prefix"},[e._t("prefix")],2),e._l(e.options,function(s){return r("ElOption",{key:s.code,attrs:{label:s.value,value:s.value}},[r("div",{staticClass:"company-option-item"},[r("span",[e._v(e._s(s.value))])])])})],2):r("ElInput",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled||e.disabled,placeholder:e.isEn?"Company name in English":"请输入您的公司英文名称",maxlength:"200"},on:{change:e.handleChange},model:{value:e.companyNameValue,callback:function(s){e.companyNameValue=s},expression:"companyNameValue"}},[r("template",{slot:"prepend"},[e._t("prefix")],2)],2)],1)},Py=[],ky=me(By,Fy,Py,!1,null,"d1108b76");const _i=ky.exports,Dy=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"}));var Oy=typeof global=="object"&&global&&global.Object===Object&&global,Ly=typeof self=="object"&&self&&self.Object===Object&&self,vc=Oy||Ly||Function("return this")(),di=vc.Symbol,yc=Object.prototype,Ny=yc.hasOwnProperty,My=yc.toString,or=di?di.toStringTag:void 0;function Uy(i){var e=Ny.call(i,or),r=i[or];try{i[or]=void 0;var s=!0}catch{}var u=My.call(i);return s&&(e?i[or]=r:delete i[or]),u}var qy=Object.prototype,Vy=qy.toString;function Wy(i){return Vy.call(i)}var Hy="[object Null]",Gy="[object Undefined]",Yl=di?di.toStringTag:void 0;function Jy(i){return i==null?i===void 0?Gy:Hy:Yl&&Yl in Object(i)?Uy(i):Wy(i)}function jy(i){return i!=null&&typeof i=="object"}var zy="[object Symbol]";function Qy(i){return typeof i=="symbol"||jy(i)&&Jy(i)==zy}var Ky=/\s/;function Xy(i){for(var e=i.length;e--&&Ky.test(i.charAt(e)););return e}var Yy=/^\s+/;function $y(i){return i&&i.slice(0,Xy(i)+1).replace(Yy,"")}function es(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}var $l=NaN,Zy=/^[-+]0x[0-9a-f]+$/i,e0=/^0b[01]+$/i,t0=/^0o[0-7]+$/i,n0=parseInt;function Zl(i){if(typeof i=="number")return i;if(Qy(i))return $l;if(es(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=es(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=$y(i);var r=e0.test(i);return r||t0.test(i)?n0(i.slice(2),r?2:8):Zy.test(i)?$l:+i}var Ka=function(){return vc.Date.now()},r0="Expected a function",i0=Math.max,a0=Math.min;function s0(i,e,r){var s,u,p,l,m,A,v=0,x=!1,T=!1,I=!0;if(typeof i!="function")throw new TypeError(r0);e=Zl(e)||0,es(r)&&(x=!0,T="maxWait"in r,p=T?i0(Zl(r.maxWait)||0,e):p,I="trailing"in r?!1:I);function B(E){var q=s,F=u;return s=u=void 0,v=E,l=i.apply(F,q),l}function D(E){return v=E,m=setTimeout(S,e),x?B(E):l}function W(E){var q=E-A,F=E-v,w=e-q;return T?a0(w,p-F):w}function k(E){var q=E-A,F=E-v;return A===void 0||q>=e||q<0||T&&F>=p}function S(){var E=Ka();if(k(E))return N(E);m=setTimeout(S,W(E))}function N(E){return m=void 0,I&&s?B(E):(s=u=void 0,l)}function H(){m!==void 0&&clearTimeout(m),v=0,s=A=u=m=void 0}function Q(){return m===void 0?l:N(Ka())}function z(){var E=Ka(),q=k(E);if(s=arguments,u=this,A=E,q){if(m===void 0)return D(A);if(T)return clearTimeout(m),m=setTimeout(S,e),B(A)}return m===void 0&&(m=setTimeout(S,e)),l}return z.cancel=H,z.flush=Q,z}const o0={name:"GoogleInput",components:{ElInput:U.Input},inheritAttrs:!1,props:{placeholder:{type:String,default:""},value:{type:[String,Number],default:""}},emits:["input","blur","focus"],data(){return{isFocus:!1,autofillTimer:null}},computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||this.value!==null&&this.value!==""}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeDestroy(){this.clearAutofillTimer()},methods:{focusInput(){var i,e;(e=(i=this.$refs.googleInput)==null?void 0:i.focus)==null||e.call(i)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(i){var e,r;try{const s=(r=(e=this.$refs.googleInput)==null?void 0:e.$el)==null?void 0:r.querySelector("input");if(!s)return;if(window.getComputedStyle(s).getPropertyValue("background-color")==="rgb(232, 240, 254)"){this.isFocus=!0;return}i<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(i+1)},100))}catch(s){console.error("Autofill detection error:",s)}},handleInput(i){this.$emit("input",i)},localBlur(i){this.isFocus=!1,this.$emit("blur",i)},localFocus(i){this.isFocus=!0,this.$emit("focus",i)}}};var l0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"google-input",class:{"is-focus":e.shouldFloat,"is-have-prepend":e.isHavePrepend}},[r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"text",name:"fakeUsername",autocomplete:"on"}}),r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"password",name:"fakePassword",autocomplete:"new-password"}}),r("div",{staticClass:"google-input-wrap"},[e.isHavePrepend?r("div",{staticClass:"google-input-wrap-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"google-input-wrap-input"},[r("el-input",e._g(e._b({ref:"googleInput",attrs:{value:e.value},scopedSlots:e._u([{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}],null,!0)},"el-input",e.$attrs,!1),{input:e.handleInput,blur:e.localBlur,focus:e.localFocus})),r("p",{staticClass:"google-input-wrap-input-placeholder",on:{click:e.focusInput}},[e._v(" "+e._s(e.placeholder)+" ")])],1)])])},c0=[],u0=me(o0,l0,c0,!1,null,"10ef665c");const Vt=u0.exports,f0=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"})),d0={name:"JcFloatInput",components:{ElInput:U.Input},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},value:{type:[String,Number],default:""}},emits:["input","blur","focus"],data(){return{isFocus:!1,autofillTimer:null}},computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeDestroy(){this.clearAutofillTimer()},methods:{focusInput(){var i,e;(e=(i=this.$refs.googleInput)==null?void 0:i.focus)==null||e.call(i)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(i){var e,r;try{const s=(r=(e=this.$refs.googleInput)==null?void 0:e.$el)==null?void 0:r.querySelector("input");if(!s)return;if(window.getComputedStyle(s).getPropertyValue("background-color")==="rgb(232, 240, 254)"){this.isFocus=!0;return}i<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(i+1)},100))}catch(s){console.error("Autofill detection error:",s)}},handleInput(i){this.$emit("input",i)},localBlur(i){this.isFocus=!1,this.$emit("blur",i)},localFocus(i){this.isFocus=!0,this.$emit("focus",i)}}};var p0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"google-input",class:{"is-focus":e.shouldFloat,"is-have-prepend":e.isHavePrepend}},[r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"text",name:"fakeUsername",autocomplete:"on"}}),r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"password",name:"fakePassword",autocomplete:"new-password"}}),r("div",{staticClass:"google-input-wrap"},[e.isHavePrepend?r("div",{staticClass:"google-input-wrap-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"google-input-wrap-input"},[r("el-input",e._g(e._b({ref:"googleInput",attrs:{value:e.value,placeholder:e.placeholder},scopedSlots:e._u([{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}],null,!0)},"el-input",e.$attrs,!1),{input:e.handleInput,blur:e.localBlur,focus:e.localFocus})),r("p",{staticClass:"google-input-wrap-input-placeholder",on:{click:e.focusInput}},[e._v(" "+e._s(e.currentLabel)+" ")])],1)])])},h0=[],m0=me(d0,p0,h0,!1,null,"1637a5e6");const Un=m0.exports,g0=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"}));let v0="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",y0=(i=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(i|=0));for(;i--;)e+=v0[r[i]&63];return e};const C0={name:"JcVerifySlide",props:{visible:{type:Boolean,default:!1},captchaType:{type:String,default:"blockPuzzle"},mode:{type:String,default:"pop"},vSpace:{type:Number,default:30},explain:{type:String,default:""},lang:{type:String,default:""},imgSize:{type:Object,default:()=>({width:"310px",height:"155px"})},barSize:{type:Object,default:()=>({width:"310px",height:"40px"})},defaultImg:{type:String,default:""}},data(){return{secretKey:"",passFlag:!1,backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:0,endMoveTime:0,startLeft:0,tipWords:"",finishText:"",setSize:{imgHeight:"155px",imgWidth:"340px"},moveBlockLeft:"0px",leftBarWidth:"40px",moveBlockBackgroundColor:"#fff",leftBarBorderColor:"#e4e7eb",iconColor:"#4b4b4b",iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:"",currentBarHeight:40,loading:!0}},computed:{isEn(){var i,e,r,s,u,p;if(this.lang)return this.lang==="en"||this.lang==="en-US";try{if(typeof useCookie=="function"){const l=(i=useCookie("jc-language"))==null?void 0:i.value;if(l)return/^en(-US)?$/.test(l)}}catch{}if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}try{if(typeof useNuxtApp=="function"){const l=useNuxtApp(),m=((p=(u=(s=(r=(e=l==null?void 0:l.ssrContext)==null?void 0:e.event)==null?void 0:r.node)==null?void 0:s.req)==null?void 0:u.headers)==null?void 0:p.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(m)}}catch{}return!1},showBox(){return this.mode==="pop"?this.visible:!0},barExplain(){return this.isEnd?"":this.isEn?"Swipe right to complete the picture puzzle":this.explain||"向右滑动完成验证"},subBlockStyle(){const e=-(parseInt(this.setSize.imgHeight)+this.vSpace+1);return{width:Math.floor(parseInt(this.setSize.imgWidth)*47/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(i){i&&this.$nextTick(()=>{this.handleResize(),this.refresh()})}},mounted(){this.initUuid(),this.handleResize(),window.addEventListener("resize",this.handleResize),window.addEventListener("touchmove",this.move,{passive:!1}),window.addEventListener("mousemove",this.move),window.addEventListener("touchend",this.end),window.addEventListener("mouseup",this.end)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("touchmove",this.move,{passive:!1}),window.removeEventListener("mousemove",this.move),window.removeEventListener("touchend",this.end),window.removeEventListener("mouseup",this.end)},methods:{handleImageLoaded(){this.loading=!1},initUuid(){localStorage.getItem("slider")||localStorage.setItem("slider","slider-"+y0())},aesEncrypt(i,e="XwKsGlMcdPMEhR1B"){const r=ht.enc.Utf8.parse(e),s=ht.enc.Utf8.parse(i);return ht.AES.encrypt(s,r,{mode:ht.mode.ECB,padding:ht.pad.Pkcs7}).toString()},handleResize(){const i=window.innerWidth;let e=340;i<400?(e=i-60,this.currentBarHeight=44):(e=340,this.currentBarHeight=40),this.setSize.imgWidth=e+"px",this.setSize.imgHeight=e/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(i){if(this.isEnd)return;const e=i||window.event,r=e.touches?e.touches[0].pageX:e.clientX,s=this.$refs.barArea;this.startLeft=Math.floor(r-s.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(i){if(!this.status||this.isEnd)return;const e=i||window.event,r=e.touches?e.touches[0].pageX:e.clientX,s=this.$refs.barArea;let u=r-s.getBoundingClientRect().left-this.startLeft;const p=s.offsetWidth-this.currentBarHeight;u<=0&&(u=0),u>=p&&(u=p),this.moveBlockLeft=u+"px",this.leftBarWidth=u+this.currentBarHeight+"px",e.cancelable&&e.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let i=parseInt(this.moveBlockLeft.replace("px",""));i=i*310/parseInt(this.setSize.imgWidth);const e={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:i,y:5}),this.secretKey):JSON.stringify({x:i,y:5}),uuid:this.backToken};b.slideCheckApi(e).then(r=>{r.data.code===0?this.handleSuccess(r):this.handleError()}).catch(()=>this.handleError())},handleSuccess(i){this.endMoveTime-this.startMoveTime,this.moveBlockBackgroundColor="#52c41a",this.iconClass="icon-check",this.isEnd=!0,this.passFlag=!0,this.tipWords=`${((this.endMoveTime-this.startMoveTime)/1e3).toFixed(2)}s `+(this.isEn?"verified successfully":"验证成功"),setTimeout(()=>{this.closeBox(),this.$emit("success",{uuid:i.data.data.uuid,code:i.data.data.code})},800)},handleError(){this.moveBlockBackgroundColor="#ff4d4f",this.iconClass="icon-close",this.passFlag=!1,this.tipWords=this.isEn?"verification failed":"验证失败",setTimeout(()=>{this.refresh(),this.tipWords=""},1e3)},refresh(){this.loading=!0,this.transitionLeft="left 0.3s",this.transitionWidth="width 0.3s",this.moveBlockLeft="0px",this.leftBarWidth=this.currentBarHeight+"px",this.moveBlockBackgroundColor="#fff",this.iconColor="#4b4b4b",this.iconClass="icon-right",this.isEnd=!1,this.tipWords="",this.getPicture()},getPicture(){this.loading=!0,b.slideGetApi({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(i=>{i.data.code===0?(this.backImgBase=i.data.data.originalImageBase64,this.blockBackImgBase=i.data.data.jigsawImageBase64,this.backToken=i.data.data.uuid,this.secretKey=i.data.data.secretKey):this.loading=!1}).catch(()=>{this.loading=!1})},closeBox(){this.$emit("update:visible",!1)}}};var _0=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.showBox,expression:"showBox"}],class:e.mode==="pop"?"captcha-mask":"captcha-relative-wrapper"},[r("div",{class:e.mode==="pop"?"auth-captcha-box":"",style:{width:e.mode==="pop"?e.setSize.imgWidth+"40px":"100%","max-width":"100%"}},[e.mode==="pop"?r("div",{staticClass:"auth-captcha-box-top"},[r("span",{staticClass:"auth-captcha-title"},[e._v(e._s(e.isEn?"please finish the security verification":"请完成安全验证"))]),r("span",{staticClass:"auth-captcha-box-close",on:{click:e.closeBox}},[e._v(" × ")])]):e._e(),r("div",{staticClass:"auth-captcha-box-bottom",style:{padding:e.mode==="pop"?"15px":"0"}},[r("div",{staticClass:"captcha-wrapper",staticStyle:{position:"relative"}},[e.captchaType==="blockPuzzle"?r("div",{staticClass:"auth-captcha-img-out",style:{height:parseInt(e.setSize.imgHeight)+e.vSpace+"px"}},[r("div",{staticClass:"auth-captcha-img-panel",style:{width:e.setSize.imgWidth,height:e.setSize.imgHeight}},[r("img",{staticClass:"main-img",attrs:{src:e.backImgBase?"data:image/png;base64,"+e.backImgBase:e.defaultImg,alt:"captcha"},on:{load:e.handleImageLoaded}}),e.loading?r("div",{staticClass:"auth-captcha-loading"},[r("div",{staticClass:"loading-icon"}),r("p",{staticClass:"loading-text"},[e._v(" "+e._s(e.isEn?"Loading...":"加载中...")+" ")])]):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showRefresh,expression:"showRefresh"}],staticClass:"auth-captcha-refresh",on:{click:e.refresh}},[r("svg",{staticClass:"icon",attrs:{t:"1767753956986",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"}},[r("path",{attrs:{d:"M894.481158 505.727133c0 49.589418-9.711176 97.705276-28.867468 143.007041-18.501376 43.74634-44.98454 83.031065-78.712713 116.759237-33.728172 33.728172-73.012897 60.211337-116.759237 78.712713-45.311998 19.156292-93.417623 28.877701-143.007041 28.877701s-97.695043-9.721409-142.996808-28.877701c-43.756573-18.501376-83.031065-44.98454-116.76947-78.712713-33.728172-33.728172-60.211337-73.012897-78.712713-116.759237-19.156292-45.301765-28.867468-93.417623-28.867468-143.007041 0-49.579185 9.711176-97.695043 28.867468-142.996808 18.501376-43.74634 44.98454-83.031065 78.712713-116.759237 33.738405-33.728172 73.012897-60.211337 116.76947-78.712713 45.301765-19.166525 93.40739-28.877701 142.996808-28.877701 52.925397 0 104.008842 11.010775 151.827941 32.745798 46.192042 20.977777 86.909395 50.79692 121.016191 88.608084 4.389984 4.860704 8.646937 9.854439 12.781094 14.97097l0-136.263453c0-11.307533 9.168824-20.466124 20.466124-20.466124 11.307533 0 20.466124 9.15859 20.466124 20.466124l0 183.64253c0 5.433756-2.148943 10.632151-5.986341 14.46955-3.847631 3.837398-9.046027 5.996574-14.479783 5.996574l-183.64253-0.020466c-11.307533 0-20.466124-9.168824-20.466124-20.466124 0-11.307533 9.168824-20.466124 20.466124-20.466124l132.293025 0.020466c-3.960195-4.952802-8.063653-9.782807-12.289907-14.479783-30.320563-33.605376-66.514903-60.098773-107.549481-78.753645-42.467207-19.289322-87.850837-29.072129-134.902456-29.072129-87.195921 0-169.172981 33.9533-230.816946 95.597265-61.654198 61.654198-95.597265 143.621025-95.597265 230.816946s33.943067 169.172981 95.597265 230.816946c61.643965 61.654198 143.621025 95.607498 230.816946 95.607498s169.172981-33.9533 230.816946-95.607498c61.654198-61.643965 95.597265-143.621025 95.597265-230.816946 0-11.2973 9.168824-20.466124 20.466124-20.466124C885.322567 485.261009 894.481158 494.429833 894.481158 505.727133z","p-id":"2524"}})])]),r("transition",{attrs:{name:"tips-fade"}},[e.tipWords?r("div",{class:["auth-captcha-tips",e.passFlag?"suc-bg":"err-bg"]},[e._v(" "+e._s(e.tipWords)+" ")]):e._e()])],1)]):e._e(),r("div",{ref:"barArea",staticClass:"auth-captcha-bar-area",style:{width:e.setSize.imgWidth,height:e.currentBarHeight+"px",lineHeight:e.currentBarHeight+"px"}},[r("span",{staticClass:"auth-captcha-msg"},[e._v(e._s(e.barExplain))]),r("div",{staticClass:"auth-captcha-left-bar",style:{width:e.leftBarWidth,height:e.currentBarHeight+"px",borderColor:e.leftBarBorderColor,transition:e.transitionWidth}},[r("span",{staticClass:"auth-captcha-msg",domProps:{textContent:e._s(e.finishText)}}),r("div",{staticClass:"auth-captcha-move-block",style:{width:e.currentBarHeight+"px",height:e.currentBarHeight-2+"px",backgroundColor:e.moveBlockBackgroundColor,left:e.moveBlockLeft,transition:e.transitionLeft},on:{mousedown:e.start,touchstart:function(s){return s.preventDefault(),e.start.apply(null,arguments)}}},[r("i",{class:["auth-captcha-icon iconfont",e.iconClass],style:{color:e.iconColor}}),e.captchaType==="blockPuzzle"?r("div",{staticClass:"auth-captcha-sub-block",style:e.subBlockStyle},[e.blockBackImgBase?r("img",{staticClass:"sub-img",attrs:{src:"data:image/png;base64,"+e.blockBackImgBase}}):e._e()]):e._e()])])])])])])])},A0=[],w0=me(C0,_0,A0,!1,null,"ce1b7e38");const gn=w0.exports,b0=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"})),E0={name:"CodeInput",components:{GoogleInput:Vt,JcFloatInput:Un,JcVerifySlide:gn},props:{value:String,placeholder:String,ready:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duration:{type:Number,default:60},formTypeColor:{type:String,default:"1"},isEn:Boolean},emits:["input","send"],data(){return{isCounting:!1,countdown:0,timer:null,captchaVisible:!1}},computed:{statusClass(){return{1:"org",2:"lightBlue",4:"darkOrange"}[this.formTypeColor]||"darkBlue"},btnText(){return this.isCounting?`${this.countdown}s`:this.isEn?"Send Code":"发送验证码"}},methods:{handleSend:s0(function(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},500,{leading:!0,trailing:!1}),handleCaptchaSuccess(i){this.$emit("send",{captchaData:i,startTimer:this.startTimer.bind(this)})},startTimer(){this.isCounting||(this.isCounting=!0,this.countdown=this.duration,this.timer=setInterval(()=>{this.countdown--,this.countdown<=0&&this.stopTimer()},1e3))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null),this.isCounting=!1,this.countdown=0}},beforeDestroy(){var i,e;this.stopTimer(),(e=(i=this.handleSend).cancel)==null||e.call(i)}};var S0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"code-input-container"},[r(e.showIcon?"JcFloatInput":"GoogleInput",{tag:"component",staticClass:"verify-code-input",attrs:{value:e.value,label:e.placeholder,placeholder:e.placeholder,autocomplete:"off",maxlength:"6"},on:{input:function(s){return e.$emit("input",s)}},scopedSlots:e._u([e.showIcon?{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}:null,{key:"suffix",fn:function(){return[r("a",{staticClass:"send-code-btn",class:[e.statusClass,{"is-disabled":e.disabled||e.isCounting||!e.ready}],on:{click:e.handleSend}},[r("span",{class:e.isCounting||!e.ready?"disabled-color":"obtain-color"},[e._v(" "+e._s(e.btnText)+" ")])])]},proxy:!0}],null,!0)}),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},I0=[],x0=me(E0,S0,I0,!1,null,"c6dda8f5");const nn=x0.exports,T0=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),R0={components:{[U.Dialog.name]:U.Dialog,[U.Form.name]:U.Form,[U.FormItem.name]:U.FormItem,[U.Input.name]:U.Input,[U.Button.name]:U.Button,[U.Checkbox.name]:U.Checkbox,[U.Row.name]:U.Row,[U.Col.name]:U.Col},data(){return{isVisible:!1,formData:{city:"",company:"",email:"",phone:"",name:"",agreement:!1},formRules:{city:[{required:!0,message:"请输入所在地城市",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"请输入有效的邮箱地址",trigger:"blur"}],agreement:[{validator:(i,e,r)=>{e?r():r(new Error("请同意隐私政策"))},trigger:"change"}]}}},mounted(){b.emitter.on(b.MODAL_ACTION.Open,this.handleOpen)},beforeDestroy(){b.emitter.off(b.MODAL_ACTION.Open,this.handleOpen)},methods:{handleOpen(){console.log("🍉 ~ GlobalModal.vue:150 ~ methods.handleOpen:",this.handleOpen),this.isVisible=!0},closeModal(){this.isVisible=!1,b.emitter.emit(b.MODAL_ACTION.Close),this.$refs.formRef.resetFields()},handleSubmit(){this.$refs.formRef.validate(i=>{i&&(b.emitter.emit(b.MODAL_ACTION.Submit,{...this.formData}),this.closeModal())})}}};var B0=function(){var e=this,r=e._self._c;return r("el-dialog",{attrs:{visible:e.isVisible,"before-close":e.closeModal,"show-close":!1,"close-on-click-modal":!0,width:"500px","custom-class":"global-modal-custom"},on:{"update:visible":function(s){e.isVisible=s}}},[r("div",{staticClass:"global-modal-header-custom",attrs:{slot:"title"},slot:"title"},[r("h2",[e._v("即刻链接全球货代")]),r("el-button",{staticClass:"close-button-custom",attrs:{type:"text"},on:{click:e.closeModal}},[r("span",{staticStyle:{"font-size":"2rem"}},[e._v("×")])])],1),r("div",{staticClass:"global-modal-body-custom"},[r("el-form",{ref:"formRef",attrs:{model:e.formData,rules:e.formRules,"label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所在地(城市)",prop:"city"}},[r("el-input",{attrs:{placeholder:"请输入城市"},model:{value:e.formData.city,callback:function(s){e.$set(e.formData,"city",s)},expression:"formData.city"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"公司名称",prop:"company"}},[r("el-input",{attrs:{placeholder:"请输入公司名称"},model:{value:e.formData.company,callback:function(s){e.$set(e.formData,"company",s)},expression:"formData.company"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[r("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.formData.email,callback:function(s){e.$set(e.formData,"email",s)},expression:"formData.email"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"电话",prop:"phone"}},[r("el-input",{attrs:{placeholder:"请输入电话"},model:{value:e.formData.phone,callback:function(s){e.$set(e.formData,"phone",s)},expression:"formData.phone"}})],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入您的全名"},model:{value:e.formData.name,callback:function(s){e.$set(e.formData,"name",s)},expression:"formData.name"}})],1)],1)],1),r("el-form-item",{staticClass:"agreement-item",attrs:{prop:"agreement"}},[r("el-checkbox",{model:{value:e.formData.agreement,callback:function(s){e.$set(e.formData,"agreement",s)},expression:"formData.agreement"}},[e._v("我同意")]),r("a",{staticClass:"privacy-link",attrs:{href:"#"}},[e._v("隐私政策")])],1)],1)],1),r("div",{staticClass:"global-modal-footer-custom",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{staticClass:"submit-button-custom",attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 加入会员 ")])],1)])},F0=[],P0=me(R0,B0,F0,!1,null,null);const Cc=P0.exports,k0=Object.freeze(Object.defineProperty({__proto__:null,default:Cc},Symbol.toStringTag,{value:"Module"})),D0=U.Select,O0=U.Option;function L0(i,e=300){let r=null;return(...s)=>{r&&clearTimeout(r),r=setTimeout(()=>{i(...s)},e)}}const N0=C.defineComponent({name:"JcCarrierSearch",components:{"el-select":D0,"el-option":O0},model:{prop:"value",event:"input"},props:{value:{type:[String,Number,Array],default:void 0},modelValue:{type:[String,Number,Array],default:void 0},lang:{type:String,default:""},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},reportType:{type:String,default:"carrier"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},showApplyData:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.ref(),s=C.computed(()=>i.modelValue!==void 0?i.modelValue:i.value),u=C.computed(()=>{var E,q,F,w,M,G;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const $=(E=useCookie("jc-language"))==null?void 0:E.value;if($)return/^en(-US)?$/.test($)}}catch{}if(typeof document!="undefined"){const $=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test($)}try{if(typeof useNuxtApp=="function"){const $=useNuxtApp(),le=((G=(M=(w=(F=(q=$==null?void 0:$.ssrContext)==null?void 0:q.event)==null?void 0:F.node)==null?void 0:w.req)==null?void 0:M.headers)==null?void 0:G.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(le)}}catch{}return!1}),p=C.computed(()=>i.placeholder?i.placeholder:{Carrier:u.value?"Search by carrier name or code":"请输入公司名称或代码",Line:u.value?"Search by line name":"请输入航线名称",Seaport:u.value?"Search by seaport name":"请输入港口名称"}[i.type]||(u.value?"Search...":"请输入关键字搜索")),l=C.computed({get:()=>s.value,set:E=>{e("input",E),e("update:modelValue",E),e("update:value",E)}}),m=C.computed(()=>{const E=s.value;return Array.isArray(E)?typeof E.find(F=>F!=null&&F!=="")=="string":typeof E=="string"}),A=E=>m.value?String(E):E,v=C.ref(!1),x=C.ref([]),T=50,I=C.ref(""),B=()=>{x.value=[...i.defaultOptions]};C.watch(()=>i.defaultOptions,()=>{!v.value&&!I.value&&(x.value=[...i.defaultOptions])},{immediate:!0,deep:!0});const D=L0(async E=>{try{const q={keyword:E,current:1,size:T};let F={};i.type==="Carrier"?F=await b.locationSearchV2.carrier.search(q,i.lineType):i.type==="Line"?F=await b.locationSearchV2.line.search(q,i.lineType):F=await b.locationSearchV2.searchByName({...q,displayInfo:[i.type]});const w=F.records||[];if(i.defaultOptions.length>0){const M=i.defaultOptions.filter(G=>!w.some($=>$.id===G.id));x.value=[...M,...w]}else x.value=w}catch(q){console.error("Search failed:",q)}finally{v.value=!1}},300),W=E=>{if(I.value=E,!E||!E.trim()){v.value=!1,B();return}v.value=!0,D(E)},k=E=>{E||(B(),v.value=!1,I.value="",r.value&&r.value.blur&&r.value.blur())},S=()=>{B(),I.value="",e("change",null,null),e("input",null),e("update:modelValue",null),e("update:value",null)},N=E=>{if(!E){e("change",E,null);return}let q;Array.isArray(E)?q=x.value.filter(F=>E.some(w=>String(w)===String(F.id))):q=x.value.find(F=>String(F.id)===String(E))||null,e("change",E,q)},H=()=>{I.value&&b.reportNewTypeDataApi({reportData:I.value,reportType:i.reportType.toLocaleLowerCase()}),e("apply",I.value),r.value&&r.value.blur&&r.value.blur()},Q=E=>{e("remove-tag",E)},z=async()=>{const E=s.value;if(E==null||E==="")return;const F=(Array.isArray(E)?E:[E]).filter(w=>!x.value.some(M=>String(M.id)===String(w)));if(F.length!==0)try{let w=[];if(i.type==="Carrier"){const M=await b.locationSearchV2.carrier.getByIds(F.map(G=>Number(G)).filter(G=>!Number.isNaN(G)),i.lineType);w=Array.isArray(M)?M:M.records||[]}else if(i.type==="Line"){const M=await b.locationSearchV2.line.getByIds(F.map(G=>Number(G)).filter(G=>!Number.isNaN(G)),i.lineType);w=Array.isArray(M)?M:M.records||[]}if(w.length>0){const M=w.filter(G=>!x.value.some($=>$.id===G.id));x.value.push(...M)}}catch(w){console.error("Init selected data failed:",w)}};return C.onMounted(()=>{z()}),C.watch(()=>s.value,(E,q)=>{JSON.stringify(E)!==JSON.stringify(q)&&typeof window!="undefined"&&z()}),{selectRef:r,innerValue:l,loading:v,options:x,currentPlaceholder:p,isEn:u,onRemoteMethod:W,handleVisibleChange:k,handleClear:S,handleChange:N,handleApply:H,handleRemoveTag:Q,ICON_MORE:Ci,showApplyData:i.showApplyData,normalizeOptionValue:A,multiple:i.multiple}}});var M0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("el-select",{ref:"selectRef",staticClass:"jc-w-full jc-carrier-search-comp",attrs:{multiple:e.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:e.currentPlaceholder,"remote-method":e.onRemoteMethod,loading:e.loading,"popper-class":"jc-carrier-search-pop"},on:{change:e.handleChange,"visible-change":e.handleVisibleChange,clear:e.handleClear,focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":e.handleRemoveTag},model:{value:e.innerValue,callback:function(s){e.innerValue=s},expression:"innerValue"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e._l(e.options,function(s){return r("el-option",{key:s.id,attrs:{label:e.isEn?s.displayEn||s.display:s.displayCn||s.display,value:e.normalizeOptionValue(s.id)}},[e._t("option",function(){return[r("div",{staticClass:"jc-flex jc-items-center jc-justify-between"},[r("span",[e._v(e._s(e.isEn?s.displayEn||s.display:s.displayCn||s.display))]),s.code?r("span",{staticClass:"jc-ml-2 jc-text-xs jc-text-gray-400"},[e._v(" "+e._s(s.code)+" ")]):e._e()])]},{item:s})],2)}),r("template",{slot:"empty"},[r("div",{staticClass:"jc-p-4 jc-text-sm jc-text-center jc-text-gray-500"},[e.loading?r("div",[e._v(e._s(e.isEn?"Searching...":"正在搜索中..."))]):r("div",{staticClass:"jc-flex jc-flex-wrap jc-justify-center jc-items-center"},[e.showApplyData?[r("p",[e._v(e._s(e.isEn?"No results found. ":"暂无结果,"))]),r("div",{staticClass:"jc-flex jc-justify-center jc-items-center jc-gap-1"},[r("span",{staticClass:"jc-font-medium jc-text-14 jc-text-orange jc-leading-5 jc-text-center jc-cursor-pointer jc-ml-1",on:{click:function(s){return s.stopPropagation(),e.handleApply.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据 "))]),r("img",{staticClass:"jc-mr-1 jc-size-4",attrs:{src:e.ICON_MORE,alt:""},on:{click:function(s){return s.stopPropagation(),e.handleApply.apply(null,arguments)}}})])]:[r("p",[e._v(e._s(e.isEn?"No results found.":"暂无结果"))])]],2)])])],2)},U0=[],q0=me(N0,M0,U0,!1,null,"c5c42dc6");const mr=q0.exports,V0=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),W0=C.defineComponent({name:"AirCarrierSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the carrier code or name (e.g., AAL)":"请输入航空公司代码或名称 (如: AAL)");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var H0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-air-carrier-search",attrs:{type:"Carrier","line-type":"air","report-type":"air_carrier",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},G0=[],J0=me(W0,H0,G0,!1,null,"315fec7f");const j0=J0.exports,z0=Object.freeze(Object.defineProperty({__proto__:null,default:j0},Symbol.toStringTag,{value:"Module"})),Q0=C.defineComponent({name:"AirLineSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the line name":"请输入航线名称");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var K0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-air-line-search",attrs:{type:"Line","line-type":"air","report-type":"air_line",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},X0=[],Y0=me(Q0,K0,X0,!1,null,"ec3bece0");const $0=Y0.exports,Z0=Object.freeze(Object.defineProperty({__proto__:null,default:$0},Symbol.toStringTag,{value:"Module"})),eC=C.defineComponent({name:"SeaCarrierSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the carrier code or name (e.g., AAL)":"请输入船司代码或名称 (如: MSK)");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var tC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-sea-carrier-search",attrs:{type:"Carrier","line-type":"shipping","report-type":"shipping_carrier",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},nC=[],rC=me(eC,tC,nC,!1,null,"3ca731c4");const iC=rC.exports,aC=Object.freeze(Object.defineProperty({__proto__:null,default:iC},Symbol.toStringTag,{value:"Module"})),sC=C.defineComponent({name:"SeaLineSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the line name":"请输入航线名称");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var oC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-sea-line-search",attrs:{type:"Line","line-type":"shipping","report-type":"shipping_line",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},lC=[],cC=me(sC,oC,lC,!1,null,"95dcc99d");const uC=cC.exports,fC=Object.freeze(Object.defineProperty({__proto__:null,default:uC},Symbol.toStringTag,{value:"Module"})),dC={name:"JcFloatWrapper",emits:["focus","blur"],props:{label:{type:String,default:""}},data(){return{internalFocus:!1}},computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(i){var r,s;const e=i.relatedTarget;e&&((s=(r=this.$el)==null?void 0:r.contains)!=null&&s.call(r,e))||(this.internalFocus=!1,this.$emit("blur"))}}};var pC=function(){var e=this,r=e._self._c;return r("div",{staticClass:"jc-float-wrapper",class:{"is-focus":e.internalFocus,"is-have-prepend":e.isHavePrepend},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut}},[r("div",{staticClass:"wrapper-container"},[e.isHavePrepend?r("div",{staticClass:"wrapper-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"wrapper-main"},[e._t("default"),r("p",{staticClass:"wrapper-label"},[e._v(" "+e._s(e.label)+" ")])],2),e.isHaveAppend?r("div",{staticClass:"wrapper-append"},[e._t("suffix")],2):e._e()])])},hC=[],mC=me(dC,pC,hC,!1,null,"f9f8068e");const Ai=mC.exports,gC=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Ot=()=>typeof window!="undefined",At=(i,e)=>{var r;if(Ot())try{(r=window.sessionStorage)==null||r.setItem(i,e)}catch{}},$t=i=>{var e;if(!Ot())return"";try{return((e=window.sessionStorage)==null?void 0:e.getItem(i))||""}catch{return""}},lr=i=>{var e;if(Ot())try{(e=window.sessionStorage)==null||e.removeItem(i)}catch{}},vC={data:{redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]}},yC=(i,e)=>{i.thirdPartyId&&At("jc-auth-thirdPartyId",i.thirdPartyId),i.thirdPartyEmail&&At("jc-auth-thirdPartyEmail",i.thirdPartyEmail),i.thirdPartyType&&At("jc-auth-thirdPartyType",i.thirdPartyType),i.thirdPartyUserName&&At("jc-auth-thirdPartyUserName",i.thirdPartyUserName),e&&e.length>0&&At("jc-auth-mobileEmailList",JSON.stringify(e))},_c=()=>{const i=$t("jc-auth-mobileEmailList")||"[]";return{thirdPartyId:$t("jc-auth-thirdPartyId"),thirdPartyEmail:$t("jc-auth-thirdPartyEmail"),thirdPartyType:$t("jc-auth-thirdPartyType"),thirdPartyUserName:$t("jc-auth-thirdPartyUserName"),mobileEmailList:JSON.parse(i)}},ec=i=>{i&&i.length>0&&At("jc-auth-thirdPartyEmailVerifyList",JSON.stringify(i))},tc=i=>{i&&i.length>0&&At("jc-auth-thirdPartyMobileVerifyList",JSON.stringify(i))};function CC(i){const e=C.ref(!1),r=C.ref(null),s=C.ref(!1),u=C.ref(!1),p=C.ref([]),l=C.ref(!1);let m=null,A=null,v=!1;const x="current_login_type",T="jc_auth_state_check",I="jc_auth_active_instance",B=Math.random().toString(36).substring(2,15),D=F=>Ot()?new URLSearchParams(window.location.search).get(F):null,W=()=>{A&&(clearInterval(A),A=null),m=null},k=()=>{console.log("🧹 [重置] 清空所有登录状态"),W(),Ot()&&window.removeEventListener("message",N),e.value=!1,r.value=null,s.value=!1,u.value=!1,l.value=!1,p.value=[],v=!1,lr(x),lr(I),lr(T)},S=()=>{if(Ot()&&window.opener&&window.opener!==window){const F=D("code"),w=D("state");F&&(console.log("🍉 [弹窗] 获取到授权码,准备回传:",F),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:F,state:w},"*"),window.close())}},N=async F=>{if(!Ot())return;if(![window.location.origin,"https://passport.jctrans.com","https://passport-sit.jctrans.net.cn","https://passport-sit2.jctrans.net.cn","http://localhost:8080","http://localhost:8086","http://localhost:8093"].includes(F.origin)){console.warn("收到未知来源的消息:",F.origin);return}const{type:M,code:G,state:$}=F.data||{};if(M==="THIRD_PARTY_LOGIN_CODE"&&G&&$){if($t(I)!==B||$t(T)!==$)return;v=!0,console.log(`🍉 [主窗口] 实例 ${B} 收到授权码:`,G,$),window.removeEventListener("message",N),W();const Ge=$t(x)||null;if(Ge==="TEST"){console.log("🍉 [主窗口] 测试模式:模拟接口返回");const Fe=vC.data;setTimeout(()=>{Q(Fe)},500)}else await H(G,Ge)}},H=async(F,w)=>{const M=b.getAuthSessionItems(),G={thirdPartyCode:F,appId:i.appId,redirectPath:i.redirectPath||"/",activityCode:(M==null?void 0:M.activityCode)||"",referenceUserId:(M==null?void 0:M.referenceUserId)||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};try{let $;w==="FACEBOOK"?$=await b.loginByFacebookApi(G):w==="LINKEDIN"&&($=await b.loginByLinkedinApi(G)),$&&$.data&&Q($.data)}catch($){console.error("登录 API 错误:",$),i.onError&&i.onError($),k()}finally{e.value=!1,lr(x),lr(I)}},Q=F=>{const w=F.data||F;if(console.log("🍉 处理登录结果:",w),r.value=w,e.value=!1,w.redirect&&w.tgc){const G=i.appId==="CPA"?"tgc-CPA":"tgc";Mt.set(G,w.tgc,{expires:30})}const M=w.mobileEmailList||[];if(yC((w==null?void 0:w.thirdPartyInfo)||{},(w==null?void 0:w.mobileEmailList)||[]),M.length>0)console.log("👉 进入绑定流程"),p.value=M,s.value=!0,u.value=!1,i.onNeedBind&&i.onNeedBind(M);else if(w.redirect)if(console.log("👉 直接登录成功,准备跳转"),s.value=!1,u.value=!1,b.setTokenAll(w.result),i.onSuccess)i.onSuccess(w);else{const G=w.redirectPath||i.redirectPath;console.log("🍉 ~ useThirdPartyLogin.ts:426 ~ handleLoginSuccess ~ targetPath:",G),G&&Ut(G)}else console.log("👉 进入注册流程"),s.value=!1,p.value=[],u.value=!0},z=F=>{if(!Ot()||e.value)return;k(),v=!1,window.addEventListener("message",N),e.value=!0,At(x,F),At(I,B);const w="jc_"+Math.random().toString(36).slice(2);At(T,w);const M=window.location.hostname.includes("jctrans.com"),G=window.location.hostname.includes("sit2"),$=window.location.hostname.includes("sit"),Fe=`${M?"https://passport.jctrans.com":G?"https://passport-sit2.jctrans.net.cn":$?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"}/oauth_callback.html`||window.location.origin+window.location.pathname;let X="";F==="TEST"?X=`${M?"https://passport.jctrans.com/mock_auth.html":G?"https://passport-sit2.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(Fe)}&state=${w}`:F==="FACEBOOK"?X=`https://www.facebook.com/v22.0/dialog/oauth?client_id=1819580562224685&redirect_uri=${encodeURIComponent(Fe)}&state=${w}&scope=email,public_profile&display=popup`:F==="LINKEDIN"&&(X=`https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=86t0770jygwztk&redirect_uri=${encodeURIComponent(Fe)}&state=${w}&scope=profile%20email%20openid`);const j=600,ne=700,ye=window.screen.width/window.innerWidth,Le=(window.screen.width-j)/2/ye+(window.screenLeft!==void 0?window.screenLeft:window.screenX),Ee=(window.screen.height-ne)/2/ye+(window.screenTop!==void 0?window.screenTop:window.screenY),Ae=`
|
|
27
|
+
}`;var se=Ul(function(){return de(d,Y+"return "+V).apply(r,h)});if(se.source=V,Da(se))throw se;return se}function bg(t){return he(t).toLowerCase()}function Eg(t){return he(t).toUpperCase()}function Sg(t,n,a){if(t=he(t),t&&(a||n===r))return js(t);if(!t||!(n=Qe(n)))return t;var o=ct(t),c=ct(n),d=zs(o,c),h=Qs(o,c)+1;return Xt(o,d,h).join("")}function Ig(t,n,a){if(t=he(t),t&&(a||n===r))return t.slice(0,Xs(t)+1);if(!t||!(n=Qe(n)))return t;var o=ct(t),c=Qs(o,ct(n))+1;return Xt(o,0,c).join("")}function xg(t,n,a){if(t=he(t),t&&(a||n===r))return t.replace(Di,"");if(!t||!(n=Qe(n)))return t;var o=ct(t),c=zs(o,ct(n));return Xt(o,c).join("")}function Tg(t,n){var a=G,o=$;if(be(n)){var c="separator"in n?n.separator:c;a="length"in n?ae(n.length):a,o="omission"in n?Qe(n.omission):o}t=he(t);var d=t.length;if(_n(t)){var h=ct(t);d=h.length}if(a>=d)return t;var g=a-An(o);if(g<1)return o;var _=h?Xt(h,0,g).join(""):t.slice(0,g);if(c===r)return _+o;if(h&&(g+=_.length-g),Oa(c)){if(t.slice(g).search(c)){var O,L=_;for(c.global||(c=Yi(c.source,he(hs.exec(c))+"g")),c.lastIndex=0;O=c.exec(L);)var V=O.index;_=_.slice(0,V===r?g:V)}}else if(t.indexOf(Qe(c),g)!=g){var J=_.lastIndexOf(c);J>-1&&(_=_.slice(0,J))}return _+o}function Rg(t){return t=he(t),t&&Vc.test(t)?t.replace(us,af):t}var Bg=Tn(function(t,n,a){return t+(a?" ":"")+n.toUpperCase()}),Ua=Uo("toUpperCase");function Ml(t,n,a){return t=he(t),n=a?r:n,n===r?Zu(t)?lf(t):Gu(t):t.match(n)||[]}var Ul=oe(function(t,n){try{return Je(t,r,n)}catch(a){return Da(a)?a:new re(a)}}),Fg=Bt(function(t,n){return je(n,function(a){a=ft(a),yt(t,a,Pa(t[a],t))}),t});function Pg(t){var n=t==null?0:t.length,a=ee();return t=n?we(t,function(o){if(typeof o[1]!="function")throw new tt(l);return[a(o[0]),o[1]]}):[],oe(function(o){for(var c=-1;++c<n;){var d=t[c];if(Je(d[0],this,o))return Je(d[1],this,o)}})}function kg(t){return ad(rt(t,I))}function qa(t){return function(){return t}}function Dg(t,n){return t==null||t!==t?n:t}var Og=Vo(),Lg=Vo(!0);function Ge(t){return t}function Va(t){return vo(typeof t=="function"?t:rt(t,I))}function Ng(t){return Co(rt(t,I))}function Mg(t,n){return _o(t,rt(n,I))}var Ug=oe(function(t,n){return function(a){return er(a,t,n)}}),qg=oe(function(t,n){return function(a){return er(t,a,n)}});function Wa(t,n,a){var o=Fe(n),c=Wr(n,o);a==null&&!(be(n)&&(c.length||!o.length))&&(a=n,n=t,t=this,c=Wr(n,Fe(n)));var d=!(be(a)&&"chain"in a)||!!a.chain,h=Pt(t);return je(c,function(g){var _=n[g];t[g]=_,h&&(t.prototype[g]=function(){var O=this.__chain__;if(d||O){var L=t(this.__wrapped__),V=L.__actions__=Ve(this.__actions__);return V.push({func:_,args:arguments,thisArg:t}),L.__chain__=O,L}return _.apply(t,Gt([this.value()],arguments))})}),t}function Vg(){return ke._===this&&(ke._=hf),this}function Ha(){}function Wg(t){return t=ae(t),oe(function(n){return Ao(n,t)})}var Hg=Ca(we),Gg=Ca(Vs),Jg=Ca(Gi);function ql(t){return Ia(t)?Ji(ft(t)):wd(t)}function jg(t){return function(n){return t==null?r:un(t,n)}}var zg=Ho(),Qg=Ho(!0);function Ga(){return[]}function Ja(){return!1}function Kg(){return{}}function Xg(){return""}function Yg(){return!0}function $g(t,n){if(t=ae(t),t<1||t>ne)return[];var a=Ee,o=Oe(t,Ee);n=ee(n),t-=Ee;for(var c=Qi(o,n);++a<t;)n(a);return c}function Zg(t){return ie(t)?we(t,ft):Ke(t)?[t]:Ve(al(he(t)))}function ev(t){var n=++df;return he(t)+n}var tv=Qr(function(t,n){return t+n},0),nv=_a("ceil"),rv=Qr(function(t,n){return t/n},1),iv=_a("floor");function av(t){return t&&t.length?Vr(t,Ge,aa):r}function sv(t,n){return t&&t.length?Vr(t,ee(n,2),aa):r}function ov(t){return Gs(t,Ge)}function lv(t,n){return Gs(t,ee(n,2))}function cv(t){return t&&t.length?Vr(t,Ge,ca):r}function uv(t,n){return t&&t.length?Vr(t,ee(n,2),ca):r}var fv=Qr(function(t,n){return t*n},1),dv=_a("round"),pv=Qr(function(t,n){return t-n},0);function hv(t){return t&&t.length?zi(t,Ge):0}function mv(t,n){return t&&t.length?zi(t,ee(n,2)):0}return f.after=Mh,f.ary=gl,f.assign=Sm,f.assignIn=Bl,f.assignInWith=Fl,f.assignWith=La,f.at=Im,f.before=vl,f.bind=Pa,f.bindAll=Fg,f.bindKey=yl,f.castArray=Xh,f.chain=pl,f.chunk=ap,f.compact=sp,f.concat=op,f.cond=Pg,f.conforms=kg,f.constant=qa,f.countBy=mh,f.create=xm,f.curry=Cl,f.curryRight=_l,f.debounce=Al,f.defaults=Tm,f.defaultsDeep=Rm,f.defer=Uh,f.delay=qh,f.difference=lp,f.differenceBy=cp,f.differenceWith=up,f.drop=fp,f.dropRight=dp,f.dropRightWhile=pp,f.dropWhile=hp,f.fill=mp,f.filter=vh,f.flatMap=_h,f.flatMapDeep=Ah,f.flatMapDepth=wh,f.flatten=cl,f.flattenDeep=gp,f.flattenDepth=vp,f.flip=Vh,f.flow=Og,f.flowRight=Lg,f.fromPairs=yp,f.functions=Lm,f.functionsIn=Nm,f.groupBy=bh,f.initial=_p,f.intersection=Ap,f.intersectionBy=wp,f.intersectionWith=bp,f.invert=Um,f.invertBy=qm,f.invokeMap=Sh,f.iteratee=Va,f.keyBy=Ih,f.keys=Fe,f.keysIn=He,f.map=ti,f.mapKeys=Wm,f.mapValues=Hm,f.matches=Ng,f.matchesProperty=Mg,f.memoize=ri,f.merge=Gm,f.mergeWith=Pl,f.method=Ug,f.methodOf=qg,f.mixin=Wa,f.negate=ii,f.nthArg=Wg,f.omit=Jm,f.omitBy=jm,f.once=Wh,f.orderBy=xh,f.over=Hg,f.overArgs=Hh,f.overEvery=Gg,f.overSome=Jg,f.partial=ka,f.partialRight=wl,f.partition=Th,f.pick=zm,f.pickBy=kl,f.property=ql,f.propertyOf=jg,f.pull=xp,f.pullAll=fl,f.pullAllBy=Tp,f.pullAllWith=Rp,f.pullAt=Bp,f.range=zg,f.rangeRight=Qg,f.rearg=Gh,f.reject=Fh,f.remove=Fp,f.rest=Jh,f.reverse=Ba,f.sampleSize=kh,f.set=Km,f.setWith=Xm,f.shuffle=Dh,f.slice=Pp,f.sortBy=Nh,f.sortedUniq=Up,f.sortedUniqBy=qp,f.split=Cg,f.spread=jh,f.tail=Vp,f.take=Wp,f.takeRight=Hp,f.takeRightWhile=Gp,f.takeWhile=Jp,f.tap=sh,f.throttle=zh,f.thru=ei,f.toArray=xl,f.toPairs=Dl,f.toPairsIn=Ol,f.toPath=Zg,f.toPlainObject=Rl,f.transform=Ym,f.unary=Qh,f.union=jp,f.unionBy=zp,f.unionWith=Qp,f.uniq=Kp,f.uniqBy=Xp,f.uniqWith=Yp,f.unset=$m,f.unzip=Fa,f.unzipWith=dl,f.update=Zm,f.updateWith=eg,f.values=Fn,f.valuesIn=tg,f.without=$p,f.words=Ml,f.wrap=Kh,f.xor=Zp,f.xorBy=eh,f.xorWith=th,f.zip=nh,f.zipObject=rh,f.zipObjectDeep=ih,f.zipWith=ah,f.entries=Dl,f.entriesIn=Ol,f.extend=Bl,f.extendWith=Fl,Wa(f,f),f.add=tv,f.attempt=Ul,f.camelCase=ag,f.capitalize=Ll,f.ceil=nv,f.clamp=ng,f.clone=Yh,f.cloneDeep=Zh,f.cloneDeepWith=em,f.cloneWith=$h,f.conformsTo=tm,f.deburr=Nl,f.defaultTo=Dg,f.divide=rv,f.endsWith=sg,f.eq=dt,f.escape=og,f.escapeRegExp=lg,f.every=gh,f.find=yh,f.findIndex=ol,f.findKey=Bm,f.findLast=Ch,f.findLastIndex=ll,f.findLastKey=Fm,f.floor=iv,f.forEach=hl,f.forEachRight=ml,f.forIn=Pm,f.forInRight=km,f.forOwn=Dm,f.forOwnRight=Om,f.get=Na,f.gt=nm,f.gte=rm,f.has=Mm,f.hasIn=Ma,f.head=ul,f.identity=Ge,f.includes=Eh,f.indexOf=Cp,f.inRange=rg,f.invoke=Vm,f.isArguments=pn,f.isArray=ie,f.isArrayBuffer=im,f.isArrayLike=We,f.isArrayLikeObject=Ie,f.isBoolean=am,f.isBuffer=Yt,f.isDate=sm,f.isElement=om,f.isEmpty=lm,f.isEqual=cm,f.isEqualWith=um,f.isError=Da,f.isFinite=fm,f.isFunction=Pt,f.isInteger=bl,f.isLength=ai,f.isMap=El,f.isMatch=dm,f.isMatchWith=pm,f.isNaN=hm,f.isNative=mm,f.isNil=vm,f.isNull=gm,f.isNumber=Sl,f.isObject=be,f.isObjectLike=Se,f.isPlainObject=sr,f.isRegExp=Oa,f.isSafeInteger=ym,f.isSet=Il,f.isString=si,f.isSymbol=Ke,f.isTypedArray=Bn,f.isUndefined=Cm,f.isWeakMap=_m,f.isWeakSet=Am,f.join=Ep,f.kebabCase=cg,f.last=at,f.lastIndexOf=Sp,f.lowerCase=ug,f.lowerFirst=fg,f.lt=wm,f.lte=bm,f.max=av,f.maxBy=sv,f.mean=ov,f.meanBy=lv,f.min=cv,f.minBy=uv,f.stubArray=Ga,f.stubFalse=Ja,f.stubObject=Kg,f.stubString=Xg,f.stubTrue=Yg,f.multiply=fv,f.nth=Ip,f.noConflict=Vg,f.noop=Ha,f.now=ni,f.pad=dg,f.padEnd=pg,f.padStart=hg,f.parseInt=mg,f.random=ig,f.reduce=Rh,f.reduceRight=Bh,f.repeat=gg,f.replace=vg,f.result=Qm,f.round=dv,f.runInContext=y,f.sample=Ph,f.size=Oh,f.snakeCase=yg,f.some=Lh,f.sortedIndex=kp,f.sortedIndexBy=Dp,f.sortedIndexOf=Op,f.sortedLastIndex=Lp,f.sortedLastIndexBy=Np,f.sortedLastIndexOf=Mp,f.startCase=_g,f.startsWith=Ag,f.subtract=pv,f.sum=hv,f.sumBy=mv,f.template=wg,f.times=$g,f.toFinite=kt,f.toInteger=ae,f.toLength=Tl,f.toLower=bg,f.toNumber=st,f.toSafeInteger=Em,f.toString=he,f.toUpper=Eg,f.trim=Sg,f.trimEnd=Ig,f.trimStart=xg,f.truncate=Tg,f.unescape=Rg,f.uniqueId=ev,f.upperCase=Bg,f.upperFirst=Ua,f.each=hl,f.eachRight=ml,f.first=ul,Wa(f,(function(){var t={};return Ct(f,function(n,a){pe.call(f.prototype,a)||(t[a]=n)}),t})(),{chain:!1}),f.VERSION=s,je(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){f[t].placeholder=f}),je(["drop","take"],function(t,n){ce.prototype[t]=function(a){a=a===r?1:Be(ae(a),0);var o=this.__filtered__&&!n?new ce(this):this.clone();return o.__filtered__?o.__takeCount__=Oe(a,o.__takeCount__):o.__views__.push({size:Oe(a,Ee),type:t+(o.__dir__<0?"Right":"")}),o},ce.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),je(["filter","map","takeWhile"],function(t,n){var a=n+1,o=a==Te||a==X;ce.prototype[t]=function(c){var d=this.clone();return d.__iteratees__.push({iteratee:ee(c,3),type:a}),d.__filtered__=d.__filtered__||o,d}}),je(["head","last"],function(t,n){var a="take"+(n?"Right":"");ce.prototype[t]=function(){return this[a](1).value()[0]}}),je(["initial","tail"],function(t,n){var a="drop"+(n?"":"Right");ce.prototype[t]=function(){return this.__filtered__?new ce(this):this[a](1)}}),ce.prototype.compact=function(){return this.filter(Ge)},ce.prototype.find=function(t){return this.filter(t).head()},ce.prototype.findLast=function(t){return this.reverse().find(t)},ce.prototype.invokeMap=oe(function(t,n){return typeof t=="function"?new ce(this):this.map(function(a){return er(a,t,n)})}),ce.prototype.reject=function(t){return this.filter(ii(ee(t)))},ce.prototype.slice=function(t,n){t=ae(t);var a=this;return a.__filtered__&&(t>0||n<0)?new ce(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==r&&(n=ae(n),a=n<0?a.dropRight(-n):a.take(n-t)),a)},ce.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ce.prototype.toArray=function(){return this.take(Ee)},Ct(ce.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),c=f[o?"take"+(n=="last"?"Right":""):n],d=o||/^find/.test(n);c&&(f.prototype[n]=function(){var h=this.__wrapped__,g=o?[1]:arguments,_=h instanceof ce,O=g[0],L=_||ie(h),V=function(le){var ue=c.apply(f,Gt([le],g));return o&&J?ue[0]:ue};L&&a&&typeof O=="function"&&O.length!=1&&(_=L=!1);var J=this.__chain__,Y=!!this.__actions__.length,te=d&&!J,se=_&&!Y;if(!d&&L){h=se?h:new ce(this);var Z=t.apply(h,g);return Z.__actions__.push({func:ei,args:[V],thisArg:r}),new nt(Z,J)}return te&&se?t.apply(this,g):(Z=this.thru(V),te?o?Z.value()[0]:Z.value():Z)})}),je(["pop","push","shift","sort","splice","unshift"],function(t){var n=Ir[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);f.prototype[t]=function(){var c=arguments;if(o&&!this.__chain__){var d=this.value();return n.apply(ie(d)?d:[],c)}return this[a](function(h){return n.apply(ie(h)?h:[],c)})}}),Ct(ce.prototype,function(t,n){var a=f[n];if(a){var o=a.name+"";pe.call(Sn,o)||(Sn[o]=[]),Sn[o].push({name:n,func:a})}}),Sn[zr(r,N).name]=[{name:"wrapper",func:r}],ce.prototype.clone=Bf,ce.prototype.reverse=Ff,ce.prototype.value=Pf,f.prototype.at=oh,f.prototype.chain=lh,f.prototype.commit=ch,f.prototype.next=uh,f.prototype.plant=dh,f.prototype.reverse=ph,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=hh,f.prototype.first=f.prototype.head,zn&&(f.prototype[zn]=fh),f}),wn=cf();an?((an.exports=wn)._=wn,qi._=wn):ke._=wn}).call(xy)})(cr,cr.exports)),cr.exports}var Ry=Ty();const By={name:"ChineseCompanySearch",components:{ElSelect:U.Select,ElOption:U.Option,ElInput:U.Input},props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},city:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1}},emits:["input","update:useKq","update:kqCode","update:kqInfo","change"],data(){return{loading:!1,options:[],isDisabled:!1}},computed:{isEn(){return b.getIsEn()},companyNameValue:{get(){return this.companyName},set(i){this.$emit("input",i)}}},created(){this.fetchOptionsDebounced=Ry.debounce(i=>{var r;console.log("🍉 ~ index.vue:119 ~ this.city:",this.city);const e={current:1,size:50,compName:i,cityName:((r=this.city)==null?void 0:r.nameCn)+"市"};b.getCompanyOptionApi(e).then(s=>{var u;this.options=((u=s.data.data.records)==null?void 0:u.map(p=>({value:p.nameCn,code:p.kqId,...p})))||[]}).catch(s=>{console.error("获取公司选项失败:",s),this.options=[]}).finally(()=>{this.loading=!1})},800)},watch:{countryId(){this.resetKq()}},beforeDestroy(){this.fetchOptionsDebounced.cancel()},methods:{handleRemoteSearch(i){i?(this.loading=!0,this.fetchOptionsDebounced(i)):this.options=[]},handleSelectChange(i){const e=this.options.find(r=>r.value===i);e?(this.$emit("update:useKq",!0),this.$emit("update:kqCode",e.code),this.$emit("update:kqInfo",e)):(this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("update:kqInfo",{})),this.$emit("change",e)},handleChange(i){this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("change",i)},resetKq(){this.$emit("input",""),this.$emit("update:useKq",!1),this.$emit("update:kqCode",""),this.$emit("update:kqInfo",{}),this.options=[]}}};var Fy=function(){var e=this,r=e._self._c;return r("div",{staticClass:"global-company-input"},[[1].includes(Number(e.countryId))?r("ElSelect",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":e.allowCreate,"default-first-option":e.defaultFirstOption,"remote-method":e.handleRemoteSearch,loading:e.loading,disabled:e.isDisabled||e.disabled,placeholder:e.isEn?"Company Name in Chinese":"请输入您的公司中文名称","popper-class":"company-search dialog-join-us"},on:{change:e.handleSelectChange},model:{value:e.companyNameValue,callback:function(s){e.companyNameValue=s},expression:"companyNameValue"}},[r("template",{slot:"prefix"},[e._t("prefix")],2),e._l(e.options,function(s){return r("ElOption",{key:s.code,attrs:{label:s.value,value:s.value}},[r("div",{staticClass:"company-option-item"},[r("span",[e._v(e._s(s.value))])])])})],2):r("ElInput",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled||e.disabled,placeholder:e.isEn?"Company name in English":"请输入您的公司英文名称",maxlength:"200"},on:{change:e.handleChange},model:{value:e.companyNameValue,callback:function(s){e.companyNameValue=s},expression:"companyNameValue"}},[r("template",{slot:"prepend"},[e._t("prefix")],2)],2)],1)},Py=[],ky=me(By,Fy,Py,!1,null,"d1108b76");const _i=ky.exports,Dy=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"}));var Oy=typeof global=="object"&&global&&global.Object===Object&&global,Ly=typeof self=="object"&&self&&self.Object===Object&&self,vc=Oy||Ly||Function("return this")(),di=vc.Symbol,yc=Object.prototype,Ny=yc.hasOwnProperty,My=yc.toString,or=di?di.toStringTag:void 0;function Uy(i){var e=Ny.call(i,or),r=i[or];try{i[or]=void 0;var s=!0}catch{}var u=My.call(i);return s&&(e?i[or]=r:delete i[or]),u}var qy=Object.prototype,Vy=qy.toString;function Wy(i){return Vy.call(i)}var Hy="[object Null]",Gy="[object Undefined]",Yl=di?di.toStringTag:void 0;function Jy(i){return i==null?i===void 0?Gy:Hy:Yl&&Yl in Object(i)?Uy(i):Wy(i)}function jy(i){return i!=null&&typeof i=="object"}var zy="[object Symbol]";function Qy(i){return typeof i=="symbol"||jy(i)&&Jy(i)==zy}var Ky=/\s/;function Xy(i){for(var e=i.length;e--&&Ky.test(i.charAt(e)););return e}var Yy=/^\s+/;function $y(i){return i&&i.slice(0,Xy(i)+1).replace(Yy,"")}function es(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}var $l=NaN,Zy=/^[-+]0x[0-9a-f]+$/i,e0=/^0b[01]+$/i,t0=/^0o[0-7]+$/i,n0=parseInt;function Zl(i){if(typeof i=="number")return i;if(Qy(i))return $l;if(es(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=es(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=$y(i);var r=e0.test(i);return r||t0.test(i)?n0(i.slice(2),r?2:8):Zy.test(i)?$l:+i}var Ka=function(){return vc.Date.now()},r0="Expected a function",i0=Math.max,a0=Math.min;function s0(i,e,r){var s,u,p,l,m,A,v=0,x=!1,T=!1,I=!0;if(typeof i!="function")throw new TypeError(r0);e=Zl(e)||0,es(r)&&(x=!0,T="maxWait"in r,p=T?i0(Zl(r.maxWait)||0,e):p,I="trailing"in r?!1:I);function B(E){var q=s,F=u;return s=u=void 0,v=E,l=i.apply(F,q),l}function D(E){return v=E,m=setTimeout(S,e),x?B(E):l}function W(E){var q=E-A,F=E-v,w=e-q;return T?a0(w,p-F):w}function k(E){var q=E-A,F=E-v;return A===void 0||q>=e||q<0||T&&F>=p}function S(){var E=Ka();if(k(E))return N(E);m=setTimeout(S,W(E))}function N(E){return m=void 0,I&&s?B(E):(s=u=void 0,l)}function H(){m!==void 0&&clearTimeout(m),v=0,s=A=u=m=void 0}function Q(){return m===void 0?l:N(Ka())}function z(){var E=Ka(),q=k(E);if(s=arguments,u=this,A=E,q){if(m===void 0)return D(A);if(T)return clearTimeout(m),m=setTimeout(S,e),B(A)}return m===void 0&&(m=setTimeout(S,e)),l}return z.cancel=H,z.flush=Q,z}const o0={name:"GoogleInput",components:{ElInput:U.Input},inheritAttrs:!1,props:{placeholder:{type:String,default:""},value:{type:[String,Number],default:""}},emits:["input","blur","focus"],data(){return{isFocus:!1,autofillTimer:null}},computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||this.value!==null&&this.value!==""}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeDestroy(){this.clearAutofillTimer()},methods:{focusInput(){var i,e;(e=(i=this.$refs.googleInput)==null?void 0:i.focus)==null||e.call(i)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(i){var e,r;try{const s=(r=(e=this.$refs.googleInput)==null?void 0:e.$el)==null?void 0:r.querySelector("input");if(!s)return;if(window.getComputedStyle(s).getPropertyValue("background-color")==="rgb(232, 240, 254)"){this.isFocus=!0;return}i<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(i+1)},100))}catch(s){console.error("Autofill detection error:",s)}},handleInput(i){this.$emit("input",i)},localBlur(i){this.isFocus=!1,this.$emit("blur",i)},localFocus(i){this.isFocus=!0,this.$emit("focus",i)}}};var l0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"google-input",class:{"is-focus":e.shouldFloat,"is-have-prepend":e.isHavePrepend}},[r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"text",name:"fakeUsername",autocomplete:"on"}}),r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"password",name:"fakePassword",autocomplete:"new-password"}}),r("div",{staticClass:"google-input-wrap"},[e.isHavePrepend?r("div",{staticClass:"google-input-wrap-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"google-input-wrap-input"},[r("el-input",e._g(e._b({ref:"googleInput",attrs:{value:e.value},scopedSlots:e._u([{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}],null,!0)},"el-input",e.$attrs,!1),{input:e.handleInput,blur:e.localBlur,focus:e.localFocus})),r("p",{staticClass:"google-input-wrap-input-placeholder",on:{click:e.focusInput}},[e._v(" "+e._s(e.placeholder)+" ")])],1)])])},c0=[],u0=me(o0,l0,c0,!1,null,"10ef665c");const Vt=u0.exports,f0=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"})),d0={name:"JcFloatInput",components:{ElInput:U.Input},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},value:{type:[String,Number],default:""}},emits:["input","blur","focus"],data(){return{isFocus:!1,autofillTimer:null}},computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeDestroy(){this.clearAutofillTimer()},methods:{focusInput(){var i,e;(e=(i=this.$refs.googleInput)==null?void 0:i.focus)==null||e.call(i)},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(i){var e,r;try{const s=(r=(e=this.$refs.googleInput)==null?void 0:e.$el)==null?void 0:r.querySelector("input");if(!s)return;if(window.getComputedStyle(s).getPropertyValue("background-color")==="rgb(232, 240, 254)"){this.isFocus=!0;return}i<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(i+1)},100))}catch(s){console.error("Autofill detection error:",s)}},handleInput(i){this.$emit("input",i)},localBlur(i){this.isFocus=!1,this.$emit("blur",i)},localFocus(i){this.isFocus=!0,this.$emit("focus",i)}}};var p0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"google-input",class:{"is-focus":e.shouldFloat,"is-have-prepend":e.isHavePrepend}},[r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"text",name:"fakeUsername",autocomplete:"on"}}),r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"password",name:"fakePassword",autocomplete:"new-password"}}),r("div",{staticClass:"google-input-wrap"},[e.isHavePrepend?r("div",{staticClass:"google-input-wrap-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"google-input-wrap-input"},[r("el-input",e._g(e._b({ref:"googleInput",attrs:{value:e.value,placeholder:e.placeholder},scopedSlots:e._u([{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}],null,!0)},"el-input",e.$attrs,!1),{input:e.handleInput,blur:e.localBlur,focus:e.localFocus})),r("p",{staticClass:"google-input-wrap-input-placeholder",on:{click:e.focusInput}},[e._v(" "+e._s(e.currentLabel)+" ")])],1)])])},h0=[],m0=me(d0,p0,h0,!1,null,"1637a5e6");const Un=m0.exports,g0=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"}));let v0="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",y0=(i=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(i|=0));for(;i--;)e+=v0[r[i]&63];return e};const C0={name:"JcVerifySlide",props:{visible:{type:Boolean,default:!1},captchaType:{type:String,default:"blockPuzzle"},mode:{type:String,default:"pop"},vSpace:{type:Number,default:30},explain:{type:String,default:""},lang:{type:String,default:""},imgSize:{type:Object,default:()=>({width:"310px",height:"155px"})},barSize:{type:Object,default:()=>({width:"310px",height:"40px"})},defaultImg:{type:String,default:""}},data(){return{secretKey:"",passFlag:!1,backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:0,endMoveTime:0,startLeft:0,tipWords:"",finishText:"",setSize:{imgHeight:"155px",imgWidth:"340px"},moveBlockLeft:"0px",leftBarWidth:"40px",moveBlockBackgroundColor:"#fff",leftBarBorderColor:"#e4e7eb",iconColor:"#4b4b4b",iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:"",currentBarHeight:40,loading:!0}},computed:{isEn(){var i,e,r,s,u,p;if(this.lang)return this.lang==="en"||this.lang==="en-US";try{if(typeof useCookie=="function"){const l=(i=useCookie("jc-language"))==null?void 0:i.value;if(l)return/^en(-US)?$/.test(l)}}catch{}if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}try{if(typeof useNuxtApp=="function"){const l=useNuxtApp(),m=((p=(u=(s=(r=(e=l==null?void 0:l.ssrContext)==null?void 0:e.event)==null?void 0:r.node)==null?void 0:s.req)==null?void 0:u.headers)==null?void 0:p.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(m)}}catch{}return!1},showBox(){return this.mode==="pop"?this.visible:!0},barExplain(){return this.isEnd?"":this.isEn?"Swipe right to complete the picture puzzle":this.explain||"向右滑动完成验证"},subBlockStyle(){const e=-(parseInt(this.setSize.imgHeight)+this.vSpace+1);return{width:Math.floor(parseInt(this.setSize.imgWidth)*47/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(i){i&&this.$nextTick(()=>{this.handleResize(),this.refresh()})}},mounted(){this.initUuid(),this.handleResize(),window.addEventListener("resize",this.handleResize),window.addEventListener("touchmove",this.move,{passive:!1}),window.addEventListener("mousemove",this.move),window.addEventListener("touchend",this.end),window.addEventListener("mouseup",this.end)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("touchmove",this.move,{passive:!1}),window.removeEventListener("mousemove",this.move),window.removeEventListener("touchend",this.end),window.removeEventListener("mouseup",this.end)},methods:{handleImageLoaded(){this.loading=!1},initUuid(){localStorage.getItem("slider")||localStorage.setItem("slider","slider-"+y0())},aesEncrypt(i,e="XwKsGlMcdPMEhR1B"){const r=ht.enc.Utf8.parse(e),s=ht.enc.Utf8.parse(i);return ht.AES.encrypt(s,r,{mode:ht.mode.ECB,padding:ht.pad.Pkcs7}).toString()},handleResize(){const i=window.innerWidth;let e=340;i<400?(e=i-60,this.currentBarHeight=44):(e=340,this.currentBarHeight=40),this.setSize.imgWidth=e+"px",this.setSize.imgHeight=e/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(i){if(this.isEnd)return;const e=i||window.event,r=e.touches?e.touches[0].pageX:e.clientX,s=this.$refs.barArea;this.startLeft=Math.floor(r-s.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(i){if(!this.status||this.isEnd)return;const e=i||window.event,r=e.touches?e.touches[0].pageX:e.clientX,s=this.$refs.barArea;let u=r-s.getBoundingClientRect().left-this.startLeft;const p=s.offsetWidth-this.currentBarHeight;u<=0&&(u=0),u>=p&&(u=p),this.moveBlockLeft=u+"px",this.leftBarWidth=u+this.currentBarHeight+"px",e.cancelable&&e.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let i=parseInt(this.moveBlockLeft.replace("px",""));i=i*310/parseInt(this.setSize.imgWidth);const e={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:i,y:5}),this.secretKey):JSON.stringify({x:i,y:5}),uuid:this.backToken};b.slideCheckApi(e).then(r=>{r.data.code===0?this.handleSuccess(r):this.handleError()}).catch(()=>this.handleError())},handleSuccess(i){this.endMoveTime-this.startMoveTime,this.moveBlockBackgroundColor="#52c41a",this.iconClass="icon-check",this.isEnd=!0,this.passFlag=!0,this.tipWords=`${((this.endMoveTime-this.startMoveTime)/1e3).toFixed(2)}s `+(this.isEn?"verified successfully":"验证成功"),setTimeout(()=>{this.closeBox(),this.$emit("success",{uuid:i.data.data.uuid,code:i.data.data.code})},800)},handleError(){this.moveBlockBackgroundColor="#ff4d4f",this.iconClass="icon-close",this.passFlag=!1,this.tipWords=this.isEn?"verification failed":"验证失败",setTimeout(()=>{this.refresh(),this.tipWords=""},1e3)},refresh(){this.loading=!0,this.transitionLeft="left 0.3s",this.transitionWidth="width 0.3s",this.moveBlockLeft="0px",this.leftBarWidth=this.currentBarHeight+"px",this.moveBlockBackgroundColor="#fff",this.iconColor="#4b4b4b",this.iconClass="icon-right",this.isEnd=!1,this.tipWords="",this.getPicture()},getPicture(){this.loading=!0,b.slideGetApi({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(i=>{i.data.code===0?(this.backImgBase=i.data.data.originalImageBase64,this.blockBackImgBase=i.data.data.jigsawImageBase64,this.backToken=i.data.data.uuid,this.secretKey=i.data.data.secretKey):this.loading=!1}).catch(()=>{this.loading=!1})},closeBox(){this.$emit("update:visible",!1)}}};var _0=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.showBox,expression:"showBox"}],class:e.mode==="pop"?"captcha-mask":"captcha-relative-wrapper"},[r("div",{class:e.mode==="pop"?"auth-captcha-box":"",style:{width:e.mode==="pop"?e.setSize.imgWidth+"40px":"100%","max-width":"100%"}},[e.mode==="pop"?r("div",{staticClass:"auth-captcha-box-top"},[r("span",{staticClass:"auth-captcha-title"},[e._v(e._s(e.isEn?"please finish the security verification":"请完成安全验证"))]),r("span",{staticClass:"auth-captcha-box-close",on:{click:e.closeBox}},[e._v(" × ")])]):e._e(),r("div",{staticClass:"auth-captcha-box-bottom",style:{padding:e.mode==="pop"?"15px":"0"}},[r("div",{staticClass:"captcha-wrapper",staticStyle:{position:"relative"}},[e.captchaType==="blockPuzzle"?r("div",{staticClass:"auth-captcha-img-out",style:{height:parseInt(e.setSize.imgHeight)+e.vSpace+"px"}},[r("div",{staticClass:"auth-captcha-img-panel",style:{width:e.setSize.imgWidth,height:e.setSize.imgHeight}},[r("img",{staticClass:"main-img",attrs:{src:e.backImgBase?"data:image/png;base64,"+e.backImgBase:e.defaultImg,alt:"captcha"},on:{load:e.handleImageLoaded}}),e.loading?r("div",{staticClass:"auth-captcha-loading"},[r("div",{staticClass:"loading-icon"}),r("p",{staticClass:"loading-text"},[e._v(" "+e._s(e.isEn?"Loading...":"加载中...")+" ")])]):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showRefresh,expression:"showRefresh"}],staticClass:"auth-captcha-refresh",on:{click:e.refresh}},[r("svg",{staticClass:"icon",attrs:{t:"1767753956986",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"}},[r("path",{attrs:{d:"M894.481158 505.727133c0 49.589418-9.711176 97.705276-28.867468 143.007041-18.501376 43.74634-44.98454 83.031065-78.712713 116.759237-33.728172 33.728172-73.012897 60.211337-116.759237 78.712713-45.311998 19.156292-93.417623 28.877701-143.007041 28.877701s-97.695043-9.721409-142.996808-28.877701c-43.756573-18.501376-83.031065-44.98454-116.76947-78.712713-33.728172-33.728172-60.211337-73.012897-78.712713-116.759237-19.156292-45.301765-28.867468-93.417623-28.867468-143.007041 0-49.579185 9.711176-97.695043 28.867468-142.996808 18.501376-43.74634 44.98454-83.031065 78.712713-116.759237 33.738405-33.728172 73.012897-60.211337 116.76947-78.712713 45.301765-19.166525 93.40739-28.877701 142.996808-28.877701 52.925397 0 104.008842 11.010775 151.827941 32.745798 46.192042 20.977777 86.909395 50.79692 121.016191 88.608084 4.389984 4.860704 8.646937 9.854439 12.781094 14.97097l0-136.263453c0-11.307533 9.168824-20.466124 20.466124-20.466124 11.307533 0 20.466124 9.15859 20.466124 20.466124l0 183.64253c0 5.433756-2.148943 10.632151-5.986341 14.46955-3.847631 3.837398-9.046027 5.996574-14.479783 5.996574l-183.64253-0.020466c-11.307533 0-20.466124-9.168824-20.466124-20.466124 0-11.307533 9.168824-20.466124 20.466124-20.466124l132.293025 0.020466c-3.960195-4.952802-8.063653-9.782807-12.289907-14.479783-30.320563-33.605376-66.514903-60.098773-107.549481-78.753645-42.467207-19.289322-87.850837-29.072129-134.902456-29.072129-87.195921 0-169.172981 33.9533-230.816946 95.597265-61.654198 61.654198-95.597265 143.621025-95.597265 230.816946s33.943067 169.172981 95.597265 230.816946c61.643965 61.654198 143.621025 95.607498 230.816946 95.607498s169.172981-33.9533 230.816946-95.607498c61.654198-61.643965 95.597265-143.621025 95.597265-230.816946 0-11.2973 9.168824-20.466124 20.466124-20.466124C885.322567 485.261009 894.481158 494.429833 894.481158 505.727133z","p-id":"2524"}})])]),r("transition",{attrs:{name:"tips-fade"}},[e.tipWords?r("div",{class:["auth-captcha-tips",e.passFlag?"suc-bg":"err-bg"]},[e._v(" "+e._s(e.tipWords)+" ")]):e._e()])],1)]):e._e(),r("div",{ref:"barArea",staticClass:"auth-captcha-bar-area",style:{width:e.setSize.imgWidth,height:e.currentBarHeight+"px",lineHeight:e.currentBarHeight+"px"}},[r("span",{staticClass:"auth-captcha-msg"},[e._v(e._s(e.barExplain))]),r("div",{staticClass:"auth-captcha-left-bar",style:{width:e.leftBarWidth,height:e.currentBarHeight+"px",borderColor:e.leftBarBorderColor,transition:e.transitionWidth}},[r("span",{staticClass:"auth-captcha-msg",domProps:{textContent:e._s(e.finishText)}}),r("div",{staticClass:"auth-captcha-move-block",style:{width:e.currentBarHeight+"px",height:e.currentBarHeight-2+"px",backgroundColor:e.moveBlockBackgroundColor,left:e.moveBlockLeft,transition:e.transitionLeft},on:{mousedown:e.start,touchstart:function(s){return s.preventDefault(),e.start.apply(null,arguments)}}},[r("i",{class:["auth-captcha-icon iconfont",e.iconClass],style:{color:e.iconColor}}),e.captchaType==="blockPuzzle"?r("div",{staticClass:"auth-captcha-sub-block",style:e.subBlockStyle},[e.blockBackImgBase?r("img",{staticClass:"sub-img",attrs:{src:"data:image/png;base64,"+e.blockBackImgBase}}):e._e()]):e._e()])])])])])])])},A0=[],w0=me(C0,_0,A0,!1,null,"ce1b7e38");const gn=w0.exports,b0=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"})),E0={name:"CodeInput",components:{GoogleInput:Vt,JcFloatInput:Un,JcVerifySlide:gn},props:{value:String,placeholder:String,ready:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duration:{type:Number,default:60},formTypeColor:{type:String,default:"1"},isEn:Boolean},emits:["input","send"],data(){return{isCounting:!1,countdown:0,timer:null,captchaVisible:!1}},computed:{statusClass(){return{1:"org",2:"lightBlue",4:"darkOrange"}[this.formTypeColor]||"darkBlue"},btnText(){return this.isCounting?`${this.countdown}s`:this.isEn?"Send Code":"发送验证码"}},methods:{handleSend:s0(function(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},500,{leading:!0,trailing:!1}),handleCaptchaSuccess(i){this.$emit("send",{captchaData:i,startTimer:this.startTimer.bind(this)})},startTimer(){this.isCounting||(this.isCounting=!0,this.countdown=this.duration,this.timer=setInterval(()=>{this.countdown--,this.countdown<=0&&this.stopTimer()},1e3))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null),this.isCounting=!1,this.countdown=0}},beforeDestroy(){var i,e;this.stopTimer(),(e=(i=this.handleSend).cancel)==null||e.call(i)}};var S0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"code-input-container"},[r(e.showIcon?"JcFloatInput":"GoogleInput",{tag:"component",staticClass:"verify-code-input",attrs:{value:e.value,label:e.placeholder,placeholder:e.placeholder,autocomplete:"off",maxlength:"6"},on:{input:function(s){return e.$emit("input",s)}},scopedSlots:e._u([e.showIcon?{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}:null,{key:"suffix",fn:function(){return[r("a",{staticClass:"send-code-btn",class:[e.statusClass,{"is-disabled":e.disabled||e.isCounting||!e.ready}],on:{click:e.handleSend}},[r("span",{class:e.isCounting||!e.ready?"disabled-color":"obtain-color"},[e._v(" "+e._s(e.btnText)+" ")])])]},proxy:!0}],null,!0)}),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},I0=[],x0=me(E0,S0,I0,!1,null,"c6dda8f5");const nn=x0.exports,T0=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),R0={components:{[U.Dialog.name]:U.Dialog,[U.Form.name]:U.Form,[U.FormItem.name]:U.FormItem,[U.Input.name]:U.Input,[U.Button.name]:U.Button,[U.Checkbox.name]:U.Checkbox,[U.Row.name]:U.Row,[U.Col.name]:U.Col},data(){return{isVisible:!1,formData:{city:"",company:"",email:"",phone:"",name:"",agreement:!1},formRules:{city:[{required:!0,message:"请输入所在地城市",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"请输入有效的邮箱地址",trigger:"blur"}],agreement:[{validator:(i,e,r)=>{e?r():r(new Error("请同意隐私政策"))},trigger:"change"}]}}},mounted(){b.emitter.on(b.MODAL_ACTION.Open,this.handleOpen)},beforeDestroy(){b.emitter.off(b.MODAL_ACTION.Open,this.handleOpen)},methods:{handleOpen(){console.log("🍉 ~ GlobalModal.vue:150 ~ methods.handleOpen:",this.handleOpen),this.isVisible=!0},closeModal(){this.isVisible=!1,b.emitter.emit(b.MODAL_ACTION.Close),this.$refs.formRef.resetFields()},handleSubmit(){this.$refs.formRef.validate(i=>{i&&(b.emitter.emit(b.MODAL_ACTION.Submit,{...this.formData}),this.closeModal())})}}};var B0=function(){var e=this,r=e._self._c;return r("el-dialog",{attrs:{visible:e.isVisible,"before-close":e.closeModal,"show-close":!1,"close-on-click-modal":!0,width:"500px","custom-class":"global-modal-custom"},on:{"update:visible":function(s){e.isVisible=s}}},[r("div",{staticClass:"global-modal-header-custom",attrs:{slot:"title"},slot:"title"},[r("h2",[e._v("即刻链接全球货代")]),r("el-button",{staticClass:"close-button-custom",attrs:{type:"text"},on:{click:e.closeModal}},[r("span",{staticStyle:{"font-size":"2rem"}},[e._v("×")])])],1),r("div",{staticClass:"global-modal-body-custom"},[r("el-form",{ref:"formRef",attrs:{model:e.formData,rules:e.formRules,"label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所在地(城市)",prop:"city"}},[r("el-input",{attrs:{placeholder:"请输入城市"},model:{value:e.formData.city,callback:function(s){e.$set(e.formData,"city",s)},expression:"formData.city"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"公司名称",prop:"company"}},[r("el-input",{attrs:{placeholder:"请输入公司名称"},model:{value:e.formData.company,callback:function(s){e.$set(e.formData,"company",s)},expression:"formData.company"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[r("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.formData.email,callback:function(s){e.$set(e.formData,"email",s)},expression:"formData.email"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"电话",prop:"phone"}},[r("el-input",{attrs:{placeholder:"请输入电话"},model:{value:e.formData.phone,callback:function(s){e.$set(e.formData,"phone",s)},expression:"formData.phone"}})],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入您的全名"},model:{value:e.formData.name,callback:function(s){e.$set(e.formData,"name",s)},expression:"formData.name"}})],1)],1)],1),r("el-form-item",{staticClass:"agreement-item",attrs:{prop:"agreement"}},[r("el-checkbox",{model:{value:e.formData.agreement,callback:function(s){e.$set(e.formData,"agreement",s)},expression:"formData.agreement"}},[e._v("我同意")]),r("a",{staticClass:"privacy-link",attrs:{href:"#"}},[e._v("隐私政策")])],1)],1)],1),r("div",{staticClass:"global-modal-footer-custom",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{staticClass:"submit-button-custom",attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 加入会员 ")])],1)])},F0=[],P0=me(R0,B0,F0,!1,null,null);const Cc=P0.exports,k0=Object.freeze(Object.defineProperty({__proto__:null,default:Cc},Symbol.toStringTag,{value:"Module"})),D0=U.Select,O0=U.Option;function L0(i,e=300){let r=null;return(...s)=>{r&&clearTimeout(r),r=setTimeout(()=>{i(...s)},e)}}const N0=C.defineComponent({name:"JcCarrierSearch",components:{"el-select":D0,"el-option":O0},model:{prop:"value",event:"input"},props:{value:{type:[String,Number,Array],default:void 0},modelValue:{type:[String,Number,Array],default:void 0},lang:{type:String,default:""},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},reportType:{type:String,default:"carrier"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},showApplyData:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.ref(),s=C.computed(()=>i.modelValue!==void 0?i.modelValue:i.value),u=C.computed(()=>{var E,q,F,w,M,G;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const $=(E=useCookie("jc-language"))==null?void 0:E.value;if($)return/^en(-US)?$/.test($)}}catch{}if(typeof document!="undefined"){const $=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test($)}try{if(typeof useNuxtApp=="function"){const $=useNuxtApp(),ye=((G=(M=(w=(F=(q=$==null?void 0:$.ssrContext)==null?void 0:q.event)==null?void 0:F.node)==null?void 0:w.req)==null?void 0:M.headers)==null?void 0:G.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(ye)}}catch{}return!1}),p=C.computed(()=>i.placeholder?i.placeholder:{Carrier:u.value?"Search by carrier name or code":"请输入公司名称或代码",Line:u.value?"Search by line name":"请输入航线名称",Seaport:u.value?"Search by seaport name":"请输入港口名称"}[i.type]||(u.value?"Search...":"请输入关键字搜索")),l=C.computed({get:()=>s.value,set:E=>{e("input",E),e("update:modelValue",E),e("update:value",E)}}),m=C.computed(()=>{const E=s.value;return Array.isArray(E)?typeof E.find(F=>F!=null&&F!=="")=="string":typeof E=="string"}),A=E=>m.value?String(E):E,v=C.ref(!1),x=C.ref([]),T=50,I=C.ref(""),B=()=>{x.value=[...i.defaultOptions]};C.watch(()=>i.defaultOptions,()=>{!v.value&&!I.value&&(x.value=[...i.defaultOptions])},{immediate:!0,deep:!0});const D=L0(async E=>{try{const q={keyword:E,current:1,size:T};let F={};i.type==="Carrier"?F=await b.locationSearchV2.carrier.search(q,i.lineType):i.type==="Line"?F=await b.locationSearchV2.line.search(q,i.lineType):F=await b.locationSearchV2.searchByName({...q,displayInfo:[i.type]});const w=F.records||[];if(i.defaultOptions.length>0){const M=i.defaultOptions.filter(G=>!w.some($=>$.id===G.id));x.value=[...M,...w]}else x.value=w}catch(q){console.error("Search failed:",q)}finally{v.value=!1}},300),W=E=>{if(I.value=E,!E||!E.trim()){v.value=!1,B();return}v.value=!0,D(E)},k=E=>{E||(B(),v.value=!1,I.value="",r.value&&r.value.blur&&r.value.blur())},S=()=>{B(),I.value="",e("change",null,null),e("input",null),e("update:modelValue",null),e("update:value",null)},N=E=>{if(!E){e("change",E,null);return}let q;Array.isArray(E)?q=x.value.filter(F=>E.some(w=>String(w)===String(F.id))):q=x.value.find(F=>String(F.id)===String(E))||null,e("change",E,q)},H=()=>{I.value&&b.reportNewTypeDataApi({reportData:I.value,reportType:i.reportType.toLocaleLowerCase()}),e("apply",I.value),r.value&&r.value.blur&&r.value.blur()},Q=E=>{e("remove-tag",E)},z=async()=>{const E=s.value;if(E==null||E==="")return;const F=(Array.isArray(E)?E:[E]).filter(w=>!x.value.some(M=>String(M.id)===String(w)));if(F.length!==0)try{let w=[];if(i.type==="Carrier"){const M=await b.locationSearchV2.carrier.getByIds(F.map(G=>Number(G)).filter(G=>!Number.isNaN(G)),i.lineType);w=Array.isArray(M)?M:M.records||[]}else if(i.type==="Line"){const M=await b.locationSearchV2.line.getByIds(F.map(G=>Number(G)).filter(G=>!Number.isNaN(G)),i.lineType);w=Array.isArray(M)?M:M.records||[]}if(w.length>0){const M=w.filter(G=>!x.value.some($=>$.id===G.id));x.value.push(...M)}}catch(w){console.error("Init selected data failed:",w)}};return C.onMounted(()=>{z()}),C.watch(()=>s.value,(E,q)=>{JSON.stringify(E)!==JSON.stringify(q)&&typeof window!="undefined"&&z()}),{selectRef:r,innerValue:l,loading:v,options:x,currentPlaceholder:p,isEn:u,onRemoteMethod:W,handleVisibleChange:k,handleClear:S,handleChange:N,handleApply:H,handleRemoveTag:Q,ICON_MORE:Ci,showApplyData:i.showApplyData,normalizeOptionValue:A,multiple:i.multiple}}});var M0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("el-select",{ref:"selectRef",staticClass:"jc-w-full jc-carrier-search-comp",attrs:{multiple:e.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:e.currentPlaceholder,"remote-method":e.onRemoteMethod,loading:e.loading,"popper-class":"jc-carrier-search-pop"},on:{change:e.handleChange,"visible-change":e.handleVisibleChange,clear:e.handleClear,focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":e.handleRemoveTag},model:{value:e.innerValue,callback:function(s){e.innerValue=s},expression:"innerValue"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e._l(e.options,function(s){return r("el-option",{key:s.id,attrs:{label:e.isEn?s.displayEn||s.display:s.displayCn||s.display,value:e.normalizeOptionValue(s.id)}},[e._t("option",function(){return[r("div",{staticClass:"jc-flex jc-items-center jc-justify-between"},[r("span",[e._v(e._s(e.isEn?s.displayEn||s.display:s.displayCn||s.display))]),s.code?r("span",{staticClass:"jc-ml-2 jc-text-xs jc-text-gray-400"},[e._v(" "+e._s(s.code)+" ")]):e._e()])]},{item:s})],2)}),r("template",{slot:"empty"},[r("div",{staticClass:"jc-p-4 jc-text-sm jc-text-center jc-text-gray-500"},[e.loading?r("div",[e._v(e._s(e.isEn?"Searching...":"正在搜索中..."))]):r("div",{staticClass:"jc-flex jc-flex-wrap jc-justify-center jc-items-center"},[e.showApplyData?[r("p",[e._v(e._s(e.isEn?"No results found. ":"暂无结果,"))]),r("div",{staticClass:"jc-flex jc-justify-center jc-items-center jc-gap-1"},[r("span",{staticClass:"jc-font-medium jc-text-14 jc-text-orange jc-leading-5 jc-text-center jc-cursor-pointer jc-ml-1",on:{click:function(s){return s.stopPropagation(),e.handleApply.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据 "))]),r("img",{staticClass:"jc-mr-1 jc-size-4",attrs:{src:e.ICON_MORE,alt:""},on:{click:function(s){return s.stopPropagation(),e.handleApply.apply(null,arguments)}}})])]:[r("p",[e._v(e._s(e.isEn?"No results found.":"暂无结果"))])]],2)])])],2)},U0=[],q0=me(N0,M0,U0,!1,null,"c5c42dc6");const mr=q0.exports,V0=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),W0=C.defineComponent({name:"AirCarrierSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the carrier code or name (e.g., AAL)":"请输入航空公司代码或名称 (如: AAL)");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var H0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-air-carrier-search",attrs:{type:"Carrier","line-type":"air","report-type":"air_carrier",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},G0=[],J0=me(W0,H0,G0,!1,null,"315fec7f");const j0=J0.exports,z0=Object.freeze(Object.defineProperty({__proto__:null,default:j0},Symbol.toStringTag,{value:"Module"})),Q0=C.defineComponent({name:"AirLineSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the line name":"请输入航线名称");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var K0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-air-line-search",attrs:{type:"Line","line-type":"air","report-type":"air_line",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},X0=[],Y0=me(Q0,K0,X0,!1,null,"ec3bece0");const $0=Y0.exports,Z0=Object.freeze(Object.defineProperty({__proto__:null,default:$0},Symbol.toStringTag,{value:"Module"})),eC=C.defineComponent({name:"SeaCarrierSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the carrier code or name (e.g., AAL)":"请输入船司代码或名称 (如: MSK)");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var tC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-sea-carrier-search",attrs:{type:"Carrier","line-type":"shipping","report-type":"shipping_carrier",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},nC=[],rC=me(eC,tC,nC,!1,null,"3ca731c4");const iC=rC.exports,aC=Object.freeze(Object.defineProperty({__proto__:null,default:iC},Symbol.toStringTag,{value:"Module"})),sC=C.defineComponent({name:"SeaLineSearch",components:{JcCarrierSearch:mr},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:void 0},lang:{type:String,default:""},placeholder:{type:String,default:""},showApplyData:{type:Boolean,default:!1}},emits:["input","update:modelValue","update:value","change","apply","focus","blur","remove-tag"],setup(i,{emit:e}){const r=C.computed({get:()=>i.modelValue!==void 0?i.modelValue:i.value,set:l=>{e("input",l),e("update:modelValue",l),e("update:value",l)}}),s=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const l=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(l)}return!1}),u=C.computed(()=>i.placeholder?i.placeholder:s.value?"Please enter the line name":"请输入航线名称");return{carrierId:r,currentPlaceholder:u,onCarrierChange:l=>{e("change",l)},lang:i.lang,showApplyData:i.showApplyData}}});var oC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("JcCarrierSearch",{staticClass:"jc-sea-line-search",attrs:{type:"Line","line-type":"shipping","report-type":"shipping_line",placeholder:e.currentPlaceholder,lang:e.lang,"show-apply-data":e.showApplyData},on:{change:e.onCarrierChange,apply:function(s){return e.$emit("apply",e.carrierId)},focus:function(s){return e.$emit("focus")},blur:function(s){return e.$emit("blur")},"remove-tag":s=>e.$emit("remove-tag",s)},scopedSlots:e._u([e.$scopedSlots.option?{key:"option",fn:function(s){return[e._t("option",null,null,s)]}}:null],null,!0),model:{value:e.carrierId,callback:function(s){e.carrierId=s},expression:"carrierId"}},[e.$slots.prefix?r("template",{slot:"prefix"},[e._t("prefix")],2):e._e()],2)},lC=[],cC=me(sC,oC,lC,!1,null,"95dcc99d");const uC=cC.exports,fC=Object.freeze(Object.defineProperty({__proto__:null,default:uC},Symbol.toStringTag,{value:"Module"})),dC={name:"JcFloatWrapper",emits:["focus","blur"],props:{label:{type:String,default:""}},data(){return{internalFocus:!1}},computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(i){var r,s;const e=i.relatedTarget;e&&((s=(r=this.$el)==null?void 0:r.contains)!=null&&s.call(r,e))||(this.internalFocus=!1,this.$emit("blur"))}}};var pC=function(){var e=this,r=e._self._c;return r("div",{staticClass:"jc-float-wrapper",class:{"is-focus":e.internalFocus,"is-have-prepend":e.isHavePrepend},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut}},[r("div",{staticClass:"wrapper-container"},[e.isHavePrepend?r("div",{staticClass:"wrapper-prepend"},[e._t("prefix")],2):e._e(),r("div",{staticClass:"wrapper-main"},[e._t("default"),r("p",{staticClass:"wrapper-label"},[e._v(" "+e._s(e.label)+" ")])],2),e.isHaveAppend?r("div",{staticClass:"wrapper-append"},[e._t("suffix")],2):e._e()])])},hC=[],mC=me(dC,pC,hC,!1,null,"f9f8068e");const Ai=mC.exports,gC=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Ot=()=>typeof window!="undefined",At=(i,e)=>{var r;if(Ot())try{(r=window.sessionStorage)==null||r.setItem(i,e)}catch{}},$t=i=>{var e;if(!Ot())return"";try{return((e=window.sessionStorage)==null?void 0:e.getItem(i))||""}catch{return""}},lr=i=>{var e;if(Ot())try{(e=window.sessionStorage)==null||e.removeItem(i)}catch{}},vC={data:{redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]}},yC=(i,e)=>{i.thirdPartyId&&At("jc-auth-thirdPartyId",i.thirdPartyId),i.thirdPartyEmail&&At("jc-auth-thirdPartyEmail",i.thirdPartyEmail),i.thirdPartyType&&At("jc-auth-thirdPartyType",i.thirdPartyType),i.thirdPartyUserName&&At("jc-auth-thirdPartyUserName",i.thirdPartyUserName),e&&e.length>0&&At("jc-auth-mobileEmailList",JSON.stringify(e))},_c=()=>{const i=$t("jc-auth-mobileEmailList")||"[]";return{thirdPartyId:$t("jc-auth-thirdPartyId"),thirdPartyEmail:$t("jc-auth-thirdPartyEmail"),thirdPartyType:$t("jc-auth-thirdPartyType"),thirdPartyUserName:$t("jc-auth-thirdPartyUserName"),mobileEmailList:JSON.parse(i)}},ec=i=>{i&&i.length>0&&At("jc-auth-thirdPartyEmailVerifyList",JSON.stringify(i))},tc=i=>{i&&i.length>0&&At("jc-auth-thirdPartyMobileVerifyList",JSON.stringify(i))};function CC(i){const e=C.ref(!1),r=C.ref(null),s=C.ref(!1),u=C.ref(!1),p=C.ref([]),l=C.ref(!1);let m=null,A=null,v=!1;const x="current_login_type",T="jc_auth_state_check",I="jc_auth_active_instance",B=Math.random().toString(36).substring(2,15),D=F=>Ot()?new URLSearchParams(window.location.search).get(F):null,W=()=>{A&&(clearInterval(A),A=null),m=null},k=()=>{console.log("🧹 [重置] 清空所有登录状态"),W(),Ot()&&window.removeEventListener("message",N),e.value=!1,r.value=null,s.value=!1,u.value=!1,l.value=!1,p.value=[],v=!1,lr(x),lr(I),lr(T)},S=()=>{if(Ot()&&window.opener&&window.opener!==window){const F=D("code"),w=D("state");F&&(console.log("🍉 [弹窗] 获取到授权码,准备回传:",F),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:F,state:w},"*"),window.close())}},N=async F=>{if(!Ot())return;if(![window.location.origin,"https://passport.jctrans.com","https://passport-sit.jctrans.net.cn","https://passport-sit2.jctrans.net.cn","http://localhost:8080","http://localhost:8086","http://localhost:8093"].includes(F.origin)){console.warn("收到未知来源的消息:",F.origin);return}const{type:M,code:G,state:$}=F.data||{};if(M==="THIRD_PARTY_LOGIN_CODE"&&G&&$){if($t(I)!==B||$t(T)!==$)return;v=!0,console.log(`🍉 [主窗口] 实例 ${B} 收到授权码:`,G,$),window.removeEventListener("message",N),W();const Te=$t(x)||null;if(Te==="TEST"){console.log("🍉 [主窗口] 测试模式:模拟接口返回");const Pe=vC.data;setTimeout(()=>{Q(Pe)},500)}else await H(G,Te)}},H=async(F,w)=>{const M=b.getAuthSessionItems(),G={thirdPartyCode:F,appId:i.appId,redirectPath:i.redirectPath||"/",activityCode:(M==null?void 0:M.activityCode)||"",referenceUserId:(M==null?void 0:M.referenceUserId)||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};try{let $;w==="FACEBOOK"?$=await b.loginByFacebookApi(G):w==="LINKEDIN"&&($=await b.loginByLinkedinApi(G)),$&&$.data&&Q($.data)}catch($){console.error("登录 API 错误:",$),i.onError&&i.onError($),k()}finally{e.value=!1,lr(x),lr(I)}},Q=F=>{const w=F.data||F;if(console.log("🍉 处理登录结果:",w),r.value=w,e.value=!1,w.redirect&&w.tgc){const G=i.appId==="CPA"?"tgc-CPA":"tgc";Mt.set(G,w.tgc,{expires:30})}const M=w.mobileEmailList||[];if(yC((w==null?void 0:w.thirdPartyInfo)||{},(w==null?void 0:w.mobileEmailList)||[]),M.length>0)console.log("👉 进入绑定流程"),p.value=M,s.value=!0,u.value=!1,i.onNeedBind&&i.onNeedBind(M);else if(w.redirect)if(console.log("👉 直接登录成功,准备跳转"),s.value=!1,u.value=!1,b.setTokenAll(w.result),i.onSuccess)i.onSuccess(w);else{const G=w.redirectPath||i.redirectPath;console.log("🍉 ~ useThirdPartyLogin.ts:426 ~ handleLoginSuccess ~ targetPath:",G),G&&Ut(G)}else console.log("👉 进入注册流程"),s.value=!1,p.value=[],u.value=!0},z=F=>{if(!Ot()||e.value)return;k(),v=!1,window.addEventListener("message",N),e.value=!0,At(x,F),At(I,B);const w="jc_"+Math.random().toString(36).slice(2);At(T,w);const M=window.location.hostname.includes("jctrans.com"),G=window.location.hostname.includes("sit2"),$=window.location.hostname.includes("sit"),Pe=`${M?"https://passport.jctrans.com":G?"https://passport-sit2.jctrans.net.cn":$?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"}/oauth_callback.html`||window.location.origin+window.location.pathname;let X="";F==="TEST"?X=`${M?"https://passport.jctrans.com/mock_auth.html":G?"https://passport-sit2.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(Pe)}&state=${w}`:F==="FACEBOOK"?X=`https://www.facebook.com/v22.0/dialog/oauth?client_id=1819580562224685&redirect_uri=${encodeURIComponent(Pe)}&state=${w}&scope=email,public_profile&display=popup`:F==="LINKEDIN"&&(X=`https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=86t0770jygwztk&redirect_uri=${encodeURIComponent(Pe)}&state=${w}&scope=profile%20email%20openid`);const j=600,ne=700,Ce=window.screen.width/window.innerWidth,Ne=(window.screen.width-j)/2/Ce+(window.screenLeft!==void 0?window.screenLeft:window.screenX),Ee=(window.screen.height-ne)/2/Ce+(window.screenTop!==void 0?window.screenTop:window.screenY),Ae=`
|
|
28
28
|
width=${j},
|
|
29
29
|
height=${ne},
|
|
30
30
|
top=${Ee},
|
|
31
|
-
left=${
|
|
31
|
+
left=${Ne},
|
|
32
32
|
toolbar=no,
|
|
33
33
|
menubar=no,
|
|
34
34
|
scrollbars=yes,
|
|
35
35
|
status=no,
|
|
36
36
|
location=no
|
|
37
|
-
`;if(console.log(`🍉 打开弹窗 [${F}]: ${X}`),m=window.open(X,"ThirdPartyLogin",Ae),!m){console.error("浏览器已阻止弹窗"),e.value=!1;return}A=setInterval(()=>{if(m&&m.closed){if(v){console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),W();return}console.log("🍉 检测到弹窗被手动关闭,执行重置"),k(),l.value=!0}},1e3)};return C.onMounted(()=>{S()}),C.onUnmounted(()=>{Ot()&&window.removeEventListener("message",N),k()}),{isLoading:e,isBindDialogVisible:s,isRegisterVisible:u,isUserClosed:l,bindList:p,loginResult:r,startLogin:z,resetState:k,handleBindThirdParty:F=>{p.value=F,s.value=!0,u.value=!1},resetBindRegisterState:()=>{s.value=!1,u.value=!1,p.value=[]}}}async function On(i,e,r,s=!0,u=!0){if(!e||e.trim()==="")return r(new Error(s?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[一-龥]+/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(e))return r(new Error(s?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(u)try{const{data:l}=await b.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",l),l.data)return r(new Error(s?"It's already occupied, please re-enter.":"已被占用,请重新输入"));r()}catch{r(new Error(s?"Validation failed, please re-enter.":"校验失败,请重新输入"))}else return r()}async function _C(i,e,r,s=!0,u){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",u),e==null||e==="")r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[一-龥]+/.test(e))r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const p=await b.findListByMobileEmailApi({email:e});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",p),!p.data.data||p.data.data.records.length===0?(ec([]),u.thirdPartyEmailVerifyList=[],r()):(ec(p.data.data.records),u.thirdPartyEmailVerifyList=p.data.data.records,r(new Error(s?"This email has been registered":"邮箱已注册")))}catch{r(new Error(s?"This email has been registered":"邮箱已注册"))}}function AC(i,e,r,s=!0,u){e?/^[0-9]*$/.test(e)===!0?e.length<2?r(new Error(s?"please enter at least 2 characters.":"请输入至少2个字符")):b.findListByMobileEmailApi({mobile:e}).then(p=>{!p.data.data||p.data.data.records.length===0?(tc([]),u.thirdPartyMobileVerifyList=[],r()):(tc(p.data.data.records),u.thirdPartyMobileVerifyList=p.data.data.records,r(new Error(s?"This mobile number has been registered":"手机号已注册")))}).catch(()=>{r(new Error(s?"This mobile number has been registered":"手机号已注册"))}):r(new Error("请正确填写手机号")):r(new Error(s?"Please enter your cell phone number":"请输入手机号"))}function Ln(i,e,r,s=!0,u=!0){const p=/^[a-zA-Z一-龥\s.·•]+$/,l=/^[a-zA-Z\s.·•]+$/;if(!e){const m=u?s?"please enter your Chinese name":"请输入您的中文姓名":s?"Please enter your English name":"请输入您的英文姓名";return r(new Error(m))}if(u){if(e.length>50||!p.test(e))return r(new Error(s?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(e.length>50||!l.test(e))return r(new Error(s?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));r()}function pi(i,e,r,s=!0){const u={empty:s?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:s?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(e==null||e==="")return r(new Error(u.empty));if(e.length<6||e.length>20)return r(new Error(u.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s \n\r【】{}[\]|;~·]*$/.test(e))return r(new Error(u.invalidChars));const l=/^[a-zA-Z]*$/.test(e),m=/^[0-9]*$/.test(e),A=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s \n\r【】{}[\]|;~·]*$/.test(e);if(l||m||A)return r(new Error(u.complexity));r()}async function Nn(i,e,r,s=!0,u=!0){const p={empty:s?"Please enter your cell phone number":"请输入手机号",minLen:s?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:s?"Invalid mobile address":"手机号格式错误",occupied:s?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!e)return r(new Error(p.empty));if(!/^[0-9]*$/.test(e))return r(new Error(p.invalid));if(e.length<2)return r(new Error(p.minLen));if(u)try{const l=await b.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",l),l&&l.data.data)return r(new Error(p.occupied));r()}catch{r(new Error(p.occupied))}else return r()}function wC(i){return i?i.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}async function as(i,e,r,s=!0,u){const p=wC(e);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",p);const l=u.countryId==1;if(!p)return l&&(u.appId==="DDC"||u.appId==="JHB")?r():r(new Error(s?"please enter the full company name":"请输入公司名称"));if(p.length<2)return r(new Error(s?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(p.length>200)return r(new Error(s?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!l){if(/[一-龥]/.test(p))return r(new Error(s?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(p))return r(new Error(s?"Wrong format for company name":"注册公司名格式错误"))}if(u.countryId&&u.cityId)try{const m={countryId:u.countryId,cityId:u.cityId,[l?"compNameCn":"compNameEn"]:p},A=await b.validateCompanyApi(m);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",A),A.data.data.result?u.appId==="JCPAY"?r(new Error(s?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(l?u.companyResistCn=!0:u.companyResistEn=!0,u.resistCompanyInfo=A.data.data,r()):(l?u.companyResistCn=!1:u.companyResistEn=!1,r())}catch(m){const A=(m==null?void 0:m.toString().split(":")[1])||"API Error";r(new Error(A))}else r(new Error(s?"Please select a Country/Region":"请选择国家/地区"))}function tn(i,e,r,s=!0){if(!e)return r(new Error(s?"Please enter the verification code":"请输入验证码"));if(!/^\d{4}$/.test(e))return r(new Error(s?"Verification code must be 4 digits":"验证码必须为4位数字"));r()}function ss(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyAgreement`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}function os(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyPolicy`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}const Ut=(i,e=100)=>{typeof window!="undefined"&&i&&setTimeout(()=>{i.startsWith("http")?window.location.href=i:(window.location.href=window.location.origin+i,console.warn("内部路径跳转逻辑尚未定义:",i))},e)},bC=C.defineComponent({name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(i,{emit:e}){const r=C.computed(()=>i.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),s=C.computed(()=>i.isEn?"join in >>":"点击申请加入 >>");return{register_already_tip:r,register_join_in:s,applyJoin:()=>{e("apply-join")}}}});var EC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},[r("p",{staticClass:"jc:text-xs",staticStyle:{color:"#f80"}},[r("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.register_already_tip)+" ")]),r("p",{staticStyle:{color:"#3264ff",cursor:"pointer"},on:{click:e.applyJoin}},[e._v(" "+e._s(e.register_join_in)+" ")])])},SC=[],IC=me(bC,EC,SC,!1,null,"4b87a2f3");const wi=IC.exports,xC=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"})),TC={name:"RegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,ApplyJoinBtn:wi},props:{isEn:Boolean},emits:["to-login","register","need-complete","register-success"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r,s,u,p,l;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((l=(p=(u=(s=this.form)==null?void 0:s.city)==null?void 0:u.raw)==null?void 0:p.city)==null?void 0:l.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:null,cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>On(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:ss,getAuthSessionItems:b.getAuthSessionItems,go2Policy:os,async inviteJoinGetComp(){const e=b.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await b.getLocalIpDataApi()).data;e&&e.code===0&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await b.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleClearCity(){this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};e();let s=b.sendEmailCodeApi,u=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(s=b.sendMobileCodeApi,u=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{if(!i)return;if(!this.verifyData.uuid){U.Message.error(this.isEn?"Please get code first":"请先获取验证码");return}const e=this.getAuthSessionItems();let r={appId:this.appId,fromSys:this.appId,passwd:ht.MD5(this.form.password).toString(),clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterInfo:e.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:e.uniqueCode||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(s=>s.telCode===this.form.areaCode).id,account:b.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:b.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(i){const e=this.getAuthSessionItems(),r={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?r.compNameCn=this.form.companyName:r.compNameEn=this.form.companyName,this.$emit("register",r),this.loading=!0;try{const u=await(e.uniqueCode?b.registerUserCompBindWechatApi:b.registerApi)(r);this.handlePostRegister(u)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e=this.getAuthSessionItems(),r={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(r.nameCn=this.form.nameCn),this.form.nameEn&&(r.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(u=>delete r[u]),this.$emit("register",r),this.loading=!0;try{const p=await(e.uniqueCode?b.registerJoinCompanyBindWechatApi:b.registerJoinCompanyApi)(r);this.handlePostRegister(p)}catch{this.loading=!1}},normalizeDelayMs(i){if(i==null||i==="")return 0;if(typeof i=="string"){const r=i.trim().toLowerCase();if(!r)return 0;if(r.endsWith("ms")){const u=Number(r.slice(0,-2).trim());return Number.isFinite(u)&&u>=0?u:0}if(r.endsWith("s")){const u=Number(r.slice(0,-1).trim());return Number.isFinite(u)&&u>=0?u*1e3:0}const s=Number(r);return!Number.isFinite(s)||s<0?0:s>=10?s:s*1e3}const e=Number(i);return!Number.isFinite(e)||e<0?0:e>=10?e:e*1e3},executeRedirectWithDelay(i,e){const r=this.normalizeDelayMs(e);setTimeout(()=>{b.resetAuthSessionItems(),Ut(i)},r)},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect){if(b.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}try{Mt.set("tgc",i.data.data.tgc,{expires:30});const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0,this.executeRedirectWithDelay(r,l)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||this.executeRedirectWithDelay(r,0)},0)}catch(r){console.error("注册成功后的后续处理发生异常:",r)}}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var RC=function(){var s,u,p,l,m,A;var e=this,r=e._self._c;return r("div",{staticClass:"register-form-container"},[r("div",{staticClass:"register-title"},[r("p",[e._v(e._s(e.isEn?"New User Registration":"新用户注册"))])]),r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(v){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(v){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",v)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{clear:e.handleClearCity,select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(v){e.$set(e.form,"city",v)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||((A=(m=(l=e.form.city)==null?void 0:l.raw)==null?void 0:m.city)==null?void 0:A.countryId)||null,city:e.form.city},on:{"update:companyName":function(v){return e.$set(e.form,"companyName",v)},"update:company-name":function(v){return e.$set(e.form,"companyName",v)},"update:useKq":function(v){return e.$set(e.form,"useKq",v)},"update:use-kq":function(v){return e.$set(e.form,"useKq",v)},"update:kqCode":function(v){return e.$set(e.form,"kqCode",v)},"update:kq-code":function(v){return e.$set(e.form,"kqCode",v)},"update:kqInfo":function(v){return e.$set(e.form,"kqInfo",v)},"update:kq-info":function(v){return e.$set(e.form,"kqInfo",v)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{attrs:{"is-en":e.isEn},on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(v){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(v){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(v){e.$set(e.form,"areaCode",v)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(v){return r("el-option",{key:v.id,attrs:{label:v.telCode,value:v.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(v){e.$set(e.form,"phone",v)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(v){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(v){e.$set(e.form,"email",v)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(v){e.$set(e.form,"code",v)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(v){e.$set(e.form,"password",v)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(e._s(e.isEn?"Industry Sector":"行业类型"))]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(v){return r("div",{key:v.value,staticClass:"sector-item",class:{active:e.form.sector===v.value},on:{click:function(x){e.form.sector=v.value}}},[e._v(" "+e._s(e.isEn?v.en:v.cn)+" "),e.form.sector===v.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(v){e.$set(e.form,"agree",v)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2),r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Already have an account?":"已有账号?")+" "),r("span",{staticClass:"action-text",on:{click:function(v){return e.$emit("to-login")}}},[e._v(" "+e._s(e.isEn?"Click to log in":"去登录")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])])],1)},BC=[],FC=me(TC,RC,BC,!1,null,"0b64240f");const Ac=FC.exports,PC=Object.freeze(Object.defineProperty({__proto__:null,default:Ac},Symbol.toStringTag,{value:"Module"})),kC={name:"CompleteInfoForm",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,JcVerifySlide:gn,ApplyJoinBtn:wi},props:{isEn:Boolean},emits:["success"],data(){return{isReady:!1,loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,currentUserMobile:null,currentUserEmail:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>this.hasResistCompany?r():as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>On(i,e,r,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}]}}},computed:{countryId(){var i,e,r,s;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((s=this.resistCompanyInfo)==null?void 0:s.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){const i=this.countryId;return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return this.isReady?this.currentCountryIsChina&&!this.currentUserMobile:!1},isShowEmailCode(){return this.isReady?!this.currentUserEmail:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){b.getUserInfoApi().then(i=>{var e,r;this.currentUserMobile=(e=i.data.data)==null?void 0:e.mobile,this.currentUserEmail=(r=i.data.data)==null?void 0:r.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(i){i&&(this.companyResistCn=i.cnExists,this.companyResistEn=i.enExists,this.resistCompanyInfo=i.companyInfo)},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const i=await b.findPAreaCodeApi();this.areaCodeData=i.data.data.records},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))})},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(i){this.$refs.formRef.validateField(i,e=>{(i==="phone"||i==="email")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:i.uuid,code:i.code},s=this.isShowMobileCode?b.sendMobileCodeApi:b.sendEmailCodeApi;this.isShowMobileCode&&(r.areaCode=this.form.areaCode,r.areaCodeCountryId=this.areaCodeData.find(u=>u.telCode===this.form.areaCode).id),e(),s(r).then(u=>{var l;const p=((l=u.data.data)==null?void 0:l.verifyCode)||u.data.verifyCode;u.data.code===0&&p&&(this.isShowMobileCode?this.mobileUid=p:this.emailUid=p,U.Message.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(i=>{i&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const i={cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,nameCn:this.currentCountryIsChina?this.form.companyName:"",nameEn:this.currentCountryIsChina?"":this.form.companyName,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:(window==null?void 0:window.location.pathname)||"/",...this.form.kqInfo};b.completeCompRedirectApi(i).then(e=>{e.data.code===0?(U.Message.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const i={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:(window==null?void 0:window.location.pathname)||"/"};b.completeJoinCompanyRedirectApi(i).then(e=>{if(e.data.code===0){if(e.data.data.redirect)try{Mt.set("tgc",e.data.data.tgc,{expires:30});const r=this.getAuthSessionItems(),s=e.data.data.redirectPath||r.path||"/";b.resetAuthSessionItems(),Ut(s)}catch{}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})}}};var DC=function(){var e=this,r=e._self._c;return r("div",{staticClass:"complete-info-container"},[r("div",{staticClass:"complete-info-container_header"},[r("div",{staticClass:"complete-info-container_title"},[e._v(" "+e._s(e.isEn?"Complete Your Information":"完善企业信息")+" ")]),r("div",{staticClass:"complete-info-container_tip-box"},[r("img",{attrs:{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""}}),r("span",[e._v(e._s(e.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"))])])]),r("el-form",{ref:"formRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(s){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(s){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",s)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],lang:e.isEn?"en":"zh-CN",placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(s){e.$set(e.form,"city",s)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,lang:e.isEn?"en":"zh-CN","country-id":e.countryId||null,city:e.form.city},on:{"update:companyName":function(s){return e.$set(e.form,"companyName",s)},"update:company-name":function(s){return e.$set(e.form,"companyName",s)},"update:useKq":function(s){return e.$set(e.form,"useKq",s)},"update:use-kq":function(s){return e.$set(e.form,"useKq",s)},"update:kqCode":function(s){return e.$set(e.form,"kqCode",s)},"update:kq-code":function(s){return e.$set(e.form,"kqCode",s)},"update:kqInfo":function(s){return e.$set(e.form,"kqInfo",s)},"update:kq-info":function(s){return e.$set(e.form,"kqInfo",s)},"update:exist-status":e.handleCompanyExistStatus,change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e(),r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(s){return r("div",{key:s.value,staticClass:"sector-item",class:{active:e.form.sector===s.value},on:{click:function(u){e.form.sector=s.value}}},[e._v(" "+e._s(e.isEn?s.en:s.cn)+" "),e.form.sector===s.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)])],e.isShowMobileCode?[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15"},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号","popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(s){e.$set(e.form,"areaCode",s)},expression:"form.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1425799582),model:{value:e.form.phone,callback:function(s){e.$set(e.form,"phone",s)},expression:"form.phone"}})],1)],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),e.isShowEmailCode?[r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(s){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(s){e.$set(e.form,"email",s)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),r("el-button",{staticClass:"submit-btn register-btn register-btn-is-active",attrs:{loading:e.loading},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Submit":"完成并进入")+" ")])],2)],1)},OC=[],LC=me(kC,DC,OC,!1,null,"c6a09f38");const wc=LC.exports,NC=Object.freeze(Object.defineProperty({__proto__:null,default:wc},Symbol.toStringTag,{value:"Module"})),MC=C.defineComponent({name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(i,{emit:e}){return{handleClick:()=>{e("handleClick")}}}});var UC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"auth-footer-box"},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"action-text",on:{click:function(s){return s.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e._v(e._s(e.subLabel)+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])])},qC=[],VC=me(MC,UC,qC,!1,null,"3fc7802c");const bc=VC.exports,WC=Object.freeze(Object.defineProperty({__proto__:null,default:bc},Symbol.toStringTag,{value:"Module"}));function HC(i){const e=C.ref(1),r=C.ref(!1),s=C.ref(!1),u=C.ref(),p=C.reactive({userName:""}),l=C.ref({}),m=C.ref(!1),A=C.ref("email"),v=C.reactive({email:!1,mobile:!1}),x=C.reactive({code:"",password:"",confirmPassword:""}),T=C.ref(""),I=C.ref(!1),B=C.reactive({mobile:!1,email:!1}),D=()=>{s.value=!0},W=z=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",z),s.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",e.value),e.value===1&&S(z)},k=({captchaData:z,startTimer:E})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",z),e.value===2&&N(z,E)},S=async z=>{var E;r.value=!0;try{const q=await b.checkAccountExistsFPApi({account:p.userName,...z});if((E=q.data.data)!=null&&E.exists){l.value=q.data.data;const F=!!l.value.email,w=!!l.value.mobile;!F&&!w?m.value=!0:(m.value=!1,e.value=2,F?(A.value="email",v.email=!1,v.mobile=!w):(A.value="mobile",v.mobile=!1,v.email=!0))}else U.Message.error(i.isEn?"Account does not exist":"账号不存在")}catch(q){console.error(q)}finally{r.value=!1}},N=async(z,E)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",z);try{u.value=z;const{data:q}=await b.getMEVCodeApi({account:l.value.account,target:A.value,...z});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",q),q.code===0&&(U.Message.success(i.isEn?"Verification code sent":"验证码已发送"),T.value=q.data.verifyCode,E(),A.value==="mobile"?B.mobile=!0:B.email=!0)}catch(q){console.error(q)}};return{activeStep:e,activeTab:A,loading:r,verifyVisible:s,formA:p,formB:x,userData:l,disabledTabs:v,showCustomerService:m,codeCountdown:B,codeReady:I,handleTriggerVerify:D,handleVerifySuccess:W,handleSendCodeVerifySuccess:k,handleSubmitReset:async()=>{var z;if(!((z=u.value)!=null&&z.uuid)){U.Message.info(i.isEn?"Please get the verification code first":"请先获取验证码");return}r.value=!0;try{const E={id:l.value.id,account:l.value.account,codeId:T.value,codeValue:x.code,password:ht.MD5(x.password).toString(),...u.value},{data:q}=await b.resetPasswordApi(E);return q.code===0?(U.Message.success(i.isEn?"Password reset successfully":"密码重置成功"),!0):(U.Message.error(q.msg),!1)}catch(E){return console.error(E),!1}finally{r.value=!1}},restFormB:()=>{x.code="",x.password="",x.confirmPassword="",T.value="",I.value=!1,B.mobile=!1,B.email=!1}}}const GC=C.defineComponent({name:"ForgetPassword",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn,FooterBox:bc,JcFloatInput:Un},props:{isEn:{type:Boolean,default:!1}},emits:["to-login"],setup(i,{emit:e}){const{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:A,disabledTabs:v,showCustomerService:x,codeCountdown:T,handleTriggerVerify:I,handleVerifySuccess:B,handleSendCodeVerifySuccess:D,handleSubmitReset:W,restFormB:k}=HC({isEn:i.isEn}),S=C.ref(),N=C.ref(),H=(w,M,G)=>{M===""?G(new Error(i.isEn?"Please input the password again":"请再次输入密码")):M!==m.password?G(new Error(i.isEn?"Two inputs don't match!":"两次输入密码不一致!")):G()},Q={userName:[{required:!0,message:i.isEn?"Please enter username":"请输入账号",trigger:"blur"}]};return{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:A,disabledTabs:v,showCustomerService:x,codeCountdown:T,formARef:S,formBRef:N,rulesA:Q,rulesB:{code:[{required:!0,validator:(w,M,G)=>tn(w,M,G,i.isEn),trigger:"blur"}],password:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}],confirmPassword:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}]},handleStep1Next:()=>{S.value.validate(w=>{w&&I()})},handleStep2Submit:async()=>{N.value&&await N.value.validate(async w=>{w&&await W()&&e("to-login")})},handleChangeTab:w=>{w&&v[w]||(s.value=w||s.value,k())},handleTriggerVerify:I,handleVerifySuccess:B,handleSendCodeVerifySuccess:D}}}),JC="data:image/webp;base64,UklGRsRFAABXRUJQVlA4WAoAAAAQAAAAfwIA3wEAQUxQSLkLAAABFMVt20a2sv/U6Wm0/4iYAH3QsQAZj5Skpeqc1H6r0r4PNiInDqR6gg0QUQ20fqiT2bwp+VTtHH8POAbt57zXh2N0nHFNdXEEirStD0qrtrdupA+CIBhCIQhCIASCGdQMGgaGkGEgCIFgCIagH83cZ9fyt5dExARQsrW3iiT5CFMiHfgYkyKFNaw19GO7PavTG613od8aRcQE0HX/P27kCLYFYzRrWGt4R5pflTvMnU7tXt46AesczhPoCawEaZmjVq6aVcqZbk+p3Ut9EM0DGHyCf6GDkpcDE6wiYgJkxbZdNxIPIbgMLgKFgBCkERiBQ0Am4EYgBBMCEYIgEIOL4PxOnXP75a+ICFz+v/x/+f/y/+X/y/+X0PNXU4yhvJW99lMuVfuOQy+R3mphztGE1rL3U4f9zCpnLUzxg3hvovYLj+us2xo0aGtnBEMOaWUNFcR7V/vtDmkbRQjiKsN+31ffcmjgXYb9/q++UUig0of9OWVfg0Hexf642jkM5Cr2h9bOAYCq2B9dO0892sUeoPY86/gc9hSvkucb1WHPsvNcY7EHqoVmGe0f9lBHzzOM6rAne/Ls4tMer5aZxWKPWMusYrHHrGVGsdij1jKbWOxxa5lJLPbItcyi3O2xa5lBVIc9ecnTZx/29HueOizmQH3NG+rmRN0mzT7Mjz1PmFXMlVpmCzVz55WnCqt5tM4TauZUzZOE1fxap0gz12qeHvky596vybEP82/PE4NOc7HmabGqeblOit0cfeYJQYe5WvN0yGrefk2GbZi/61So5vIrTwM6zOmaJ0G+zO33NgWymufrBOBhvq/w2839nbBXDYBXRl41CGrG3WEgjGaWjk6DYTSzcnQZEGPfwtFlUIx965YvA2Ps2xpJ3/TzX/8+bUvCRkDs2xe9781H+j1706vqMtsMhdi3K/roPuJruFgQEaky3yZDIPYtipqP+3TpptFaX2ZcC7FvS2T3sR8uRNnVWubbp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QRCCl4Sj1tWs4IV3VDIWkKhr20cMBeMCQv7DaL/6Q5/q5N1V/T1FqcBhJpYbsy3AWdy3C/vW0pBzMcoHH8IB9KhCDVVQopf5eE4DMA/HlaJmN6xKX7k6AAAAAAAAAAAAAA";var jC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"forget-password-container"},[r("div",{staticClass:"forget-box"},[r("div",{staticClass:"header-title"},[r("h1",[e._v(e._s(e.isEn?"Reset Password":"重置密码"))])]),e.showCustomerService?r("div",{staticClass:"kefu-wrapper"},[r("img",{staticClass:"kefu-img",attrs:{src:JC}}),r("p",{staticClass:"kefu-text"},[e._v(" "+e._s(e.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。")+" ")]),r("div",[e._v(e._s(e.isEn?"Customer Service":"联系客服"))])]):r("div",{staticClass:"form-wrapper"},[e.activeStep===1?r("div",[r("el-form",{ref:"formARef",attrs:{model:e.formA,rules:e.rulesA}},[r("el-form-item",{staticClass:"jc:mb-5!",attrs:{prop:"userName"}},[r("GoogleInput",{attrs:{value:e.formA.userName,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.formA.userName=s}}})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep1Next}},[e._v(" "+e._s(e.isEn?"Next":"下一步")+" ")])],1)],1):e._e(),e.activeStep===2?r("div",[r("div",{staticClass:"tab-switcher"},[r("div",{staticClass:"tab-item",class:{active:e.activeTab==="email",disabled:e.disabledTabs.email},on:{click:function(s){return e.handleChangeTab("email")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855712095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"}})]),e._v(" "+e._s(e.isEn?"Email Verify":"邮箱验证")+" ")]),r("div",{staticClass:"tab-item",class:{active:e.activeTab==="mobile",disabled:e.disabledTabs.mobile},on:{click:function(s){return e.handleChangeTab("mobile")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855760413",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"}})]),e._v(" "+e._s(e.isEn?"Mobile Verify":"手机验证")+" ")])]),r("el-form",{ref:"formBRef",attrs:{model:e.formB,rules:e.rulesB}},[r("el-form-item",{staticClass:"info-item"},[r("p",{staticClass:"default-info"},[r("span",{staticClass:"title"},[e._v(" "+e._s(e.activeTab==="email"?e.isEn?"Email":"邮箱":e.isEn?"Mobile":"手机号"))]),r("span",{staticClass:"user-value"},[e._v(" "+e._s(e.activeTab==="email"?e.userData.email:e.userData.mobile))])])]),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{"show-icon":"",value:e.formB.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":e.isEn,"custom-countdown":e.activeTab==="email"?e.codeCountdown.email:e.codeCountdown.mobile},on:{input:function(s){e.formB.code=s},send:e.handleSendCodeVerifySuccess}})],1),r("el-form-item",{attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.password,type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},on:{input:function(s){e.formB.password=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-form-item",{attrs:{prop:"confirmPassword"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.confirmPassword,type:"password","show-password":"",label:e.isEn?"Confirm Password":"确认密码",placeholder:e.isEn?"Enter password again":"请再次输入密码"},on:{input:function(s){e.formB.confirmPassword=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep2Submit}},[e._v(" "+e._s(e.isEn?"Confirm":"确认修改")+" ")])],1)],1):e._e()])]),r("FooterBox",{style:{margin:"12px -16px -16px"},attrs:{label:e.isEn?"Back to":"返回","sub-label":e.isEn?"log in":"登录"},on:{"handle-click":function(s){return e.$emit("to-login")}}}),r("JcVerifySlide",{attrs:{visible:e.verifyVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.verifyVisible=s},success:e.handleVerifySuccess}})],1)},zC=[],QC=me(GC,jC,zC,!1,null,"a511aae1");const Ec=QC.exports,KC=Object.freeze(Object.defineProperty({__proto__:null,default:Ec},Symbol.toStringTag,{value:"Module"})),XC={name:"LoginTypeSwitcher",components:{ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton},props:{value:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!0},showMobile:{type:Boolean,default:!0},isEn:{type:Boolean,default:!1}},emits:["input","change"],methods:{handleChange(i){this.$emit("input",i),this.$emit("change",i)}}};var YC=function(){var e=this,r=e._self._c;return r("el-radio-group",{staticClass:"login-type-switcher",attrs:{value:e.value},on:{input:e.handleChange}},[e.showAccount?r("el-radio-button",{attrs:{label:"account"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="account"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"}})]),r("span",[e._v(e._s(e.isEn?"Password":"账号密码"))])])]):e._e(),e.showEmail?r("el-radio-button",{attrs:{label:"email"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="email"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"}})]),r("span",[e._v(e._s(e.isEn?"Email":"邮箱"))])])]):e._e(),e.showMobile?r("el-radio-button",{attrs:{label:"mobile"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="mobile"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"}})]),r("span",[e._v(e._s(e.isEn?"Cell Phone":"手机号"))])])]):e._e()],1)},$C=[],ZC=me(XC,YC,$C,!1,null,"3c937e8d");const bi=ZC.exports,e1=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),t1=C.defineComponent({name:"ThirdBindLogin",components:{ElButton:U.Button,ElForm:U.Form,ElFormItem:U.FormItem,LoginTypeSwitcher:bi,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn},props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(i,{emit:e}){const r=C.ref(!1),s=C.ref(null),u=C.computed(()=>s.value?s.value:i.bindList.length===1?i.bindList[0]:null),p=C.ref(),l=C.ref({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),m=C.ref([]),A=C.ref(!0),v=C.ref(!1),x=C.ref(""),T=C.ref(""),I=C.ref({});let B=null;C.watch(u,F=>{F&&(l.value.username=F.account||"",l.value.email=F.email||"",l.value.phone=F.mobile||"",F.account?l.value.type="account":F.email?l.value.type="email":l.value.type="mobile",F.mobile&&m.value.length===0&&b.findPAreaCodeApi().then(w=>m.value=w.data.data.records))},{immediate:!0});const D=C.computed(()=>{const F={username:[{required:!0,trigger:"blur",message:i.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(w,M,G)=>{On(w,M,G,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(w,M,G)=>{Nn(w,M,G,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(w,M,G)=>tn(w,M,G,i.isEn),trigger:"blur"}]};return l.value.type==="account"?{username:F.username,password:F.password}:{code:F.code,...l.value.type==="email"?{email:F.email}:{phone:F.phone}}}),W=F=>{s.value=F},k=F=>{l.value.type=F},S=async F=>{var w;if((w=p.value)==null||w.clearValidate(),F=="mobile"&&m.value.length===0){const M=await b.findPAreaCodeApi();m.value=M.data.data.records}},N=F=>{var w;(w=p.value)==null||w.validateField(F,M=>{A.value=M})},H=({captchaData:F,startTimer:w})=>{I.value=F,B=w,Q(F)},Q=F=>{const w=l.value.type==="mobile",M={target:w?l.value.phone:l.value.email,uuid:F.uuid,code:F.code};w&&(M.areaCode=l.value.areaCode);const G=w?b.sendMobileCodeApi:b.sendEmailCodeApi;B&&B(),G(M).then($=>{var _e;const le=((_e=$.data.data)==null?void 0:_e.verifyCode)||$.data.verifyCode;($.data.code===0||$.data.code===200)&&(w?x.value=le:T.value=le,U.Message.success(i.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},z=()=>{var F;(F=p.value)==null||F.validate(w=>{if(w)if(l.value.type==="account")v.value=!0;else{if(!x.value&&!T.value)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");q(I.value)}})},E=F=>{v.value=!1,q(F)},q=F=>{r.value=!0;const w=_c(),M=b.getAuthSessionItems(),G={thirdPartyType:w==null?void 0:w.thirdPartyType,thirdPartyId:w==null?void 0:w.thirdPartyId,thirdPartyEmail:w==null?void 0:w.thirdPartyEmail,thirdPartyUserName:w==null?void 0:w.thirdPartyUserName,appId:"ERA",kick:!0,userId:u.value.userId,activityCode:(M==null?void 0:M.activityCode)||"",referenceUserId:(M==null?void 0:M.referenceUserId)||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};let $;if(l.value.type==="account")$=b.bindThirdPartyByPwdApi({...G,account:l.value.username,password:ht.MD5(l.value.password).toString(),verificationCodeUuid:F.uuid,verificationCodeValue:F.code,...F});else{const le=l.value.type==="mobile";$=b.bindThirdPartyByCodeApi({...G,type:le?"MOBILE":"EMAIL",account:le?l.value.phone:l.value.email,verificationCodeUuid:le?x.value:T.value,verificationCodeValue:l.value.code,...F})}$.then(le=>{if(le.data.code!==0)return U.Message.error(le.data.msg||(i.isEn?"Login failed":"登录失败"));if(le.data.data){const _e=le.data.data;_e.tgc&&Mt.set("tgc",_e.tgc,{expires:30}),_e.result&&b.setTokenAll(_e.result),_e.redirectPath&&Ut(_e.redirectPath);return}if(le.data.subCode==="USER_HAS_OTHER_BIND"){U.Message.error(i.isEn?"Bound to other user":"该账号已绑定其他用户");return}le.data.result&&b.setTokenAll(le.data.result),le.data.tgc&&Mt.set("tgc",le.data.tgc,{expires:30}),le.data.redirectPath&&Ut(le.data.redirectPath)}).finally(()=>{r.value=!1})};return{submitting:r,selectedUser:s,currentUser:u,bindLoginFormRef:p,loginForm:l,areaCodeData:m,codeReady:A,captchaVisible:v,computedRules:D,handleSelectUser:W,handleTypeInput:k,handleChangeSubType:S,validateField:N,handleGetCode:H,handleSubmit:z,handleCaptchaSuccess:E}}}),n1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e",r1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e",Sc="data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSG8AAAABcFXbVq2cCEQ4EYxABBtIhNvg0kAaEMEIJwoRiLB86/b5GxETYP9n6T1rGiyaBULjMJPEAvaaDOwkdgBWSRrAKH4rxsOTq3NzbfD0/Cr+eACzZk/XHl+Bluz5DlRTBnRTOuCSAmHSBlU0xlbzdwIAVlA4IEIAAABwAwCdASogACAAPjESjEYiENDKACADBLSAACWH58lev5ur/aAA/iw///2p6j//i/2//+H8FPIH///0cbN//9v7AAA=";var i1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"bind-container"},[r("div",{staticClass:"bind-title"},[r("div",[e._v(" "+e._s(e.currentUser?e.isEn?"Log in and link":"绑定并登录":e.isEn?"Select account to link":"请选择要关联的账号")+" ")]),e.currentUser&&e.bindList.length>1?r("div",{staticClass:"back-btn",on:{click:function(s){e.selectedUser=null}}},[e._v(" "+e._s(e.isEn?"< Back":"< 返回选择")+" ")]):e._e()]),e.currentUser?r("div",{staticClass:"bind-form-content"},[r("div",{staticClass:"current-bind-info"},[r("span",[e._v(e._s(e.isEn?"Binding Account:":"正在绑定账号:"))]),r("span",{staticClass:"highlight"},[e._v(e._s(e.currentUser.account||e.currentUser.email||e.currentUser.mobile))])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"third-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":"","show-email":!!e.loginForm.email&&e.currentUser.emailValidFlag==="1","show-mobile":!!e.loginForm.phone&&e.currentUser.mobileValidFlag==="1"},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.loginForm.type==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,disabled:"",placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.loginForm.type==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,disabled:"",placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",maxlength:"15"},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("div",{staticClass:"tel-areacode"},[e._v(e._s(e.loginForm.areaCode))])]},proxy:!0}])})],1)],1)],e.loginForm.type==="email"||e.loginForm.type==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},attrs:{src:Sc,alt:""}})])],1)],2)],1):r("div",{staticClass:"user-list"},e._l(e.bindList,function(s,u){return r("div",{key:u,staticClass:"bind-user-card",on:{click:function(p){return e.handleSelectUser(s)}}},[e._m(0,!0),r("div",{staticClass:"bind-user-card__right"},[r("div",{staticClass:"bind-user-card__right__title"},[e._v(" "+e._s(e.isEn?s.userNameEn||s.userNameCn:s.userNameCn||s.userNameEn)+" ")]),r("div",{staticClass:"bind-user-card__right__desc"},[e._v(" "+e._s(e.isEn?s.compNameEn||s.compNameCn:s.compNameEn||s.compNameEn)+" ")]),s.email?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:n1}}),e._v(" "+e._s(s.email)+" ")]):e._e(),s.mobile?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:r1}}),e._v(" "+e._s(s.mobile)+" ")]):e._e()]),r("div",{staticClass:"bind-user-card__btn"},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(p){return p.stopPropagation(),e.handleSelectUser(s)}}},[e._v(" "+e._s(e.isEn?"Select":"选择")+" ")])],1)])}),0),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},a1=[function(){var i=this,e=i._self._c;return i._self._setupProxy,e("div",{staticClass:"bind-user-card__left"},[e("div",{staticClass:"account-icon"})])}],s1=me(t1,i1,a1,!1,null,"b9c66014");const Ic=s1.exports,o1=Object.freeze(Object.defineProperty({__proto__:null,default:Ic},Symbol.toStringTag,{value:"Module"})),l1={name:"ThirdRegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,ApplyJoinBtn:wi},props:{isEn:Boolean},emits:["bind-third-party","register","register-success","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r;return(r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},showEmailBindBtn(){return!this.currentCountryIsChina&&this.thirdPartyEmailVerifyList.length>0},showMobileBindBtn(){return this.currentCountryIsChina&&this.thirdPartyMobileVerifyList.length>0}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>_C(i,e,r,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>AC(i,e,r,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1,thirdPartyMobileVerifyList:[],thirdPartyEmailVerifyList:[]}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:ss,getAuthSessionItems:b.getAuthSessionItems,go2Policy:os,handleBindThirdParty(i){this.$emit("bind-third-party",i==="email"?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=b.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{console.log("findDict err:",i)})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await b.getLocalIpDataApi()).data;e&&e.code===0&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await b.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};let s=b.sendEmailCodeApi,u=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(s=b.sendMobileCodeApi,u=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),e(),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{var m;if(!i)return;const e=this.getAuthSessionItems(),{thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p}=_c();let l={appId:this.appId,fromSys:this.appId,passwd:ht.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterEmpNo:e.empNo||"",registerType:e.registerType||"",registerEvent:e.registerEvent||"",thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(l,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:(m=this.areaCodeData.find(A=>A.telCode===this.form.areaCode))==null?void 0:m.id,account:b.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(l,{type:"EMAIL",account:b.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(l):this.handleNewCompanySubmit(l)})},async handleNewCompanySubmit(i){const e={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?e.compNameCn=this.form.companyName:e.compNameEn=this.form.companyName,this.$emit("register",e),this.loading=!0;try{const r=await b.registerByThirdPartyApi(e);this.handlePostRegister(r)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(e.nameCn=this.form.nameCn),this.form.nameEn&&(e.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(s=>delete e[s]),this.$emit("register",e),this.loading=!0;try{const s=await b.registerJoinCompByThirdPartyApi(e);this.handlePostRegister(s)}catch{this.loading=!1}},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect)try{if(Mt.set("tgc",i.data.data.tgc,{expires:30}),i.data.data.result&&b.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0;const m=Number(l)||0;setTimeout(()=>{b.resetAuthSessionItems(),Ut(r)},m)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||(b.resetAuthSessionItems(),Ut(r))},0)}catch(r){console.log("handlePostRegister error:",r)}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var c1=function(){var s,u,p;var e=this,r=e._self._c;return r("div",{staticClass:"third-register-form-container"},[r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company Name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(l){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" Location(City)")])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(l){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",l)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(l){e.$set(e.form,"city",l)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||null,city:e.form.city},on:{"update:companyName":function(l){return e.$set(e.form,"companyName",l)},"update:company-name":function(l){return e.$set(e.form,"companyName",l)},"update:useKq":function(l){return e.$set(e.form,"useKq",l)},"update:use-kq":function(l){return e.$set(e.form,"useKq",l)},"update:kqCode":function(l){return e.$set(e.form,"kqCode",l)},"update:kq-code":function(l){return e.$set(e.form,"kqCode",l)},"update:kqInfo":function(l){return e.$set(e.form,"kqInfo",l)},"update:kq-info":function(l){return e.$set(e.form,"kqInfo",l)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(l){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(l){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(l){e.$set(e.form,"areaCode",l)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(l){return r("el-option",{key:l.id,attrs:{label:l.telCode,value:l.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(l){e.$set(e.form,"phone",l)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(l){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(l){e.$set(e.form,"email",l)},expression:"form.email"}})],1),e.showEmailBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("email")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),e.showMobileBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("mobile")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(l){e.$set(e.form,"code",l)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(l){e.$set(e.form,"password",l)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(l){return r("div",{key:l.value,staticClass:"sector-item",class:{active:e.form.sector===l.value},on:{click:function(m){e.form.sector=l.value}}},[e._v(" "+e._s(e.isEn?l.en:l.cn)+" "),e.form.sector===l.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(l){e.$set(e.form,"agree",l)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2)],1)},u1=[],f1=me(l1,c1,u1,!1,null,"54b21d24");const xc=f1.exports,d1=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"}));function Tc(i={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",i);const{appId:e="ERA",isEn:r=!1}=i,s=C.ref(!1),u=C.ref(!1),p=C.ref(null),l=C.ref(!1),m=I=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",I);const B=b.getAuthSessionItems()||{},D=I.redirectPath||B.path||"/";I.result&&b.setTokenAll(I.result),console.log("🍉 Redirecting to:",D),Ut(D)},A=async I=>{var F;const{loginType:B,loginForm:D={},captchaData:W={},isKick:k=!1,mobileUid:S,emailUid:N,areaCodeData:H=[],remember:Q}=I;s.value=!0,k||(p.value=W);const z=b.getAuthSessionItems()||{},E={appId:e,fromSys:e,kick:k,inviterInfo:z.empNo||void 0,redirectPath:z.path||"/",...z,...W,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};let q=b.loginApi;if(B==="account")Object.assign(E,{type:"PASSWORD",username:D.username,password:ht.MD5(D.password).toString(),uniqueCode:""});else if(B==="wechat")Object.assign(E,{type:"WECHAT",uniqueCode:z.uniqueCode}),!z.uniqueCode&&!E.uniqueCode&&console.warn("WeChat login missing uniqueCode"),q=b.loginApi;else{const w=D.type==="mobile",M=w?S:N;if(Object.assign(E,{type:w?"MOBILE":"EMAIL",account:w?D.phone:D.email,verificationCodeValue:D.code,verificationCodeUuid:M}),w){const G=H.find($=>$.telCode===D.areaCode);E.areaCode=D.areaCode,E.areaCodeCountryId=G==null?void 0:G.id}if(!E.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}q=b.loginByEmailOrMobileCodeApi}try{const{data:w}=await q(E);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){v(I);return}if(M.tgc){if(M.result&&b.setTokenAll(M.result),Q&&Mt.set("tgc",M.tgc,{expires:30,domain:b.getFirstDomain()}),(F=M.result)==null?void 0:F.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Login successful":"登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Login failed":"登录失败"))}catch(w){console.error("Login Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},v=I=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{A({...I,isKick:!0})}).catch(()=>{s.value=!1})},x=async I=>{var F;const{loginType:B,loginForm:D,captchaData:W,uniqueCode:k,isKick:S=!0,mobileUid:N,emailUid:H,areaCodeData:Q=[]}=I;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",I),s.value=!0;const z=b.getAuthSessionItems()||{};let E,q={appId:e,uniqueCode:k,kick:S,code:W.code,uuid:W.uuid,redirectPath:z.path||"/",fromSys:e,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",q),B==="account")E=b.loginPwdBindWechatApi,Object.assign(q,{username:D.username,password:ht.MD5(D.password).toString(),rememberMe:D.remember||!1});else{E=b.loginCodeBindWechatApi;const w=D.type==="mobile",M=w?N:H;if(Object.assign(q,{type:w?"MOBILE":"EMAIL",account:w?D.phone:D.email,verificationCodeValue:D.code,verificationCodeUuid:M,rememberMe:D.remember||!1}),w){const G=Q.find($=>$.telCode===D.areaCode);Object.assign(q,{areaCode:D.areaCode,areaCodeCountryId:G==null?void 0:G.id})}if(!q.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}}try{const{data:w}=await E(q);if(console.log("🍉 Bind Result:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){T(I);return}if(M.tgc){if(M.result&&b.setTokenAll(M.result),Mt.set("tgc",M.tgc,{expires:30,domain:b.getFirstDomain()}),(F=M.result)==null?void 0:F.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Linked and logged in successfully":"绑定并登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Binding failed":"绑定失败"))}catch(w){console.error("Bind Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},T=I=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{x({...I,isKick:!0})}).catch(()=>{s.value=!1})};return{loading:s,captchaVisible:u,handleAuthSubmit:A,executeRedirect:m,loginNeedComplete:l,handleBindSubmit:x}}const p1=C.defineComponent({name:"WechatBindLogin",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,LoginTypeSwitcher:bi,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn},props:{isEn:{type:Boolean,default:!1}},emits:["needComplete"],setup(i,{emit:e}){const{loading:r,captchaVisible:s,handleBindSubmit:u}=Tc({appId:"ERA",isEn:i.isEn,onNeedComplete:E=>{console.log("需要完善信息,暂不关闭弹窗"),e("needComplete",E)}}),p=C.ref({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),l=C.ref([]),m=C.ref(),A=C.ref(!1),v=C.ref(!1),x=C.ref({}),T=C.ref(""),I=C.ref(""),B=C.computed(()=>p.value.type),D=C.computed(()=>{const E={username:[{required:!0,trigger:"blur",message:i.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(q,F,w)=>{On(q,F,w,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(q,F,w)=>{Nn(q,F,w,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(q,F,w)=>{tn(q,F,w,i.isEn)},trigger:"blur"}]};return B.value==="account"?{username:E.username,password:E.password}:B.value==="email"||B.value==="mobile"?{code:E.code,...p.value.type==="email"?{email:E.email}:{phone:E.phone}}:{}});function W(E){p.value.type=E}async function k(E){if(E=="mobile"&&l.value.length===0){const q=await b.findPAreaCodeApi();l.value=q.data.data.records}}function S(E){p.value.areaCode=E,N("areaCode")}function N(E){m.value.validateField(E,q=>{A.value=q})}function H(){m.value.validate(E=>{if(E)if(B.value==="account")s.value=!0;else{if(!x.value||!x.value.uuid)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");Q(x.value)}})}function Q(E){s.value=!1;const F=(b.getAuthSessionItems()||{}).uniqueCode||"";if(!F){console.error("Missing uniqueCode for binding");return}u({loginType:B.value==="account"?"account":"code",loginForm:p.value,captchaData:{...E},uniqueCode:F,mobileUid:T.value,emailUid:I.value,areaCodeData:l.value})}function z({captchaData:E,startTimer:q}){const F=p.value.type==="mobile";x.value=E;const w={target:p.value.email||p.value.phone,uuid:E.uuid,code:E.code};F&&(w.areaCode=p.value.areaCode);const M=F?b.sendMobileCodeApi:b.sendEmailCodeApi;q(),M(w).then(G=>{var le;const $=((le=G.data.data)==null?void 0:le.verifyCode)||G.data.verifyCode;G.data.code===0&&$&&(F?T.value=$:I.value=$,U.Message.success(i.isEn?"Verification code sent":"验证码已发送"))}).catch(G=>{console.error(G)})}return{loginForm:p,areaCodeData:l,bindLoginFormRef:m,codeReady:A,isCounting:v,loadingBtn:r,captchaVisible:s,LoginType:B,computedRules:D,handleTypeInput:W,handleChangeSubType:k,handleAreaCodeChange:S,validateField:N,handleSubmit:H,handleCaptchaSuccess:Q,handleGetCode:z}}}),h1="data:image/webp;base64,UklGRkYDAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSK0BAAABkJVtT55JrwQkRAISIqEOBgl1sDhoHVAHXQdIQEIkICH780ETOodzEBETgJ+MA3FKG8fvIaQiOm5lCy/j2vVx4RdxVdtKLwmH2pfwBmrqKbQeifr2bTUSdd/WIlH/HpcqOuxnyjJT9/0aqISFkg47AaCJGwDOgeaFZPQb/7dR/I9HSsuwjsuHapaXKRMaAZCOawBQJvoyMqN3PvqEypGrzsZFgvrLmShgXXYrjMDHLSLS6rGR3+ZUCVy7TtfklVz6Dq76XJIPe0gMh9oW8iAHIWpqLeSAbhdJ1L5Hh8ssB1HPTnZsJTjUV4IZxChFHUrartG5nf2TZju2EdQRAaifCgAe9GCG22QnHQoA7J8SAAw02wWxiPtIv4AgnyqAX6NmBxID1Am9S9ehlKqTwQ4kjxpkxj46gORJha6YPBCuR32FzQXxQYOswD7ng457heAj/8ndPmnYF6hwjaoqCUDglEspRAskn1Ml4WF1E/huCY/ZjZ1MT6eM9UNzufBGEocaXgFqZhdem412vJiqCb8JiJdM9f/OdwHg/a4i0soeQZeqvO4pi8bvBWD8PAwAVlA4IHIBAACQDQCdASpQAFAAPjESh0KiIQzPMmYQAYJYgDTVCv5F+Mf4gb4DJX+Sz7l/ANsR/t26P/QD/AegB1gH9L/gHoV9YB+tfoUf7T/efAf+sP68fAV+m//U1vlDvsJaoYWahGVgTNJjQto23T3wmPTWzB6ZzMk6AwAA/v7uqgr/9ZP//7blAnmnE6lioCaVp1+WnldB5HpBbYjxc1NG5XU54UvD9kf2w/pZ7/42ltzXYtGbK1//nqr8tjkze5eVKps78/9WExTMn4pKTe3c8mpsuj8YwNG+XmxN6qsxIT2EwKQHnE5z8J/+pe+1IL/r1o8YBWTv7H+OAb1dnyF/HIBfP7w3V0JsIK9k9luJE6Inls4/P8XLinjMj63/lB+fL9Mg/9VBqi1r084wLn/+c3RisrFoveLUv2I5xww1R/MwdnWNwJwQ8oKLyHlGl0b3UxrGhAtGoS5KzFv4B538wnEyq7d8a9J8x7Ua1ZythfCc5mNgAAAA";var m1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("div",{staticClass:"bind-wechat-title"},[r("div",{staticClass:"title"},[r("img",{staticClass:"icon-auth-wechat",attrs:{src:h1,alt:""}}),e._v(" "+e._s(e.isEn?"Log in and link with WeChat":"登录并绑定微信")+" ")]),r("div",{staticClass:"sub-title"},[e._v(" "+e._s(e.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷")+" ")])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"wechat-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":""},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.LoginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.LoginType==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{value:e.loginForm.areaCode,placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:e.handleAreaCodeChange}},[e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}])})],1)],1)],e.LoginType==="email"||e.LoginType==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.loadingBtn},on:{click:e.handleSubmit}},[e._v(e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle"},attrs:{src:Sc,alt:""}})])],1)],2),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},g1=[],v1=me(p1,m1,g1,!1,null,"a9f6eb3d");const Rc=v1.exports,y1=Object.freeze(Object.defineProperty({__proto__:null,default:Rc},Symbol.toStringTag,{value:"Module"})),C1="data:image/webp;base64,UklGRhgCAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSKIAAAABgFZbb9xIEATBUAyhEAqhDBIGNgOXQaEIgiAYwtfZtM3+LyImgP4d+1BAVqvCAx8OLsECo3CFAfMo0ODsecsz88SjeXD/vNQjedOzPgDCuqfl0bRNKsBiEa5APD+aTCWI2l0AnZ3ehTnKW+9dgIp/Kf146Aa2PM5egI8Ns66WwwOBq70JvmyE6jVsIPwIOpB4xuyMXU5jbhlnDF0lSm/03whWUDggUAEAAPALAJ0BKjAAMAA+LRKGQqGhDjduAAwBYlsAMgdwP4BoK/wA4aTvN+x2I4/APyq/oHuA/gHOJ7gD9XfMA6QDrYP0z9gD9APRQ/ZD4FP219gD9UARvMpbMuVN2542MibJh8RTb2jFdmX4AP7/8PzX//KRnpdaTTuezU2wfPVue6zvilNiLydYqgogCDf+z+cTn0sw++BUMUAXW/ykOXcyNB2xLlv/9baGU9jTlskvg+1Mv/puM3RR2VkkR8nzfym/nfxZ64t/3bWsauPme9EKHGYBBZv8u8jT/DUfv3hKs//3THxis4v6eWcTTUpo9W6e2PurHwS2B16ei/If+Ww23FLqmd3jWPwTwBTDBEJ3HBZfQftnPWpA9rY4f//0skE1+0YwOJB/my/FIk/GCZloGHd/7iN//8vNjd/zOhSoSRNP6Xtp1K0Qc6nr99ilYAAAAA==",_1="data:image/webp;base64,UklGRiQBAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSL8AAAABcFXbVtygAAdPSGKgDqIgMVAMgAIcxEdRAApQcJ0E3tD5LyLYuG0jSXKOaqvMPsL9Ha6xASWTFT5hMHmbKphYTJIwNRlAYFz0ZMB4PDiqHrB+XhpHMT4TIOtZOJhbp0OUOCcy1XDo75yrSk6UONkFJb71XIAWhxs/aFYm7qhkV5PvDmWYa1lGV2s4Wwd6OcM6RlE+dOaZZrpEXD5BoOr3d+sQWTfFkxAbhATAOF1DN6cKD1TD3cncipS2uz9DBwBWUDggPgAAAFADAJ0BKjAAMAA+JQ6FQqGHjAYAkS0gABSWHJn8435xRpEAAP7//k4XP//7dtNf5ihlI///6OQD//9v7AAA",A1=C.defineComponent({name:"WechatChooseType",components:{ElButton:U.Button},props:{isEn:{type:Boolean,default:!1}},emits:["toBind","toRegister"],setup(i,{emit:e}){return{handleLogin:()=>{e("toBind")},handleRegister:()=>{e("toRegister")}}}});var w1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"wechat-choose-type"},[r("div",[r("div",{staticClass:"choose-title"},[e._v(" "+e._s(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号")+" ")]),r("div",{staticClass:"choose-nav"},[e._v(" "+e._s(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册")+" ")]),r("div",{staticClass:"btn-container"},[r("el-button",{staticClass:"choose-btn jc:mb-6 default-btn jc:outline-none!",on:{click:e.handleRegister}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:C1,alt:"register"}}),e._v(" "+e._s(e.isEn?"Create New Account":"注册新账号")+" ")])]),r("el-button",{staticClass:"choose-btn submit-btn jc:outline-none!",attrs:{type:"primary"},on:{click:e.handleLogin}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:_1,alt:"login"}}),e._v(" "+e._s(e.isEn?"Bind Existing Account":"绑定已有账号")+" ")])])],1)])])},b1=[],E1=me(A1,w1,b1,!1,null,"2d5009d1");const Bc=E1.exports,S1=Object.freeze(Object.defineProperty({__proto__:null,default:Bc},Symbol.toStringTag,{value:"Module"})),I1=C.defineComponent({name:"WechatLogin",components:{ElButton:U.Button},props:{appId:{type:String,default:"ERA"},path:{type:String,default:""},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(i,{emit:e}){const r=C.ref(null),s=C.ref(!0),u=C.ref(!1),p=C.ref("");let l=null;const m=async k=>{if(await C.nextTick(),!!r.value)try{await gv.toCanvas(r.value,k,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(S){console.error("QR Code render error:",S)}},A=async()=>{var k,S;s.value=!0,T();try{const{data:N}=await b.getLoginQrCode();if((N==null?void 0:N.code)===0){p.value=(k=N.data)==null?void 0:k.uniqueCode,u.value=!1;try{b.setAuthSessionItems({uniqueCode:p.value})}catch(H){console.log("setAuthSessionItems error:",H)}await m((S=N.data)==null?void 0:S.qrCodeUrl),v()}else u.value=!0}catch(N){console.error("Fetch WeChat QR fail:",N)}finally{s.value=!1}},v=()=>{var S;const k=((S=window.BASE_INFO)==null?void 0:S.WX_POLLING_TIME)||3e3;l=setInterval(async()=>{try{const{data:N}=await b.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!1,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")});N.code===0&&x(N)}catch(N){console.error("Polling error:",N),T()}},k)},x=k=>{switch(k.subcode){case"EXPIRED":u.value=!0,T();break;case"FOLLOWED_CANCEL":u.value=!0,T();break;case"FOLLOWED_NO_USER":e("need-register",p.value);break;case"FOLLOWED_LOGIN_SUCCESS":T(!1),B(k.data);break}},T=(k=!0)=>{k&&(p.value=""),b.setAuthSessionItems({uniqueCode:""}),l&&(clearInterval(l),l=null)},I=()=>{A()},B=async k=>{if(k.result&&b.setTokenAll(k.result),k.redirect===!0){const S=i.appId==="CPA"?"tgc-CPA":"tgc";Mt.set(S,k.tgc,{expires:30})}if(k.hasLogon===!0)try{await U.MessageBox.confirm(i.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",i.isEn?"Tips":"提示",{confirmButtonText:i.isEn?"Confirm":"确定",cancelButtonText:i.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),D()}catch{A()}else W(k.redirectPath)},D=async()=>{var k;s.value=!0;try{const{data:S}=await b.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!0,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")});if(S.code===0){if(b.setTokenAll(S.data.result),(k=S.data.result)!=null&&k.improveComp){e("need-complete",S.data.result.improveComp);return}W(S.data.redirectPath)}}catch{U.Message.error(i.isEn?"Login failed":"登录失败")}finally{s.value=!1}},W=k=>{localStorage.setItem("jc-qrCode-login","wx"),T(),k&&Ut(k),e("success")};return C.onMounted(()=>{A()}),C.onUnmounted(()=>{T()}),{qrCanvasRef:r,loadingCode:s,isShowMask:u,handleRefresh:I}}}),x1="data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0xXZtvhGY+x52WHLcCHeNxRfOfR5Fu/tpdZaJ1mWZeOiA0zFL+w9j/I9NSffY5NUvmeVwTfp8PxNbrn9HRbs2zo8fU3Muq3K6EtK5JFtkzT6ilPmUrji+CvueSh64OULVMJJ0TamEq7JXBx7vAZTCVWXbcNlqBdm4nxFthPmGrPrJj2SvRBXUBdPNcTUvdQTXIu3eoP+gVt1hWlKyLaBQaNs275awvJIwlYeDaBH/f40BXQnkuCVq7HBmr5VI/naaP+iWj1bl98fVlA4IE4BA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K5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=";var R1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"login-wx"},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingCode,expression:"loadingCode"}],staticClass:"login-wx-code"},[r("div",{staticClass:"qr-canvas-wrapper flex-center",class:{"qrcode-error-mask":e.isShowMask}},[r("canvas",{ref:"qrCanvasRef"})]),e.isShowMask?[r("div",{staticClass:"refresh-overlay flex-center",on:{click:e.handleRefresh}},[r("img",{staticClass:"refresh-icon",attrs:{src:x1,alt:"refresh"}}),r("div",{staticClass:"expired-text mt10 mb10"},[e._v(" "+e._s(e.isEn?"The QR code has expired":"二维码已过期")+" ")]),r("el-button",{staticClass:"jc:text-white",attrs:{type:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleRefresh.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Rescan QR code":"重新扫码")+" ")])],1)]:e._e(),r("div",{staticClass:"scan-tip"},[r("img",{attrs:{src:T1,alt:"wechat"}}),r("span",[e._v(e._s(e.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"))])])],2)])},B1=[],F1=me(I1,R1,B1,!1,null,"66101abf");const Fc=F1.exports,P1=Object.freeze(Object.defineProperty({__proto__:null,default:Fc},Symbol.toStringTag,{value:"Module"})),k1={name:"JcLoginDialog",model:{prop:"visible",event:"update:visible"},components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,GoogleInput:Vt,CodeInput:nn,RegisterForm:Ac,LoginTypeSwitcher:bi,JcVerifySlide:gn,WechatLogin:Fc,WechatChooseType:Bc,WechatBindLogin:Rc,CompleteInfoForm:wc,ForgetPassword:Ec,ThirdBindLogin:Ic,ThirdRegisterForm:xc},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},currentPath:{type:String,default:"/"},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1},baseMode:{type:String,default:"login"}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},emit:["update:visible","update:baseMode","open","mode-change","auth-dialog-close","login-success","register-success"],mounted(){const i=b.getRememberAccount();i&&(this.loginForm.username=i.account||"",this.loginForm.password=i.password?b.Decrypt(i.password):"",this.loginForm.remember=!0)},setup(i){const{proxy:e}=C.getCurrentInstance(),r=C.ref(null),s=k=>{var Q,z;const S=String(k||"").toLowerCase(),N=String(r.value||"").toLowerCase(),H=((Q=b.getAuthSessionItems)==null?void 0:Q.call(b))||{};return S==="facebook"||N==="facebook"?"FACEBOOK":S==="linkedin"||N==="linkedin"?"LINKEDIN":S==="wechat"||(z=e==null?void 0:e.formMode)!=null&&z.startsWith("wechat")||H!=null&&H.uniqueCode?"WECHAT":"PASSWORD"},u=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const k=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(k)}return!1}),{loading:p,handleAuthSubmit:l,executeRedirect:m}=Tc({appId:"ERA",isEn:u.value,onNeedComplete:k=>{const S=(e==null?void 0:e.loginType)==="code"?"register":"login";e.handleNeedComplete({mode:S,accountType:s(e==null?void 0:e.loginType),payload:k})},onSuccess:k=>{const S=s(e==null?void 0:e.loginType);e.$emit("login-success",{...k||{},accountType:S,mode:"login"}),e.loginForm.remember&&b.setRememberMe(e.loginForm.username,b.Encrypt(e.loginForm.password),!0),e.currentVisible=!1,m(k)}}),{isBindDialogVisible:A,isRegisterVisible:v,bindList:x,isUserClosed:T,startLogin:I,handleBindThirdParty:B,resetBindRegisterState:D}=CC({appId:"ERA",isEn:u.value,onSuccess:k=>{const S=s(r.value);e.$emit("login-success",{...k||{},accountType:S,mode:"login"}),e.currentVisible=!1,m(k)}});C.watch(T,k=>{k&&U.Message.error(u.value?"You have canceled the login.":"您取消了登录。")});const W=k=>{r.value=k;const S=k==="facebook"?"FACEBOOK":k==="linkedin"?"LINKEDIN":k;S&&I(S)};return C.watch(A,k=>{k&&(e.loginType=r.value)}),C.watch(v,k=>{k&&(e.loginType=r.value)}),{thirdBindDialogVisible:A,thirdRegisterVisible:v,bindList:x,authLoading:p,isEn:u,handleAuthSubmit:l,executeRedirect:m,handleThirdClick:W,handleBindThirdParty:B,resetBindRegisterState:D}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],IpData:null,isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(i,e,r)=>On(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null,pendingCompleteEvent:null,_lastEmittedBaseMode:this.baseMode==="register"?"register":"login"}},computed:{currentDialogWidth(){let i="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(i="640px"),this.formMode==="login"&&(this.loginType==="linkedin"||this.loginType==="facebook"||this.loginType==="TEST")&&(i="640px"),i},computedRules(){const i={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,r,s)=>On(e,r,s,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,r,s)=>Nn(e,r,s,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,r,s)=>tn(e,r,s,this.isEn),trigger:"blur"}]};return this.loginType==="account"?{username:i.username,password:i.password}:this.loginType==="code"?{code:i.code,...this.loginForm.type==="email"?{email:i.email}:{phone:i.phone}}:{}}},watch:{visible(i){this.currentVisible=i},baseMode(i){const e=i==="register"?"register":"login";this.currentVisible&&["login","register"].includes(this.formMode)&&(this.formMode=e)},currentVisible(i){this.$emit("update:visible",i)},formMode:{handler(i){const e=i==="register"?"register":"login";this._lastEmittedBaseMode!==e&&(this._lastEmittedBaseMode=e,this.$emit("update:baseMode",e),this.$emit("mode-change",{formMode:i,baseMode:e}))},immediate:!0}},methods:{go2Agreement:ss,go2Policy:os,handleOpen(){this.formMode=this.baseMode||"login",this._lastEmittedBaseMode=this.formMode==="register"?"register":"login",this.$emit("open")},handleClose(){this.$emit("auth-dialog-close",{loginType:this.loginType,formMode:this.formMode}),this.loginType="account",this.formMode=this.baseMode||"login",this.pendingCompleteEvent=null,b.resetAuthSessionItems(),b.resetGioSessionItems(),this.resetBindRegisterState()},handleTest(i){this.formMode=i},handleNeedComplete(i={}){const e=(i==null?void 0:i.mode)==="register"?"register":"login",r=(i==null?void 0:i.accountType)||this.resolveAccountTypeByContext();this.pendingCompleteEvent={eventName:e==="register"?"register-success":"login-success",accountType:r},this.formMode="need-complete"},handleRegisterNeedComplete(i){this.handleNeedComplete({mode:"register",payload:i})},handleWechatNeedComplete(i){this.handleNeedComplete({mode:"login",accountType:"WECHAT",payload:i})},resolveAccountTypeByContext(){var r;const i=String(this.loginType||"").toLowerCase(),e=((r=b.getAuthSessionItems)==null?void 0:r.call(b))||{};return i==="facebook"?"FACEBOOK":i==="linkedin"?"LINKEDIN":i==="wechat"||e!=null&&e.uniqueCode?"WECHAT":"PASSWORD"},handleRegisterSuccess(i){if(this.pendingCompleteEvent){console.warn("需要完善信息,跳过本次 emit,等待 CompleteInfoForm 处理");return}this.$emit("register-success",{...i||{},accountType:this.resolveAccountTypeByContext(),mode:"register"})},handleWechatSuccess(i){this.$emit("login-success",{...i||{},accountType:"WECHAT",mode:"login"})},handleCompleteSuccess(i){var e;if((e=this.pendingCompleteEvent)!=null&&e.eventName){const r=this.pendingCompleteEvent.eventName==="register-success"?"register":"login";this.$emit(this.pendingCompleteEvent.eventName,{...i||{},accountType:this.pendingCompleteEvent.accountType,mode:r}),this.pendingCompleteEvent=null}i.redirectPath?this.executeRedirect(i):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(i){this.loginType!==i&&(this.loginType=i,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(i){this.$refs.loginFormRef.validateField(i,e=>{this.codeReady=e})},handleGetCode({captchaData:i,startTimer:e}){const r=this.loginForm.type==="mobile",s={target:this.loginForm.email||this.loginForm.phone,uuid:i.uuid,code:i.code};r&&(s.areaCode=this.loginForm.areaCode);const u=r?b.sendMobileCodeApi:b.sendEmailCodeApi;this.verifyData=i,e(),u(s).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(r?this.mobileUid=l:this.emailUid=l,U.Message.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(p=>{console.error(p)})},handleLogin(){this.$refs.loginFormRef.validate(i=>{if(i)if(this.loginType==="account")this.captchaVisible=!0;else{if(!this.verifyData||!this.verifyData.uuid)return U.Message.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(i){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:i,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){this.formMode="forget-password"},async handleChangeSubType(i){this.loginMethod=i,i=="mobile"&&this.areaCodeData.length===0&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await b.getLocalIpDataApi()).data.data;process.env.NODE_ENV==="development"&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){var e,r;const i=await b.findPAreaCodeApi();this.areaCodeData=i.data.data.records,this.loginForm.areaCode=(r=(e=i.data.data.records)==null?void 0:e.find(s=>{var u;return s.id===((u=this.IpData)==null?void 0:u.countryId)}))==null?void 0:r.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account",this.pendingCompleteEvent=null}}};var D1=function(){var e=this,r=e._self._c;return r("el-dialog",{staticClass:"jc-auth-dialog",attrs:{visible:e.currentVisible,"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:e.currentDialogWidth,"show-close":!0},on:{"update:visible":function(s){e.currentVisible=s},close:e.handleClose,open:e.handleOpen}},[e.formMode==="login"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"login-section"},[r("div",{staticClass:"login-title"},[e.thirdBindDialogVisible||e.thirdRegisterVisible?r("p",[e._v(" "+e._s(e.isEn?"New User Registration":"新用户注册")+" ")]):r("p",[e._v(" "+e._s(e.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans")+" ")])]),["account","code"].includes(e.loginType)?[r("div",{staticClass:"tab-header"},[r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="account"},on:{click:function(s){return e.switchLoginTab("account")}}},[e._v(" "+e._s(e.isEn?"Password Login":"账号登录")+" ")]),r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="code"},on:{click:function(s){return e.switchLoginTab("code")}}},[e._v(" "+e._s(e.isEn?"Verification Code Login":"验证码登录")+" ")])]),r("el-form",{ref:"loginFormRef",staticClass:"auth-form login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[e.loginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},model:{value:e.loginForm.username,callback:function(s){e.$set(e.loginForm,"username",s)},expression:"loginForm.username"}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},model:{value:e.loginForm.password,callback:function(s){e.$set(e.loginForm,"password",s)},expression:"loginForm.password"}})],1)]:e.loginType==="code"?[r("el-form-item",{attrs:{prop:"type"}},[r("LoginTypeSwitcher",{attrs:{"is-en":e.isEn},on:{change:e.handleChangeSubType},model:{value:e.loginForm.type,callback:function(s){e.$set(e.loginForm,"type",s)},expression:"loginForm.type"}})],1),e.loginForm.type==="email"?r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Email Address":"邮箱地址"},on:{blur:function(s){return e.validateField("email")}},model:{value:e.loginForm.email,callback:function(s){e.$set(e.loginForm,"email",s)},expression:"loginForm.email"}})],1):[r("div",{staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.loginForm.areaCode,callback:function(s){e.$set(e.loginForm,"areaCode",s)},expression:"loginForm.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1341634787),model:{value:e.loginForm.phone,callback:function(s){e.$set(e.loginForm,"phone",s)},expression:"loginForm.phone"}})],1)],1)],r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{send:e.handleGetCode},model:{value:e.loginForm.code,callback:function(s){e.$set(e.loginForm,"code",s)},expression:"loginForm.code"}})],1)]:e._e(),r("div",{staticClass:"login-passport"},[r("div",{staticClass:"login-remember"},[r("el-form-item",{staticClass:"remember-item",attrs:{prop:"remember"}},[r("el-checkbox",{staticClass:"remember-btn",model:{value:e.loginForm.remember,callback:function(s){e.$set(e.loginForm,"remember",s)},expression:"loginForm.remember"}},[e._v(e._s(e.isEn?"Remember Me":"30天自动登录"))])],1),e.loginType==="account"?r("span",{staticClass:"forget-pwd-btn",on:{click:e.handleForget}},[e._v(e._s(e.isEn?"Forgot your password?":"忘记密码"))]):e._e()],1),e.loginType==="code"?r("div",{staticClass:"login-agreement"},[r("div",{staticClass:"login-agreement-text"},[r("span",{staticClass:"login-agreement-text-item"},[e._v(e._s(e.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),r("span",{staticClass:"login-agreement-text-item jc:mx-0.5"},[e._v(e._s(e.isEn?"and":""))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])]):e._e(),r("el-button",{staticClass:"submit-btn",attrs:{loading:e.authLoading},on:{click:e.handleLogin}},[e._v(" "+e._s(e.loginType==="code"?e.isEn?"Register and log in":"登录/注册":e.isEn?"Sign In":"登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],1)],2)]:e._e(),e.loginType==="wechat"?r("div",[r("WechatLogin",{attrs:{"is-en":e.isEn},on:{success:e.handleWechatSuccess,"need-register":e.handleWechatNeedRegister,"need-complete":e.handleWechatNeedComplete}})],1):e._e(),["linkedin","facebook","TEST"].includes(e.loginType)?r("div",[e.thirdBindDialogVisible?r("ThirdBindLogin",{staticClass:"jc:mt-1",attrs:{"is-en":e.isEn,"bind-list":e.bindList}}):e._e(),e.thirdRegisterVisible?r("ThirdRegisterForm",{staticClass:"jc:mt-6",attrs:{"is-en":e.isEn},on:{"bind-third-party":e.handleBindThirdParty,"register-success":e.handleRegisterSuccess,"need-complete":e.handleRegisterNeedComplete}}):e._e()],1):e._e(),e.loginType!=="TEST"&&e.loginType!=="facebook"&&e.loginType!=="linkedin"?r("div",{staticClass:"third-party-sign-in"},[r("div",{staticClass:"third-party-sign-in-title"},[e._v(" "+e._s(e.isEn?"Sign in with":"其他登录方式")+" ")]),r("div",{staticClass:"third-party-sign-in-group"},[["wechat","linkedin","facebook"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="account"}},[r("i",{staticClass:"icon-account"}),r("span",[e._v(" "+e._s(e.isEn?"Account":"账户"))])]):["account","code"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="wechat"}},[r("i",{staticClass:"icon-auth-wechat"}),r("span",[e._v(e._s(e.isEn?"WeChat":"微信"))])]):e._e(),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("linkedin")}}},[r("i",{staticClass:"icon-auth-linkedin"}),r("span",[e._v("LinkedIn")])]),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("facebook")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("Facebook")])]),e.showTestThirdBtn?r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("TEST")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("TEST")])]):e._e()])]):e._e(),!e.thirdBindDialogVisible&&!e.thirdRegisterVisible?r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Don't have an account?":"没有账户?")+" "),r("span",{staticClass:"action-text",on:{click:function(s){e.formMode="register"}}},[e._v(e._s(e.isEn?"Sign Up":"立即注册")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])]):e._e()],2)]):e.formMode==="wechat-need-register"?r("WechatChooseType",{attrs:{"is-en":e.isEn},on:{"to-bind":e.handleWechatLogin,"to-register":e.handleWechatRegister}}):e.formMode==="wechat-bind"?r("WechatBindLogin",{attrs:{"is-en":e.isEn},on:{"need-complete":e.handleWechatNeedComplete}}):e.formMode==="register"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"register-section"},[r("RegisterForm",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin,"need-complete":e.handleRegisterNeedComplete,"register-success":e.handleRegisterSuccess}})],1)]):e.formMode==="need-complete"?r("CompleteInfoForm",{attrs:{"is-en":e.isEn},on:{success:e.handleCompleteSuccess}}):e.formMode==="forget-password"?r("ForgetPassword",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin}}):e._e(),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},O1=[],L1=me(k1,D1,O1,!1,null,"59e8d372");const N1=L1.exports,M1=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"}));function U1(i){const e=C.ref([]),r="_search_history_cache",s=typeof window!="undefined"&&typeof localStorage!="undefined",u=C.computed(()=>(i.value||"")+r),p=C.computed(()=>!!i.value&&i.value!==""),l=A=>{if(!A||!s)return;const v=e.value.filter(T=>T.id&&T.id!==A.id||T.display!==A.display);v.unshift(A);const x=v.slice(0,4);if(p.value){e.value=x;try{localStorage.setItem(u.value,JSON.stringify(x))}catch(T){console.warn("LocalStorage save failed:",T)}}},m=()=>{e.value=[],s&&localStorage.removeItem(u.value)};return C.onMounted(()=>{if(s&&p.value){const A=localStorage.getItem(u.value);if(A)try{e.value=JSON.parse(A)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:l,clearHistory:m,HasHistory:p}}async function q1(i,e=["Continent","Country","City","Seaport","Airport"],r={}){return b.locationSearchV2.searchByName({keyword:i,displayInfo:e,...r})}const V1=(i,e)=>b.locationSearchV2.searchByIdWithType(i,e);function W1(i,e){const r=C.ref([]),s=C.ref(!1),u=C.ref(!1),p=C.ref(!1),l=C.ref(1),m=20,A=C.ref(0),v=C.computed(()=>{const I=[...e.value];return I.includes("Country")&&!I.includes("Region")&&I.push("Region"),I}),x=I=>Array.isArray(I)?I.filter(B=>v.value.includes(B.type)):[];return{searchResults:r,loading:s,isFetchingMore:u,isFinished:p,fetchData:async(I=!1)=>{const B=i.value.trim();if(!B){r.value=[],A.value=0,p.value=!1;return}if(I){if(u.value||p.value)return;u.value=!0,l.value+=1}else{if(s.value)return;s.value=!0,l.value=1,p.value=!1}try{const D=await q1(B,e.value,{current:l.value,size:m}),W=x(D.records||[]);I?r.value.push(...W):r.value=W,A.value=D.total||0,(r.value.length>=A.value||W.length<m)&&(p.value=!0)}catch(D){console.error("Search request failed:",D),I&&(l.value-=1)}finally{s.value=!1,u.value=!1}}}}const Xa=i=>!!(i!=null&&i.id)&&!!(i!=null&&i.type)&&!(i!=null&&i.display);function H1(i){return{hydrateMultiple:async s=>{if(!Array.isArray(s)||s.length===0)return{updatedList:s,hasChanged:!1};const u=s.filter(v=>Xa(v));if(u.length===0)return{updatedList:s,hasChanged:!1};const p=u.reduce((v,x)=>{const T=x.type;return v[T]||(v[T]=[]),v[T].push(x.id),v},{}),l=new Map;for(const[v,x]of Object.entries(p)){if(x.length===0)continue;const T=await i(x,v);((T==null?void 0:T.records)||[]).forEach(B=>{!(B!=null&&B.id)||!(B!=null&&B.type)||l.set(`${B.type}::${B.id}`,B)})}let m=!1;return{updatedList:s.map(v=>{if(!Xa(v))return v;const x=`${v.type}::${v.id}`,T=l.get(x);return T?(m=!0,{...v,...T}):v}),hasChanged:m}},hydrateSingle:async s=>{if(!s||!Xa(s))return s;const u=await i(s.id,s.type),p=(u==null?void 0:u.records)||[],l=p.find(m=>(m==null?void 0:m.id)===s.id&&(m==null?void 0:m.type)===s.type)||p[0];return l?{...s,...l}:s}}}const G1=C.defineComponent({name:"JcMSearch",model:{prop:"value",event:"input"},props:{value:{type:null,default:void 0},multiple:{type:Boolean,default:!1},lang:{type:String,default:"zh-CN"},placeholder:{type:String,default:""},historyKey:{type:String,default:""},reportType:{type:String,default:"City"}},setup(i,{emit:e}){const r=C.ref(!1),s=C.ref(""),u=C.ref(null),p=C.ref(null);let l=null;const{searchHistory:m,saveToHistory:A,clearHistory:v}=U1(C.computed(()=>i.historyKey)),{searchResults:x,loading:T,isFetchingMore:I,isFinished:B,fetchData:D}=W1(s,C.ref(["City","Seaport","Airport"])),{hydrateMultiple:W,hydrateSingle:k}=H1(V1),S=C.computed(()=>{var X,j,ne,ye,Le,Ee;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const Ae=(X=useCookie("jc-language"))==null?void 0:X.value;if(Ae)return/^en(-US)?$/.test(Ae)}}catch{}if(typeof document!="undefined"){const Ae=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(Ae)}try{if(typeof useNuxtApp=="function"){const Ae=useNuxtApp(),vt=((Ee=(Le=(ye=(ne=(j=Ae==null?void 0:Ae.ssrContext)==null?void 0:j.event)==null?void 0:ne.node)==null?void 0:ye.req)==null?void 0:Le.headers)==null?void 0:Ee.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(vt)}}catch{}return!1}),N=C.computed(()=>Array.isArray(i.value)?i.value:i.value?[i.value]:[]);C.watch(()=>i.value,async(X,j)=>{if(JSON.stringify(X)!==JSON.stringify(j)){if(i.multiple&&Array.isArray(X)){try{const{updatedList:ne,hasChanged:ye}=await W(X);ye&&e("input",ne)}catch(ne){console.error("Batch fetch detail failed:",ne)}return}if(!i.multiple&&(X!=null&&X.id)&&(X!=null&&X.type)&&!(X!=null&&X.display))try{const ne=await k(X);ne&&ne!==X&&e("input",ne)}catch(ne){console.error("Single fetch detail failed:",ne)}}},{immediate:!0,deep:!0});const H=C.computed(()=>!i.multiple&&!!i.value),Q=C.computed(()=>H.value?le(i.value):""),z=C.computed(()=>N.value.length>0),E=()=>{r.value=!0,C.nextTick(()=>{var X,j,ne;s.value=S.value?((X=i.value)==null?void 0:X.nameEn)||"":((j=i.value)==null?void 0:j.nameCn)||"",(ne=u.value)==null||ne.focus(),s.value&&D(!1)})},q=()=>{r.value=!1,s.value=""},F=X=>{A(X),i.multiple?N.value.some(ne=>ne.id===X.id)||e("input",[...N.value,X]):(e("input",X),q()),e("select",X)},w=()=>{e("input",i.multiple?[]:null)},M=C.ref(!1),G=X=>{const j=X.target;if(!j)return;j.scrollTop+j.clientHeight>=j.scrollHeight-80&&s.value&&!T.value&&!I.value&&!B.value&&!M.value&&(M.value=!0,D(!0))};C.watch(I,X=>{X||(M.value=!1)});const $=()=>{l&&clearTimeout(l),l=setTimeout(()=>{var X;M.value=!1,(X=p.value)==null||X.scrollTo({top:0}),D(!1)},300)};C.onBeforeUnmount(()=>{l&&(clearTimeout(l),l=null)});const le=X=>S.value?X.displayEn||X.display:X.displayCn||X.display;return{SearchIcon:gc,ICON_MORE:Ci,isDropdownVisible:r,query:s,inputRef:u,scrollContainer:p,isEn:S,selectedItems:N,isSelected:H,selectedLabel:Q,hasValue:z,searchHistory:m,searchResults:x,loading:T,isFetchingMore:I,isFinished:B,clearHistory:v,openSearch:E,closeSearch:q,selectItem:F,clearAll:w,handleScroll:G,onInput:$,getItemLabel:le,getItemType:X=>{const j={City:"城市",Seaport:"港口",Airport:"机场"};return S.value?X:j[X]||X},isItemActive:X=>N.value.some(j=>j.id===X.id),handleApplyData:async()=>{var j;const X=(j=s.value)==null?void 0:j.trim();if(X)try{await b.reportNewTypeDataApi({reportData:X,reportType:i.reportType})}catch(ne){console.error("Report apply data failed:",ne)}finally{e("apply",X)}}}}});var J1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"h5-search-container"},[r("div",{staticClass:"search-trigger",on:{click:e.openSearch}},[r("div",{staticClass:"trigger-content"},[r("img",{staticClass:"search-icon-m",attrs:{src:e.SearchIcon}}),r("div",{staticClass:"placeholder-text"},[e.multiple&&e.selectedItems.length>0?[r("div",{staticClass:"scroll-container"},[e._l(e.selectedItems,function(s){return r("div",{key:s.id,staticClass:"selected-tag"},[r("span",{staticClass:"tag-text"},[e._v(e._s(s.display))])])}),r("span",{staticClass:"selected-count-text"},[e._v(" "+e._s(e.isEn?"Selected":"已选")+" ("+e._s(e.selectedItems.length)+") ")])],2)]:!e.multiple&&e.isSelected?[r("span",{staticClass:"selected-val"},[e._v(e._s(e.selectedLabel))])]:[r("span",{staticClass:"placeholder-gray"},[e._v(" "+e._s(e.placeholder||(e.isEn?"Search":"搜索"))+" ")])]],2)]),e.hasValue?r("span",{staticClass:"clear-trigger",on:{click:function(s){return s.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v(" ⓧ ")]):e._e()]),e.isDropdownVisible?r("div",{staticClass:"h5-modal-root"},[r("transition",{attrs:{name:"fade"}},[r("div",{staticClass:"h5-mask",on:{click:e.closeSearch}})]),r("transition",{attrs:{name:"slide-up"}},[r("div",{staticClass:"h5-drawer-card"},[r("div",{staticClass:"drawer-handle",on:{click:e.closeSearch}}),r("div",{staticClass:"h5-header"},[r("div",{staticClass:"h5-input-wrapper"},[r("img",{staticClass:"inner-icon",attrs:{src:e.SearchIcon}}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",attrs:{placeholder:e.isEn?"City/Port/Airport":"搜索城市/港口/机场"},domProps:{value:e.query},on:{input:[function(s){s.target.composing||(e.query=s.target.value)},e.onInput]}}),e.query?r("div",{staticClass:"h5-clear-btn",on:{click:function(s){e.query=""}}},[e._v(" ✕ ")]):e._e()]),r("div",{staticClass:"h5-cancel-btn",on:{click:e.closeSearch}},[e._v(" "+e._s(e.isEn?"Cancel":"取消")+" ")])]),r("div",{ref:"scrollContainer",staticClass:"h5-main-content",on:{scroll:e.handleScroll}},[e.loading&&!e.isFetchingMore?r("div",{staticClass:"h5-spinner-box"},[r("div",{staticClass:"h5-spinner"})]):e._e(),!e.query&&e.searchHistory.length>0?r("div",{staticClass:"h5-section"},[r("div",{staticClass:"h5-section-hd"},[r("span",[e._v(e._s(e.isEn?"Recent":"最近搜索"))]),r("span",{staticClass:"h5-clear-history",on:{click:e.clearHistory}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),r("div",{staticClass:"h5-history-grid"},e._l(e.searchHistory,function(s,u){return r("div",{key:u,staticClass:"h5-history-tag",on:{click:function(p){return e.selectItem(s)}}},[e._v(" "+e._s(e.getItemLabel(s))+" ")])}),0)]):e._e(),e.searchResults.length>0?r("div",{staticClass:"h5-result-list"},[e._l(e.searchResults,function(s,u){return r("div",{key:u,staticClass:"h5-result-item",class:{"is-active":e.isItemActive(s)},on:{click:function(p){return e.selectItem(s)}}},[r("div",{staticClass:"item-type",class:s.type.toLowerCase()},[e._v(" "+e._s(e.getItemType(s.type))+" ")]),r("div",{staticClass:"item-info"},[r("div",{staticClass:"item-name"},[e._v(e._s(e.getItemLabel(s)))]),s.parentName?r("div",{staticClass:"item-sub"},[e._v(" "+e._s(s.parentName)+" ")]):e._e()])])}),r("div",{staticClass:"h5-load-status"},[e.isFetchingMore?[r("div",{staticClass:"mini-spinner"}),r("span",[e._v(e._s(e.isEn?"Loading...":"加载中..."))])]:e.isFinished&&e.query?r("span",{staticClass:"no-more"},[e._v(" "+e._s(e.isEn?"No more results":"没有更多结果了")+" ")]):e._e()],2)],2):e._e(),e.query&&!e.loading&&e.searchResults.length===0?r("div",{staticClass:"h5-load-status h5-empty"},[r("p",[e._v(" "+e._s(e.isEn?"No Results Found. ":"未找到相关结果,")+" ")]),r("div",{staticClass:"h5-empty-apply-wrap"},[r("span",{staticClass:"h5-empty-apply",on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据")+" ")]),r("img",{staticClass:"h5-empty-apply-icon",attrs:{src:e.ICON_MORE,alt:"more"},on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}})])]):e._e()])])])],1):e._e()])},j1=[],z1=me(G1,J1,j1,!1,null,"82c8e578");const Q1=z1.exports,K1=Object.freeze(Object.defineProperty({__proto__:null,default:Q1},Symbol.toStringTag,{value:"Module"})),X1=U.Cascader,Y1=C.defineComponent({name:"LineCascader",components:{"el-cascader":X1},model:{prop:"value",event:"input"},props:{value:{type:Array,default:()=>[]},lineId:{type:Number,default:null},placeholder:{type:String,default:""},lang:{type:String,default:""},lineType:{type:String,default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["input","update:lineId","change","apply"],setup(i,{emit:e}){const r=C.ref(),s=C.ref([]),u=C.ref(!1),p=C.ref(""),l=C.ref(i.value||[]),m=C.computed(()=>({multiple:i.multiple,expandTrigger:"click",emitPath:!1,checkStrictly:!1})),A=C.computed(()=>{var S,N,H,Q,z,E;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const q=(S=useCookie("jc-language"))==null?void 0:S.value;if(q)return/^en(-US)?$/.test(q)}}catch{}if(typeof document!="undefined"){const q=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(q)}try{if(typeof useNuxtApp=="function"){const q=useNuxtApp(),F=((E=(z=(Q=(H=(N=q==null?void 0:q.ssrContext)==null?void 0:N.event)==null?void 0:H.node)==null?void 0:Q.req)==null?void 0:z.headers)==null?void 0:E.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(F)}}catch{}return!1}),v=C.computed(()=>s.value.map(S=>{var N;return{label:A.value?S.nameEn||S.nameCn:S.nameCn||S.nameEn,value:`line-${S.id}`,children:(((N=S.raw)==null?void 0:N.countryList)||[]).map(H=>({label:A.value?H.nameEn:H.nameCn,value:`${S.id}-${H.id}`,shortCode:H.shortCode}))}})),x=C.computed(()=>i.placeholder?i.placeholder:A.value?"Please select route":"涉及航线选择"),T=C.computed(()=>u.value?A.value?"Searching...":"正在搜索中...":A.value?"No results found":"暂无结果"),I=async S=>{u.value=!0,p.value=S;try{const N=await b.locationSearchV2.line.searchAllByCountry(i.lineType);s.value=Array.isArray(N)?N:(N==null?void 0:N.records)||[]}catch(N){console.error("Search failed:",N),s.value=[]}finally{u.value=!1}},B=(S,N)=>{e("input",S),e("update:lineId",N),e("change",{countryIds:S,lineId:N})},D=()=>{},W=S=>{if(!S||S.length===0){l.value=[],B([],null);return}const N=S[S.length-1];if(N.startsWith("line-")){const[E,q]=N.split("-"),F=S.filter(w=>w.endsWith(`${q}`));B([],q),e("change",F);return}const[H]=N.split("-"),Q=S.filter(E=>E.startsWith(`${H}-`));l.value=Q;const z=Q.map(E=>E.split("-")[1]);B(z,H),e("change",Q)},k=async()=>{if(p.value)try{await b.reportNewTypeDataApi({reportData:p.value,reportType:"Line"})}catch{}e("apply",p.value),r.value&&(r.value.dropDownVisible=!1)};return C.onMounted(()=>{I("")}),C.watch(()=>i.value,S=>{const N=i.lineId;N&&S&&S.length>0?l.value=S.map(H=>`${N}-${H}`):l.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),{selectRef:r,selectedValues:l,options:s,loading:u,cascaderProps:m,transformedOptions:v,currentPlaceholder:x,noDataText:T,handleExpand:D,handleChange:W,handleApply:k,ICON_MORE:Ci}}});var $1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc-line-cascader"},[r("el-cascader",{ref:"selectRef",staticStyle:{width:"100%"},attrs:{"popper-class":"jc-line-cascader-pop",options:e.transformedOptions,props:e.cascaderProps,placeholder:e.currentPlaceholder,loading:e.loading,"no-data-text":e.noDataText,filterable:"",clearable:""},on:{"expand-change":e.handleExpand,change:e.handleChange},model:{value:e.selectedValues,callback:function(s){e.selectedValues=s},expression:"selectedValues"}})],1)},Z1=[],e_=me(Y1,$1,Z1,!1,null,null);const t_=e_.exports,n_=Object.freeze(Object.defineProperty({__proto__:null,default:t_},Symbol.toStringTag,{value:"Module"})),r_={},Lt=(...i)=>{for(const e of i)if(typeof e=="string"){const r=e.trim();if(r)return r}return""},Ya=(...i)=>{for(const e of i){if(typeof e=="boolean")return e;if(typeof e=="string"){const r=e.trim().toLowerCase();if(r==="true")return!0;if(r==="false")return!1}}},i_=i=>{if(typeof window=="undefined")return{};const e=window,r=e==null?void 0:e[i],s=e==null?void 0:e.__JCTRANS_GIO_CONFIG__,u=e==null?void 0:e.__GIO_CONFIG__,p=r||s||u;return p&&typeof p=="object"?p:{}},a_=i=>(Lt(i)||"gio-track").replace(/^v-/,""),s_=i=>{const e=i.value;if(typeof e=="string")return{eventName:e.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};if(!e||typeof e!="object")return{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};const r=e.attributes||e.attrs||{},s=Object.entries(r).reduce((u,[p,l])=>(l!=null&&(u[p]=l),u),{});return{eventName:Lt(e.event,e.name,i.arg),trigger:Lt(e.trigger)||"click",attrs:s,once:!!e.once,stop:!!e.stop,prevent:!!e.prevent,callback:typeof e.onTracked=="function"?e.onTracked:typeof e.callback=="function"?e.callback:void 0}},ts=i=>{const e=i.__jctransTrackHandler__;e&&(i.removeEventListener(e.trigger,e.handler),delete i.__jctransTrackHandler__)},nc=(i,e,r)=>{ts(i);const s=s_(e);if(!s.eventName)return;const u=p=>{if(s.prevent&&"preventDefault"in p&&p.preventDefault(),s.stop&&"stopPropagation"in p&&p.stopPropagation(),r.isInitialized()){const l=b.normalizeClickPageAttrs(s.eventName,s.attrs);r.track(s.eventName,l,()=>{var m;(m=s.callback)==null||m.call(s,{event:p,eventName:s.eventName,attrs:l,trigger:s.trigger})})}s.once&&ts(i)};i.addEventListener(s.trigger,u),i.__jctransTrackHandler__={eventName:s.eventName,trigger:s.trigger,handler:u}},o_=i=>(e,r)=>{const s=Lt(e);if(!s||!i.isInitialized())return;const u=b.normalizeClickPageAttrs(s,r);i.track(s,u)},l_=(i,e)=>{if(typeof window=="undefined"||!i)return;const r=window;r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__||(r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__=new Set);const s=r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__;if(s.has(e))return;const u=b.getOrCreateClientId();if(!u)return;const p=window.gdp;typeof p=="function"&&(s.add(e),p("identify",u))};function Pc(i){return{install(e){var k,S,N;const r=b.tracker,s=r_||{},u=i||{},p=Lt(u.globalVarName,"__JCTRANS_GIO_CONFIG__"),l=i_(p),m=Ya(l.enabled,u.enabled,s.VITE_GIO_ENABLED),A={...u.initOptions||{},...l.initOptions||{}};if(!A.serverUrl){const H=Lt(l.serverUrl,u.serverUrl,s.VITE_GIO_SERVER_URL);H&&(A.serverUrl=H)}const v=Lt(l.accountId,u.accountId,s.VITE_GIO_ACCOUNT_ID),x=Lt(l.dataSourceId,u.dataSourceId,s.VITE_GIO_DATA_SOURCE_ID,s.VITE_GIO_DATASOURCE_ID),T=Lt(l.appId,u.appId,s.VITE_GIO_APP_ID),I=Ya(l.autoInit,u.autoInit,s.VITE_GIO_AUTO_INIT),B=(N=Ya((k=l.initOptions)==null?void 0:k.forceLogin,(S=u.initOptions)==null?void 0:S.forceLogin,A.forceLogin))!=null?N:!1,D=a_(l.directiveName||u.directiveName);(m==null||m)&&(I==null||I)&&v&&x&&!r.isInitialized()&&(T?r.init(v,x,T,A):r.init(v,x,A),l_(B,`jctrans-gio-identify-device:${v}:${x}`));const W=o_(r);e.prototype.$gio=r,e.prototype.$trackEvent=W,e.directive(D,{bind(H,Q){nc(H,Q,r)},update(H,Q){nc(H,Q,r)},unbind(H){ts(H)}})}}}let c_={open(){b.emitter.emit(b.MODAL_ACTION.Open)},close(){b.emitter.emit(b.MODAL_ACTION.Close)},onSubmit(i){b.emitter.on(b.MODAL_ACTION.Submit,i)}};function u_(){let i=!1;return{install(e){if(typeof window!="undefined"&&!i){const r=document.createElement("div");r.setAttribute("id","global-modal-root"),document.body.appendChild(r);const s=e.extend(Cc);new s().$mount(r),i=!0}e.prototype.$globalModal=c_}}}const rc={},f_=Object.assign({"./components/ApplyDataDialog.vue":Iy,"./components/ChineseCompanySearch/index.vue":Dy,"./components/CodeInput.vue":T0,"./components/GlobalModal.vue":k0,"./components/GoogleInput.vue":f0,"./components/JcCarrierSearch/AirCarrierSearch.vue":z0,"./components/JcCarrierSearch/AirLineSearch.vue":Z0,"./components/JcCarrierSearch/SeaCarrierSearch.vue":aC,"./components/JcCarrierSearch/SeaLineSearch.vue":fC,"./components/JcCarrierSearch/index.vue":V0,"./components/JcFloatInput.vue":g0,"./components/JcFloatWrapper.vue":gC,"./components/JcLoginDialog/RegisterForm.vue":PC,"./components/JcLoginDialog/cmps/ApplyJoinBtn.vue":xC,"./components/JcLoginDialog/cmps/CompleteInfoForm.vue":NC,"./components/JcLoginDialog/cmps/FooterBox.vue":WC,"./components/JcLoginDialog/cmps/ForgetPassword.vue":KC,"./components/JcLoginDialog/cmps/LoginTypeSwitcher.vue":e1,"./components/JcLoginDialog/cmps/ThirdBindLogin.vue":o1,"./components/JcLoginDialog/cmps/ThirdRegisterForm.vue":d1,"./components/JcLoginDialog/cmps/WechatBindLogin.vue":y1,"./components/JcLoginDialog/cmps/WechatChooseType.vue":S1,"./components/JcLoginDialog/cmps/WechatLogin.vue":P1,"./components/JcLoginDialog/index.vue":M1,"./components/JcMSearch/index.vue":K1,"./components/JcSearch/index.vue":_y,"./components/JcVerifySlide/index.vue":b0,"./components/LineCascader/index.vue":n_}),hi={};Object.entries(f_).forEach(([i,e])=>{let r="";if(rc[i])r=rc[i];else{const u=i.replace("./components/","").replace(".vue","").split("/"),p=u.pop()||"";p==="index"&&u.length>0?r=u.pop()||"":r=p}r&&(hi[r]=e.default||e)});const{ApplyDataDialog:d_,ChineseCompanySearch:p_,JcSearch:h_,GlobalModal:m_,JcCarrierSearch:g_,AirCarrierSearch:v_,SeaCarrierSearch:y_,AirLineSearch:C_,SeaLineSearch:__,JcMSearch:A_,JcLoginDialog:w_}=hi;let ic=!1;const b_={install(i,e){ic||(ic=!0,e!=null&&e.sharedConfig&&b.initSharedConfig(e.sharedConfig),e!=null&&e.tracking&&i.use(Pc(e.tracking)),Object.keys(hi).forEach(r=>{i.component(r,hi[r]),console.log(`[JcUI Vue2] 自动注册组件: ${r}`)}))}};Object.defineProperty(exports,"MODAL_ACTION",{enumerable:!0,get:()=>b.MODAL_ACTION});Object.defineProperty(exports,"emitter",{enumerable:!0,get:()=>b.emitter});Object.defineProperty(exports,"initSharedConfig",{enumerable:!0,get:()=>b.initSharedConfig});exports.AirCarrierSearch=v_;exports.AirLineSearch=C_;exports.ApplyDataDialog=d_;exports.ChineseCompanySearch=p_;exports.GlobalModal=m_;exports.JcCarrierSearch=g_;exports.JcLoginDialog=w_;exports.JcMSearch=A_;exports.JcSearch=h_;exports.SeaCarrierSearch=y_;exports.SeaLineSearch=__;exports.createGioTrackingPlugin=Pc;exports.createGlobalModalPlugin=u_;exports.default=b_;
|
|
37
|
+
`;if(console.log(`🍉 打开弹窗 [${F}]: ${X}`),m=window.open(X,"ThirdPartyLogin",Ae),!m){console.error("浏览器已阻止弹窗"),e.value=!1;return}A=setInterval(()=>{if(m&&m.closed){if(v){console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),W();return}console.log("🍉 检测到弹窗被手动关闭,执行重置"),k(),l.value=!0}},1e3)};return C.onMounted(()=>{S()}),C.onUnmounted(()=>{Ot()&&window.removeEventListener("message",N),k()}),{isLoading:e,isBindDialogVisible:s,isRegisterVisible:u,isUserClosed:l,bindList:p,loginResult:r,startLogin:z,resetState:k,handleBindThirdParty:F=>{p.value=F,s.value=!0,u.value=!1},resetBindRegisterState:()=>{s.value=!1,u.value=!1,p.value=[]}}}async function On(i,e,r,s=!0,u=!0){if(!e||e.trim()==="")return r(new Error(s?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[一-龥]+/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(e))return r(new Error(s?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(u)try{const{data:l}=await b.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",l),l.data)return r(new Error(s?"It's already occupied, please re-enter.":"已被占用,请重新输入"));r()}catch{r(new Error(s?"Validation failed, please re-enter.":"校验失败,请重新输入"))}else return r()}async function _C(i,e,r,s=!0,u){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",u),e==null||e==="")r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[一-龥]+/.test(e))r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const p=await b.findListByMobileEmailApi({email:e});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",p),!p.data.data||p.data.data.records.length===0?(ec([]),u.thirdPartyEmailVerifyList=[],r()):(ec(p.data.data.records),u.thirdPartyEmailVerifyList=p.data.data.records,r(new Error(s?"This email has been registered":"邮箱已注册")))}catch{r(new Error(s?"This email has been registered":"邮箱已注册"))}}function AC(i,e,r,s=!0,u){e?/^[0-9]*$/.test(e)===!0?e.length<2?r(new Error(s?"please enter at least 2 characters.":"请输入至少2个字符")):b.findListByMobileEmailApi({mobile:e}).then(p=>{!p.data.data||p.data.data.records.length===0?(tc([]),u.thirdPartyMobileVerifyList=[],r()):(tc(p.data.data.records),u.thirdPartyMobileVerifyList=p.data.data.records,r(new Error(s?"This mobile number has been registered":"手机号已注册")))}).catch(()=>{r(new Error(s?"This mobile number has been registered":"手机号已注册"))}):r(new Error("请正确填写手机号")):r(new Error(s?"Please enter your cell phone number":"请输入手机号"))}function Ln(i,e,r,s=!0,u=!0){const p=/^[a-zA-Z一-龥\s.·•]+$/,l=/^[a-zA-Z\s.·•]+$/;if(!e){const m=u?s?"please enter your Chinese name":"请输入您的中文姓名":s?"Please enter your English name":"请输入您的英文姓名";return r(new Error(m))}if(u){if(e.length>50||!p.test(e))return r(new Error(s?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(e.length>50||!l.test(e))return r(new Error(s?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));r()}function pi(i,e,r,s=!0){const u={empty:s?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:s?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(e==null||e==="")return r(new Error(u.empty));if(e.length<6||e.length>20)return r(new Error(u.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s \n\r【】{}[\]|;~·]*$/.test(e))return r(new Error(u.invalidChars));const l=/^[a-zA-Z]*$/.test(e),m=/^[0-9]*$/.test(e),A=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s \n\r【】{}[\]|;~·]*$/.test(e);if(l||m||A)return r(new Error(u.complexity));r()}async function Nn(i,e,r,s=!0,u=!0){const p={empty:s?"Please enter your cell phone number":"请输入手机号",minLen:s?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:s?"Invalid mobile address":"手机号格式错误",occupied:s?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!e)return r(new Error(p.empty));if(!/^[0-9]*$/.test(e))return r(new Error(p.invalid));if(e.length<2)return r(new Error(p.minLen));if(u)try{const l=await b.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",l),l&&l.data.data)return r(new Error(p.occupied));r()}catch{r(new Error(p.occupied))}else return r()}function wC(i){return i?i.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}async function as(i,e,r,s=!0,u){const p=wC(e);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",p);const l=u.countryId==1;if(!p)return l&&(u.appId==="DDC"||u.appId==="JHB")?r():r(new Error(s?"please enter the full company name":"请输入公司名称"));if(p.length<2)return r(new Error(s?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(p.length>200)return r(new Error(s?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!l){if(/[一-龥]/.test(p))return r(new Error(s?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(p))return r(new Error(s?"Wrong format for company name":"注册公司名格式错误"))}if(u.countryId&&u.cityId)try{const m={countryId:u.countryId,cityId:u.cityId,[l?"compNameCn":"compNameEn"]:p},A=await b.validateCompanyApi(m);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",A),A.data.data.result?u.appId==="JCPAY"?r(new Error(s?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(l?u.companyResistCn=!0:u.companyResistEn=!0,u.resistCompanyInfo=A.data.data,r()):(l?u.companyResistCn=!1:u.companyResistEn=!1,r())}catch(m){const A=(m==null?void 0:m.toString().split(":")[1])||"API Error";r(new Error(A))}else r(new Error(s?"Please select a Country/Region":"请选择国家/地区"))}function tn(i,e,r,s=!0){if(!e)return r(new Error(s?"Please enter the verification code":"请输入验证码"));if(!/^\d{4}$/.test(e))return r(new Error(s?"Verification code must be 4 digits":"验证码必须为4位数字"));r()}function ss(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyAgreement`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}function os(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyPolicy`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}const Ut=(i,e=100)=>{typeof window!="undefined"&&i&&setTimeout(()=>{i.startsWith("http")?window.location.href=i:(window.location.href=window.location.origin+i,console.warn("内部路径跳转逻辑尚未定义:",i))},e)},bC=C.defineComponent({name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(i,{emit:e}){const r=C.computed(()=>i.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),s=C.computed(()=>i.isEn?"join in >>":"点击申请加入 >>");return{register_already_tip:r,register_join_in:s,applyJoin:()=>{e("apply-join")}}}});var EC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},[r("p",{staticClass:"jc:text-xs",staticStyle:{color:"#f80"}},[r("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.register_already_tip)+" ")]),r("p",{staticStyle:{color:"#3264ff",cursor:"pointer"},on:{click:e.applyJoin}},[e._v(" "+e._s(e.register_join_in)+" ")])])},SC=[],IC=me(bC,EC,SC,!1,null,"4b87a2f3");const wi=IC.exports,xC=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"})),TC={name:"RegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,ApplyJoinBtn:wi},props:{isEn:Boolean},emits:["to-login","register","need-complete","register-success"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r,s,u,p,l;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((l=(p=(u=(s=this.form)==null?void 0:s.city)==null?void 0:u.raw)==null?void 0:p.city)==null?void 0:l.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:null,cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>On(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:ss,getAuthSessionItems:b.getAuthSessionItems,go2Policy:os,async inviteJoinGetComp(){const e=b.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await b.getLocalIpDataApi()).data;e&&e.code===0&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await b.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleClearCity(){this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};e();let s=b.sendEmailCodeApi,u=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(s=b.sendMobileCodeApi,u=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{if(!i)return;if(!this.verifyData.uuid){U.Message.error(this.isEn?"Please get code first":"请先获取验证码");return}const e=this.getAuthSessionItems();let r={appId:this.appId,fromSys:this.appId,passwd:ht.MD5(this.form.password).toString(),clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterInfo:e.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:e.uniqueCode||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(s=>s.telCode===this.form.areaCode).id,account:b.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:b.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(i){const e=this.getAuthSessionItems(),r={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?r.compNameCn=this.form.companyName:r.compNameEn=this.form.companyName,this.$emit("register",r),this.loading=!0;try{const u=await(e.uniqueCode?b.registerUserCompBindWechatApi:b.registerApi)(r);this.handlePostRegister(u)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e=this.getAuthSessionItems(),r={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(r.nameCn=this.form.nameCn),this.form.nameEn&&(r.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(u=>delete r[u]),this.$emit("register",r),this.loading=!0;try{const p=await(e.uniqueCode?b.registerJoinCompanyBindWechatApi:b.registerJoinCompanyApi)(r);this.handlePostRegister(p)}catch{this.loading=!1}},normalizeDelayMs(i){if(i==null||i==="")return 0;if(typeof i=="string"){const r=i.trim().toLowerCase();if(!r)return 0;if(r.endsWith("ms")){const u=Number(r.slice(0,-2).trim());return Number.isFinite(u)&&u>=0?u:0}if(r.endsWith("s")){const u=Number(r.slice(0,-1).trim());return Number.isFinite(u)&&u>=0?u*1e3:0}const s=Number(r);return!Number.isFinite(s)||s<0?0:s>=10?s:s*1e3}const e=Number(i);return!Number.isFinite(e)||e<0?0:e>=10?e:e*1e3},executeRedirectWithDelay(i,e){const r=this.normalizeDelayMs(e);setTimeout(()=>{b.resetAuthSessionItems(),Ut(i)},r)},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect){if(b.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}try{Mt.set("tgc",i.data.data.tgc,{expires:30});const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0,this.executeRedirectWithDelay(r,l)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||this.executeRedirectWithDelay(r,0)},0)}catch(r){console.error("注册成功后的后续处理发生异常:",r)}}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var RC=function(){var s,u,p,l,m,A;var e=this,r=e._self._c;return r("div",{staticClass:"register-form-container"},[r("div",{staticClass:"register-title"},[r("p",[e._v(e._s(e.isEn?"New User Registration":"新用户注册"))])]),r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(v){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(v){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",v)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{clear:e.handleClearCity,select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(v){e.$set(e.form,"city",v)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||((A=(m=(l=e.form.city)==null?void 0:l.raw)==null?void 0:m.city)==null?void 0:A.countryId)||null,city:e.form.city},on:{"update:companyName":function(v){return e.$set(e.form,"companyName",v)},"update:company-name":function(v){return e.$set(e.form,"companyName",v)},"update:useKq":function(v){return e.$set(e.form,"useKq",v)},"update:use-kq":function(v){return e.$set(e.form,"useKq",v)},"update:kqCode":function(v){return e.$set(e.form,"kqCode",v)},"update:kq-code":function(v){return e.$set(e.form,"kqCode",v)},"update:kqInfo":function(v){return e.$set(e.form,"kqInfo",v)},"update:kq-info":function(v){return e.$set(e.form,"kqInfo",v)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{attrs:{"is-en":e.isEn},on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(v){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(v){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(v){e.$set(e.form,"areaCode",v)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(v){return r("el-option",{key:v.id,attrs:{label:v.telCode,value:v.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(v){e.$set(e.form,"phone",v)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(v){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(v){e.$set(e.form,"email",v)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(v){e.$set(e.form,"code",v)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(v){e.$set(e.form,"password",v)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(e._s(e.isEn?"Industry Sector":"行业类型"))]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(v){return r("div",{key:v.value,staticClass:"sector-item",class:{active:e.form.sector===v.value},on:{click:function(x){e.form.sector=v.value}}},[e._v(" "+e._s(e.isEn?v.en:v.cn)+" "),e.form.sector===v.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(v){e.$set(e.form,"agree",v)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2),r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Already have an account?":"已有账号?")+" "),r("span",{staticClass:"action-text",on:{click:function(v){return e.$emit("to-login")}}},[e._v(" "+e._s(e.isEn?"Click to log in":"去登录")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])])],1)},BC=[],FC=me(TC,RC,BC,!1,null,"0b64240f");const Ac=FC.exports,PC=Object.freeze(Object.defineProperty({__proto__:null,default:Ac},Symbol.toStringTag,{value:"Module"})),kC={name:"CompleteInfoForm",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,JcVerifySlide:gn,ApplyJoinBtn:wi},props:{isEn:Boolean},emits:["success"],data(){return{isReady:!1,loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,currentUserMobile:null,currentUserEmail:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>this.hasResistCompany?r():as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>On(i,e,r,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}]}}},computed:{countryId(){var i,e,r,s;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((s=this.resistCompanyInfo)==null?void 0:s.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){const i=this.countryId;return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return this.isReady?this.currentCountryIsChina&&!this.currentUserMobile:!1},isShowEmailCode(){return this.isReady?!this.currentUserEmail:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){b.getUserInfoApi().then(i=>{var e,r;this.currentUserMobile=(e=i.data.data)==null?void 0:e.mobile,this.currentUserEmail=(r=i.data.data)==null?void 0:r.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(i){i&&(this.companyResistCn=i.cnExists,this.companyResistEn=i.enExists,this.resistCompanyInfo=i.companyInfo)},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const i=await b.findPAreaCodeApi();this.areaCodeData=i.data.data.records},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))})},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(i){this.$refs.formRef.validateField(i,e=>{(i==="phone"||i==="email")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:i.uuid,code:i.code},s=this.isShowMobileCode?b.sendMobileCodeApi:b.sendEmailCodeApi;this.isShowMobileCode&&(r.areaCode=this.form.areaCode,r.areaCodeCountryId=this.areaCodeData.find(u=>u.telCode===this.form.areaCode).id),e(),s(r).then(u=>{var l;const p=((l=u.data.data)==null?void 0:l.verifyCode)||u.data.verifyCode;u.data.code===0&&p&&(this.isShowMobileCode?this.mobileUid=p:this.emailUid=p,U.Message.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(i=>{i&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const i={cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,nameCn:this.currentCountryIsChina?this.form.companyName:"",nameEn:this.currentCountryIsChina?"":this.form.companyName,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:(window==null?void 0:window.location.pathname)||"/",...this.form.kqInfo};b.completeCompRedirectApi(i).then(e=>{e.data.code===0?(U.Message.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const i={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:(window==null?void 0:window.location.pathname)||"/"};b.completeJoinCompanyRedirectApi(i).then(e=>{if(e.data.code===0){if(e.data.data.redirect)try{Mt.set("tgc",e.data.data.tgc,{expires:30});const r=this.getAuthSessionItems(),s=e.data.data.redirectPath||r.path||"/";b.resetAuthSessionItems(),Ut(s)}catch{}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})}}};var DC=function(){var e=this,r=e._self._c;return r("div",{staticClass:"complete-info-container"},[r("div",{staticClass:"complete-info-container_header"},[r("div",{staticClass:"complete-info-container_title"},[e._v(" "+e._s(e.isEn?"Complete Your Information":"完善企业信息")+" ")]),r("div",{staticClass:"complete-info-container_tip-box"},[r("img",{attrs:{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""}}),r("span",[e._v(e._s(e.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"))])])]),r("el-form",{ref:"formRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(s){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(s){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",s)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],lang:e.isEn?"en":"zh-CN",placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(s){e.$set(e.form,"city",s)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,lang:e.isEn?"en":"zh-CN","country-id":e.countryId||null,city:e.form.city},on:{"update:companyName":function(s){return e.$set(e.form,"companyName",s)},"update:company-name":function(s){return e.$set(e.form,"companyName",s)},"update:useKq":function(s){return e.$set(e.form,"useKq",s)},"update:use-kq":function(s){return e.$set(e.form,"useKq",s)},"update:kqCode":function(s){return e.$set(e.form,"kqCode",s)},"update:kq-code":function(s){return e.$set(e.form,"kqCode",s)},"update:kqInfo":function(s){return e.$set(e.form,"kqInfo",s)},"update:kq-info":function(s){return e.$set(e.form,"kqInfo",s)},"update:exist-status":e.handleCompanyExistStatus,change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e(),r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(s){return r("div",{key:s.value,staticClass:"sector-item",class:{active:e.form.sector===s.value},on:{click:function(u){e.form.sector=s.value}}},[e._v(" "+e._s(e.isEn?s.en:s.cn)+" "),e.form.sector===s.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)])],e.isShowMobileCode?[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15"},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号","popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(s){e.$set(e.form,"areaCode",s)},expression:"form.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1425799582),model:{value:e.form.phone,callback:function(s){e.$set(e.form,"phone",s)},expression:"form.phone"}})],1)],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),e.isShowEmailCode?[r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(s){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(s){e.$set(e.form,"email",s)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),r("el-button",{staticClass:"submit-btn register-btn register-btn-is-active",attrs:{loading:e.loading},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Submit":"完成并进入")+" ")])],2)],1)},OC=[],LC=me(kC,DC,OC,!1,null,"c6a09f38");const wc=LC.exports,NC=Object.freeze(Object.defineProperty({__proto__:null,default:wc},Symbol.toStringTag,{value:"Module"})),MC=C.defineComponent({name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(i,{emit:e}){return{handleClick:()=>{e("handleClick")}}}});var UC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"auth-footer-box"},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"action-text",on:{click:function(s){return s.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e._v(e._s(e.subLabel)+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])])},qC=[],VC=me(MC,UC,qC,!1,null,"3fc7802c");const bc=VC.exports,WC=Object.freeze(Object.defineProperty({__proto__:null,default:bc},Symbol.toStringTag,{value:"Module"}));function HC(i){const e=C.ref(1),r=C.ref(!1),s=C.ref(!1),u=C.ref(),p=C.reactive({userName:""}),l=C.ref({}),m=C.ref(!1),A=C.ref("email"),v=C.reactive({email:!1,mobile:!1}),x=C.reactive({code:"",password:"",confirmPassword:""}),T=C.ref(""),I=C.ref(!1),B=C.reactive({mobile:!1,email:!1}),D=()=>{s.value=!0},W=z=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",z),s.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",e.value),e.value===1&&S(z)},k=({captchaData:z,startTimer:E})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",z),e.value===2&&N(z,E)},S=async z=>{var E;r.value=!0;try{const q=await b.checkAccountExistsFPApi({account:p.userName,...z});if((E=q.data.data)!=null&&E.exists){l.value=q.data.data;const F=!!l.value.email,w=!!l.value.mobile;!F&&!w?m.value=!0:(m.value=!1,e.value=2,F?(A.value="email",v.email=!1,v.mobile=!w):(A.value="mobile",v.mobile=!1,v.email=!0))}else U.Message.error(i.isEn?"Account does not exist":"账号不存在")}catch(q){console.error(q)}finally{r.value=!1}},N=async(z,E)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",z);try{u.value=z;const{data:q}=await b.getMEVCodeApi({account:l.value.account,target:A.value,...z});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",q),q.code===0&&(U.Message.success(i.isEn?"Verification code sent":"验证码已发送"),T.value=q.data.verifyCode,E(),A.value==="mobile"?B.mobile=!0:B.email=!0)}catch(q){console.error(q)}};return{activeStep:e,activeTab:A,loading:r,verifyVisible:s,formA:p,formB:x,userData:l,disabledTabs:v,showCustomerService:m,codeCountdown:B,codeReady:I,handleTriggerVerify:D,handleVerifySuccess:W,handleSendCodeVerifySuccess:k,handleSubmitReset:async()=>{var z;if(!((z=u.value)!=null&&z.uuid)){U.Message.info(i.isEn?"Please get the verification code first":"请先获取验证码");return}r.value=!0;try{const E={id:l.value.id,account:l.value.account,codeId:T.value,codeValue:x.code,password:ht.MD5(x.password).toString(),...u.value},{data:q}=await b.resetPasswordApi(E);return q.code===0?(U.Message.success(i.isEn?"Password reset successfully":"密码重置成功"),!0):(U.Message.error(q.msg),!1)}catch(E){return console.error(E),!1}finally{r.value=!1}},restFormB:()=>{x.code="",x.password="",x.confirmPassword="",T.value="",I.value=!1,B.mobile=!1,B.email=!1}}}const GC=C.defineComponent({name:"ForgetPassword",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn,FooterBox:bc,JcFloatInput:Un},props:{isEn:{type:Boolean,default:!1}},emits:["to-login"],setup(i,{emit:e}){const{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:A,disabledTabs:v,showCustomerService:x,codeCountdown:T,handleTriggerVerify:I,handleVerifySuccess:B,handleSendCodeVerifySuccess:D,handleSubmitReset:W,restFormB:k}=HC({isEn:i.isEn}),S=C.ref(),N=C.ref(),H=(w,M,G)=>{M===""?G(new Error(i.isEn?"Please input the password again":"请再次输入密码")):M!==m.password?G(new Error(i.isEn?"Two inputs don't match!":"两次输入密码不一致!")):G()},Q={userName:[{required:!0,message:i.isEn?"Please enter username":"请输入账号",trigger:"blur"}]};return{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:A,disabledTabs:v,showCustomerService:x,codeCountdown:T,formARef:S,formBRef:N,rulesA:Q,rulesB:{code:[{required:!0,validator:(w,M,G)=>tn(w,M,G,i.isEn),trigger:"blur"}],password:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}],confirmPassword:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}]},handleStep1Next:()=>{S.value.validate(w=>{w&&I()})},handleStep2Submit:async()=>{N.value&&await N.value.validate(async w=>{w&&await W()&&e("to-login")})},handleChangeTab:w=>{w&&v[w]||(s.value=w||s.value,k())},handleTriggerVerify:I,handleVerifySuccess:B,handleSendCodeVerifySuccess:D}}}),JC="data:image/webp;base64,UklGRsRFAABXRUJQVlA4WAoAAAAQAAAAfwIA3wEAQUxQSLkLAAABFMVt20a2sv/U6Wm0/4iYAH3QsQAZj5Skpeqc1H6r0r4PNiInDqR6gg0QUQ20fqiT2bwp+VTtHH8POAbt57zXh2N0nHFNdXEEirStD0qrtrdupA+CIBhCIQhCIASCGdQMGgaGkGEgCIFgCIagH83cZ9fyt5dExARQsrW3iiT5CFMiHfgYkyKFNaw19GO7PavTG613od8aRcQE0HX/P27kCLYFYzRrWGt4R5pflTvMnU7tXt46AesczhPoCawEaZmjVq6aVcqZbk+p3Ut9EM0DGHyCf6GDkpcDE6wiYgJkxbZdNxIPIbgMLgKFgBCkERiBQ0Am4EYgBBMCEYIgEIOL4PxOnXP75a+ICFz+v/x/+f/y/+X/y/+X0PNXU4yhvJW99lMuVfuOQy+R3mphztGE1rL3U4f9zCpnLUzxg3hvovYLj+us2xo0aGtnBEMOaWUNFcR7V/vtDmkbRQjiKsN+31ffcmjgXYb9/q++UUig0of9OWVfg0Hexf642jkM5Cr2h9bOAYCq2B9dO0892sUeoPY86/gc9hSvkucb1WHPsvNcY7EHqoVmGe0f9lBHzzOM6rAne/Ls4tMer5aZxWKPWMusYrHHrGVGsdij1jKbWOxxa5lJLPbItcyi3O2xa5lBVIc9ecnTZx/29HueOizmQH3NG+rmRN0mzT7Mjz1PmFXMlVpmCzVz55WnCqt5tM4TauZUzZOE1fxap0gz12qeHvky596vybEP82/PE4NOc7HmabGqeblOit0cfeYJQYe5WvN0yGrefk2GbZi/61So5vIrTwM6zOmaJ0G+zO33NgWymufrBOBhvq/w2839nbBXDYBXRl41CGrG3W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JCmsqeSKpGFNOlwtYf4MsTPazDC29KQaeaqjeWoJxOBVkwiLT6DY8uYm3EaZ9jUhSxFgNt+KLB9uwDpJ1NpOl5fx2X0+df/t4vPShoAQCGIY4Y9n+Wx39CEAAAACEn//+4e+kMk8wQRCCl4Sj1tWs4IV3VDIWkKhr20cMBeMCQv7DaL/6Q5/q5N1V/T1FqcBhJpYbsy3AWdy3C/vW0pBzMcoHH8IB9KhCDVVQopf5eE4DMA/HlaJmN6xKX7k6AAAAAAAAAAAAAA";var jC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"forget-password-container"},[r("div",{staticClass:"forget-box"},[r("div",{staticClass:"header-title"},[r("h1",[e._v(e._s(e.isEn?"Reset Password":"重置密码"))])]),e.showCustomerService?r("div",{staticClass:"kefu-wrapper"},[r("img",{staticClass:"kefu-img",attrs:{src:JC}}),r("p",{staticClass:"kefu-text"},[e._v(" "+e._s(e.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。")+" ")]),r("div",[e._v(e._s(e.isEn?"Customer Service":"联系客服"))])]):r("div",{staticClass:"form-wrapper"},[e.activeStep===1?r("div",[r("el-form",{ref:"formARef",attrs:{model:e.formA,rules:e.rulesA}},[r("el-form-item",{staticClass:"jc:mb-5!",attrs:{prop:"userName"}},[r("GoogleInput",{attrs:{value:e.formA.userName,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.formA.userName=s}}})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep1Next}},[e._v(" "+e._s(e.isEn?"Next":"下一步")+" ")])],1)],1):e._e(),e.activeStep===2?r("div",[r("div",{staticClass:"tab-switcher"},[r("div",{staticClass:"tab-item",class:{active:e.activeTab==="email",disabled:e.disabledTabs.email},on:{click:function(s){return e.handleChangeTab("email")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855712095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"}})]),e._v(" "+e._s(e.isEn?"Email Verify":"邮箱验证")+" ")]),r("div",{staticClass:"tab-item",class:{active:e.activeTab==="mobile",disabled:e.disabledTabs.mobile},on:{click:function(s){return e.handleChangeTab("mobile")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855760413",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"}})]),e._v(" "+e._s(e.isEn?"Mobile Verify":"手机验证")+" ")])]),r("el-form",{ref:"formBRef",attrs:{model:e.formB,rules:e.rulesB}},[r("el-form-item",{staticClass:"info-item"},[r("p",{staticClass:"default-info"},[r("span",{staticClass:"title"},[e._v(" "+e._s(e.activeTab==="email"?e.isEn?"Email":"邮箱":e.isEn?"Mobile":"手机号"))]),r("span",{staticClass:"user-value"},[e._v(" "+e._s(e.activeTab==="email"?e.userData.email:e.userData.mobile))])])]),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{"show-icon":"",value:e.formB.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":e.isEn,"custom-countdown":e.activeTab==="email"?e.codeCountdown.email:e.codeCountdown.mobile},on:{input:function(s){e.formB.code=s},send:e.handleSendCodeVerifySuccess}})],1),r("el-form-item",{attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.password,type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},on:{input:function(s){e.formB.password=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-form-item",{attrs:{prop:"confirmPassword"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.confirmPassword,type:"password","show-password":"",label:e.isEn?"Confirm Password":"确认密码",placeholder:e.isEn?"Enter password again":"请再次输入密码"},on:{input:function(s){e.formB.confirmPassword=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep2Submit}},[e._v(" "+e._s(e.isEn?"Confirm":"确认修改")+" ")])],1)],1):e._e()])]),r("FooterBox",{style:{margin:"12px -16px -16px"},attrs:{label:e.isEn?"Back to":"返回","sub-label":e.isEn?"log in":"登录"},on:{"handle-click":function(s){return e.$emit("to-login")}}}),r("JcVerifySlide",{attrs:{visible:e.verifyVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.verifyVisible=s},success:e.handleVerifySuccess}})],1)},zC=[],QC=me(GC,jC,zC,!1,null,"a511aae1");const Ec=QC.exports,KC=Object.freeze(Object.defineProperty({__proto__:null,default:Ec},Symbol.toStringTag,{value:"Module"})),XC={name:"LoginTypeSwitcher",components:{ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton},props:{value:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!0},showMobile:{type:Boolean,default:!0},isEn:{type:Boolean,default:!1}},emits:["input","change"],methods:{handleChange(i){this.$emit("input",i),this.$emit("change",i)}}};var YC=function(){var e=this,r=e._self._c;return r("el-radio-group",{staticClass:"login-type-switcher",attrs:{value:e.value},on:{input:e.handleChange}},[e.showAccount?r("el-radio-button",{attrs:{label:"account"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="account"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"}})]),r("span",[e._v(e._s(e.isEn?"Password":"账号密码"))])])]):e._e(),e.showEmail?r("el-radio-button",{attrs:{label:"email"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="email"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"}})]),r("span",[e._v(e._s(e.isEn?"Email":"邮箱"))])])]):e._e(),e.showMobile?r("el-radio-button",{attrs:{label:"mobile"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="mobile"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"}})]),r("span",[e._v(e._s(e.isEn?"Cell Phone":"手机号"))])])]):e._e()],1)},$C=[],ZC=me(XC,YC,$C,!1,null,"3c937e8d");const bi=ZC.exports,e1=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),t1=C.defineComponent({name:"ThirdBindLogin",components:{ElButton:U.Button,ElForm:U.Form,ElFormItem:U.FormItem,LoginTypeSwitcher:bi,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn},props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(i,{emit:e}){const r=C.ref(!1),s=C.ref(null),u=C.computed(()=>s.value?s.value:i.bindList.length===1?i.bindList[0]:null),p=C.ref(),l=C.ref({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),m=C.ref([]),A=C.ref(!0),v=C.ref(!1),x=C.ref(""),T=C.ref(""),I=C.ref({});let B=null;C.watch(u,F=>{F&&(l.value.username=F.account||"",l.value.email=F.email||"",l.value.phone=F.mobile||"",F.account?l.value.type="account":F.email?l.value.type="email":l.value.type="mobile",F.mobile&&m.value.length===0&&b.findPAreaCodeApi().then(w=>m.value=w.data.data.records))},{immediate:!0});const D=C.computed(()=>{const F={username:[{required:!0,trigger:"blur",message:i.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(w,M,G)=>{On(w,M,G,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(w,M,G)=>{Nn(w,M,G,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(w,M,G)=>tn(w,M,G,i.isEn),trigger:"blur"}]};return l.value.type==="account"?{username:F.username,password:F.password}:{code:F.code,...l.value.type==="email"?{email:F.email}:{phone:F.phone}}}),W=F=>{s.value=F},k=F=>{l.value.type=F},S=async F=>{var w;if((w=p.value)==null||w.clearValidate(),F=="mobile"&&m.value.length===0){const M=await b.findPAreaCodeApi();m.value=M.data.data.records}},N=F=>{var w;(w=p.value)==null||w.validateField(F,M=>{A.value=M})},H=({captchaData:F,startTimer:w})=>{I.value=F,B=w,Q(F)},Q=F=>{const w=l.value.type==="mobile",M={target:w?l.value.phone:l.value.email,uuid:F.uuid,code:F.code};w&&(M.areaCode=l.value.areaCode);const G=w?b.sendMobileCodeApi:b.sendEmailCodeApi;B&&B(),G(M).then($=>{var fe;const ye=((fe=$.data.data)==null?void 0:fe.verifyCode)||$.data.verifyCode;($.data.code===0||$.data.code===200)&&(w?x.value=ye:T.value=ye,U.Message.success(i.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},z=()=>{var F;(F=p.value)==null||F.validate(w=>{if(w)if(l.value.type==="account")v.value=!0;else{if(!x.value&&!T.value)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");q(I.value)}})},E=F=>{v.value=!1,q(F)},q=F=>{var ye;r.value=!0;const w=_c(),M=b.getAuthSessionItems(),G={thirdPartyType:w==null?void 0:w.thirdPartyType,thirdPartyId:w==null?void 0:w.thirdPartyId,thirdPartyEmail:w==null?void 0:w.thirdPartyEmail,thirdPartyUserName:w==null?void 0:w.thirdPartyUserName,appId:"ERA",kick:!0,userId:((ye=u.value)==null?void 0:ye.userId)||"",activityCode:(M==null?void 0:M.activityCode)||"",referenceUserId:(M==null?void 0:M.referenceUserId)||"",prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};let $;if(l.value.type==="account")$=b.bindThirdPartyByPwdApi({...G,account:l.value.username,password:ht.MD5(l.value.password).toString(),verificationCodeUuid:F.uuid,verificationCodeValue:F.code,...F});else{const fe=l.value.type==="mobile";$=b.bindThirdPartyByCodeApi({...G,type:fe?"MOBILE":"EMAIL",account:fe?l.value.phone:l.value.email,verificationCodeUuid:fe?x.value:T.value,verificationCodeValue:l.value.code,...F})}$.then(fe=>{if(fe.data.code!==0)return U.Message.error(fe.data.msg||(i.isEn?"Login failed":"登录失败"));if(fe.data.data){const Te=fe.data.data;Te.tgc&&Mt.set("tgc",Te.tgc,{expires:30}),Te.result&&b.setTokenAll(Te.result),Te.redirectPath&&Ut(Te.redirectPath);return}if(fe.data.subCode==="USER_HAS_OTHER_BIND"){U.Message.error(i.isEn?"Bound to other user":"该账号已绑定其他用户");return}fe.data.result&&b.setTokenAll(fe.data.result),fe.data.tgc&&Mt.set("tgc",fe.data.tgc,{expires:30}),fe.data.redirectPath&&Ut(fe.data.redirectPath)}).finally(()=>{r.value=!1})};return{submitting:r,selectedUser:s,currentUser:u,bindLoginFormRef:p,loginForm:l,areaCodeData:m,codeReady:A,captchaVisible:v,computedRules:D,handleSelectUser:W,handleTypeInput:k,handleChangeSubType:S,validateField:N,handleGetCode:H,handleSubmit:z,handleCaptchaSuccess:E}}}),n1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e",r1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e",Sc="data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSG8AAAABcFXbVq2cCEQ4EYxABBtIhNvg0kAaEMEIJwoRiLB86/b5GxETYP9n6T1rGiyaBULjMJPEAvaaDOwkdgBWSRrAKH4rxsOTq3NzbfD0/Cr+eACzZk/XHl+Bluz5DlRTBnRTOuCSAmHSBlU0xlbzdwIAVlA4IEIAAABwAwCdASogACAAPjESjEYiENDKACADBLSAACWH58lev5ur/aAA/iw///2p6j//i/2//+H8FPIH///0cbN//9v7AAA=";var i1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"bind-container"},[r("div",{staticClass:"bind-title"},[r("div",[e._v(" "+e._s(e.currentUser?e.isEn?"Log in and link":"绑定并登录":e.isEn?"Select account to link":"请选择要关联的账号")+" ")]),e.currentUser&&e.bindList.length>1?r("div",{staticClass:"back-btn",on:{click:function(s){e.selectedUser=null}}},[e._v(" "+e._s(e.isEn?"< Back":"< 返回选择")+" ")]):e._e()]),e.currentUser?r("div",{staticClass:"bind-form-content"},[r("div",{staticClass:"current-bind-info"},[r("span",[e._v(e._s(e.isEn?"Binding Account:":"正在绑定账号:"))]),r("span",{staticClass:"highlight"},[e._v(e._s(e.currentUser.account||e.currentUser.email||e.currentUser.mobile))])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"third-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":"","show-email":!!e.loginForm.email&&e.currentUser.emailValidFlag==="1","show-mobile":!!e.loginForm.phone&&e.currentUser.mobileValidFlag==="1"},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.loginForm.type==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,disabled:"",placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.loginForm.type==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,disabled:"",placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",maxlength:"15"},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("div",{staticClass:"tel-areacode"},[e._v(e._s(e.loginForm.areaCode))])]},proxy:!0}])})],1)],1)],e.loginForm.type==="email"||e.loginForm.type==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},attrs:{src:Sc,alt:""}})])],1)],2)],1):r("div",{staticClass:"user-list"},e._l(e.bindList,function(s,u){return r("div",{key:u,staticClass:"bind-user-card",on:{click:function(p){return e.handleSelectUser(s)}}},[e._m(0,!0),r("div",{staticClass:"bind-user-card__right"},[r("div",{staticClass:"bind-user-card__right__title"},[e._v(" "+e._s(e.isEn?s.userNameEn||s.userNameCn:s.userNameCn||s.userNameEn)+" ")]),r("div",{staticClass:"bind-user-card__right__desc"},[e._v(" "+e._s(e.isEn?s.compNameEn||s.compNameCn:s.compNameEn||s.compNameEn)+" ")]),s.email?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:n1}}),e._v(" "+e._s(s.email)+" ")]):e._e(),s.mobile?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:r1}}),e._v(" "+e._s(s.mobile)+" ")]):e._e()]),r("div",{staticClass:"bind-user-card__btn"},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(p){return p.stopPropagation(),e.handleSelectUser(s)}}},[e._v(" "+e._s(e.isEn?"Select":"选择")+" ")])],1)])}),0),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},a1=[function(){var i=this,e=i._self._c;return i._self._setupProxy,e("div",{staticClass:"bind-user-card__left"},[e("div",{staticClass:"account-icon"})])}],s1=me(t1,i1,a1,!1,null,"d24ef5c3");const Ic=s1.exports,o1=Object.freeze(Object.defineProperty({__proto__:null,default:Ic},Symbol.toStringTag,{value:"Module"})),l1={name:"ThirdRegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:Un,CodeInput:nn,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Vt,ApplyJoinBtn:wi},props:{isEn:Boolean},emits:["bind-third-party","register","register-success","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r;return(r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},showEmailBindBtn(){return!this.currentCountryIsChina&&this.thirdPartyEmailVerifyList.length>0},showMobileBindBtn(){return this.currentCountryIsChina&&this.thirdPartyMobileVerifyList.length>0}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>as(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>_C(i,e,r,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>AC(i,e,r,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1,thirdPartyMobileVerifyList:[],thirdPartyEmailVerifyList:[]}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:ss,getAuthSessionItems:b.getAuthSessionItems,go2Policy:os,handleBindThirdParty(i){this.$emit("bind-third-party",i==="email"?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=b.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){b.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{console.log("findDict err:",i)})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await b.getLocalIpDataApi()).data;e&&e.code===0&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await b.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};let s=b.sendEmailCodeApi,u=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(s=b.sendMobileCodeApi,u=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),e(),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{var m;if(!i)return;const e=this.getAuthSessionItems(),{thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p}=_c();let l={appId:this.appId,fromSys:this.appId,passwd:ht.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterEmpNo:e.empNo||"",registerType:e.registerType||"",registerEvent:e.registerEvent||"",thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(l,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:(m=this.areaCodeData.find(A=>A.telCode===this.form.areaCode))==null?void 0:m.id,account:b.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(l,{type:"EMAIL",account:b.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(l):this.handleNewCompanySubmit(l)})},async handleNewCompanySubmit(i){const e={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?e.compNameCn=this.form.companyName:e.compNameEn=this.form.companyName,this.$emit("register",e),this.loading=!0;try{const r=await b.registerByThirdPartyApi(e);this.handlePostRegister(r)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(e.nameCn=this.form.nameCn),this.form.nameEn&&(e.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(s=>delete e[s]),this.$emit("register",e),this.loading=!0;try{const s=await b.registerJoinCompByThirdPartyApi(e);this.handlePostRegister(s)}catch{this.loading=!1}},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect)try{if(Mt.set("tgc",i.data.data.tgc,{expires:30}),i.data.data.result&&b.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0;const m=Number(l)||0;setTimeout(()=>{b.resetAuthSessionItems(),Ut(r)},m)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||(b.resetAuthSessionItems(),Ut(r))},0)}catch(r){console.log("handlePostRegister error:",r)}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var c1=function(){var s,u,p;var e=this,r=e._self._c;return r("div",{staticClass:"third-register-form-container"},[r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company Name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(l){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" Location(City)")])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(l){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",l)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(l){e.$set(e.form,"city",l)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||null,city:e.form.city},on:{"update:companyName":function(l){return e.$set(e.form,"companyName",l)},"update:company-name":function(l){return e.$set(e.form,"companyName",l)},"update:useKq":function(l){return e.$set(e.form,"useKq",l)},"update:use-kq":function(l){return e.$set(e.form,"useKq",l)},"update:kqCode":function(l){return e.$set(e.form,"kqCode",l)},"update:kq-code":function(l){return e.$set(e.form,"kqCode",l)},"update:kqInfo":function(l){return e.$set(e.form,"kqInfo",l)},"update:kq-info":function(l){return e.$set(e.form,"kqInfo",l)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(l){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(l){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(l){e.$set(e.form,"areaCode",l)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(l){return r("el-option",{key:l.id,attrs:{label:l.telCode,value:l.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(l){e.$set(e.form,"phone",l)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(l){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(l){e.$set(e.form,"email",l)},expression:"form.email"}})],1),e.showEmailBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("email")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),e.showMobileBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("mobile")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(l){e.$set(e.form,"code",l)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(l){e.$set(e.form,"password",l)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(l){return r("div",{key:l.value,staticClass:"sector-item",class:{active:e.form.sector===l.value},on:{click:function(m){e.form.sector=l.value}}},[e._v(" "+e._s(e.isEn?l.en:l.cn)+" "),e.form.sector===l.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(l){e.$set(e.form,"agree",l)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2)],1)},u1=[],f1=me(l1,c1,u1,!1,null,"54b21d24");const xc=f1.exports,d1=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"}));function Tc(i={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",i);const{appId:e="ERA",isEn:r=!1}=i,s=C.ref(!1),u=C.ref(!1),p=C.ref(null),l=C.ref(!1),m=I=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",I);const B=b.getAuthSessionItems()||{},D=I.redirectPath||B.path||"/";I.result&&b.setTokenAll(I.result),console.log("🍉 Redirecting to:",D),Ut(D)},A=async I=>{var F;const{loginType:B,loginForm:D={},captchaData:W={},isKick:k=!1,mobileUid:S,emailUid:N,areaCodeData:H=[],remember:Q}=I;s.value=!0,k||(p.value=W);const z=b.getAuthSessionItems()||{},E={appId:e,fromSys:e,kick:k,inviterInfo:z.empNo||void 0,redirectPath:z.path||"/",...z,...W,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};let q=b.loginApi;if(B==="account")Object.assign(E,{type:"PASSWORD",username:D.username,password:ht.MD5(D.password).toString(),uniqueCode:""});else if(B==="wechat")Object.assign(E,{type:"WECHAT",uniqueCode:z.uniqueCode}),!z.uniqueCode&&!E.uniqueCode&&console.warn("WeChat login missing uniqueCode"),q=b.loginApi;else{const w=D.type==="mobile",M=w?S:N;if(Object.assign(E,{type:w?"MOBILE":"EMAIL",account:w?D.phone:D.email,verificationCodeValue:D.code,verificationCodeUuid:M}),w){const G=H.find($=>$.telCode===D.areaCode);E.areaCode=D.areaCode,E.areaCodeCountryId=G==null?void 0:G.id}if(!E.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}q=b.loginByEmailOrMobileCodeApi}try{const{data:w}=await q(E);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){v(I);return}if(M.tgc){if(M.result&&b.setTokenAll(M.result),Q&&Mt.set("tgc",M.tgc,{expires:30,domain:b.getFirstDomain()}),(F=M.result)==null?void 0:F.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Login successful":"登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Login failed":"登录失败"))}catch(w){console.error("Login Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},v=I=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{A({...I,isKick:!0})}).catch(()=>{s.value=!1})},x=async I=>{var F;const{loginType:B,loginForm:D,captchaData:W,uniqueCode:k,isKick:S=!0,mobileUid:N,emailUid:H,areaCodeData:Q=[]}=I;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",I),s.value=!0;const z=b.getAuthSessionItems()||{};let E,q={appId:e,uniqueCode:k,kick:S,code:W.code,uuid:W.uuid,redirectPath:z.path||"/",fromSys:e,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",q),B==="account")E=b.loginPwdBindWechatApi,Object.assign(q,{username:D.username,password:ht.MD5(D.password).toString(),rememberMe:D.remember||!1});else{E=b.loginCodeBindWechatApi;const w=D.type==="mobile",M=w?N:H;if(Object.assign(q,{type:w?"MOBILE":"EMAIL",account:w?D.phone:D.email,verificationCodeValue:D.code,verificationCodeUuid:M,rememberMe:D.remember||!1}),w){const G=Q.find($=>$.telCode===D.areaCode);Object.assign(q,{areaCode:D.areaCode,areaCodeCountryId:G==null?void 0:G.id})}if(!q.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}}try{const{data:w}=await E(q);if(console.log("🍉 Bind Result:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){T(I);return}if(M.tgc){if(M.result&&b.setTokenAll(M.result),Mt.set("tgc",M.tgc,{expires:30,domain:b.getFirstDomain()}),(F=M.result)==null?void 0:F.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Linked and logged in successfully":"绑定并登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Binding failed":"绑定失败"))}catch(w){console.error("Bind Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},T=I=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{x({...I,isKick:!0})}).catch(()=>{s.value=!1})};return{loading:s,captchaVisible:u,handleAuthSubmit:A,executeRedirect:m,loginNeedComplete:l,handleBindSubmit:x}}const p1=C.defineComponent({name:"WechatBindLogin",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,LoginTypeSwitcher:bi,GoogleInput:Vt,CodeInput:nn,JcVerifySlide:gn},props:{isEn:{type:Boolean,default:!1}},emits:["needComplete"],setup(i,{emit:e}){const{loading:r,captchaVisible:s,handleBindSubmit:u}=Tc({appId:"ERA",isEn:i.isEn,onNeedComplete:E=>{console.log("需要完善信息,暂不关闭弹窗"),e("needComplete",E)}}),p=C.ref({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),l=C.ref([]),m=C.ref(),A=C.ref(!1),v=C.ref(!1),x=C.ref({}),T=C.ref(""),I=C.ref(""),B=C.computed(()=>p.value.type),D=C.computed(()=>{const E={username:[{required:!0,trigger:"blur",message:i.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(q,F,w)=>{On(q,F,w,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(q,F,w)=>{Nn(q,F,w,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(q,F,w)=>{tn(q,F,w,i.isEn)},trigger:"blur"}]};return B.value==="account"?{username:E.username,password:E.password}:B.value==="email"||B.value==="mobile"?{code:E.code,...p.value.type==="email"?{email:E.email}:{phone:E.phone}}:{}});function W(E){p.value.type=E}async function k(E){if(E=="mobile"&&l.value.length===0){const q=await b.findPAreaCodeApi();l.value=q.data.data.records}}function S(E){p.value.areaCode=E,N("areaCode")}function N(E){m.value.validateField(E,q=>{A.value=q})}function H(){m.value.validate(E=>{if(E)if(B.value==="account")s.value=!0;else{if(!x.value||!x.value.uuid)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");Q(x.value)}})}function Q(E){s.value=!1;const F=(b.getAuthSessionItems()||{}).uniqueCode||"";if(!F){console.error("Missing uniqueCode for binding");return}u({loginType:B.value==="account"?"account":"code",loginForm:p.value,captchaData:{...E},uniqueCode:F,mobileUid:T.value,emailUid:I.value,areaCodeData:l.value})}function z({captchaData:E,startTimer:q}){const F=p.value.type==="mobile";x.value=E;const w={target:p.value.email||p.value.phone,uuid:E.uuid,code:E.code};F&&(w.areaCode=p.value.areaCode);const M=F?b.sendMobileCodeApi:b.sendEmailCodeApi;q(),M(w).then(G=>{var ye;const $=((ye=G.data.data)==null?void 0:ye.verifyCode)||G.data.verifyCode;G.data.code===0&&$&&(F?T.value=$:I.value=$,U.Message.success(i.isEn?"Verification code sent":"验证码已发送"))}).catch(G=>{console.error(G)})}return{loginForm:p,areaCodeData:l,bindLoginFormRef:m,codeReady:A,isCounting:v,loadingBtn:r,captchaVisible:s,LoginType:B,computedRules:D,handleTypeInput:W,handleChangeSubType:k,handleAreaCodeChange:S,validateField:N,handleSubmit:H,handleCaptchaSuccess:Q,handleGetCode:z}}}),h1="data:image/webp;base64,UklGRkYDAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSK0BAAABkJVtT55JrwQkRAISIqEOBgl1sDhoHVAHXQdIQEIkICH780ETOodzEBETgJ+MA3FKG8fvIaQiOm5lCy/j2vVx4RdxVdtKLwmH2pfwBmrqKbQeifr2bTUSdd/WIlH/HpcqOuxnyjJT9/0aqISFkg47AaCJGwDOgeaFZPQb/7dR/I9HSsuwjsuHapaXKRMaAZCOawBQJvoyMqN3PvqEypGrzsZFgvrLmShgXXYrjMDHLSLS6rGR3+ZUCVy7TtfklVz6Dq76XJIPe0gMh9oW8iAHIWpqLeSAbhdJ1L5Hh8ssB1HPTnZsJTjUV4IZxChFHUrartG5nf2TZju2EdQRAaifCgAe9GCG22QnHQoA7J8SAAw02wWxiPtIv4AgnyqAX6NmBxID1Am9S9ehlKqTwQ4kjxpkxj46gORJha6YPBCuR32FzQXxQYOswD7ng457heAj/8ndPmnYF6hwjaoqCUDglEspRAskn1Ml4WF1E/huCY/ZjZ1MT6eM9UNzufBGEocaXgFqZhdem412vJiqCb8JiJdM9f/OdwHg/a4i0soeQZeqvO4pi8bvBWD8PAwAVlA4IHIBAACQDQCdASpQAFAAPjESh0KiIQzPMmYQAYJYgDTVCv5F+Mf4gb4DJX+Sz7l/ANsR/t26P/QD/AegB1gH9L/gHoV9YB+tfoUf7T/efAf+sP68fAV+m//U1vlDvsJaoYWahGVgTNJjQto23T3wmPTWzB6ZzMk6AwAA/v7uqgr/9ZP//7blAnmnE6lioCaVp1+WnldB5HpBbYjxc1NG5XU54UvD9kf2w/pZ7/42ltzXYtGbK1//nqr8tjkze5eVKps78/9WExTMn4pKTe3c8mpsuj8YwNG+XmxN6qsxIT2EwKQHnE5z8J/+pe+1IL/r1o8YBWTv7H+OAb1dnyF/HIBfP7w3V0JsIK9k9luJE6Inls4/P8XLinjMj63/lB+fL9Mg/9VBqi1r084wLn/+c3RisrFoveLUv2I5xww1R/MwdnWNwJwQ8oKLyHlGl0b3UxrGhAtGoS5KzFv4B538wnEyq7d8a9J8x7Ua1ZythfCc5mNgAAAA";var m1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("div",{staticClass:"bind-wechat-title"},[r("div",{staticClass:"title"},[r("img",{staticClass:"icon-auth-wechat",attrs:{src:h1,alt:""}}),e._v(" "+e._s(e.isEn?"Log in and link with WeChat":"登录并绑定微信")+" ")]),r("div",{staticClass:"sub-title"},[e._v(" "+e._s(e.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷")+" ")])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"wechat-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":""},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.LoginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.LoginType==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{value:e.loginForm.areaCode,placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:e.handleAreaCodeChange}},[e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}])})],1)],1)],e.LoginType==="email"||e.LoginType==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.loadingBtn},on:{click:e.handleSubmit}},[e._v(e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle"},attrs:{src:Sc,alt:""}})])],1)],2),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},g1=[],v1=me(p1,m1,g1,!1,null,"a9f6eb3d");const Rc=v1.exports,y1=Object.freeze(Object.defineProperty({__proto__:null,default:Rc},Symbol.toStringTag,{value:"Module"})),C1="data:image/webp;base64,UklGRhgCAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSKIAAAABgFZbb9xIEATBUAyhEAqhDBIGNgOXQaEIgiAYwtfZtM3+LyImgP4d+1BAVqvCAx8OLsECo3CFAfMo0ODsecsz88SjeXD/vNQjedOzPgDCuqfl0bRNKsBiEa5APD+aTCWI2l0AnZ3ehTnKW+9dgIp/Kf146Aa2PM5egI8Ns66WwwOBq70JvmyE6jVsIPwIOpB4xuyMXU5jbhlnDF0lSm/03whWUDggUAEAAPALAJ0BKjAAMAA+LRKGQqGhDjduAAwBYlsAMgdwP4BoK/wA4aTvN+x2I4/APyq/oHuA/gHOJ7gD9XfMA6QDrYP0z9gD9APRQ/ZD4FP219gD9UARvMpbMuVN2542MibJh8RTb2jFdmX4AP7/8PzX//KRnpdaTTuezU2wfPVue6zvilNiLydYqgogCDf+z+cTn0sw++BUMUAXW/ykOXcyNB2xLlv/9baGU9jTlskvg+1Mv/puM3RR2VkkR8nzfym/nfxZ64t/3bWsauPme9EKHGYBBZv8u8jT/DUfv3hKs//3THxis4v6eWcTTUpo9W6e2PurHwS2B16ei/If+Ww23FLqmd3jWPwTwBTDBEJ3HBZfQftnPWpA9rY4f//0skE1+0YwOJB/my/FIk/GCZloGHd/7iN//8vNjd/zOhSoSRNP6Xtp1K0Qc6nr99ilYAAAAA==",_1="data:image/webp;base64,UklGRiQBAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSL8AAAABcFXbVtygAAdPSGKgDqIgMVAMgAIcxEdRAApQcJ0E3tD5LyLYuG0jSXKOaqvMPsL9Ha6xASWTFT5hMHmbKphYTJIwNRlAYFz0ZMB4PDiqHrB+XhpHMT4TIOtZOJhbp0OUOCcy1XDo75yrSk6UONkFJb71XIAWhxs/aFYm7qhkV5PvDmWYa1lGV2s4Wwd6OcM6RlE+dOaZZrpEXD5BoOr3d+sQWTfFkxAbhATAOF1DN6cKD1TD3cncipS2uz9DBwBWUDggPgAAAFADAJ0BKjAAMAA+JQ6FQqGHjAYAkS0gABSWHJn8435xRpEAAP7//k4XP//7dtNf5ihlI///6OQD//9v7AAA",A1=C.defineComponent({name:"WechatChooseType",components:{ElButton:U.Button},props:{isEn:{type:Boolean,default:!1}},emits:["toBind","toRegister"],setup(i,{emit:e}){return{handleLogin:()=>{e("toBind")},handleRegister:()=>{e("toRegister")}}}});var w1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"wechat-choose-type"},[r("div",[r("div",{staticClass:"choose-title"},[e._v(" "+e._s(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号")+" ")]),r("div",{staticClass:"choose-nav"},[e._v(" "+e._s(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册")+" ")]),r("div",{staticClass:"btn-container"},[r("el-button",{staticClass:"choose-btn jc:mb-6 default-btn jc:outline-none!",on:{click:e.handleRegister}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:C1,alt:"register"}}),e._v(" "+e._s(e.isEn?"Create New Account":"注册新账号")+" ")])]),r("el-button",{staticClass:"choose-btn submit-btn jc:outline-none!",attrs:{type:"primary"},on:{click:e.handleLogin}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:_1,alt:"login"}}),e._v(" "+e._s(e.isEn?"Bind Existing Account":"绑定已有账号")+" ")])])],1)])])},b1=[],E1=me(A1,w1,b1,!1,null,"2d5009d1");const Bc=E1.exports,S1=Object.freeze(Object.defineProperty({__proto__:null,default:Bc},Symbol.toStringTag,{value:"Module"})),I1=C.defineComponent({name:"WechatLogin",components:{ElButton:U.Button},props:{appId:{type:String,default:"ERA"},path:{type:String,default:""},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(i,{emit:e}){const r=C.ref(null),s=C.ref(!0),u=C.ref(!1),p=C.ref("");let l=null;const m=async k=>{if(await C.nextTick(),!!r.value)try{await gv.toCanvas(r.value,k,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(S){console.error("QR Code render error:",S)}},A=async()=>{var k,S;s.value=!0,T();try{const{data:N}=await b.getLoginQrCode();if((N==null?void 0:N.code)===0){p.value=(k=N.data)==null?void 0:k.uniqueCode,u.value=!1;try{b.setAuthSessionItems({uniqueCode:p.value})}catch(H){console.log("setAuthSessionItems error:",H)}await m((S=N.data)==null?void 0:S.qrCodeUrl),v()}else u.value=!0}catch(N){console.error("Fetch WeChat QR fail:",N)}finally{s.value=!1}},v=()=>{var S;const k=((S=window.BASE_INFO)==null?void 0:S.WX_POLLING_TIME)||3e3;l=setInterval(async()=>{try{const{data:N}=await b.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!1,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")});N.code===0&&x(N)}catch(N){console.error("Polling error:",N),T()}},k)},x=k=>{switch(k.subcode){case"EXPIRED":u.value=!0,T();break;case"FOLLOWED_CANCEL":u.value=!0,T();break;case"FOLLOWED_NO_USER":e("need-register",p.value);break;case"FOLLOWED_LOGIN_SUCCESS":T(!1),B(k.data);break}},T=(k=!0)=>{k&&(p.value=""),b.setAuthSessionItems({uniqueCode:""}),l&&(clearInterval(l),l=null)},I=()=>{A()},B=async k=>{if(k.result&&b.setTokenAll(k.result),k.redirect===!0){const S=i.appId==="CPA"?"tgc-CPA":"tgc";Mt.set(S,k.tgc,{expires:30})}if(k.hasLogon===!0)try{await U.MessageBox.confirm(i.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",i.isEn?"Tips":"提示",{confirmButtonText:i.isEn?"Confirm":"确定",cancelButtonText:i.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),D()}catch{A()}else W(k.redirectPath)},D=async()=>{var k;s.value=!0;try{const{data:S}=await b.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!0,prjId:b.getProjectId(),formEntry:b.getSessionHeaderValue("_GIO-registerEntry")});if(S.code===0){if(b.setTokenAll(S.data.result),(k=S.data.result)!=null&&k.improveComp){e("need-complete",S.data.result.improveComp);return}W(S.data.redirectPath)}}catch{U.Message.error(i.isEn?"Login failed":"登录失败")}finally{s.value=!1}},W=k=>{localStorage.setItem("jc-qrCode-login","wx"),T(),k&&Ut(k),e("success")};return C.onMounted(()=>{A()}),C.onUnmounted(()=>{T()}),{qrCanvasRef:r,loadingCode:s,isShowMask:u,handleRefresh:I}}}),x1="data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0xXZtvhGY+x52WHLcCHeNxRfOfR5Fu/tpdZaJ1mWZeOiA0zFL+w9j/I9NSffY5NUvmeVwTfp8PxNbrn9HRbs2zo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KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=";var R1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"login-wx"},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingCode,expression:"loadingCode"}],staticClass:"login-wx-code"},[r("div",{staticClass:"qr-canvas-wrapper flex-center",class:{"qrcode-error-mask":e.isShowMask}},[r("canvas",{ref:"qrCanvasRef"})]),e.isShowMask?[r("div",{staticClass:"refresh-overlay flex-center",on:{click:e.handleRefresh}},[r("img",{staticClass:"refresh-icon",attrs:{src:x1,alt:"refresh"}}),r("div",{staticClass:"expired-text mt10 mb10"},[e._v(" "+e._s(e.isEn?"The QR code has expired":"二维码已过期")+" ")]),r("el-button",{staticClass:"jc:text-white",attrs:{type:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleRefresh.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Rescan QR code":"重新扫码")+" ")])],1)]:e._e(),r("div",{staticClass:"scan-tip"},[r("img",{attrs:{src:T1,alt:"wechat"}}),r("span",[e._v(e._s(e.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"))])])],2)])},B1=[],F1=me(I1,R1,B1,!1,null,"66101abf");const Fc=F1.exports,P1=Object.freeze(Object.defineProperty({__proto__:null,default:Fc},Symbol.toStringTag,{value:"Module"})),k1={name:"JcLoginDialog",model:{prop:"visible",event:"update:visible"},components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,GoogleInput:Vt,CodeInput:nn,RegisterForm:Ac,LoginTypeSwitcher:bi,JcVerifySlide:gn,WechatLogin:Fc,WechatChooseType:Bc,WechatBindLogin:Rc,CompleteInfoForm:wc,ForgetPassword:Ec,ThirdBindLogin:Ic,ThirdRegisterForm:xc},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},currentPath:{type:String,default:"/"},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1},baseMode:{type:String,default:"login"}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},emit:["update:visible","update:baseMode","open","mode-change","auth-dialog-close","login-success","register-success"],mounted(){const i=b.getRememberAccount();i&&(this.loginForm.username=i.account||"",this.loginForm.password=i.password?b.Decrypt(i.password):"",this.loginForm.remember=!0)},setup(i){const{proxy:e}=C.getCurrentInstance(),r=C.ref(null),s=k=>{var Q,z;const S=String(k||"").toLowerCase(),N=String(r.value||"").toLowerCase(),H=((Q=b.getAuthSessionItems)==null?void 0:Q.call(b))||{};return S==="facebook"||N==="facebook"?"FACEBOOK":S==="linkedin"||N==="linkedin"?"LINKEDIN":S==="wechat"||(z=e==null?void 0:e.formMode)!=null&&z.startsWith("wechat")||H!=null&&H.uniqueCode?"WECHAT":"PASSWORD"},u=C.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const k=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(k)}return!1}),{loading:p,handleAuthSubmit:l,executeRedirect:m}=Tc({appId:"ERA",isEn:u.value,onNeedComplete:k=>{const S=(e==null?void 0:e.loginType)==="code"?"register":"login";e.handleNeedComplete({mode:S,accountType:s(e==null?void 0:e.loginType),payload:k})},onSuccess:k=>{const S=s(e==null?void 0:e.loginType);e.$emit("login-success",{...k||{},accountType:S,mode:"login"}),e.loginForm.remember&&b.setRememberMe(e.loginForm.username,b.Encrypt(e.loginForm.password),!0),e.currentVisible=!1,m(k)}}),{isBindDialogVisible:A,isRegisterVisible:v,bindList:x,isUserClosed:T,startLogin:I,handleBindThirdParty:B,resetBindRegisterState:D}=CC({appId:"ERA",isEn:u.value,onSuccess:k=>{const S=s(r.value);e.$emit("login-success",{...k||{},accountType:S,mode:"login"}),e.currentVisible=!1,m(k)}});C.watch(T,k=>{k&&U.Message.error(u.value?"You have canceled the login.":"您取消了登录。")});const W=k=>{r.value=k;const S=k==="facebook"?"FACEBOOK":k==="linkedin"?"LINKEDIN":k;S&&I(S)};return C.watch(A,k=>{k&&(e.loginType=r.value)}),C.watch(v,k=>{k&&(e.loginType=r.value)}),{thirdBindDialogVisible:A,thirdRegisterVisible:v,bindList:x,authLoading:p,isEn:u,handleAuthSubmit:l,executeRedirect:m,handleThirdClick:W,handleBindThirdParty:B,resetBindRegisterState:D}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],IpData:null,isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(i,e,r)=>On(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>tn(i,e,r,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null,pendingCompleteEvent:null,_lastEmittedBaseMode:this.baseMode==="register"?"register":"login"}},computed:{currentDialogWidth(){let i="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(i="640px"),this.formMode==="login"&&(this.loginType==="linkedin"||this.loginType==="facebook"||this.loginType==="TEST")&&(i="640px"),i},computedRules(){const i={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,r,s)=>On(e,r,s,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,r,s)=>Nn(e,r,s,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,r,s)=>tn(e,r,s,this.isEn),trigger:"blur"}]};return this.loginType==="account"?{username:i.username,password:i.password}:this.loginType==="code"?{code:i.code,...this.loginForm.type==="email"?{email:i.email}:{phone:i.phone}}:{}}},watch:{visible(i){this.currentVisible=i},baseMode(i){const e=i==="register"?"register":"login";this.currentVisible&&["login","register"].includes(this.formMode)&&(this.formMode=e)},currentVisible(i){this.$emit("update:visible",i)},formMode:{handler(i){const e=i==="register"?"register":"login";this._lastEmittedBaseMode!==e&&(this._lastEmittedBaseMode=e,this.$emit("update:baseMode",e),this.$emit("mode-change",{formMode:i,baseMode:e}))},immediate:!0}},methods:{go2Agreement:ss,go2Policy:os,handleOpen(){this.formMode=this.baseMode||"login",this._lastEmittedBaseMode=this.formMode==="register"?"register":"login",this.$emit("open")},handleClose(){this.$emit("auth-dialog-close",{loginType:this.loginType,formMode:this.formMode}),this.loginType="account",this.formMode=this.baseMode||"login",this.pendingCompleteEvent=null,b.resetAuthSessionItems(),b.resetGioSessionItems(),this.resetBindRegisterState()},handleTest(i){this.formMode=i},handleNeedComplete(i={}){const e=(i==null?void 0:i.mode)==="register"?"register":"login",r=(i==null?void 0:i.accountType)||this.resolveAccountTypeByContext();this.pendingCompleteEvent={eventName:e==="register"?"register-success":"login-success",accountType:r},this.formMode="need-complete"},handleRegisterNeedComplete(i){this.handleNeedComplete({mode:"register",payload:i})},handleWechatNeedComplete(i){this.handleNeedComplete({mode:"login",accountType:"WECHAT",payload:i})},resolveAccountTypeByContext(){var r;const i=String(this.loginType||"").toLowerCase(),e=((r=b.getAuthSessionItems)==null?void 0:r.call(b))||{};return i==="facebook"?"FACEBOOK":i==="linkedin"?"LINKEDIN":i==="wechat"||e!=null&&e.uniqueCode?"WECHAT":"PASSWORD"},handleRegisterSuccess(i){if(this.pendingCompleteEvent){console.warn("需要完善信息,跳过本次 emit,等待 CompleteInfoForm 处理");return}this.$emit("register-success",{...i||{},accountType:this.resolveAccountTypeByContext(),mode:"register"})},handleWechatSuccess(i){this.$emit("login-success",{...i||{},accountType:"WECHAT",mode:"login"})},handleCompleteSuccess(i){var e;if((e=this.pendingCompleteEvent)!=null&&e.eventName){const r=this.pendingCompleteEvent.eventName==="register-success"?"register":"login";this.$emit(this.pendingCompleteEvent.eventName,{...i||{},accountType:this.pendingCompleteEvent.accountType,mode:r}),this.pendingCompleteEvent=null}i.redirectPath?this.executeRedirect(i):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(i){this.loginType!==i&&(this.loginType=i,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(i){this.$refs.loginFormRef.validateField(i,e=>{this.codeReady=e})},handleGetCode({captchaData:i,startTimer:e}){const r=this.loginForm.type==="mobile",s={target:this.loginForm.email||this.loginForm.phone,uuid:i.uuid,code:i.code};r&&(s.areaCode=this.loginForm.areaCode);const u=r?b.sendMobileCodeApi:b.sendEmailCodeApi;this.verifyData=i,e(),u(s).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(r?this.mobileUid=l:this.emailUid=l,U.Message.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(p=>{console.error(p)})},handleLogin(){this.$refs.loginFormRef.validate(i=>{if(i)if(this.loginType==="account")this.captchaVisible=!0;else{if(!this.verifyData||!this.verifyData.uuid)return U.Message.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(i){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:i,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){this.formMode="forget-password"},async handleChangeSubType(i){this.loginMethod=i,i=="mobile"&&this.areaCodeData.length===0&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await b.getLocalIpDataApi()).data.data;process.env.NODE_ENV==="development"&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){var e,r;const i=await b.findPAreaCodeApi();this.areaCodeData=i.data.data.records,this.loginForm.areaCode=(r=(e=i.data.data.records)==null?void 0:e.find(s=>{var u;return s.id===((u=this.IpData)==null?void 0:u.countryId)}))==null?void 0:r.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account",this.pendingCompleteEvent=null}}};var D1=function(){var e=this,r=e._self._c;return r("el-dialog",{staticClass:"jc-auth-dialog",attrs:{visible:e.currentVisible,"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:e.currentDialogWidth,"show-close":!0},on:{"update:visible":function(s){e.currentVisible=s},close:e.handleClose,open:e.handleOpen}},[e.formMode==="login"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"login-section"},[r("div",{staticClass:"login-title"},[e.thirdBindDialogVisible||e.thirdRegisterVisible?r("p",[e._v(" "+e._s(e.isEn?"New User Registration":"新用户注册")+" ")]):r("p",[e._v(" "+e._s(e.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans")+" ")])]),["account","code"].includes(e.loginType)?[r("div",{staticClass:"tab-header"},[r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="account"},on:{click:function(s){return e.switchLoginTab("account")}}},[e._v(" "+e._s(e.isEn?"Password Login":"账号登录")+" ")]),r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="code"},on:{click:function(s){return e.switchLoginTab("code")}}},[e._v(" "+e._s(e.isEn?"Verification Code Login":"验证码登录")+" ")])]),r("el-form",{ref:"loginFormRef",staticClass:"auth-form login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[e.loginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},model:{value:e.loginForm.username,callback:function(s){e.$set(e.loginForm,"username",s)},expression:"loginForm.username"}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},model:{value:e.loginForm.password,callback:function(s){e.$set(e.loginForm,"password",s)},expression:"loginForm.password"}})],1)]:e.loginType==="code"?[r("el-form-item",{attrs:{prop:"type"}},[r("LoginTypeSwitcher",{attrs:{"is-en":e.isEn},on:{change:e.handleChangeSubType},model:{value:e.loginForm.type,callback:function(s){e.$set(e.loginForm,"type",s)},expression:"loginForm.type"}})],1),e.loginForm.type==="email"?r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Email Address":"邮箱地址"},on:{blur:function(s){return e.validateField("email")}},model:{value:e.loginForm.email,callback:function(s){e.$set(e.loginForm,"email",s)},expression:"loginForm.email"}})],1):[r("div",{staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.loginForm.areaCode,callback:function(s){e.$set(e.loginForm,"areaCode",s)},expression:"loginForm.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1341634787),model:{value:e.loginForm.phone,callback:function(s){e.$set(e.loginForm,"phone",s)},expression:"loginForm.phone"}})],1)],1)],r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{send:e.handleGetCode},model:{value:e.loginForm.code,callback:function(s){e.$set(e.loginForm,"code",s)},expression:"loginForm.code"}})],1)]:e._e(),r("div",{staticClass:"login-passport"},[r("div",{staticClass:"login-remember"},[r("el-form-item",{staticClass:"remember-item",attrs:{prop:"remember"}},[r("el-checkbox",{staticClass:"remember-btn",model:{value:e.loginForm.remember,callback:function(s){e.$set(e.loginForm,"remember",s)},expression:"loginForm.remember"}},[e._v(e._s(e.isEn?"Remember Me":"30天自动登录"))])],1),e.loginType==="account"?r("span",{staticClass:"forget-pwd-btn",on:{click:e.handleForget}},[e._v(e._s(e.isEn?"Forgot your password?":"忘记密码"))]):e._e()],1),e.loginType==="code"?r("div",{staticClass:"login-agreement"},[r("div",{staticClass:"login-agreement-text"},[r("span",{staticClass:"login-agreement-text-item"},[e._v(e._s(e.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),r("span",{staticClass:"login-agreement-text-item jc:mx-0.5"},[e._v(e._s(e.isEn?"and":""))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])]):e._e(),r("el-button",{staticClass:"submit-btn",attrs:{loading:e.authLoading},on:{click:e.handleLogin}},[e._v(" "+e._s(e.loginType==="code"?e.isEn?"Register and log in":"登录/注册":e.isEn?"Sign In":"登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],1)],2)]:e._e(),e.loginType==="wechat"?r("div",[r("WechatLogin",{attrs:{"is-en":e.isEn},on:{success:e.handleWechatSuccess,"need-register":e.handleWechatNeedRegister,"need-complete":e.handleWechatNeedComplete}})],1):e._e(),["linkedin","facebook","TEST"].includes(e.loginType)?r("div",[e.thirdBindDialogVisible?r("ThirdBindLogin",{staticClass:"jc:mt-1",attrs:{"is-en":e.isEn,"bind-list":e.bindList}}):e._e(),e.thirdRegisterVisible?r("ThirdRegisterForm",{staticClass:"jc:mt-6",attrs:{"is-en":e.isEn},on:{"bind-third-party":e.handleBindThirdParty,"register-success":e.handleRegisterSuccess,"need-complete":e.handleRegisterNeedComplete}}):e._e()],1):e._e(),e.loginType!=="TEST"&&e.loginType!=="facebook"&&e.loginType!=="linkedin"?r("div",{staticClass:"third-party-sign-in"},[r("div",{staticClass:"third-party-sign-in-title"},[e._v(" "+e._s(e.isEn?"Sign in with":"其他登录方式")+" ")]),r("div",{staticClass:"third-party-sign-in-group"},[["wechat","linkedin","facebook"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="account"}},[r("i",{staticClass:"icon-account"}),r("span",[e._v(" "+e._s(e.isEn?"Account":"账户"))])]):["account","code"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="wechat"}},[r("i",{staticClass:"icon-auth-wechat"}),r("span",[e._v(e._s(e.isEn?"WeChat":"微信"))])]):e._e(),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("linkedin")}}},[r("i",{staticClass:"icon-auth-linkedin"}),r("span",[e._v("LinkedIn")])]),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("facebook")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("Facebook")])]),e.showTestThirdBtn?r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("TEST")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("TEST")])]):e._e()])]):e._e(),!e.thirdBindDialogVisible&&!e.thirdRegisterVisible?r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Don't have an account?":"没有账户?")+" "),r("span",{staticClass:"action-text",on:{click:function(s){e.formMode="register"}}},[e._v(e._s(e.isEn?"Sign Up":"立即注册")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])]):e._e()],2)]):e.formMode==="wechat-need-register"?r("WechatChooseType",{attrs:{"is-en":e.isEn},on:{"to-bind":e.handleWechatLogin,"to-register":e.handleWechatRegister}}):e.formMode==="wechat-bind"?r("WechatBindLogin",{attrs:{"is-en":e.isEn},on:{"need-complete":e.handleWechatNeedComplete}}):e.formMode==="register"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"register-section"},[r("RegisterForm",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin,"need-complete":e.handleRegisterNeedComplete,"register-success":e.handleRegisterSuccess}})],1)]):e.formMode==="need-complete"?r("CompleteInfoForm",{attrs:{"is-en":e.isEn},on:{success:e.handleCompleteSuccess}}):e.formMode==="forget-password"?r("ForgetPassword",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin}}):e._e(),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},O1=[],L1=me(k1,D1,O1,!1,null,"59e8d372");const N1=L1.exports,M1=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"}));function U1(i){const e=C.ref([]),r="_search_history_cache",s=typeof window!="undefined"&&typeof localStorage!="undefined",u=C.computed(()=>(i.value||"")+r),p=C.computed(()=>!!i.value&&i.value!==""),l=A=>{if(!A||!s)return;const v=e.value.filter(T=>T.id&&T.id!==A.id||T.display!==A.display);v.unshift(A);const x=v.slice(0,4);if(p.value){e.value=x;try{localStorage.setItem(u.value,JSON.stringify(x))}catch(T){console.warn("LocalStorage save failed:",T)}}},m=()=>{e.value=[],s&&localStorage.removeItem(u.value)};return C.onMounted(()=>{if(s&&p.value){const A=localStorage.getItem(u.value);if(A)try{e.value=JSON.parse(A)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:l,clearHistory:m,HasHistory:p}}async function q1(i,e=["Continent","Country","City","Seaport","Airport"],r={}){return b.locationSearchV2.searchByName({keyword:i,displayInfo:e,...r})}const V1=(i,e)=>b.locationSearchV2.searchByIdWithType(i,e);function W1(i,e){const r=C.ref([]),s=C.ref(!1),u=C.ref(!1),p=C.ref(!1),l=C.ref(1),m=20,A=C.ref(0),v=C.computed(()=>{const I=[...e.value];return I.includes("Country")&&!I.includes("Region")&&I.push("Region"),I}),x=I=>Array.isArray(I)?I.filter(B=>v.value.includes(B.type)):[];return{searchResults:r,loading:s,isFetchingMore:u,isFinished:p,fetchData:async(I=!1)=>{const B=i.value.trim();if(!B){r.value=[],A.value=0,p.value=!1;return}if(I){if(u.value||p.value)return;u.value=!0,l.value+=1}else{if(s.value)return;s.value=!0,l.value=1,p.value=!1}try{const D=await q1(B,e.value,{current:l.value,size:m}),W=x(D.records||[]);I?r.value.push(...W):r.value=W,A.value=D.total||0,(r.value.length>=A.value||W.length<m)&&(p.value=!0)}catch(D){console.error("Search request failed:",D),I&&(l.value-=1)}finally{s.value=!1,u.value=!1}}}}const Xa=i=>!!(i!=null&&i.id)&&!!(i!=null&&i.type)&&!(i!=null&&i.display);function H1(i){return{hydrateMultiple:async s=>{if(!Array.isArray(s)||s.length===0)return{updatedList:s,hasChanged:!1};const u=s.filter(v=>Xa(v));if(u.length===0)return{updatedList:s,hasChanged:!1};const p=u.reduce((v,x)=>{const T=x.type;return v[T]||(v[T]=[]),v[T].push(x.id),v},{}),l=new Map;for(const[v,x]of Object.entries(p)){if(x.length===0)continue;const T=await i(x,v);((T==null?void 0:T.records)||[]).forEach(B=>{!(B!=null&&B.id)||!(B!=null&&B.type)||l.set(`${B.type}::${B.id}`,B)})}let m=!1;return{updatedList:s.map(v=>{if(!Xa(v))return v;const x=`${v.type}::${v.id}`,T=l.get(x);return T?(m=!0,{...v,...T}):v}),hasChanged:m}},hydrateSingle:async s=>{if(!s||!Xa(s))return s;const u=await i(s.id,s.type),p=(u==null?void 0:u.records)||[],l=p.find(m=>(m==null?void 0:m.id)===s.id&&(m==null?void 0:m.type)===s.type)||p[0];return l?{...s,...l}:s}}}const G1=C.defineComponent({name:"JcMSearch",model:{prop:"value",event:"input"},props:{value:{type:null,default:void 0},multiple:{type:Boolean,default:!1},lang:{type:String,default:"zh-CN"},placeholder:{type:String,default:""},historyKey:{type:String,default:""},reportType:{type:String,default:"City"}},setup(i,{emit:e}){const r=C.ref(!1),s=C.ref(""),u=C.ref(null),p=C.ref(null);let l=null;const{searchHistory:m,saveToHistory:A,clearHistory:v}=U1(C.computed(()=>i.historyKey)),{searchResults:x,loading:T,isFetchingMore:I,isFinished:B,fetchData:D}=W1(s,C.ref(["City","Seaport","Airport"])),{hydrateMultiple:W,hydrateSingle:k}=H1(V1),S=C.computed(()=>{var X,j,ne,Ce,Ne,Ee;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const Ae=(X=useCookie("jc-language"))==null?void 0:X.value;if(Ae)return/^en(-US)?$/.test(Ae)}}catch{}if(typeof document!="undefined"){const Ae=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(Ae)}try{if(typeof useNuxtApp=="function"){const Ae=useNuxtApp(),vt=((Ee=(Ne=(Ce=(ne=(j=Ae==null?void 0:Ae.ssrContext)==null?void 0:j.event)==null?void 0:ne.node)==null?void 0:Ce.req)==null?void 0:Ne.headers)==null?void 0:Ee.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(vt)}}catch{}return!1}),N=C.computed(()=>Array.isArray(i.value)?i.value:i.value?[i.value]:[]);C.watch(()=>i.value,async(X,j)=>{if(JSON.stringify(X)!==JSON.stringify(j)){if(i.multiple&&Array.isArray(X)){try{const{updatedList:ne,hasChanged:Ce}=await W(X);Ce&&e("input",ne)}catch(ne){console.error("Batch fetch detail failed:",ne)}return}if(!i.multiple&&(X!=null&&X.id)&&(X!=null&&X.type)&&!(X!=null&&X.display))try{const ne=await k(X);ne&&ne!==X&&e("input",ne)}catch(ne){console.error("Single fetch detail failed:",ne)}}},{immediate:!0,deep:!0});const H=C.computed(()=>!i.multiple&&!!i.value),Q=C.computed(()=>H.value?ye(i.value):""),z=C.computed(()=>N.value.length>0),E=()=>{r.value=!0,C.nextTick(()=>{var X,j,ne;s.value=S.value?((X=i.value)==null?void 0:X.nameEn)||"":((j=i.value)==null?void 0:j.nameCn)||"",(ne=u.value)==null||ne.focus(),s.value&&D(!1)})},q=()=>{r.value=!1,s.value=""},F=X=>{A(X),i.multiple?N.value.some(ne=>ne.id===X.id)||e("input",[...N.value,X]):(e("input",X),q()),e("select",X)},w=()=>{e("input",i.multiple?[]:null)},M=C.ref(!1),G=X=>{const j=X.target;if(!j)return;j.scrollTop+j.clientHeight>=j.scrollHeight-80&&s.value&&!T.value&&!I.value&&!B.value&&!M.value&&(M.value=!0,D(!0))};C.watch(I,X=>{X||(M.value=!1)});const $=()=>{l&&clearTimeout(l),l=setTimeout(()=>{var X;M.value=!1,(X=p.value)==null||X.scrollTo({top:0}),D(!1)},300)};C.onBeforeUnmount(()=>{l&&(clearTimeout(l),l=null)});const ye=X=>S.value?X.displayEn||X.display:X.displayCn||X.display;return{SearchIcon:gc,ICON_MORE:Ci,isDropdownVisible:r,query:s,inputRef:u,scrollContainer:p,isEn:S,selectedItems:N,isSelected:H,selectedLabel:Q,hasValue:z,searchHistory:m,searchResults:x,loading:T,isFetchingMore:I,isFinished:B,clearHistory:v,openSearch:E,closeSearch:q,selectItem:F,clearAll:w,handleScroll:G,onInput:$,getItemLabel:ye,getItemType:X=>{const j={City:"城市",Seaport:"港口",Airport:"机场"};return S.value?X:j[X]||X},isItemActive:X=>N.value.some(j=>j.id===X.id),handleApplyData:async()=>{var j;const X=(j=s.value)==null?void 0:j.trim();if(X)try{await b.reportNewTypeDataApi({reportData:X,reportType:i.reportType})}catch(ne){console.error("Report apply data failed:",ne)}finally{e("apply",X)}}}}});var J1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"h5-search-container"},[r("div",{staticClass:"search-trigger",on:{click:e.openSearch}},[r("div",{staticClass:"trigger-content"},[r("img",{staticClass:"search-icon-m",attrs:{src:e.SearchIcon}}),r("div",{staticClass:"placeholder-text"},[e.multiple&&e.selectedItems.length>0?[r("div",{staticClass:"scroll-container"},[e._l(e.selectedItems,function(s){return r("div",{key:s.id,staticClass:"selected-tag"},[r("span",{staticClass:"tag-text"},[e._v(e._s(s.display))])])}),r("span",{staticClass:"selected-count-text"},[e._v(" "+e._s(e.isEn?"Selected":"已选")+" ("+e._s(e.selectedItems.length)+") ")])],2)]:!e.multiple&&e.isSelected?[r("span",{staticClass:"selected-val"},[e._v(e._s(e.selectedLabel))])]:[r("span",{staticClass:"placeholder-gray"},[e._v(" "+e._s(e.placeholder||(e.isEn?"Search":"搜索"))+" ")])]],2)]),e.hasValue?r("span",{staticClass:"clear-trigger",on:{click:function(s){return s.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v(" ⓧ ")]):e._e()]),e.isDropdownVisible?r("div",{staticClass:"h5-modal-root"},[r("transition",{attrs:{name:"fade"}},[r("div",{staticClass:"h5-mask",on:{click:e.closeSearch}})]),r("transition",{attrs:{name:"slide-up"}},[r("div",{staticClass:"h5-drawer-card"},[r("div",{staticClass:"drawer-handle",on:{click:e.closeSearch}}),r("div",{staticClass:"h5-header"},[r("div",{staticClass:"h5-input-wrapper"},[r("img",{staticClass:"inner-icon",attrs:{src:e.SearchIcon}}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",attrs:{placeholder:e.isEn?"City/Port/Airport":"搜索城市/港口/机场"},domProps:{value:e.query},on:{input:[function(s){s.target.composing||(e.query=s.target.value)},e.onInput]}}),e.query?r("div",{staticClass:"h5-clear-btn",on:{click:function(s){e.query=""}}},[e._v(" ✕ ")]):e._e()]),r("div",{staticClass:"h5-cancel-btn",on:{click:e.closeSearch}},[e._v(" "+e._s(e.isEn?"Cancel":"取消")+" ")])]),r("div",{ref:"scrollContainer",staticClass:"h5-main-content",on:{scroll:e.handleScroll}},[e.loading&&!e.isFetchingMore?r("div",{staticClass:"h5-spinner-box"},[r("div",{staticClass:"h5-spinner"})]):e._e(),!e.query&&e.searchHistory.length>0?r("div",{staticClass:"h5-section"},[r("div",{staticClass:"h5-section-hd"},[r("span",[e._v(e._s(e.isEn?"Recent":"最近搜索"))]),r("span",{staticClass:"h5-clear-history",on:{click:e.clearHistory}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),r("div",{staticClass:"h5-history-grid"},e._l(e.searchHistory,function(s,u){return r("div",{key:u,staticClass:"h5-history-tag",on:{click:function(p){return e.selectItem(s)}}},[e._v(" "+e._s(e.getItemLabel(s))+" ")])}),0)]):e._e(),e.searchResults.length>0?r("div",{staticClass:"h5-result-list"},[e._l(e.searchResults,function(s,u){return r("div",{key:u,staticClass:"h5-result-item",class:{"is-active":e.isItemActive(s)},on:{click:function(p){return e.selectItem(s)}}},[r("div",{staticClass:"item-type",class:s.type.toLowerCase()},[e._v(" "+e._s(e.getItemType(s.type))+" ")]),r("div",{staticClass:"item-info"},[r("div",{staticClass:"item-name"},[e._v(e._s(e.getItemLabel(s)))]),s.parentName?r("div",{staticClass:"item-sub"},[e._v(" "+e._s(s.parentName)+" ")]):e._e()])])}),r("div",{staticClass:"h5-load-status"},[e.isFetchingMore?[r("div",{staticClass:"mini-spinner"}),r("span",[e._v(e._s(e.isEn?"Loading...":"加载中..."))])]:e.isFinished&&e.query?r("span",{staticClass:"no-more"},[e._v(" "+e._s(e.isEn?"No more results":"没有更多结果了")+" ")]):e._e()],2)],2):e._e(),e.query&&!e.loading&&e.searchResults.length===0?r("div",{staticClass:"h5-load-status h5-empty"},[r("p",[e._v(" "+e._s(e.isEn?"No Results Found. ":"未找到相关结果,")+" ")]),r("div",{staticClass:"h5-empty-apply-wrap"},[r("span",{staticClass:"h5-empty-apply",on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据")+" ")]),r("img",{staticClass:"h5-empty-apply-icon",attrs:{src:e.ICON_MORE,alt:"more"},on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}})])]):e._e()])])])],1):e._e()])},j1=[],z1=me(G1,J1,j1,!1,null,"82c8e578");const Q1=z1.exports,K1=Object.freeze(Object.defineProperty({__proto__:null,default:Q1},Symbol.toStringTag,{value:"Module"})),X1=U.Cascader,Y1=C.defineComponent({name:"LineCascader",components:{"el-cascader":X1},model:{prop:"value",event:"input"},props:{value:{type:Array,default:()=>[]},lineId:{type:Number,default:null},placeholder:{type:String,default:""},lang:{type:String,default:""},lineType:{type:String,default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["input","update:lineId","change","apply"],setup(i,{emit:e}){const r=C.ref(),s=C.ref([]),u=C.ref(!1),p=C.ref(""),l=C.ref(i.value||[]),m=C.computed(()=>({multiple:i.multiple,expandTrigger:"click",emitPath:!1,checkStrictly:!1})),A=C.computed(()=>{var S,N,H,Q,z,E;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const q=(S=useCookie("jc-language"))==null?void 0:S.value;if(q)return/^en(-US)?$/.test(q)}}catch{}if(typeof document!="undefined"){const q=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(q)}try{if(typeof useNuxtApp=="function"){const q=useNuxtApp(),F=((E=(z=(Q=(H=(N=q==null?void 0:q.ssrContext)==null?void 0:N.event)==null?void 0:H.node)==null?void 0:Q.req)==null?void 0:z.headers)==null?void 0:E.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(F)}}catch{}return!1}),v=C.computed(()=>s.value.map(S=>{var N;return{label:A.value?S.nameEn||S.nameCn:S.nameCn||S.nameEn,value:`line-${S.id}`,children:(((N=S.raw)==null?void 0:N.countryList)||[]).map(H=>({label:A.value?H.nameEn:H.nameCn,value:`${S.id}-${H.id}`,shortCode:H.shortCode}))}})),x=C.computed(()=>i.placeholder?i.placeholder:A.value?"Please select route":"涉及航线选择"),T=C.computed(()=>u.value?A.value?"Searching...":"正在搜索中...":A.value?"No results found":"暂无结果"),I=async S=>{u.value=!0,p.value=S;try{const N=await b.locationSearchV2.line.searchAllByCountry(i.lineType);s.value=Array.isArray(N)?N:(N==null?void 0:N.records)||[]}catch(N){console.error("Search failed:",N),s.value=[]}finally{u.value=!1}},B=(S,N)=>{e("input",S),e("update:lineId",N),e("change",{countryIds:S,lineId:N})},D=()=>{},W=S=>{if(!S||S.length===0){l.value=[],B([],null);return}const N=S[S.length-1];if(N.startsWith("line-")){const[E,q]=N.split("-"),F=S.filter(w=>w.endsWith(`${q}`));B([],q),e("change",F);return}const[H]=N.split("-"),Q=S.filter(E=>E.startsWith(`${H}-`));l.value=Q;const z=Q.map(E=>E.split("-")[1]);B(z,H),e("change",Q)},k=async()=>{if(p.value)try{await b.reportNewTypeDataApi({reportData:p.value,reportType:"Line"})}catch{}e("apply",p.value),r.value&&(r.value.dropDownVisible=!1)};return C.onMounted(()=>{I("")}),C.watch(()=>i.value,S=>{const N=i.lineId;N&&S&&S.length>0?l.value=S.map(H=>`${N}-${H}`):l.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),{selectRef:r,selectedValues:l,options:s,loading:u,cascaderProps:m,transformedOptions:v,currentPlaceholder:x,noDataText:T,handleExpand:D,handleChange:W,handleApply:k,ICON_MORE:Ci}}});var $1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc-line-cascader"},[r("el-cascader",{ref:"selectRef",staticStyle:{width:"100%"},attrs:{"popper-class":"jc-line-cascader-pop",options:e.transformedOptions,props:e.cascaderProps,placeholder:e.currentPlaceholder,loading:e.loading,"no-data-text":e.noDataText,filterable:"",clearable:""},on:{"expand-change":e.handleExpand,change:e.handleChange},model:{value:e.selectedValues,callback:function(s){e.selectedValues=s},expression:"selectedValues"}})],1)},Z1=[],e_=me(Y1,$1,Z1,!1,null,null);const t_=e_.exports,n_=Object.freeze(Object.defineProperty({__proto__:null,default:t_},Symbol.toStringTag,{value:"Module"})),r_={},Lt=(...i)=>{for(const e of i)if(typeof e=="string"){const r=e.trim();if(r)return r}return""},Ya=(...i)=>{for(const e of i){if(typeof e=="boolean")return e;if(typeof e=="string"){const r=e.trim().toLowerCase();if(r==="true")return!0;if(r==="false")return!1}}},i_=i=>{if(typeof window=="undefined")return{};const e=window,r=e==null?void 0:e[i],s=e==null?void 0:e.__JCTRANS_GIO_CONFIG__,u=e==null?void 0:e.__GIO_CONFIG__,p=r||s||u;return p&&typeof p=="object"?p:{}},a_=i=>(Lt(i)||"gio-track").replace(/^v-/,""),s_=i=>{const e=i.value;if(typeof e=="string")return{eventName:e.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};if(!e||typeof e!="object")return{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};const r=e.attributes||e.attrs||{},s=Object.entries(r).reduce((u,[p,l])=>(l!=null&&(u[p]=l),u),{});return{eventName:Lt(e.event,e.name,i.arg),trigger:Lt(e.trigger)||"click",attrs:s,once:!!e.once,stop:!!e.stop,prevent:!!e.prevent,callback:typeof e.onTracked=="function"?e.onTracked:typeof e.callback=="function"?e.callback:void 0}},ts=i=>{const e=i.__jctransTrackHandler__;e&&(i.removeEventListener(e.trigger,e.handler),delete i.__jctransTrackHandler__)},nc=(i,e,r)=>{ts(i);const s=s_(e);if(!s.eventName)return;const u=p=>{if(s.prevent&&"preventDefault"in p&&p.preventDefault(),s.stop&&"stopPropagation"in p&&p.stopPropagation(),r.isInitialized()){const l=b.normalizeClickPageAttrs(s.eventName,s.attrs);r.track(s.eventName,l,()=>{var m;(m=s.callback)==null||m.call(s,{event:p,eventName:s.eventName,attrs:l,trigger:s.trigger})})}s.once&&ts(i)};i.addEventListener(s.trigger,u),i.__jctransTrackHandler__={eventName:s.eventName,trigger:s.trigger,handler:u}},o_=i=>(e,r)=>{const s=Lt(e);if(!s||!i.isInitialized())return;const u=b.normalizeClickPageAttrs(s,r);i.track(s,u)},l_=(i,e)=>{if(typeof window=="undefined"||!i)return;const r=window;r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__||(r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__=new Set);const s=r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__;if(s.has(e))return;const u=b.getOrCreateClientId();if(!u)return;const p=window.gdp;typeof p=="function"&&(s.add(e),p("identify",u))};function Pc(i){return{install(e){var k,S,N;const r=b.tracker,s=r_||{},u=i||{},p=Lt(u.globalVarName,"__JCTRANS_GIO_CONFIG__"),l=i_(p),m=Ya(l.enabled,u.enabled,s.VITE_GIO_ENABLED),A={...u.initOptions||{},...l.initOptions||{}};if(!A.serverUrl){const H=Lt(l.serverUrl,u.serverUrl,s.VITE_GIO_SERVER_URL);H&&(A.serverUrl=H)}const v=Lt(l.accountId,u.accountId,s.VITE_GIO_ACCOUNT_ID),x=Lt(l.dataSourceId,u.dataSourceId,s.VITE_GIO_DATA_SOURCE_ID,s.VITE_GIO_DATASOURCE_ID),T=Lt(l.appId,u.appId,s.VITE_GIO_APP_ID),I=Ya(l.autoInit,u.autoInit,s.VITE_GIO_AUTO_INIT),B=(N=Ya((k=l.initOptions)==null?void 0:k.forceLogin,(S=u.initOptions)==null?void 0:S.forceLogin,A.forceLogin))!=null?N:!1,D=a_(l.directiveName||u.directiveName);(m==null||m)&&(I==null||I)&&v&&x&&!r.isInitialized()&&(T?r.init(v,x,T,A):r.init(v,x,A),l_(B,`jctrans-gio-identify-device:${v}:${x}`));const W=o_(r);e.prototype.$gio=r,e.prototype.$trackEvent=W,e.directive(D,{bind(H,Q){nc(H,Q,r)},update(H,Q){nc(H,Q,r)},unbind(H){ts(H)}})}}}let c_={open(){b.emitter.emit(b.MODAL_ACTION.Open)},close(){b.emitter.emit(b.MODAL_ACTION.Close)},onSubmit(i){b.emitter.on(b.MODAL_ACTION.Submit,i)}};function u_(){let i=!1;return{install(e){if(typeof window!="undefined"&&!i){const r=document.createElement("div");r.setAttribute("id","global-modal-root"),document.body.appendChild(r);const s=e.extend(Cc);new s().$mount(r),i=!0}e.prototype.$globalModal=c_}}}const rc={},f_=Object.assign({"./components/ApplyDataDialog.vue":Iy,"./components/ChineseCompanySearch/index.vue":Dy,"./components/CodeInput.vue":T0,"./components/GlobalModal.vue":k0,"./components/GoogleInput.vue":f0,"./components/JcCarrierSearch/AirCarrierSearch.vue":z0,"./components/JcCarrierSearch/AirLineSearch.vue":Z0,"./components/JcCarrierSearch/SeaCarrierSearch.vue":aC,"./components/JcCarrierSearch/SeaLineSearch.vue":fC,"./components/JcCarrierSearch/index.vue":V0,"./components/JcFloatInput.vue":g0,"./components/JcFloatWrapper.vue":gC,"./components/JcLoginDialog/RegisterForm.vue":PC,"./components/JcLoginDialog/cmps/ApplyJoinBtn.vue":xC,"./components/JcLoginDialog/cmps/CompleteInfoForm.vue":NC,"./components/JcLoginDialog/cmps/FooterBox.vue":WC,"./components/JcLoginDialog/cmps/ForgetPassword.vue":KC,"./components/JcLoginDialog/cmps/LoginTypeSwitcher.vue":e1,"./components/JcLoginDialog/cmps/ThirdBindLogin.vue":o1,"./components/JcLoginDialog/cmps/ThirdRegisterForm.vue":d1,"./components/JcLoginDialog/cmps/WechatBindLogin.vue":y1,"./components/JcLoginDialog/cmps/WechatChooseType.vue":S1,"./components/JcLoginDialog/cmps/WechatLogin.vue":P1,"./components/JcLoginDialog/index.vue":M1,"./components/JcMSearch/index.vue":K1,"./components/JcSearch/index.vue":_y,"./components/JcVerifySlide/index.vue":b0,"./components/LineCascader/index.vue":n_}),hi={};Object.entries(f_).forEach(([i,e])=>{let r="";if(rc[i])r=rc[i];else{const u=i.replace("./components/","").replace(".vue","").split("/"),p=u.pop()||"";p==="index"&&u.length>0?r=u.pop()||"":r=p}r&&(hi[r]=e.default||e)});const{ApplyDataDialog:d_,ChineseCompanySearch:p_,JcSearch:h_,GlobalModal:m_,JcCarrierSearch:g_,AirCarrierSearch:v_,SeaCarrierSearch:y_,AirLineSearch:C_,SeaLineSearch:__,JcMSearch:A_,JcLoginDialog:w_}=hi;let ic=!1;const b_={install(i,e){ic||(ic=!0,e!=null&&e.sharedConfig&&b.initSharedConfig(e.sharedConfig),e!=null&&e.tracking&&i.use(Pc(e.tracking)),Object.keys(hi).forEach(r=>{i.component(r,hi[r]),console.log(`[JcUI Vue2] 自动注册组件: ${r}`)}))}};Object.defineProperty(exports,"MODAL_ACTION",{enumerable:!0,get:()=>b.MODAL_ACTION});Object.defineProperty(exports,"emitter",{enumerable:!0,get:()=>b.emitter});Object.defineProperty(exports,"initSharedConfig",{enumerable:!0,get:()=>b.initSharedConfig});exports.AirCarrierSearch=v_;exports.AirLineSearch=C_;exports.ApplyDataDialog=d_;exports.ChineseCompanySearch=p_;exports.GlobalModal=m_;exports.JcCarrierSearch=g_;exports.JcLoginDialog=w_;exports.JcMSearch=A_;exports.JcSearch=h_;exports.SeaCarrierSearch=y_;exports.SeaLineSearch=__;exports.createGioTrackingPlugin=Pc;exports.createGlobalModalPlugin=u_;exports.default=b_;
|