import{a as e,_ as t,u as n,f as a,h as l}from"./index-8800b505.js";import{d as o,ae as i,P as r,o as s,c as p,h as c,A as d,a as u,t as m,i as v,u as x,p as f,j as y,r as b,af as h,w as _,l as g,n as A,F as E,k as w,a5 as T,ag as I,e as k,K as P,X as S,ah as C,y as D,ai as V,z as F,f as L,L as $,g as N,b as R,ad as U,v as B,Y as O,s as M}from"./vendor-63c60e35.js";import{_ as q}from"./ComModal-e4e25979.js";function j(e){return Number(Math.random().toString().substring(2,e)+Date.now()).toString(36)}const W={class:"popper-container"},H={class:"flex items-center"},z={class:"cursor-pointer underline decoration-dashed underline-offset-4 leading-[22px] text-[16px]",style:{"text-decoration-color":"var(--price-card-popper-bar-background-color, #ae7af2)"}},Y={key:0,class:"bg-[#DFDFDE] rounded-[4px] py-[2px] px-[8px] text-[12px] text-[#6B6865] leading-[16px] ml-[8px] h-[22px]"},G=(e=>(f("data-v-08dc5e21"),e=e(),y(),e))((()=>u("div",{class:"w-[20px] h-[8px] rounded-[4px] mb-[12px] bar"},null,-1))),K=["innerHTML"],J={key:0,class:"mt-[12px] flex items-center text-[#C0BEBD]"},Z={class:"text-[14px] leading-[20px] font-normal"},X=t(o({__name:"PriceListItemTitlePopper",props:{title:{type:String,required:!1,default:"Fabrie模版,基础App"},content:{type:String,required:!1,default:"包括计时、投票、搜图等App"},coming:{type:Boolean,required:!1,default:!1},comingText:{type:String,required:!1,default:""}},setup(t){const n=i("(hover: none)");return(a,l)=>{const o=e,i=r("v-popper");return s(),p("div",W,[c(i,{hover:!x(n),placement:"top-start",class:"leading-[1] card-popper","offset-distance":"12","offset-skid":"-20"},{content:d((()=>[G,u("div",{class:"text-[14px] leading-[20px] w-[228px]",innerHTML:t.content},null,8,K),t.comingText?(s(),p("div",J,[c(o,{name:"time",class:"text-[20px] mr-[10px]"}),u("div",Z,m(t.comingText),1)])):v("v-if",!0)])),default:d((()=>[u("div",H,[u("span",z,m(t.title),1),t.coming?(s(),p("div",Y," coming ")):v("v-if",!0)])])),_:1},8,["hover"])])}}}),[["__scopeId","data-v-08dc5e21"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/PriceListItemTitlePopper.vue"]]),Q=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,ee={class:"font-medium py-[7px] pl-[20px] text-[16px] leading-[22px] md:w-[280px] md:flex-shrink-0 md:pl-0 md:flex md:items-center md:py-[12px] md:leading-[22px] lg:w-[320px]"},te={class:"h-[24px] w-[20px] hidden md:block"},ne={key:0,class:"flex items-center"},ae={key:0,class:"bg-[#DFDFDE] rounded-[4px] h-[22px] ml-[8px] py-[2px] px-[8px] text-[12px] text-[#6B6865] leading-[16px]"},le={class:"flex md:flex-0 md:w-[664px] md:flex-shrink-0 lg:w-[780px]"},oe={key:0,class:"flex py-[8px] items-center justify-center sm:py-[14px]"},ie={key:1,class:"py-[7px] leading-[22px] sm:py-[13px]"},re=t(o({__name:"PriceListItem",props:{item:{type:null,required:!0},index:{type:Number,required:!0},group:{type:Number,required:!0}},setup(t){const n=t,a=b(!1),l={mounted(e){const t=e,n=(()=>{const e=10*Q(1,5)+70;return{fontSize:`${e}px`,transform:`translate(${-(e-50)/2}px,${-(e-50)/2}px)`}})();t.onmousedown=()=>{a.value=!0,T((()=>{const e=t.getElementsByClassName("svg-icon")[0];e.style.fontSize||(e.style.fontSize=n.fontSize,e.style.transform=n.transform,document.body.appendChild(t))}));const e=t.clientHeight,l=t.clientWidth;document.onmousemove=n=>{const a=n.pageX,o=n.pageY,i=a-e/2,r=o-l/2;t.style.position="absolute",t.style.top=`${r}px`,t.style.left=`${i}px`,document.body.classList.add("no-user-select","disable-touch-action")},document.onmouseup=()=>{document.onmousemove=null,document.body.classList.remove("no-user-select","disable-touch-action")}}}},o=b(null);h((()=>{o.value&&o.value.parentNode===document.body&&document.body.removeChild(null==o?void 0:o.value)}));const i=b(`drag-${Q(1,5)}-${n.group+1}`);return(n,r)=>{const d=e,x=X;return s(),p("div",{class:A(["py-[12px] px-[20px] item md:py-0 md:w-[944px] md:mx-auto md:px-0 md:flex md:bg-transparent md:items-center lg:w-[1100px] md:hover:bg-[#EAE9E9] md:hover:rounded-[8px]",{"bg-[#FBFAF8]":!(t.index%2),"bg-[#F6F5F3]":t.index%2}])},[u("div",ee,[u("div",te,[_((s(),p("div",{ref_key:"dragEl",ref:o,class:"h-[50px] top-[-13px] left-[-15px] w-[50px] relative"},[a.value?(s(),g(d,{key:0,name:i.value,class:A(["cursor-pointer text-white",{"text-[#E9E9E9]":"1"!==i.value.split("-")[1]}])},null,8,["name","class"])):(s(),g(d,{key:1,name:"drag",class:"cursor-pointer mx-auto mt-[17px] text-[16px] drag"}))])),[[l]])]),t.item.hover?(s(),g(x,{key:1,title:t.item.itemTitle,content:t.item.hover,coming:t.item.coming,"coming-text":t.item.comingText},null,8,["title","content","coming","coming-text"])):(s(),p("div",ne,[u("span",null,m(t.item.itemTitle),1),t.item.coming?(s(),p("div",ae," coming ")):v("v-if",!0)]))]),u("div",le,[(s(!0),p(E,null,w(t.item.status,((e,t)=>(s(),p("div",{key:t+"-i",class:A(["text-center text-[16px] w-1/3 sm:w-1/4",{"hidden sm:block":3===t}])},["boolean"==typeof e?(s(),p("div",oe,[c(d,{name:e?"check":"uncheck",class:A(["h-[36px] text-[20px]",{"text-[#D0D0D0]":!e,"text-[#616161]":e}])},null,8,["name","class"])])):(s(),p("div",ie,m(e),1))],2)))),128))])],2)}}}),[["__scopeId","data-v-dcbfd4b3"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/PriceListItem.vue"]]),se={key:0,class:"flex h-[60px] mt-[16px] px-[20px] items-center md:px-0 md:w-[944px] md:mx-auto md:mt-[48px] md:h-[48px] lg:w-[1100px]"},pe=t(o({__name:"PriceTableItem",props:{title:{type:String,required:!0},titleColor:{type:String,required:!0},textColor:{type:String,required:!0},list:{type:Array,required:!0},group:{type:Number,required:!0},themeColor:{type:String,required:!0}},setup(t){const n=b(!0),a=b(null),{height:l}=I(a),{t:o}=k();return(i,r)=>{const d=e,f=re;return s(),p(E,null,[t.title?(s(),p("div",se,[c(d,{name:"price-group-arrow",class:A(["cursor-pointer transition-transform text-[16px] duration-200",{"transform -rotate-90":!n.value}]),onClick:r[0]||(r[0]=e=>n.value=!n.value)},null,8,["class"]),u("div",{class:"cursor-pointer font-medium bg-[#FFE4BF] rounded-[24px] text-center ml-[4px] py-[4px] px-[12px] text-[14px] leading-[20px]",style:P({backgroundColor:t.titleColor,color:t.textColor}),onClick:r[1]||(r[1]=e=>n.value=!n.value)},m(t.title),5),n.value?v("v-if",!0):(s(),p("div",{key:0,class:"cursor-pointer font-medium bg-[#FFE4BF] rounded-[24px] text-center ml-[4px] py-[4px] px-[12px] text-[14px] leading-[20px]",style:P({backgroundColor:t.titleColor,color:t.textColor}),onClick:r[2]||(r[2]=e=>n.value=!n.value)},m(t.list.length)+m(x(o)("content.price.compare.unit")),5))])):v("v-if",!0),u("div",{class:A(["transition-all duration-200",{"overflow-hidden opacity-0":!n.value,"opacity-100":n.value}]),style:P({height:n.value?x(l)+"px":0,marginTop:t.title?"":"48px"})},[u("div",{ref_key:"listContainer",ref:a},[(s(!0),p(E,null,w(t.list,((e,n)=>(s(),g(f,{key:e.itemTitle,item:e,index:n,group:t.group,hover:e.hover,coming:e.coming,style:P({"--price-card-popper-bar-background-color":t.themeColor})},null,8,["item","index","group","hover","coming","style"])))),128))],512)],6)],64)}}}),[["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/PriceTableItem.vue"]]),ce=t(o({__name:"stickyTitle",props:{top:{type:Number,required:!0},height:{type:Number,required:!0}},setup(e){const t=e,n=b(),a=()=>{(document.documentElement.scrollTop||document.body.scrollTop)>t.height?n.value&&(n.value.style.display="block"):n.value&&(n.value.style.display="none")};return S((()=>{document.addEventListener("scroll",(()=>{a()}),{passive:!0})})),C((()=>{document.removeEventListener("scroll",(()=>{a()}))})),(t,a)=>(s(),p("div",{ref_key:"stickyTitle",ref:n,class:"sticky-banner",style:P({top:`${e.top}px`})},[D(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-5b8d8d78"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/stickyTitle.vue"]]),de={FREE:"free",COLLABORATE_TRIAL:"collaborate_trial",COLLABORATE:"collaborate",ENTERPRISE:"enterprise",INDIVIDUAL:"individual",PERMANENT:"permanent",BASIC:"basic",PROFESSIONAL:"professional",LOCAL:"local"},ue="https://f0c98q7839i.feishu.cn/share/base/form/shrcnJucGQq0e1xM933sct5vlcc",me={class:"popper-container"},ve={class:"cursor-pointer p-[2px] inline-flex hover:rounded-[4px] bg"},xe={class:"underline decoration-dashed decoration-black leading-[20px] underline-offset-4"},fe=(e=>(f("data-v-db1e35ba"),e=e(),y(),e))((()=>u("div",{class:"w-[20px] h-[8px] rounded-[4px] mb-[12px] bar"},null,-1))),ye=["innerHTML"],be={key:0,class:"mt-[12px] flex items-center text-[#C0BEBD]"},he={class:"text-[14px] leading-[20px]"},_e=t(o({__name:"PriceCardPopper",props:{iconName:{type:String,required:!1,default:"check-red"},iconClass:{type:String,required:!1,default:"text-[#FB7350]"},title:{type:String,required:!1,default:"Fabrie模版,基础App"},content:{type:String,required:!1,default:"包括计时、投票、搜图等App"},coming:{type:String,required:!1,default:""}},setup(t){const n=i("(hover: none)");return(a,l)=>{const o=e,i=r("v-popper");return s(),p("div",me,[c(i,{hover:!x(n),placement:"top-start",class:"leading-[1] card-popper","offset-distance":"0"},{content:d((()=>[fe,u("div",{class:"text-[14px] leading-[20px] w-[196px]",innerHTML:t.content},null,8,ye),t.coming?(s(),p("div",be,[c(o,{name:"time",class:"text-[20px] mr-[10px]"}),u("div",he,m(t.coming),1)])):v("v-if",!0)])),default:d((()=>[u("div",ve,[c(o,{name:"check",style:{color:"var(--prefix-text-color, #c0bebd)"},class:"text-[#000] mr-6px text-[14px] mt-[3px]"}),u("span",xe,m(t.title),1)])])),_:1},8,["hover"])])}}}),[["__scopeId","data-v-db1e35ba"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/PriceCardPopper.vue"]]),ge={class:"text-center"},Ae={class:"inline-flex font-medium mx-auto bg-[#F5F3ED] rounded-[10px] text-black text-[16px] switch-tabs justify-center items-center p-[4px] sm:text-[20px]"},Ee=t(o({__name:"PlanTabs",props:{tab:{type:Number,required:!0},yearPayDiscount:{type:Number,required:!0}},emits:["update:tab"],setup(e,{emit:t}){const{t:n}=k();return(a,l)=>(s(),p("div",ge,[u("div",Ae,[u("div",{class:A(["border-transparent cursor-pointer border-1 text-center transition-all leading-[22px] duration-200 px-[19px] py-[7px] sm:leading-[28px] sm:px-[39px] sm:py-[11px]",{"switch-tab__active":!e.tab}]),onClick:l[0]||(l[0]=e=>t("update:tab",0))},m(x(n)("content.price.tab.document")),3),u("div",{class:A(["border-transparent cursor-pointer border-1 text-center transition-all leading-[22px] duration-200 px-[19px] py-[7px] sm:leading-[28px] sm:px-[39px] sm:py-[11px]",{"switch-tab__active":e.tab}]),onClick:l[1]||(l[1]=e=>t("update:tab",1))},m(x(n)("content.price.tab.ai")),3)])]))}}),[["__scopeId","data-v-cabbc47c"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/PlanTabs.vue"]]),we={class:"list"},Te=["onClick"],Ie=t(o({__name:"TeamSelect",props:{options:{type:Array,required:!0},modelValue:{type:[String,Number],required:!1,default:void 0}},emits:["update:modelValue"],setup:(e,{emit:t})=>(n,a)=>(s(),p("ul",we,[(s(!0),p(E,null,w(e.options,(a=>(s(),p("li",{key:a.value,class:"list-item",onClick:V((e=>{return n=a.value,void t("update:modelValue",n);var n}),["stop"])},[u("div",{class:A(["list-item-content",{selected:a.value===e.modelValue}])},[D(n.$slots,"default",{option:a},(()=>[F(m(a.label),1)]),!0)],2)],8,Te)))),128))]))}),[["__scopeId","data-v-16682dbb"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/TeamSelect.vue"]]);function ke(e){return e.replace(/fabrie-ico_emoji_(\d)/,"old-emoji-$1").replace(/fabrie-team-icon-(\d+)-new/,"new-team-icon-$1-new").replace(/fabrie-team-icon-(\d+)/,"second-team-icon-$1")}const Pe={class:"pt-[32px] border-t-#DFDFDE-1 mt-[12px]"},Se={class:"flex items-center"},Ce={class:"overflow-hidden overflow-ellipsis option"},De={key:1,class:"bg-[#F9F9F8] text-[14px] leading-[20px] py-[16px] px-[20px] text-center text-color-[#6B6865]"},Ve={class:"flex justify-end mt-[16px]"},Fe=t(o({__name:"TeamModal",props:{seats:{type:Number,required:!1},isAi:{type:Boolean,required:!1}},setup(t,{expose:l}){const o=t,i=ke,{t:r}=k(),f=L(),y=$(),h=n(),_=N({VITE_BASE:"/",VITE_APP_DESCRIPTION:"A powerful digital whiteboard \\n that runs both locally with secure file storage on device and collaboratively online with all the latest AI tools.",VITE_APP_KEYWORDS:"Fabrie",VITE_APP_TITLE:"Fabrie - Online collaboration platform for designers",VITE_API_BASEURL:"/api",VITE_APP_API_BASE_URL:"http://47.102.185.210:11000/",VITE_SENSORS:"https://kebuxi.datasink.sensorsdata.cn/sa?token=4df9a9cefe5494f7&project=production",VITE_LANG:"en",VITE_SITE:"com",VITE_SEGMENT_WRITE_KEY:"W0HnFjYlIkdW7JVfMzchniUb7H2ZerVH",BASE_URL:"/",MODE:"prod-com",DEV:!0,PROD:!1});"development"!==_.MODE&&"dev-en"!==_.MODE||(f.value.origin="http://localhost:2077");const E=b(),w=b(!1),T=b(void 0),I=R((()=>!(null!=T.value))),P=b(!1),S=b(!1),C=N({data:[]}),D=()=>{w.value=!1},V=(e,t)=>{if(e&&h.isLogin){const n=window.btoa(encodeURI("官网"));if("trial"===E.value)window.location.href=`${f.value.origin}/dashboard/team/${e}/overview?open=trial`;else{const a=P.value?de.INDIVIDUAL:de.COLLABORATE;window.location.href=`${f.value.origin}/dashboard/team/${e}/overview?\n      &open=payment&seats=${P.value?1:o.seats}&type=${a}&source=${n}&ai=${null==o?void 0:o.isAi}&aiPoint=${S.value}&cardType=${t}`}}},U=()=>{V(T.value,E.value)};return l({init:async(e,t=!1)=>{if(h.isLogin)try{E.value=e;const{status:n,data:l}=await a();S.value=t,P.value="individual"===e,200===n&&(C.data=(l||[]).filter((t=>{var n,a,l,o,i,r;return P.value?["free","collaborate_trial"].includes(null==(n=null==t?void 0:t.paywall)?void 0:n.productType)&&(null==(a=null==t?void 0:t.paywall)?void 0:a.isSuperAdministrator):"trial"===e?["free"].includes(null==(l=null==t?void 0:t.paywall)?void 0:l.productType)&&(null==(o=null==t?void 0:t.paywall)?void 0:o.isSuperAdministrator)&&!(null==(i=null==t?void 0:t.extraInfo)?void 0:i.hasApplyTrial):["free","collaborate_trial"].includes(null==(r=null==t?void 0:t.paywall)?void 0:r.productType)})).map((e=>{var t;return{label:(null==e?void 0:e.name)||"",value:null==e?void 0:e._id,logo:null==e?void 0:e.logo,productType:null==(t=null==e?void 0:e.paywall)?void 0:t.productType}})),"price"===y.name||"pricing"===y.name?w.value=!0:"payment"===y.name&&(C.data.find((e=>(null==e?void 0:e.value)===y.params.teamId))?"string"==typeof y.params.teamId&&V(y.params.teamId,E.value):w.value=!0))}catch(n){}else"price"===y.name?window.location.href=`${f.value.origin}/login?nextUrl=${encodeURIComponent("/price")}`:"pricing"===y.name&&(window.location.href=`${f.value.origin}/login?nextUrl=${encodeURIComponent("/pricing")}`)}}),(t,n)=>{const a=e,l=Ie,o=q;return s(),g(o,{visible:w.value,title:x(r)("content.teamModal.title"),width:"450",onClose:D},{footer:d((()=>[u("div",Ve,[u("button",{class:A(["next-button",{disabled:x(I)}]),onClick:U},m(x(r)("content.teamModal.next")),3)])])),default:d((()=>[u("div",Pe,[C.data&&C.data.length?(s(),g(l,{key:0,modelValue:T.value,"onUpdate:modelValue":n[0]||(n[0]=e=>T.value=e),options:C.data},{default:d((e=>{var t,n;return[u("div",Se,[c(a,{class:"text-[24px] mr-[8px]",name:x(i)((null==(t=e.option)?void 0:t.logo)||x("fabrie-ico_emoji_6"))},null,8,["name"]),u("div",Ce,[F(m(null==(n=e.option)?void 0:n.label),1),v(' <div class="tag">\n              {{ slotProps.option?.productType }}\n            </div> ')])])]})),_:1},8,["modelValue","options"])):(s(),p("div",De,m(x(r)("content.teamModal.noData")),1))])])),_:1},8,["visible","title"])}}}),[["__scopeId","data-v-26a9bab6"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/TeamModal.vue"]]),Le={class:"apply-select"},$e={class:"row1"},Ne={class:"row-desc"},Re={class:"title"},Ue=["placeholder"],Be={class:"row-desc"},Oe={class:"title"},Me=["placeholder"],qe={class:"row2"},je={class:"title"},We=["placeholder"],He={class:"row2"},ze={class:"title"},Ye={class:"drop-down-button"},Ge=["onClick"],Ke={class:"row2"},Je={class:"title"},Ze=["placeholder"],Xe={class:"row2"},Qe={class:"title"},et={class:"drop-down-button"},tt=["onClick"],nt={class:"row2"},at={class:"title"},lt=["placeholder"],ot=t(o({__name:"ApplySelect",emits:["submit"],setup(t,{emit:n}){const{t:a}=k(),l=U(),o=[{value:"1",label:a("content.enterpriseApply.oneToFive")},{value:"2",label:a("content.enterpriseApply.sixToTwenty")},{value:"3",label:a("content.enterpriseApply.twentyOneToFifty")},{value:"4",label:a("content.enterpriseApply.moreFifty")}],i=[{value:"1",label:a("content.enterpriseApply.manager")},{value:"2",label:a("content.enterpriseApply.designers")},{value:"3",label:a("content.enterpriseApply.product")},{value:"4",label:a("content.enterpriseApply.market")},{value:"5",label:a("content.enterpriseApply.other")}],v=N({name:"",phone:"",email:"",companyName:"",companyRole:"",teamSize:"",help:""}),f=b(null),y=async()=>{f.value&&(await T(),f.value.scrollTop=40)},h=()=>{(()=>{const{name:e,phone:t,companyName:n,teamSize:o}=v;return e?/^1[3456789]\d{9}$/.test(t)?n?!!o||(l.info(a("content.enterpriseApply.teamSizePlaceholder")),!1):(l.info(a("content.enterpriseApply.companyPlaceholder")),!1):(l.info(a("content.enterpriseApply.phonePlaceholder")),!1):(l.info(a("content.enterpriseApply.namePlaceholder")),!1)})()&&n("submit",v)};return(t,n)=>{const l=e,b=r("v-popper");return s(),p("div",Le,[u("div",$e,[u("div",Ne,[u("span",Re,m(x(a)("content.enterpriseApply.userName")),1),_(u("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>v.name=e),placeholder:x(a)("content.enterpriseApply.placeholder")},null,8,Ue),[[B,v.name,void 0,{trim:!0}]])]),u("div",Be,[u("span",Oe,m(x(a)("content.enterpriseApply.phone")),1),_(u("input",{"onUpdate:modelValue":n[1]||(n[1]=e=>v.phone=e),placeholder:x(a)("content.enterpriseApply.placeholder"),type:"text",maxlength:"11",pattern:"^1[3456789]\\d{9}$"},null,8,Me),[[B,v.phone,void 0,{trim:!0}]])])]),u("div",qe,[u("span",je,m(x(a)("content.enterpriseApply.email")),1),_(u("input",{"onUpdate:modelValue":n[2]||(n[2]=e=>v.email=e),placeholder:x(a)("content.enterpriseApply.placeholder"),type:"text"},null,8,We),[[B,v.email,void 0,{trim:!0}]])]),u("div",He,[u("span",ze,m(x(a)("content.enterpriseApply.role")),1),c(b,{class:"selector-popper","offset-distance":"2",interactive:!1,"onOpen:popper":y},{content:d((()=>[u("div",{ref_key:"contentContainer",ref:f,class:"w-[488px] h-[auto] overflow-y-auto content-container"},[(s(),p(E,null,w(i,(e=>u("div",{key:e.value,class:"h-[32px] leading-[32px] text-[#6B6865] pl-[6px] cursor-pointer hover:bg-[#f2f2f2] text-[14px] flex align-center",onClick:t=>{return n=e.label,void(v.companyRole=n);var n}},[u("span",null,m(e.label),1)],8,Ge))),64))],512)])),default:d((()=>[u("button",Ye,[u("span",null,m(v.companyRole),1),c(l,{name:"drop-down",class:"text-[12px] text-[#969391]"})])])),_:1})]),u("div",Ke,[u("span",Je,m(x(a)("content.enterpriseApply.companyName")),1),_(u("input",{"onUpdate:modelValue":n[3]||(n[3]=e=>v.companyName=e),placeholder:x(a)("content.enterpriseApply.placeholder"),type:"text"},null,8,Ze),[[B,v.companyName,void 0,{trim:!0}]])]),u("div",Xe,[u("span",Qe,m(x(a)("content.enterpriseApply.scale")),1),c(b,{class:"selector-popper","offset-distance":"2",interactive:!1,"onOpen:popper":y},{content:d((()=>[u("div",{ref_key:"contentContainer",ref:f,class:"w-[488px] h-[auto] overflow-y-auto content-container"},[(s(),p(E,null,w(o,(e=>u("div",{key:e.value,class:"h-[32px] leading-[32px] text-[#6B6865] pl-[6px] cursor-pointer hover:bg-[#f2f2f2] text-[14px] flex align-center",onClick:t=>{return n=e.label,void(v.teamSize=n);var n}},[u("span",null,m(e.label),1)],8,tt))),64))],512)])),default:d((()=>[u("button",et,[u("span",null,m(v.teamSize),1),c(l,{name:"drop-down",class:"text-[12px] text-[#969391]"})])])),_:1})]),u("div",nt,[u("span",at,m(x(a)("content.enterpriseApply.tip")),1),_(u("textarea",{ref:"textarea","onUpdate:modelValue":n[4]||(n[4]=e=>v.help=e),placeholder:x(a)("content.enterpriseApply.tipPlaceholder")},null,8,lt),[[B,v.help]])]),u("button",{class:"confirm-button",onClick:h},m(x(a)("content.enterpriseApply.submit")),1)])}}}),[["__scopeId","data-v-aaae1126"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/EnterpriseApplyComponent/ApplySelect.vue"]]),it={class:"apply-desc"},rt={class:"list"},st={class:"title"},pt=t(o({__name:"ApplyDescription",setup(t){const{t:n}=k(),a=[{name:n("content.enterpriseApply.workSpace"),value:0},{name:n("content.enterpriseApply.manageBackend"),value:1},{name:n("content.enterpriseApply.dataSafe"),value:2},{name:n("content.enterpriseApply.IMProduct"),value:3},{name:n("content.enterpriseApply.sso"),value:4},{name:n("content.enterpriseApply.service"),value:5}];return(t,l)=>{const o=e;return s(),p("div",it,[u("p",null,m(x(n)("content.enterpriseApply.contact")),1),u("p",null,m(x(n)("content.enterpriseApply.fabrieEnterprise")),1),u("div",rt,[(s(),p(E,null,w(a,(e=>u("div",{key:e.value,class:"item"},[c(o,{name:"check",class:"text-[16px] text-[#6b6865] mr-[6px]"}),u("span",st,m(e.name),1)]))),64))]),u("div",{class:"img"},[u("img",{src:"https://fabrie-prod.oss-cn-shanghai.aliyuncs.com/fabrie/enterprise-apply.jpg",alt:""})])])}}}),[["__scopeId","data-v-e1bfe9b6"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/EnterpriseApplyComponent/ApplyDescription.vue"]]),ct=()=>l({method:"get",url:"/teams/enterprise-trial/hasTrial"}),dt={class:"text-[14px] text-[#969391] leading-[24px] font-normal"},ut={class:"row-desc"},mt=(e=>(f("data-v-4c4aa9ef"),e=e(),y(),e))((()=>u("img",{src:"https://r.fabrie.cn/assets/website/team-icon.svg",alt:""},null,-1))),vt=["placeholder"],xt={class:"flex justify-end"},ft=t(o({__name:"CreateNewTeam",props:{visible:{type:Boolean,required:!0}},emits:["update:visible"],setup(e,{emit:t}){const n=U(),{t:a}=k(),o=N({name:"",logo:"fabrie-team-icon-52-new"}),i=R((()=>!o.name));function r(){t("update:visible",!1)}function p(){t("update:visible",!1)}function v(){t("update:visible",!1);const e={name:o.name,logo:o.logo};var i;(i=e,l({method:"post",url:"/teams/enterprise-trial",data:i})).then((e=>{if(200===e.status){const t=e.data,{_id:l}=t.team,{_id:o}=t.enterprise;return n.success(a("content.enterpriseApply.teamSuccess")),window.location.href=`${window.location.origin}/dashboard/team/${l}/overview?eid=${o}`,""}return e.msg&&n.error(e.msg)}))}return(t,n)=>{const l=q,f=O;return s(),g(f,null,{default:d((()=>[c(l,{visible:e.visible,title:x(a)("content.enterpriseApply.createTeam"),width:"450",onClose:r},{footer:d((()=>[u("div",xt,[u("button",{class:"next-button pt-[3px] pb-[3px] pl-[15px] pr-[15px] bg-[#f5f4f4] border-[#f5f4f4] text-[14px] text-[#969391] leading-[24px] font-normal mr-[20px]",onClick:p},m(x(a)("content.enterpriseApply.cancel")),1),u("button",{class:A(["next-button pt-[3px] pb-[3px] pl-[15px] pr-[15px] bg-[#fb7350] border-[#fb7350] text-[14px] leading-[24px] text-[#fff] font-normal",{disabled:x(i)}]),onClick:v},m(x(a)("content.enterpriseApply.confirm")),3)])])),default:d((()=>[u("div",dt,m(x(a)("content.enterpriseApply.teamNameSet")),1),u("div",ut,[mt,_(u("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>o.name=e),placeholder:x(a)("content.enterpriseApply.teamNamePlaceholder"),onEnter:v},null,40,vt),[[B,o.name,void 0,{trim:!0}]])])])),_:1},8,["visible","title"])])),_:1})}}}),[["__scopeId","data-v-4c4aa9ef"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/EnterpriseApplyComponent/CreateNewTeam.vue"]]),yt={class:"text-[14px] text-[#969391] leading-[24px] font-normal"},bt={class:"pt-[32px] border-t-#DFDFDE-1 mt-[12px]"},ht={class:"create-team"},_t={class:"flex items-center"},gt={class:"flex-1 overflow-hidden overflow-ellipsis"},At={key:1,class:"bg-[#F9F9F8] text-[14px] leading-[20px] py-[16px] px-[20px] text-center text-color-[#6B6865]"},Et={class:"flex justify-end mt-[16px]"},wt=t(o({__name:"TeamSelectToEnt",props:{payTab:{type:Number,required:!1},seats:{type:Number,required:!1}},setup(t,{expose:o}){const i=t,r=ke,{t:v}=k(),f=L(),y=$(),h=n(),_=b(!1),w=N({VITE_BASE:"/",VITE_APP_DESCRIPTION:"A powerful digital whiteboard \\n that runs both locally with secure file storage on device and collaboratively online with all the latest AI tools.",VITE_APP_KEYWORDS:"Fabrie",VITE_APP_TITLE:"Fabrie - Online collaboration platform for designers",VITE_API_BASEURL:"/api",VITE_APP_API_BASE_URL:"http://47.102.185.210:11000/",VITE_SENSORS:"https://kebuxi.datasink.sensorsdata.cn/sa?token=4df9a9cefe5494f7&project=production",VITE_LANG:"en",VITE_SITE:"com",VITE_SEGMENT_WRITE_KEY:"W0HnFjYlIkdW7JVfMzchniUb7H2ZerVH",BASE_URL:"/",MODE:"prod-com",DEV:!0,PROD:!1});"development"!==w.MODE&&"dev-en"!==w.MODE||(f.value.origin="http://localhost:2077");const T=b(null),I=b(!1),P=b(void 0),S=R((()=>!(null!=P.value))),C=b(!1),D=N({data:[]}),V=()=>{I.value=!1},F=async()=>{try{const{status:t,data:n}=await(e=P.value,l({method:"put",url:`/teams/${e}/enterprise-trial`}));if(200===t&&n){const e=n,{_id:t}=e.team,{_id:a}=e.enterprise;window.location.href=`${window.location.origin}/dashboard/team/${t}/overview?eid=${a}`}}catch(t){}var e},U=()=>{I.value=!1,_.value=!0};return o({init:async(e=!1)=>{if(h.isLogin)try{const{status:t,data:n}=await a();C.value=e,200===t&&(D.data=(n||[]).filter((t=>{var n,a,l;return e?["free","collaborate_trial"].includes(null==(n=null==t?void 0:t.paywall)?void 0:n.productType)&&(null==(a=null==t?void 0:t.paywall)?void 0:a.isSuperAdministrator):["free","collaborate_trial"].includes(null==(l=null==t?void 0:t.paywall)?void 0:l.productType)})).map((e=>({label:(null==e?void 0:e.name)||"",value:null==e?void 0:e._id,logo:null==e?void 0:e.logo}))),"price"===y.name?I.value=!0:"payment"===y.name&&(D.data.find((e=>(null==e?void 0:e.value)===y.params.teamId))?"string"==typeof y.params.teamId&&(e=>{if(e&&h.isLogin){const t=window.btoa(encodeURI("官网")),n=C.value?de.INDIVIDUAL:de.COLLABORATE;window.location.href=`${f.value.origin}/dashboard/team/${e}/overview?unit=${i.payTab?"month":"year"}&open=payment&seats=${C.value?1:i.seats}&type=${n}&source=${t}`}})(y.params.teamId):I.value=!0))}catch(t){}else"price"===y.name&&(window.location.href=`${f.value.origin}/login?nextUrl=${encodeURIComponent("/price")}`)}}),(t,n)=>{const a=e,l=Ie,o=q,i=O;return s(),p(E,null,[c(o,{visible:I.value,title:x(v)("content.enterpriseApply.teamTitle"),width:"450",onClose:V},{footer:d((()=>[u("div",Et,[u("button",{class:A(["next-button",{disabled:x(S)}]),onClick:F},m(x(v)("content.teamModal.next")),3)])])),default:d((()=>[u("div",yt,m(x(v)("content.enterpriseApply.selectTeamToTrial")),1),u("div",bt,[u("div",ht,[u("div",{class:"create-btn",onClick:U},[u("span",null,m(x(v)("content.enterpriseApply.createTeam")),1)])]),D.data&&D.data.length?(s(),g(l,{key:0,modelValue:P.value,"onUpdate:modelValue":n[0]||(n[0]=e=>P.value=e),options:D.data,class:"team-select-list"},{default:d((e=>{var t,n;return[u("div",_t,[c(a,{class:"text-[24px] mr-[8px]",name:x(r)((null==(t=e.option)?void 0:t.logo)||x("fabrie-ico_emoji_6"))},null,8,["name"]),u("div",gt,m(null==(n=e.option)?void 0:n.label),1)])]})),_:1},8,["modelValue","options"])):(s(),p("div",At,m(x(v)("content.teamModal.noData")),1))])])),_:1},8,["visible","title"]),c(i,null,{default:d((()=>[c(ft,{ref_key:"createTeamRef",ref:T,visible:_.value,"onUpdate:visible":n[1]||(n[1]=e=>_.value=e)},null,8,["visible"])])),_:1})],64)}}}),[["__scopeId","data-v-b9c0e0ad"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/EnterpriseApplyComponent/TeamSelectToEnt.vue"]]),Tt={class:"flex items-center apply-title"},It={class:"text-[20px] text-[#2C2722] font-semibold mr-[8px]"},kt={class:"text-[14px] text-[#ABA9A7] font-normal"},Pt={class:"flex mt-[16px] apply-content gap-[34px]"},St=t(o({__name:"EnterpriseApplyModal",setup(e,{expose:t}){const{t:o}=k(),i=L(),r=$(),v=n(),f=N({VITE_BASE:"/",VITE_APP_DESCRIPTION:"A powerful digital whiteboard \\n that runs both locally with secure file storage on device and collaboratively online with all the latest AI tools.",VITE_APP_KEYWORDS:"Fabrie",VITE_APP_TITLE:"Fabrie - Online collaboration platform for designers",VITE_API_BASEURL:"/api",VITE_APP_API_BASE_URL:"http://47.102.185.210:11000/",VITE_SENSORS:"https://kebuxi.datasink.sensorsdata.cn/sa?token=4df9a9cefe5494f7&project=production",VITE_LANG:"en",VITE_SITE:"com",VITE_SEGMENT_WRITE_KEY:"W0HnFjYlIkdW7JVfMzchniUb7H2ZerVH",BASE_URL:"/",MODE:"prod-com",DEV:!0,PROD:!1});"development"!==f.MODE&&"dev-en"!==f.MODE||(i.value.origin="http://localhost:2077");const y=b(!1),h=b(!1),_=N({data:[]}),g=b(null),A=()=>{y.value=!1},w=async e=>{var t;const{msg:n,status:a}=await(o=e,l({method:"post",url:"/enterprise/trial/data-collection",data:o}));var o;200===a&&(y.value=!1,null==(t=g.value)||t.init())};return t({init:async(e=!1)=>{if(v.isLogin)try{const{status:t,data:n}=await a();h.value=e,200===t&&(_.data=(n||[]).filter((t=>{var n,a,l;return e?["free","collaborate_trial"].includes(null==(n=null==t?void 0:t.paywall)?void 0:n.productType)&&(null==(a=null==t?void 0:t.paywall)?void 0:a.isSuperAdministrator):["free","collaborate_trial"].includes(null==(l=null==t?void 0:t.paywall)?void 0:l.productType)})).map((e=>({label:(null==e?void 0:e.name)||"",value:null==e?void 0:e._id,logo:null==e?void 0:e.logo}))),"price"===r.name?y.value=!0:"payment"===r.name&&(_.data.find((e=>(null==e?void 0:e.value)===r.params.teamId))?r.params.teamId:y.value=!0))}catch(t){}else"price"===r.name&&(window.location.href=`${i.value.origin}/login?nextUrl=${encodeURIComponent("/price")}`)}}),(e,t)=>{const n=O,a=q;return s(),p(E,null,[c(a,{visible:y.value,title:"",width:"940",onClose:A},{default:d((()=>[u("div",Tt,[u("p",It,m(x(o)("content.enterpriseApply.apply")),1),u("div",kt,m(x(o)("content.enterpriseApply.contactYou")),1)]),u("div",Pt,[c(n,null,{default:d((()=>[c(ot,{onSubmit:w})])),_:1}),c(pt)])])),_:1},8,["visible"]),c(wt,{ref_key:"teamSelectToEntRef",ref:g},null,512)],64)}}}),[["__scopeId","data-v-9710b3eb"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/EnterpriseApplyModal.vue"]]),Ct=o({name:"EntTrialDoneDialog",setup(){const e=b(!1),{t:t}=k();return{t:t,entTrialDoneDialog:e,handleClose:()=>{e.value=!1},init:()=>{e.value=!0}}}}),Dt={class:"entTrial-content text-[14px] text-[#6b6865] font-normal mt-[32px] mb-[12px]"},Vt=(e=>(f("data-v-fae2600e"),e=e(),y(),e))((()=>u("div",null,[u("img",{src:"https://r.fabrie.cn/assets/image/%E5%B0%8F%E5%8A%A9%E6%89%8B%20(1).png",alt:"二维码",width:"150",height:"150"})],-1)));const Ft=t(Ct,[["render",function(e,t,n,a,l,o){const i=q;return s(),g(i,{visible:e.entTrialDoneDialog,title:e.t("content.enterpriseApply.reminder"),width:"450",onClose:e.handleClose},{default:d((()=>[u("div",Dt,m(e.t("content.enterpriseApply.doneTrial")),1),Vt])),_:1},8,["visible","title","onClose"])}],["__scopeId","data-v-fae2600e"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/Price/EnterpriseApplyComponent/EntTrialDoneDialog.vue"]]),Lt={class:"function-banner mt-[40px]"},$t={class:"flex flex-wrap justify-center mx-auto @xs:w-[250px] @sm:w-[497px] @md:w-[100%] content"},Nt={class:"text-[14px] font-400 text-[#56524F]"},Rt=t(o({__name:"FunctionWall",setup(t){const{t:n}=k(),a=b([{name:"storage",des:n("content.price.index.storage")},{name:"inspiration",des:n("content.price.index.inspiration")},{name:"research",des:n("content.price.index.research")},{name:"brainstorming",des:n("content.price.index.brainstorming")},{name:"presentation",des:n("content.price.index.presentation")},{name:"teamwork",des:n("content.price.index.teamwork")},{name:"PM",des:n("content.price.index.PM")}]);return(t,n)=>{const l=e;return s(),p("div",Lt,[u("div",$t,[(s(!0),p(E,null,w(a.value,(e=>(s(),p("div",{key:e.name,class:"flex flex-col items-center text-white gap-[8px] text-[30px] min-w-[115px]"},[c(l,{name:e.name,class:"px-[9px] py-[9px] bg-[#F5F3ED] rounded-[8px] text-[48px]"},null,8,["name"]),u("div",Nt,m(e.des),1),v(" CNY theme text-[#56524F]")])))),128))])])}}}),[["__scopeId","data-v-d8254f92"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/components/FunctionWall.vue"]]),Ut=M({id:"qrCodeUrl",state:()=>({userUrCodeUrl:"",channelCodeList:[]}),actions:{async saveChannelCodeInfo(){},async getUserUrCodeUrl(e){try{n();return void this.userUrCodeUrl}catch(t){}}}});export{ue as E,de as P,Fe as T,pe as _,_e as a,St as b,Ee as c,ce as d,Ft as e,Ut as f,j as g,Rt as h,ct as q};