1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17139],{217139:(e,r,t)=>{t.r(r),t.d(r,{default:()=>E});var n=t(823798),i=t(621462),a=t(314548),o=t(707200),l=t(838432),s=t(419789),c=t(854533);let u=function(){let{openUrl:e}=(0,s.e)(),r=(0,i.useCallback)(()=>{e(c.pF,{style:"present",webFallback:()=>window.open(c.pF,"_blank","noopener,noreferrer")})},[e]);return(0,n.jsxs)(a.so,{flexDirection:"column",gap:"8px",children:[(0,n.jsx)(l.Ay,{textStyle:"H6",color:"var(--Primary-Black-Base)",children:"å使µç¨"}),(0,n.jsxs)(l.Ay,{textStyle:"Body4",color:"var(--Primary-Gray-L-01)",children:["æçº vocus åä½å¤¥ä¼´ï¼è®é¤é£²ãæ
éãç¾å¦ç 2,500+ å®¶åçæ¾å°ä½ ã",(0,n.jsx)("button",{type:"button",onClick:r,className:"bg-transparent border-0 p-0 cursor-pointer",children:(0,n.jsx)(l.Ay,{textStyle:"Body4",color:"var(--Primary-Gray-L-01)",style:{textDecoration:"underline"},children:"äºè§£è©³æ
"})})]}),(0,n.jsx)(l.Ay,{textStyle:"Body4",color:"var(--Primary-Gray-L-01)",children:"è«ä¾ç
§æ¥é©å®æè¨å®ï¼ç²å¾ç²¾æºåªååéç¥ã"})]})};var p=t(109562),d=t(422264),x=t(935006);let y=(0,p.Ay)(d.A).withConfig({componentId:"sc-923f7e41-0"})(["border-color:var(--Primary-Gray-L-01);"]),m=function(e){let{stepNumber:r,title:t,description:i,isCompleted:o,actionLabel:s,onClickAction:c,children:u}=e;return(0,n.jsx)(a.so,{flexDirection:"column",border:"1px solid var(--Primary-Gray-L-04)",borderRadius:"16px",p:"12px",gap:"12px",width:"100%",children:(0,n.jsxs)(a.so,{gap:"16px",alignItems:"flex-start",flexWrap:"wrap",width:"100%",children:[(0,n.jsxs)(a.so,{flexDirection:"column",gap:"12px",flex:"1 1 280px",minWidth:"0px",children:[(0,n.jsxs)(a.so,{flexDirection:"column",gap:"4px",children:[(0,n.jsxs)(a.so,{alignItems:"center",gap:"4px",height:"24px",children:[(0,n.jsx)(a.so,{alignItems:"center",justifyContent:"center",width:"28px",height:"28px",borderRadius:"40px",backgroundColor:"var(--Primary-Gray-L-05)",flexShrink:0,children:(0,n.jsx)(l.Ay,{textStyle:"H7",color:"var(--Primary-Black-Base)",children:r})}),(0,n.jsx)(l.Ay,{textStyle:"H7",color:"var(--Primary-Black-Base)",children:t})]}),(0,n.jsx)(l.Ay,{textStyle:"Body4",color:"var(--Primary-Gray-L-01)",children:i})]}),u]}),(0,n.jsxs)(a.so,{alignItems:"center",justifyContent:"flex-end",gap:"12px",flexShrink:0,minWidth:"170px",marginLeft:"auto",children:[o&&(0,n.jsxs)(a.so,{alignItems:"center",gap:"4px",children:[(0,n.jsx)(x.A,{name:"icon-success_outline",size:16,style:{color:"var(--Color-Success-Base)"}}),(0,n.jsx)(l.Ay,{textStyle:"Body4",color:"var(--Color-Success-Base)",children:"已宿"})]}),o?(0,n.jsx)(d.A,{variant:"Outline-Tertiary",size:"small",onClick:c,children:s}):(0,n.jsx)(y,{variant:"Outline-Primary",size:"small",onClick:c,children:s})]})]})})};var h=t(505724);let g=function(e){let{creatorCode:r}=e,t=(0,h.A)();if(!r)return null;let i=async()=>{try{await navigator.clipboard.writeText(r),t({message:"è¤è£½æå"})}catch(e){console.error("Copy creator code error:",e),t({type:"error",message:"ç¼çé¯èª¤ï¼è«ç¨å¾å試"})}};return(0,n.jsxs)(a.so,{alignItems:"center",justifyContent:"space-between",gap:"8px",p:"12px",borderRadius:"12px",backgroundColor:"var(--Primary-Gray-L-06)",width:"100%",children:[(0,n.jsxs)(a.so,{flexDirection:"column",gap:"4px",minWidth:"0px",children:[(0,n.jsx)(l.Ay,{textStyle:"Body4",color:"var(--Primary-Gray-L-01)",children:"ä½ çåµä½è
ç·¨è"}),(0,n.jsx)(l.Ay,{textStyle:"H7",color:"var(--Primary-Black-Base)",children:r})]}),(0,n.jsx)(d.A,{variant:"Outline-Tertiary",size:"small",rightIcon:"icon-copy",onClick:i,children:"è¤è£½"})]})};var v=t(182855),b=t(753835);let f=function(e){let{lineUrl:r}=e;return(0,n.jsxs)(a.so,{flexDirection:"column",alignItems:"center",gap:"16px",width:"100%",children:[(0,n.jsx)(a.so,{alignItems:"center",justifyContent:"center",p:"12px",border:"1px solid var(--Primary-Gray-L-04)",borderRadius:"8px",children:(0,n.jsx)(b.Ay,{value:r,size:200,level:"M",title:"LINE 宿¹å¸³èè¡åæ¢ç¢¼"})}),(0,n.jsxs)(a.so,{flexDirection:"column",alignItems:"center",gap:"8px",width:"100%",children:[(0,n.jsx)(l.Ay,{textStyle:"H7",color:"var(--Primary-Black-Base)",children:"ééè¡åæ¢ç¢¼åå¾å®æ¹ LINE"}),(0,n.jsx)(l.Ay,{textStyle:"Body4",color:"var(--Primary-Gray-L-01)",maxWidth:"600px",style:{textAlign:"center"},children:"è«å¨ LINE æç¨ç¨å¼ä¸éåã好åãåé ï¼é»é¸ç«é¢å³ä¸æ¹ç¨ä¾å å
¥å¥½åçåç¤ºï¼æ¥èé»é¸ãè¡åæ¢ç¢¼ãï¼ç¶å¾æææ¤è¡åæ¢ç¢¼ã"})]})]})};var j=t(552430),w=t(680626);let k=function(e){let{phase:r,onClose:t,lineUrl:i}=e,a=(0,w.CD)();return(0,n.jsx)(v.lG,{open:null!==r,onOpenChange:e=>{e||t()},children:(0,n.jsxs)(v.Cf,{className:(0,j.cn)("md:w-[800px] md:max-w-[800px] gap-0",a&&"top-[calc(44px+env(safe-area-inset-top)+8px)] translate-y-0 md:top-1/2 md:-translate-y-1/2"),"aria-describedby":void 0,children:[(0,n.jsx)(v.c7,{children:(0,n.jsx)(v.L3,{children:"åå¾å®æ¹ LINE"})}),(0,n.jsx)("div",{className:"flex items-center justify-center px-5 py-6 md:px-6",children:"loading"===r?(0,n.jsx)(o.A,{width:50,height:50,tip:"å³å°åå¾å®æ¹ LINE"}):(0,n.jsx)(f,{lineUrl:i})})]})})};
1var C=t(990607),A=t(563140);let _=function(e){let r=e?`/api/v2/studio/salon/${e}/collaboration-settings`:null,{data:t,mutate:n,error:i,isLoading:a}=(0,A.Ay)(r,{shouldRetryOnError:e=>{let r=function(e){try{return JSON.parse(e?.message)?.statusCode}catch{return}}(e);return 408===r||429===r||!("number"==typeof r&&r>=400&&r<500)}});return{data:t,isLoading:a,isError:i,mutate:n}};var S=t(88089),B=t(226697),L=t(225960),I=t(275791);let E=function(e){let{salonData:r}=e,t=r?._id??"",{openUrl:l}=(0,s.e)(),{openInternalRoute:p}=(0,L.v)(),d=(0,h.A)(),{dismiss:x}=(0,C.A)();(0,i.useEffect)(()=>{x()},[]);let{data:y,isLoading:v}=_(t),{trigger:b,isMutating:f}=function(e){let r=e?`/api/v2/studio/salon/${e}/collaboration-settings/survey`:"",{trigger:t,isMutating:n}=(0,S.A)(r,async()=>{let e=await (0,B.A)(r,{method:"POST"});if(!Array.isArray(e?.items))throw Error("Invalid survey response: missing `items`");return e},{onError:e=>{console.error("Error occurred on post collaboration survey params:",e)}});return{trigger:t,isMutating:n}}(t),j=y?.survey.status==="completed",A=j?y?.kocNumber:void 0,[E,N]=(0,i.useState)(null),P=(0,i.useCallback)(async()=>{if(!f){(0,I.gY)(t);try{let{items:e}=await b(),r=(0,c.tp)(e),t=(0,c.q6)(e);if(!r||!t)throw Error("Missing aka_uid or aka_survey_invite_id in survey params response");let n=(0,c.Z9)({utmSource:"vocus-studio",userId:r,surveyInviteId:t});await (0,w.Vm)(w.W7.OpenNativeDeviceBrowser,{url:n})||window.open(n,"_blank","noopener,noreferrer")}catch(e){console.error("Post collaboration survey params error:",e),d({type:"error",message:"ç¼çé¯èª¤ï¼è«ç¨å¾å試"})}}},[f,b,t,d]),W=(0,i.useCallback)(()=>{(0,I.hS)(t),p("salonBasicSetting",{salonId:t},{title:"æ²é¾è¨å®"})},[p,t]),D=(0,c.YC)(A),$=(0,i.useCallback)(()=>{l(D,{style:"present",webFallback:()=>window.open(D,"_blank","noopener,noreferrer")})},[l,D]),G=(0,i.useCallback)(()=>{if((0,I.qr)(t),window.matchMedia("(min-width: 768px)").matches)return void N("qr");N("loading"),$()},[$,t]),R=(0,i.useCallback)(()=>{N(null)},[]);return(0,n.jsxs)(a.so,{flexDirection:"column",gap:"20px",maxWidth:"620px",margin:"0px auto",width:"100%",children:[(0,n.jsx)(u,{}),v?(0,n.jsx)(a.so,{justifyContent:"center",alignItems:"center",minHeight:"200px",children:(0,n.jsx)(o.A,{})}):(0,n.jsxs)(a.so,{flexDirection:"column",gap:"12px",children:[(0,n.jsx)(m,{stepNumber:1,title:"填寫åä½å好",description:(0,n.jsxs)(n.Fragment,{children:["填寫åä½å好åå·ï¼è®æåæ´èªèä½ ï¼",(0,n.jsx)("br",{}),"åå·éåºå¾ï¼ç³»çµ±ç´é 30 åéèçï¼ç¡é éè¤å¡«å¯«"]}),isCompleted:j,actionLabel:"填寫å好",onClickAction:P}),(0,n.jsx)(m,{stepNumber:2,title:"é£çµç¤¾ç¾¤å¹³å°",description:"å徿²é¾è¨å®é£çµä½ ç社群平å°ï¼å±ç¾ä½åé¢¨æ ¼ï¼å éç²å¾åæ¡åªåæ©æ",isCompleted:y?.social.status==="completed",actionLabel:"åå¾è¨å®",onClickAction:W}),(0,n.jsx)(m,{stepNumber:3,title:"å å
¥ä¸¦ç¶å®å®æ¹ LINE",description:"宿åä½å好åå·ä¸¦å å
¥å®æ¹ LINEï¼å°åµä½è
ç·¨èåå³è³LINE宿ç¶å®ï¼æªä¾åæ¡éç´å°éé宿¹ LINE è¯ç¹«",isCompleted:y?.lineBinding.status==="completed",actionLabel:"åå¾ LINE",onClickAction:G,children:(0,n.jsx)(g,{creatorCode:A})})]}),(0,n.jsx)(k,{phase:E,onClose:R,lineUrl:D})]})}},225960:(e,r,t)=>{t.d(r,{v:()=>s});var n=t(621462),i=t(419789);let a={salonRoleAndPayment:{path:e=>{let{salonId:r}=e;return`/salon/${r}/studio/setting?tab=role-and-payment`},hasAppWebviewMirror:!0},salonEarningsCollaboration:{path:e=>{let{salonId:r}=e;return`/salon/${r}/studio/earnings?tab=collaboration`},hasAppWebviewMirror:!1},salonBasicSetting:{path:e=>{let{salonId:r}=e;return`/salon/${r}/studio/setting?tab=basic-setting`},hasAppWebviewMirror:!0},salonPlansCollaboration:{path:e=>{let{salonId:r}=e;return`/salon/${r}/studio/plans?tab=collaboration`},hasAppWebviewMirror:!0}};var o=t(680626),l=t(967954);function s(){let{openUrl:e,isInAppWebview:r}=(0,i.e)();return{openInternalRoute:(0,n.useCallback)((r,t,n)=>{let{appWebviewUrl:i,canonicalPath:s}=function(e,r,t){let n=a[e],i=n.path(r),o=n.hasAppWebviewMirror?`/app-webview${i}`:i;return{canonicalPath:i,appWebviewUrl:`${t}${o}`}}(r,t,(0,l.A)()),c=()=>{n?.webTarget==="blank"?window.open(s):window.location.href=s};if(!(0,o.kE)())return void c();e(i,{title:n?.title,style:n?.style,webFallback:c})},[e]),isInAppWebview:r}}},275791:(e,r,t)=>{t.d(r,{V8:()=>u,gY:()=>l,hS:()=>s,qr:()=>c});var n=t(416147);let i={survey:"collaborationSetting_survey_click",social:"collaborationSetting_social_click",line:"collaborationSetting_line_click",footerBecomeCreator:"footerBecomeCreator_click"},a="CollaborationSettings";function o(e,r,t){(0,n._s)()&&(0,n.j8)({name:e,component:r,params:{salon_id:t??""}})}function l(e){o(i.survey,a,e)}function s(e){o(i.social,a,e)}function c(e){o(i.line,a,e)}function u(e){o(i.footerBecomeCreator,"Footer",e)}},419789:(e,r,t)=>{t.d(r,{e:()=>o});var n=t(621462),i=t(680626),a=t(463069);
1function o(){let[e,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(0,i.jC)().then(r)},[]),{isInAppWebview:e,openUrl:(0,n.useCallback)(async(e,r)=>{await (0,i.Vm)(a.W7.OpenNativeWebView,{url:e,style:r.style??"push",title:r.title??""})||r.webFallback()},[]),openExternalUrl:(0,n.useCallback)(async(e,r)=>{await (0,i.Vm)(a.W7.OpenNativeDeviceBrowser,{url:e})||r.webFallback()},[])}}},854533:(e,r,t)=>{t.d(r,{YC:()=>c,Z9:()=>i,pF:()=>n,q6:()=>s,tp:()=>l});let n="https://creator.vocus.cc/vocus-ti-gong-gei-chuang-zuo-zhe-de-feng-fu-bian-xian-ji-zhi/jie-qu-shang-an-he-zuo-lei-ji-jie-an-jing-yan-zhuan-qu-ye-pei-shou-ru";function i(e){let{utmSource:r,userId:t,surveyInviteId:n}=e,i=new URLSearchParams({utm_source:r,utm_medium:"click",utm_campaign:"onboarding_20260831"});return t&&i.set("aka_uid",t),n&&i.set("aka_survey_invite_id",n),`https://www.surveycake.com/s/lgkqr?${i.toString()}`}let a="@628ngras",o=`https://line.me/R/ti/p/${a}`;function l(e){return e.find(e=>"aka_uid"===e.key)?.value}function s(e){return e.find(e=>"aka_survey_invite_id"===e.key)?.value}function c(e){return e?`https://line.me/R/oaMessage/${a}/?${encodeURIComponent(e)}`:o}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.