1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3712],{2098:(e,t,n)=>{n.d(t,{q7:()=>S.q7,BU:()=>p,RF:()=>$,vJ:()=>X,cH:()=>F,hA:()=>z,vf:()=>V,w_:()=>W});var l=n(54568),i=n(99680),r=n(7620),o=n(10933),a=n.n(o),s=n(13446),c=n(33965),x=n(34582),d=n(80915);let p=e=>{let t,n,r,o=(0,i.c)(4),{css:p}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t={color:"dynamic.050"},o[0]=t):t=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(s.Button,{variant:"plain",inline:!0,fontSize:"sm",fontWeight:"bold",color:"dynamic.040",_hover:t,lineHeight:"14px",gap:"xxs",asChild:!0,children:(0,l.jsxs)(a(),{href:`${d.Bh}?disable_login=1`,target:"_blank",rel:"noopener noreferrer",children:[x.A.gettext("äºè§£å®æ´æ¹æ¡å
§å®¹"),(0,l.jsx)(c.B,{size:"1em",weight:"bold"})]})}),o[1]=n):n=o[1],o[2]!==p?(r=(0,l.jsx)(s.Flex,{w:"100%",css:p,children:n}),o[2]=p,o[3]=r):r=o[3],r};var m=n(91443),h=n(99446),g=n(59135),u=n(60726),A=n(9827),_=n(45836),f=n(43594),S=n(71929),T=n(40210),b=n(57160),E=n(67126),y=n(78445),j=n(36769);let C=e=>{let t,n,r,o,a,c,p,h,g,u,A,_,f,S,C,O,N,R,I,D,P,v,M,L,w=(0,i.c)(65),{catalog:B,isYearly:F,planType:k,feature:U,isSelected:G,onClick:z,currentPlan:W,enableButton:Y}=e;if(w[0]!==B.plans||w[1]!==k){let e;w[3]!==k?(e=e=>e.planType===k,w[3]=k,w[4]=e):e=w[4],t=B.plans.find(e),w[0]=B.plans,w[1]=k,w[2]=t}else t=w[2];let H=t;w[5]!==z||w[6]!==k?(n=()=>{z(k)},w[5]=z,w[6]=k,w[7]=n):n=w[7];let V=n;w[8]!==U||w[9]!==k?(r=(0,j.il)(k,U),w[8]=U,w[9]=k,w[10]=r):r=w[10];let $=r;w[11]!==W||w[12]!==k?(o=(0,d.tn)(W,k),w[11]=W,w[12]=k,w[13]=o):o=w[13];let X=o===d.oS.UPGRADE,Z=!G&&(void 0===Y||Y)&&X&&$.enabled,q=G?"neutral.010":"neutral.000";w[14]===Symbol.for("react.memo_cache_sentinel")?(a={base:"column",md:"row"},c={base:"stretch",md:"center"},w[14]=a,w[15]=c):(a=w[14],c=w[15]),w[16]!==k?(p=k===m.v0.STARTER&&{borderTopRadius:"2xl",borderBottom:"none",borderTopWidth:"1px"},w[16]=k,w[17]=p):p=w[17],w[18]!==k?(h=k===m.v0.ADVANCED&&{borderBottomRadius:"2xl"},w[18]=k,w[19]=h):h=w[19],w[20]!==G?(g=G&&(0,l.jsx)(s.Badge,{borderRadius:"base",px:"8px",py:"4px",bg:"positive.010",color:"positive.050",fontSize:"12px",children:x.A.gettext("ç¶åæ¹æ¡")}),w[20]=G,w[21]=g):g=w[21],w[22]!==k?(u=(0,m.Iq)(k),w[22]=k,w[23]=u):u=w[23],w[24]!==u?(A=(0,l.jsx)(s.Text,{fontSize:"20px",fontWeight:"semibold",children:u}),w[24]=u,w[25]=A):A=w[25];let J=H?.displayPrice?.value;w[26]!==J?(_=(0,l.jsx)(s.Text,{fontSize:"16px",fontWeight:"bold",color:"neutral.090",children:J}),w[26]=J,w[27]=_):_=w[27];let K=F?"/å¹´":"/æ";return w[28]!==K?(f=(0,l.jsx)(s.Text,{fontSize:"14px",ml:"4px",color:"neutral.090",children:K}),w[28]=K,w[29]=f):f=w[29],w[30]!==_||w[31]!==f?(S=(0,l.jsxs)(s.HStack,{gap:"none",lineHeight:"normal",children:[_,f]}),w[30]=_,w[31]=f,w[32]=S):S=w[32],w[33]!==F||w[34]!==H?.originalPrice?.value?(C=F&&(0,l.jsxs)(s.Text,{fontSize:"12px",color:"neutral.060",textDecoration:"line-through",lineHeight:"normal",children:[x.A.gettext("åå¹"),"\xa0",H?.originalPrice?.value]}),w[33]=F,w[34]=H?.originalPrice?.value,w[35]=C):C=w[35],w[36]!==S||w[37]!==C?(O=(0,l.jsxs)(s.Box,{children:[S,C]}),w[36]=S,w[37]=C,w[38]=O):O=w[38],w[39]!==g||w[40]!==A||w[41]!==O?(N=(0,l.jsxs)(s.VStack,{w:"160px",gap:"xs",alignItems:"flex-start",children:[g,A,O]}),w[39]=g,w[40]=A,w[41]=O,w[42]=N):N=w[42],w[43]!==k||w[44]!==$?(R=function(e,t){let{feature:n,enabled:i,limit:r}=e;if(!i)return(0,l.jsx)(s.Box,{color:"neutral.040",children:(0,l.jsx)(b.H,{size:"22px",weight:"bold"})});let o=null!==(0,j.tL)(n,t)||"string"==typeof r,a=n===d.N3.MEMBER_BEHAVIOR_ANALYSIS?d.GG.includes(t):t===m.v0.ADVANCED;return o&&!a?(0,l.jsx)(s.Box,{color:"positive.050",children:(0,l.jsx)(E.W,{size:"22px",weight:"bold"})}):(0,l.jsx)(s.Box,{color:"warning.050",children:(0,l.jsx)(y.M,{size:"22px",weight:"bold"})})}($,k),w[43]=k,w[44]=$,w[45]=R):R=w[45],w[46]!==k||w[47]!==$?(I=function(e,t){let{feature:n,enabled:i,limit:r}=e;if(!i)return null;let o=(0,j.tL)(n,t);if(null!==o){let e=x.A.gettext("çµ");return n===d.N3.PRODUCT_PUBLISH_SET&&(e=x.A.gettext("ä»¶")),n===d.N3.MEMBER_LEVEL_SETTING&&(e=(0,d.vM)(t)===d.Ot.CLASSIC&&d.ks[t]>2?x.A.gettext("ç´ï¼å
å«åçéç¥ï¼"):x.A.gettext("ç´")),(0,l.jsx)(s.Text,{color:"neutral.120",fontSize:"16px",ml:"xs",children:o+" "+e})}let a="string"==typeof r?r:T.Yp[n];return(0,l.jsx)(s.Text,{color:"neutral.120",fontSize:"16px",ml:"xs",children:a})}($,k),w[46]=k,w[47]=$,w[48]=I):I=w[48],w[49]!==R||w[50]!==I?(D=(0,l.jsxs)(s.Flex,{flex:"1 1 auto",alignItems:"center",justifyContent:"flex-start",children:[R,I]}),w[49]=R,w[50]=I,w[51]=D):D=w[51],w[52]===Symbol.for("react.memo_cache_sentinel")?(P={base
1:"1 1 auto",md:"0 0 auto"},w[52]=P):P=w[52],w[53]!==V||w[54]!==Z?(v=Z&&(0,l.jsx)(s.Button,{onClick:V,w:"full",bg:"dynamic.040",isFullWidth:!0,_hover:{bg:"dynamic.050"},_active:{bg:"dynamic.060"},children:x.A.gettext("馬ä¸åç´")}),w[53]=V,w[54]=Z,w[55]=v):v=w[55],w[56]!==v?(M=(0,l.jsx)(s.Box,{flex:P,children:v}),w[56]=v,w[57]=M):M=w[57],w[58]!==h||w[59]!==N||w[60]!==D||w[61]!==M||w[62]!==q||w[63]!==p?(L=(0,l.jsxs)(s.Flex,{w:"100%",bg:q,flexDirection:a,alignItems:c,rowGap:"m",columnGap:"xs",border:"1px solid",borderColor:"neutral.020",borderTopWidth:"0",px:"m",py:"l",justifyContent:"space-between",...p,...h,children:[N,D,M]}),w[58]=h,w[59]=N,w[60]=D,w[61]=M,w[62]=q,w[63]=p,w[64]=L):L=w[64],L};var O=n(76884);let N=e=>{let t,n,r,o,a,c,d,p,h,g,b,E,y,j,N,R=(0,i.c)(56),{currentPlan:I,period:D,feature:P,actions:v,permissions:M,onSelectPlan:L,plan:w,isSubscribable:B}=e,F="yearly"===D;R[0]!==I?(t=(0,A.vM)(I),R[0]=I,R[1]=t):t=R[1];let{catalog:k,isLoading:U}=(0,O.O)(t),G=k?.[F?m.C5.YEARLY:m.C5.MONTHLY];R[2]!==v||R[3]!==L?(n=function(){v.handleNegativeClick(),L(null)},R[2]=v,R[3]=L,R[4]=n):n=R[4];let z=n;if(R[5]!==I||R[6]!==P||R[7]!==z||R[8]!==B||R[9]!==L||R[10]!==D||R[11]!==w){let e,t,n,i,m,g=(0,T.$Y)(I,P);R[19]!==B||R[20]!==L||R[21]!==D||R[22]!==w?(e=function(e){B?L({planType:e,period:D,status:w.status}):(0,s.errorToast)({description:x.A.gettext("å家身åé©èæªééï¼ç¡æ³éæ°è¨é±ã")})},R[19]=B,R[20]=L,R[21]=D,R[22]=w,R[23]=e):e=R[23],a=e,o=s.VStack,p="stretch",R[24]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(s.Box,{position:"absolute",top:"50%",left:"10px",transform:"translateY(-35%)",pointerEvents:"none",display:{base:"none",md:"block"},children:(0,l.jsx)(s.Image,{src:S.vl.src,srcSet:S.vl.srcSet,alt:"yellow ribbon",loading:"lazy"})}),R[24]=t):t=R[24],R[25]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(s.Box,{position:"absolute",top:"50%",right:"0",transform:"translateY(-50%)",pointerEvents:"none",display:{base:"none",md:"block"},children:(0,l.jsx)(s.Image,{src:S.jA.src,srcSet:S.jA.srcSet,alt:"salmon ribbon",loading:"lazy"})}),R[25]=n):n=R[25],R[26]===Symbol.for("react.memo_cache_sentinel")?(i={base:"16px",md:"20px"},R[26]=i):i=R[26],R[27]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(s.Text,{position:"relative",textAlign:"center",fontSize:i,fontWeight:"semibold",color:"primary.040",lineHeight:"1.5",children:x.A.gettext("ç¾å¨å°±åç´æ¹æ¡ä½¿ç¨æ´å¤åè½ï¼")}),R[27]=m):m=R[27],R[28]!==z?(h=(0,l.jsxs)(s.Box,{py:"17px",bg:"primary.010",position:"relative",overflow:"hidden",children:[t,n,m,(0,l.jsx)(s.Box,{position:"absolute",top:"50%",left:"30px",transform:"translateY(-50%)",children:(0,l.jsx)(f.X,{size:"24px",color:"neutral.120",onClick:z,cursor:"pointer",weight:"bold"})})]}),R[28]=z,R[29]=h):h=R[29],r=s.Box,c="xl",d=g&&(0,l.jsx)(s.Box,{mb:"xl",fontSize:{base:"14px",md:"16px"},fontWeight:"semibold",sx:{span:{color:"dynamic.040",mx:"4px"}},children:(0,u.A)(g,"p")}),R[5]=I,R[6]=P,R[7]=z,R[8]=B,R[9]=L,R[10]=D,R[11]=w,R[12]=r,R[13]=o,R[14]=a,R[15]=c,R[16]=d,R[17]=p,R[18]=h}else r=R[12],o=R[13],a=R[14],c=R[15],d=R[16],p=R[17],h=R[18];return R[30]!==U?(g=U&&(0,l.jsx)(s.Flex,{justifyContent:"center",py:"xl",children:(0,l.jsx)(s.CircularProgress,{isIndeterminate:!0})}),R[30]=U,R[31]=g):g=R[31],R[32]!==U||R[33]!==G?(b=!U&&!G&&(0,l.jsx)(s.Text,{textAlign:"center",py:"xl",color:"neutral.080",children:x.A.gettext("æ¹æ¡è³è¨è¼å
¥å¤±æï¼è«ç¨å¾å試ã")}),R[32]=U,R[33]=G,R[34]=b):b=R[34],R[35]!==I||R[36]!==P||R[37]!==a||R[38]!==F||R[39]!==M||R[40]!==G?(E=G?.plans.map(e=>(0,l.jsx)(C,{catalog:G,planType:e.planType,currentPlan:I,feature:P,isYearly:F,isSelected:e.planType===I,enableButton:M.includes(_.gM.BRAND_SUPER_ADMIN)&&e.planType!==I,onClick:a},`plan-card-${e.planType}`)),R[35]=I,R[36]=P,R[37]=a,R[38]=F,R[39]=M,R[40]=G,R[41]=E):E=R[41],R[42]!==g||R[43]!==b||R[44]!==E?(y=(0,l.jsxs)(s.VStack,{gap:"0",w:"100%",alignItems:"stretch",children:[g,b,E]}),R[42]=g,R[43]=b,R[44]=E,R[45]=y):y=R[45],R[46]!==r||R[47]!==c||R[48]!==d||R[49]!==y?(j=(0,l.jsxs)(r,{p:c,children:[d,y]}),R[46]=r,R[47]=c,R[48]=d,R[49]=y,R[50]=j):j=R[50],R[51]!==o||R[52]!==j||R[53]!==p||R[54]!==h?(N=(0,l.jsxs)(o,{alignItems:p,children:[h,j]}),R[51]=o,R[52]=j,R[53]=p,R[54]=h,R[55]=N):N=R[55],N};var R=n(16787),I=n(20769),D=n(81022),P=n(57614),v=n(1088),M=n(51100),L=n(8491),w=n(79642),B=n(45320);let F=e=>{let t,n,r,o,a,c,d,p,h,u,A,_,f,S,T,b,E,y,j,C,O,N,R,I,D,P,v,F,U,G,z=(0,i.c)(87),{plan:W,isResubscribe:Y,selectedPlan:H,isPlanActive:V,isTypeChange:$,isUpgrade:X,price:Z,renewD
1atetime:q,getNewPlanPeriod:J,scenarioType:K,scenarioConfig:Q,isCalculateError:ee,isSubmitting:et,onSubmit:en,onClose:el,nextPaymentPrice:ei,isPaymentPreviewError:er,promoSection:eo}=e;z[0]!==Y||z[1]!==W||z[2]!==q?.start_datetime?(t=!Y&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.Flex,{flex:"1 1 45%",gap:"m",justifyContent:"space-between",flexDirection:"column",mb:"auto",display:{base:"none",md:"flex"},children:[(0,l.jsxs)(s.Flex,{flexDirection:"column",gap:"xs",children:[(0,l.jsx)(s.Flex,{alignItems:"center",gap:"xs",children:(0,l.jsx)(s.Text,{color:"neutral.070",children:x.A.gettext("ç®åçææ¹æ¡")})}),(0,l.jsxs)(s.Flex,{alignItems:"center",gap:"xs",children:[(0,l.jsx)(s.Text,{fontSize:"20px",fontWeight:"bold",children:(0,m.Iq)(W.plan_type)}),(0,l.jsx)(s.Text,{fontSize:"16px",fontWeight:"bold",children:W.period===m.C5.YEARLY?x.A.gettext("/å¹´"):x.A.gettext("/æ")})]})]}),W.type===m.RV.FREE_TRIAL?(0,l.jsxs)(s.Flex,{flexDirection:"column",gap:"xs",children:[(0,l.jsx)(s.Text,{color:"neutral.070",children:x.A.gettext("å
費試ç¨")}),(0,l.jsxs)(s.Text,{fontWeight:"bold",display:"flex",gap:"xs",children:[x.A.gettext("å©é¤"),(0,l.jsx)(s.Text,{as:"span",color:"dynamic.040",children:(0,g.uR)(W.end_datetime)}),x.A.gettext("天尿")]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.Flex,{flexDirection:"column",gap:"xs",children:[(0,l.jsx)(s.Text,{color:"neutral.070",children:x.A.gettext("æ¹æ¡ä½¿ç¨æé")}),(0,l.jsxs)(s.Text,{fontSize:"16px",fontWeight:"bold",children:[(0,M.i)(W.start_datetime)," ~ ",(0,M.i)(W.end_datetime)]})]}),(0,l.jsxs)(s.Flex,{flexDirection:"column",gap:"xs",children:[(0,l.jsx)(s.Text,{color:"neutral.070",children:x.A.gettext("ä¸ä¸å仿¬¾æ¥")}),(0,l.jsx)(s.Text,{fontSize:"16px",fontWeight:"bold",children:(0,M.i)(q?.start_datetime)})]})]})]}),(0,l.jsx)(s.Box,{flex:"0 0 32px",display:{base:"none",md:"block"},color:"dynamic.040",children:(0,l.jsx)(L.n,{weight:"fill",size:"32px"})})]}),z[0]=Y,z[1]=W,z[2]=q?.start_datetime,z[3]=t):t=z[3],z[4]!==Y?(n=Y?x.A.gettext("éæ°è¨é±æ¹æ¡"):x.A.gettext("æ´æ°æ¹æ¡"),z[4]=Y,z[5]=n):n=z[5],z[6]!==n?(r=(0,l.jsx)(s.Text,{color:"neutral.070",children:n}),z[6]=n,z[7]=r):r=z[7],z[8]!==V||z[9]!==$||z[10]!==X?(o=$&&V&&(0,l.jsxs)(s.Flex,{color:X?"positive.040":"ai.050",alignItems:"center",gap:"xxs",children:[X?(0,l.jsx)(w.S,{weight:"fill",size:"16px"}):(0,l.jsx)(B.b,{weight:"fill",size:"16px"}),(0,l.jsx)(s.Text,{fontWeight:"bold",color:X?"positive.040":"ai.050",children:X?x.A.gettext("åç´"):x.A.gettext("éç´")})]}),z[8]=V,z[9]=$,z[10]=X,z[11]=o):o=z[11],z[12]!==r||z[13]!==o?(a=(0,l.jsxs)(s.Flex,{alignItems:"center",gap:"xs",children:[r,o]}),z[12]=r,z[13]=o,z[14]=a):a=z[14],z[15]!==H.planType?(c=(0,m.Iq)(H.planType),z[15]=H.planType,z[16]=c):c=z[16],z[17]!==c?(d=(0,l.jsx)(s.Text,{fontSize:"20px",fontWeight:"bold",children:c}),z[17]=c,z[18]=d):d=z[18],z[19]!==H.period?(p=H.period===m.C5.YEARLY?x.A.gettext("/å¹´"):x.A.gettext("/æ"),z[19]=H.period,z[20]=p):p=z[20],z[21]!==p?(h=(0,l.jsx)(s.Text,{fontSize:"16px",fontWeight:"bold",children:p}),z[21]=p,z[22]=h):h=z[22],z[23]!==d||z[24]!==h?(u=(0,l.jsxs)(s.Flex,{alignItems:"center",gap:"xs",children:[d,h]}),z[23]=d,z[24]=h,z[25]=u):u=z[25],z[26]!==a||z[27]!==u?(A=(0,l.jsxs)(s.Flex,{flexDirection:"column",gap:"xs",mr:"auto",children:[a,u]}),z[26]=a,z[27]=u,z[28]=A):A=z[28],z[29]===Symbol.for("react.memo_cache_sentinel")?(_=(0,l.jsx)(s.Text,{color:"neutral.070",children:x.A.gettext("æ¹æ¡ä½¿ç¨æé")}),z[29]=_):_=z[29],z[30]!==J?(f=J(),z[30]=J,z[31]=f):f=z[31];let ea=f.start_datetime;return z[32]!==J?(S=J(),z[32]=J,z[33]=S):S=z[33],z[34]!==f.start_datetime||z[35]!==S.end_datetime?(T=(0,l.jsxs)(s.Flex,{flexDirection:"column",gap:"xs",children:[_,(0,l.jsxs)(s.Text,{fontSize:"16px",fontWeight:"bold",children:[ea," ~ ",S.end_datetime]})]}),z[34]=f.start_datetime,z[35]=S.end_datetime,z[36]=T):T=z[36],z[37]!==er||z[38]!==ei?.value||z[39]!==q?.start_datetime||z[40]!==Q.showPaymentInfo?(b=Q.showPaymentInfo&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.Flex,{flexDirection:"column",gap:"xs",children:[(0,l.jsx)(s.Text,{color:"neutral.070",children:x.A.gettext("ä¸ä¸å仿¬¾æ¥")}),(0,l.jsx)(s.Text,{fontSize:"16px",fontWeight:"bold",children:(0,M.i)(q?.start_datetime)})]}),(0,l.jsxs)(s.Flex,{flexDirection:"column",gap:"xs",children:[(0,l.jsx)(s.Text,{color:"neutral.070",children:x.A.gettext("仿¬¾éé¡")}),(0,l.jsx)(s.Text,{fontSize:"16px",fontWeight:"bold",children:er?"-":ei?.value??"-"})]})]}),z[37]=er,z[38]=ei?.value,z[39]=q?.start_datetime,z[40]=Q.showPaymentInfo,z[41]=b):b=z[41],z[42]!==A||z[43]!==T||z[44]!==b?(E=(0,l.jsxs)(s.Flex,{flex:"1 1 45%",gap:"m",flexDirection:"column",children:[A,T,b]}),z[42]=A,z[43]=T,z[44]=b,z[45]=E):E=z[45],z[46]!==t||z[47]!==E?(y=(0,l.jsxs)(s.Flex,{w:"100%",justifyContent:"flex-start",alignItems:"center",gap:"l",children:[t,E]}),z[46]=t,z[47]=E,z[48]=y):y=z[48],z[49]!==Z?.value||z[50]!==Q.showUpgradeSection||z[51]!==Q.upgradeSectionTitle?(j=Q.showUpgradeSection&&(0,l.jsx)(s.Flex,{gap:"xxs",mt:"40px",flexDirection:"column",children:(0,l.jsxs)(s.Flex,{justifyContent:"space-between",flexDirection:"column",gap:"xs",children:[(0,l.jsx)(s.Text,{color:"primary.040",fontSize:"20px",fontWeight:"bold",children:Q.upgradeSectionTitle}),(0,l.jsx)(s.Text,{fontSize:"30px",color:"secondary.040",fontWeight:"bold",children:Z?.value})]})}),z[49]=Z?.value,z[50]=Q.showUpgradeSection,z[51]=Q.upgradeSectionTitle,z[52]=j):j=z[52],z[53]!==eo||z[54]!==Q.showUpgradeSection?(C=eo&&(0,l.jsx)(s.Flex,{mt:Q.showUpgradeSection?"xs":"40px",children:eo}),z[53]=eo,z[54]=Q.showUpgradeSection,z[55]=C):C=z[55],z[56]===Symbol.for("react.memo_cache_sentinel")?(O=(0,l.jsx)(s.Text,{color:"primary.040",fontSize:"20px",fontWeight:"bold",children:x.A.gettext("注æäºé
")}),z[56]=O):O=z[56],z[57]!==Q.notices?(N=Q.notices.map(k),z[57]=Q.notices,z[58]=N):N=z[58],z[59]!==K?(R=K===g.sj.OFFICIAL_UPGRADE&&(0,l.jsx)(s.ListItem,{children:x.A.gettext("å¹å·®ç®å¼ï¼æ¹æ¡å¹å·®*ï¼(æ¹æ¡çµææ¥-åç´æ¹æ¡æ¥ï¼/(æ¹æ¡çµææ¥-æ¹æ¡éå§æ¥)) ")}),z[59]=K,z[60]=R):R=z[60],z[61]!==N||z[62]!==R?(I=(0,l.jsxs)(s.Flex,{gap:"s",mt:"40px",flexDirection:"column",children:[O,(0,l.jsxs)(s.UnorderedList,{children:[N,R]})]}),z[61]=N,z[62]=R,z[63]=I):I=z[63],z[64]!==ee?(D=ee&&(0,l.jsx)(s.Text,{mt:"16px",color:"negative.040",children:x.A.gettext("ç¡æ³åå¾è©¦ç®éé¡ï¼è«ééå¾éæ°éååè©¦ä¸æ¬¡ã")}),z[64]=ee,z[65]=D):D=z[65],z[66]===Symbol.for("react.memo_cache_sentinel")?(P=x.A.gettext("ä¹å¾å說"),z[66]=P):P=z[66],z[67]!==el?(v=(0,l.jsx)(s.Box,{children:(0,l.jsx)(s.Button,{px:"24px !important",py:"14px !important",variant:"secondary",onClick:el,children:P})}),z[67]=el,z[68]=v):v=z[68],z[69]!==ee||z[70]!==et||z[71]!==en||z[72]!==Q.buttonText||z[73]!==Q.showUpgradeSection||z[74]!==H.period||z[75]!==H.planType?(F=""!==Q.buttonText&&(0,l.jsx)(s.Box,{children:(0,l.jsx)(s.Button,{px:"24px !important",py:"14px !important",variant:"primary",isLoading:et,isDisabled:Q.showUpgradeSection&&ee,onClick:()=>
1en(H.planType,H.period),children:Q.buttonText})}),z[69]=ee,z[70]=et,z[71]=en,z[72]=Q.buttonText,z[73]=Q.showUpgradeSection,z[74]=H.period,z[75]=H.planType,z[76]=F):F=z[76],z[77]!==v||z[78]!==F?(U=(0,l.jsxs)(s.Flex,{mt:"40px",h:"40px",gap:"25px",justifyContent:"flex-end",children:[v,F]}),z[77]=v,z[78]=F,z[79]=U):U=z[79],z[80]!==y||z[81]!==j||z[82]!==C||z[83]!==I||z[84]!==D||z[85]!==U?(G=(0,l.jsxs)(s.Flex,{my:"30px",mx:"50px",flexDirection:"column",children:[y,j,C,I,D,U]}),z[80]=y,z[81]=j,z[82]=C,z[83]=I,z[84]=D,z[85]=U,z[86]=G):G=z[86],G};function k(e,t){return(0,l.jsx)(s.ListItem,{children:e},t)}function U(e){let t,n,r,o=(0,i.c)(6),{kind:a}=e;if(o[0]!==a){let e=("update"===a?x.A.gettext("ç±æ¼ç®åå å
¥çè¨é±æ¹æ¡çºéè«å¶ï¼è«éé {email} ææ¯ {line} è¯ç¹«å°å¡ï¼çºä½ æ´æ°è¨é±æ¹æ¡ã"):"cancel"===a?x.A.gettext("ç±æ¼ç®åå å
¥çè¨é±æ¹æ¡çºéè«å¶ï¼è«éé {email} ææ¯ {line} è¯ç¹«å°å¡ï¼çºä½ åæ¶çºè¨ææ¯æ´æ°è¨é±æ¹æ¡ã"):x.A.gettext("æè¬ä½ å°æ´å¤åè½æä½æèè¶£ï¼ç±æ¼ç®åå å
¥çè¨é±æ¹æ¡çºéè«å¶ï¼è«éé {email} ææ¯ {line} è¯ç¹«å°å¡ï¼çºä½ åç´è¨é±æ¹æ¡ã")).split(/(\{email\}|\{line\})/);t=s.Text,n=e.map(G),o[0]=a,o[1]=t,o[2]=n}else t=o[1],n=o[2];return o[3]!==t||o[4]!==n?(r=(0,l.jsx)(t,{children:n}),o[3]=t,o[4]=n,o[5]=r):r=o[5],r}function G(e,t){return"{email}"===e?(0,l.jsx)(s.Link,{href:`mailto:${d.$2}`,color:"dynamic.040",children:"Email"},t):"{line}"===e?(0,l.jsx)(s.Link,{href:d.r9,isExternal:!0,color:"dynamic.040",children:"Line"},t):(0,l.jsx)(r.Fragment,{children:e},t)}function z(){let e,t=(0,i.c)(2),{modal:n}=(0,s.useModal)();return t[0]!==n?(e={openSalesContactModal:e=>n({headerContent:"update"===e?x.A.gettext("è«è¯ç¹«å°å¡æ´æ°è¨é±æ¹æ¡"):"cancel"===e?x.A.gettext("è«è¯ç¹«å°å¡çºä½ åæ¶çºè¨"):x.A.gettext("è«è¯ç¹«å°å¡åç´è¨é±æ¹æ¡"),bodyContent:(0,l.jsx)(U,{kind:e}),positiveContent:x.A.gettext("æç¥éäº"),showCancelButton:!1})},t[0]=n,t[1]=e):e=t[1],e}function W(e){let{plan:t,selectedPlan:n,isSubmitting:l,onSubmit:i,onClose:o,brandPlanGroup:a}=e,{openSalesContactModal:s}=z(),[c,x]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),[u,A]=(0,r.useState)(null),[_,f]=(0,r.useState)(null),[S,T]=(0,r.useState)([]),[b,E]=(0,r.useState)(null),[y,j]=(0,r.useState)(!0),[C,O]=(0,r.useState)(!1),[N,R]=(0,r.useState)(null),[I,v]=(0,r.useState)(!1),L=t.status===m.D5.ACTIVE||t.status===m.D5.RENEWING,w=t.period!==n.period,B=t.plan_type!==n.planType,F=!L||(0,d.tn)(t.plan_type,n.planType)===d.oS.UPGRADE,k=(0,g.pS)(t,n,L),U=(0,g.xS)(k,w),G=(0,r.useCallback)(async()=>{let e={type:n.planType,period:n.period};try{j(!0),O(!1);let t=await (0,D.iw)(e);if(t?.data){x(t.data.price),h(t.data.original_price),A(t.data.reduce_price);let e=(0,g.gP)(t.data.discount);f(e.pricePromotion),T(e.functionPromotions),E({start_datetime:t.data.start_datetime,end_datetime:t.data.end_datetime})}else O(!0)}catch(t){O(!0),(0,P.e8)(t,{tags:{scope:"Client"},extra:{payload:e}})}finally{j(!1)}},[n.period,n.planType]),W=(0,r.useCallback)(async()=>{if(!U.showPaymentInfo)return;let e={type:n.planType,period:n.period};try{v(!1),R(null);let t=await (0,D.Nj)(e);t?.data?R(t.data.price):v(!0)}catch(t){v(!0),(0,P.e8)(t,{tags:{scope:"Client"},extra:{payload:e}})}},[U.showPaymentInfo,n.period,n.planType]),Y=(0,r.useCallback)(()=>{G(),W()},[G,W]);(0,r.useEffect)(()=>{Y()},[Y,n]);let H=k===g.sj.RESUBSCRIBE,V=a??(0,m.vM)(t.plan_type);return{plan:t,selectedPlan:n,isResubscribe:H,getNewPlanPeriod:()=>k===g.sj.OFFICIAL_UPGRADE?{start_datetime:(0,M.i)(Math.floor(Date.now()/1e3)),end_datetime:(0,M.i)(t.end_datetime)}:{start_datetime:(0,M.i)(b?.start_datetime),end_datetime:(0,M.i)(b?.end_datetime)},scenarioType:k,scenarioConfig:U,isLoading:y,isCalculateError:C,isSubmitting:l,onSubmit:(0,r.useCallback)((e,t,n)=>{if((0,g.Ps)(V)){o(),s("update");return}i(e,t,n)},[V,o,i,s]),isPlanActive:L,isPeriodChange:w,isTypeChange:B,isUpgrade:F,price:c,originalPrice:p,reducePrice:u,pricePromotion:_,functionPromotions:S,refetchPrice:Y,renewDatetime:b,nextPaymentPrice:N,isPaymentPreviewError:I}}let Y=e=>{let{onClose:t,selectedPlan:n,shouldRedirect:i=!0,plan:o,actions:a}=e,[c,d]=(0,r.useState)(!1),p=(0,s.useToast)(),m=(0,v.N5)(),h=W({plan:o,selectedPlan:n,isSubmitting:c,onSubmit:async(e,t)=>{d(!0);let n={type:e,period:t};try{let e=null;e=await (0,D.Yr)({...n,idempotency_key:(0,I.Z0)()}),e?.data&&(i?window.location.replace("/panel/subscribe/plan"):window.location.reload())}catch(e){e instanceof R.yI&&e.context.error_code===R.bo.PAYMENT_FAILED?p({title:x.A.gettext("鿵仿¬¾å¤±æ"),status:"error"}):(0,P.e8)(e,{tags:{scope:"Client"},extra:{payload:n}})}finally{d(!1)}},onClose:()=>{a.handleNegativeClick()},brandPlanGroup:m?.state.brand.plan_group??null});return(0,l.jsxs)(s.VStack,{alignItems:"stretch",children:[(0,l.jsxs)(s.Box,{py:"17px",bg:"primary.010",position:"relative",overflow:"hidden",children:[(0,l.jsx)(s.Text,{position:"relative",textAlign:"center",fontSize:{base:"16px",md:"20px"},fontWeight:"semibold",color:"primary.040",lineHeight:"1.5",children:x.A.gettext("ä½ æ³å°åçè¨é±æ¹æ¡æ´æ°çº...")}),(0,l.jsx)(s.Box,{position:"absolute",bottom:"0",right:"28px",children:(0,l.jsx)(S.q7,{})})]}),h.isLoading&&(0,l.jsx)(s.Flex,{h:"500px",justifyContent:"center",alignItems:"center",children:(0,l.jsx)(s.CircularProgress,{isIndeterminate:!0})}),!h.isLoading&&(0,l.jsx)(F,{...h,plan:o,onClose:t})]})},H=e=>
1{let t,n,o,a=(0,i.c)(7),{upgradeProps:s,actions:c,isSubscribable:x}=e,d=void 0===x||x,[p,m]=(0,r.useState)(null);a[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{m(e)},a[0]=t):t=a[0];let h=t;a[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{m(null)},a[1]=n):n=a[1];let g=n;return a[2]!==c||a[3]!==d||a[4]!==p||a[5]!==s?(o=p?(0,l.jsx)(Y,{plan:s.currentPlanDetail,selectedPlan:p,onClose:g,actions:c,shouldRedirect:!1}):(0,l.jsx)(N,{...s,plan:s.currentPlanDetail,actions:c,onSelectPlan:h,isSubscribable:d}),a[2]=c,a[3]=d,a[4]=p,a[5]=s,a[6]=o):o=a[6],o};function V(){let{subscribable:e}=(0,h.vo)(),{modal:t}=(0,s.useModal)(),n=(0,s.useToast)(),{openSalesContactModal:i}=z();return{openUpgradeModal:(0,r.useCallback)(n=>(0,g.Ps)((0,m.vM)(n.currentPlan))?i("limit"):t({children:t=>(0,l.jsx)(H,{upgradeProps:n,actions:t,isSubscribable:e}),showCloseButton:!1,sx:{w:"100%",maxW:"600px"},containerProps:{zIndex:"99999"},blockScrollOnMount:!0}),[t,n,i])}}let $=e=>{let t,n,r,o,a,c=(0,i.c)(19),{currentPlanDetail:d,currentPlan:p,feature:m,period:h,color:g,overlay:u,permissions:A,size:_,text:f}=e,S=void 0===g?"dynamic.040":g,T=void 0===u||u;c[0]!==f?(t=void 0===f?x.A.gettext("åç´è¨é±æ¹æ¡"):f,c[0]=f,c[1]=t):t=c[1];let b=t,{openUpgradeModal:E}=V();c[2]!==T?(n=T&&(0,l.jsx)(s.Box,{position:"absolute",inset:"0",background:"linear-gradient(180deg, rgba(255, 255, 255, 0.50) 7.43%, #FFF 91.52%)",height:"100%",pointerEvents:"all"}),c[2]=T,c[3]=n):n=c[3];let y=`${void 0===_?"xs":_} !important`;return c[4]!==p||c[5]!==d||c[6]!==m||c[7]!==E||c[8]!==h||c[9]!==A?(r=()=>{E({currentPlanDetail:d,currentPlan:p,feature:m,period:h,permissions:A})},c[4]=p,c[5]=d,c[6]=m,c[7]=E,c[8]=h,c[9]=A,c[10]=r):r=c[10],c[11]!==S||c[12]!==y||c[13]!==r||c[14]!==b?(o=(0,l.jsx)(s.Button,{variant:"plain",color:S,fontWeight:"medium",p:"0 !important",fontSize:y,onClick:r,inline:!0,children:b}),c[11]=S,c[12]=y,c[13]=r,c[14]=b,c[15]=o):o=c[15],c[16]!==n||c[17]!==o?(a=(0,l.jsxs)(l.Fragment,{children:[n,o]}),c[16]=n,c[17]=o,c[18]=a):a=c[18],a},X=e=>{let t,n,r,o,a,c,d,p,m,h,g,u,A=(0,i.c)(30),{currentPlanDetail:_,currentPlan:f,feature:T,period:b,permissions:E,size:y,sx:j}=e,C=void 0===y?"base":y,{openUpgradeModal:O}=V();A[0]!==C?(t="xs"!==C?{base:"12px",md:"27px"}:"12px",A[0]=C,A[1]=t):t=A[1],A[2]!==C?(n="xs"!==C?{base:"24px",md:"50px"}:void 0,A[2]=C,A[3]=n):n=A[3],A[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(s.Box,{position:"absolute",inset:"0",background:"linear-gradient(180deg, rgba(255, 255, 255, 0.50) 7.43%, #FFF 91.52%)",height:"100%",pointerEvents:"all"}),A[4]=r):r=A[4],A[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsx)(s.Box,{position:"absolute",top:"0",left:"0",transform:"translate(-15%, -110%)",children:(0,l.jsx)(s.Image,{src:S.vl.src,srcSet:S.vl.srcSet,alt:"yellow ribbon",loading:"lazy"})}),A[5]=o):o=A[5],A[6]!==C?(a="xs"!==C&&(0,l.jsx)(s.Box,{position:"absolute",right:"0",top:"0",transform:"translateY(-50%)",children:(0,l.jsx)(s.Image,{src:S.sp.src,srcSet:S.sp.srcSet,alt:"red ribbon",loading:"lazy"})}),A[6]=C,A[7]=a):a=A[7];let N=`${"xs"===C?"16px":"20px"}`;return A[8]===Symbol.for("react.memo_cache_sentinel")?(c=x.A.gettext("åç´è¨é±æ¹æ¡ä¸¦è§£é使ç¨"),A[8]=c):c=A[8],A[9]!==N?(d=(0,l.jsx)(s.Text,{position:"relative",color:"primary.040",fontSize:N,fontWeight:"semibold",mb:"xs",children:c}),A[9]=N,A[10]=d):d=A[10],A[11]!==f||A[12]!==_||A[13]!==T||A[14]!==O||A[15]!==b||A[16]!==E?(p=()=>{O({currentPlanDetail:_,currentPlan:f,feature:T,period:b,permissions:E})},A[11]=f,A[12]=_,A[13]=T,A[14]=O,A[15]=b,A[16]=E,A[17]=p):p=A[17],A[18]===Symbol.for("react.memo_cache_sentinel")?(m=x.A.gettext("æ¥çè¨é±æ¹æ¡"),A[18]=m):m=A[18],A[19]!==p?(h=(0,l.jsx)(s.Button,{variant:"plain",color:"dynamic.040",fontWeight:"medium",p:"0 !important",onClick:p,inline:!0,children:m}),A[19]=p,A[20]=h):h=A[20],A[21]!==h||A[22]!==a||A[23]!==d?(g=(0,l.jsxs)(s.Box,{position:"relative",children:[o,a,d,h]}),A[21]=h,A[22]=a,A[23]=d,A[24]=g):g=A[24],A[25]!==j||A[26]!==t||A[27]!==g||A[28]!==n?(u=(0,l.jsxs)(s.Box,{px:t,py:n,sx:j,children:[r,g]}),A[25]=j,A[26]=t,A[27]=g,A[28]=n,A[29]=u):u=A[29],u}},25376:(e,t,n)=>{n.d(t,{GG:()=>l.GG,N3:()=>l.N3,Ot:()=>l.Ot,v0:()=>l.v0,ks:()=>l.ks,tW:()=>s.tW,co:()=>a.co,il:()=>i.il,RV:()=>a.RV,uR:()=>s.uR,vM:()=>l.vM,tL:()=>i.tL,cY:()=>a.cY,a0:()=>o,w0:()=>s.w0,E2:()=>s.E2});var l=n(80915),i=n(36769),r=n(81022);let o=async e=>{let{planPeriod:t,planGroup:n}=e,l=await (0,r.xC)({plan_period:t,plan_group:n}),o=l?.data;if(!o)throw Error("plan restriction response has no data");let a=(0,i.JP)(o);if(!a)throw Error("plan restriction response has no plan type known to the frontend");(0,i.G1)(a.source,a.loadedPlanGroup)};var a=n(40210),s=n(59135)},32521:(e,t,n)=>{n.d(t,{b:()=>p});var l=n(54568);n(7620);var i=n(60726),r=n(13446),o=n(45836),a=n(11047),s=n.n(a),c=n(34582),x=n(40210),d=n(71929);function p(e){let t=s().unix(e.deadline).format("MM/DD"),n=c.A.gettext("ç±æ¼åçç {plan_type} 已尿æä½ éç´äºæ¹æ¡ï¼æåå°æ¼ {deadline} å¾å復æ¼å
費網å https://{domain}").replace("{plan_type}",x.mu[e.planType]??"").replace("{deadline}",t).replace("{domain}",e.domain.domain);return(0,r.openModal)({children:t=>(0,l.jsxs)(r.VStack,{alignItems:"stretch",children:[(0,l.jsxs)(r.Box,{py:"26px",px:"34px",bg:"primary.040",position:"relative",overflow:"hidden",children:[(0,l.jsx)(r.Box,{position:"absolute",top:"50%",right:"0",transform:"translateY(-50%)",pointerEvents:"none",children:(0,l.jsx)(r.Image,{src:d.Si.src,srcSet:d.Si.srcSet,alt:"salmon ribbon",loading:"lazy"})}),(0,l.jsx)(r.Text,{position:"relative",fontSize:"24px",fontWeight:"semibold",color:"neutral.000",lineHeight:"1.5",children:c.A.gettext("åå¢ï¼ååºçèªæç¶²åå³å°å¤±æ")})]}),(0,l.jsxs)(r.Box,{p:"23px",children:[(0,l.jsx)(r.Box,{mb:"38px",fontSize:{base:"14px",md:"16px"},children:(0,i.A)(n,"p")}),(0,l.jsx)(r.Box,{fontSize:{base:"14px",md:"16px"},sx:{span:{color:"dynamic.040",mx:"4px"}},children:(0,i.A)(c.A.gettext("è¥æ³ç¹¼çºä½¿ç¨èªæç¶²åï¼è«å°è¨é±<span>åç´æ¹æ¡</span>ï¼å¾
æ¹æ¡åç´å¾æ¹å¯ç¹¼çºä½¿ç¨ã"),"p")}),(0,l.jsxs)(r.HStack,{gap:"s",mt:"82px",justifyContent:"flex-end",children:[e.permissions.includes(o.gM.BRAND_SUPER_ADMIN)&&(0,l.jsx)(r.Button,{asChild:!0,variant:"plain",color:"dynamic.040",fontWeight:"medium",fontSize:"14px",inline:!0,children:(0,l.jsx)(r.Link,{href:"/panel/subscribe/plan",color:"dynamic.040",children:c.A.gettext("åç´æ¹æ¡")})}),(0,l.jsx)(r.Button,{fontWeight:"medium",onClick:t.handleNegativeClick,inline:!0,children:c.A.gettext("æç¥éäº")})]})]})]}),showCloseButton:!1,sx:{w:"100%",maxW:"624px"},containerProps:{zIndex:"99999"}})}},40210:(e,t,n)=>{n.d(t,{$Y:()=>d,RV:()=>x,Yp:()=>c,cY:()=>m,co:()=>p,mu:()=>a});var l=n(34582),i=n(66873),r=n(80915),o=n(36769);let a=r.X9,s={[r.N3.EDITOR_CUSTOM_PAGE]:l.A.gettext("客製åé é¢å·²é {plan_type} ç使ç¨ä¸éï¼åç´æ¹æ¡ä½¿ç¨æ´å¤ã"),[r.N3.IMAGE_CAPACITY]:l.A.gettext("ååºçåç已鿏éä¸éï¼åç´æ¹æ¡è§£éç¡éå¶çåçä¸å³ï¼"),[r.N3.PROMO_GIVEAWAY_SET]:l.A.gettext("åç´æ¹æ¡éå§å»ºç«å å¹è³¼æè´åçµåã"),[r.N3.PROMO_COUPON_SET]:l.A.gettext("åªæ å¸å·²éæ¸éä¸éï¼åç´æ¹æ¡è§£éç¡éå¶çåªæ å¸è¨å®ï¼"),[r.N3.PRODUCT_SCHEDULED_PRODUCT]:l.A.gettext("åç´æ¹æ¡è¨å®å»¶å¾ä¸æ¶æè²©å®ï¼å¹«å©ä½ èªåå管çååéè³£æéã"),[r.N3.PRODUCT_LOW_STOCK_ALERT]:l.A.gettext("åç´æ¹æ¡éåååä½åº«åé è¦éç¥ï¼éä½ç¼ºè²¨æµå¤±å®¢æºé¢¨éªã"),[r.N3.PRODUCT_PRIVATE_PRODUCT]:l.A.gettext("åç´æ¹æ¡ä½¿ç¨é±èåååè½ï¼è®å®¢äººééä½ å享çå°å±¬é£çµä¸å®ã"),[r.N3.PRODUCT_CUSTOM_DESCRIPTION_TEMPLATE]:l.A.gettext("åç´æ¹æ¡ä½¿ç¨ææ´å
ååå
±ç¨æ®µè½ï¼è®ååä»ç´¹ç®¡çæ´ä¾¿å©ï¼"),[r.N3.PRODUCT_BATCH_UPDATE]:l.A.gettext("åç´æ¹æ¡ä½¿ç¨ååçæ¹æ¬¡ç
1·¨è¼¯ï¼æé«çéæçã"),[r.N3.ORDER_PRINT_PICKING_LIST]:l.A.gettext("åç´æ¹æ¡æ¹æ¬¡åå°æè²¨å®ï¼å¹«å©åç大éæä½è¨å®ä½æ¥ã"),[r.N3.ORDER_PRINT_SHIPPING_TICKET]:l.A.gettext("åç´æ¹æ¡æ¹æ¬¡åå°åºè²¨å®ï¼å¹«å©åç大éæä½è¨å®ä½æ¥ã"),[r.N3.ORDER_EXPORT_CSV]:l.A.gettext("åç´æ¹æ¡ä½¿ç¨æ¹æ¬¡å¯åº CSV åè½ï¼å¹«å©åç大éæä½è¨å®ä½æ¥ï¼"),[r.N3.PROMO_PROMO_SET]:l.A.gettext("åªæ æ´»åæ¸éå·²éä¸éï¼åç´æ¹æ¡è§£éç¡éå¶çåªæ æ´»åè¨å®ï¼"),[`${r.N3.PROMO_PROMO_SET}_starter`]:l.A.gettext("åç´æ¹æ¡éå§å»ºç«åªæ æ´»åã"),[r.N3.BRAND_ADMIN_SET]:l.A.gettext("管çå¡å¸³èæ¸å·²éä¸éï¼åç´æ¹æ¡è§£éæ´å¤çä½¿ç¨æ¸éï¼"),[r.N3.PROMO_DURATION]:l.A.gettext("åç´æ¹æ¡éå§è¨å®åªæ èªåæç¨ã"),[r.N3.DATA_GOOGLE_ANALYTICS]:l.A.gettext("åç´æ¹æ¡éå§è¨å® Google æ¸æä¸²æ¥ã"),[r.N3.SEO_GOOGLE_SEARCH_CONSOLE]:l.A.gettext("åç´æ¹æ¡éå§ä¸²æ¥ Google Search Consoleï¼ææ¡ååºçæå°æå
ææã"),[r.N3.DATA_META_PIXEL]:l.A.gettext("åç´æ¹æ¡éå§è¨å® Meta æ¸æä¸²æ¥ã"),[r.N3.DATA_OPENAI_PIXEL]:l.A.gettext("åç´æ¹æ¡éå§è¨å® ChatGPT Ads æ¸æä¸²æ¥ã"),[r.N3.GOOGLE_AD_FEED]:l.A.gettext("åç´æ¹æ¡éå§ä¸²æ¥ Meta æ Google 廣åç®éï¼æ¾å¤§å°æµææã"),[r.N3.META_AD_FEED]:l.A.gettext("åç´æ¹æ¡éå§ä¸²æ¥ Meta æ Google 廣åç®éï¼æ¾å¤§å°æµææã"),[r.N3.VIDEO_CAPACITY]:l.A.gettext("åµå
¥å½±çæ²æç¨ééå¶ï¼å¦æä½ æ³ç´æ¥ä¸å³å½±çç話ä¹å¯ä»¥åç´è³é²é Advanced æ¹æ¡ã"),[r.N3.AI_SEARCH_ENGINE]:l.A.gettext("åç´æ¹æ¡è§£é AI æºæ
§ç«å
§æå°å¼æï¼"),[r.N3.AI_TYPING_SUGGESTION]:l.A.gettext("åç´æ¹æ¡è§£é AI æºæ
§æ¨è¦æå°ééµåï¼"),[r.N3.MEMBER_LEVEL_SETTING]:l.A.gettext("åç´æ¹æ¡è§£éæ´å¤æå¡çç´ï¼è®æå¡ç¶çæ´éæ´»"),[r.N3.MEMBER_POINTS]:l.A.gettext("馬ä¸åç´æ¹æ¡å»ºç«æå¡é»æ¸å饿©å¶ï¼æå顧客åè³¼èåçé»è度"),[r.N3.MEMBER_CUSTOM_TAGS]:l.A.gettext("åç´æ¹æ¡å»ºç«æ´å¤æå¡æ¨ç±¤ã"),[r.N3.MEMBER_BEHAVIOR_ANALYSIS]:l.A.gettext("åç´æ¹æ¡è§£éæå¡çè¦½èæ¶è²»è¡çºï¼åªåè¡é·èæå¡ç¶ççç¥"),[r.N3.MEMBER_MANAGEMENT]:l.A.gettext("åç´æ¹æ¡è§£éæå¡åè¡¨ï¼æ¹æ¬¡ç®¡çæå¡è³æï¼å¤§å¹
æåæå¡çéæç"),[r.N3.EDITOR_SCHEDULED_ANNOUNCEMENT]:l.A.gettext("åç´æ¹æ¡è¨å®å
¬åæç¨ï¼èªåä¸ä¸æ¶ç¶²é å
¬åå
§å®¹ã"),[r.N3.BLOG_ARTICLE]:l.A.gettext("åç´æ¹æ¡è§£éæ´å¤æç« ç¯æ¸"),[r.N3.BLOG_SEO_URL_SLUG_CUSTOM]:l.A.gettext("åç´æ¹æ¡è§£éèªè¨ç·¨è¼¯ URL slug")},c={[r.N3.SEO_CUSTOM_DOMAIN]:l.A.gettext("åçèªè¨ç¶²å"),[r.N3.SEO_META_TAGS]:l.A.gettext("èªè¨ç¶²ç«æ¨é¡èæè¿°"),[r.N3.SEO_URL_SLUG]:l.A.gettext("èªè¨ç¶²åçµæ§"),[r.N3.VIDEO_CAPACITY]:l.A.gettext("ç¡éå¶"),[r.N3.PRODUCT_LOW_STOCK_ALERT]:l.A.gettext("ä½åº«åé è¦éç¥"),[r.N3.PRODUCT_CUSTOM_DESCRIPTION_TEMPLATE]:l.A.gettext("ç¡éå¶"),[r.N3.PRODUCT_PUBLISH_SET]:l.A.gettext("ç¡éå¶"),[r.N3.PRODUCT_PRIVATE_PRODUCT]:l.A.gettext("䏿¶é±èåå"),[r.N3.PRODUCT_SCHEDULED_PRODUCT]:l.A.gettext("èªååååæç¨"),[r.N3.CART_E_INVOICE]:l.A.gettext("èªåéç«é»åç¼ç¥¨"),[r.N3.AI_SEARCH_ENGINE]:l.A.gettext("AI æºæ
§ç«å
§æå°å¼æ"),[r.N3.AI_TYPING_SUGGESTION]:l.A.gettext("AI æºæ
§æ¨è¦æå°ééµå"),[r.N3.PROMO_COUPON_SET]:l.A.gettext("ç¡éå¶"),[r.N3.PROMO_PROMO_SET]:l.A.gettext("ç¡éå¶"),[r.N3.PROMO_GIVEAWAY_SET]:l.A.gettext("å å¹è³¼/滿é¡è´"),[r.N3.PROMO_DURATION]:l.A.gettext("åªæ èªåæç¨"),[r.N3.PROMO_DISTRIBUTE_COUPON]:l.A.gettext("èªåç¼éåªæ å¸"),[r.N3.PROMO_COUPON_FIXED_PERIOD]:l.A.gettext("èªåæç¨é±ææ§é ç¯æ´»å"),[r.N3.PROMO_MEMBER_ELIGIBILITY]:l.A.gettext("æå¡çç´å·®ç°åªæ è¨å®"),[r.N3.MEMBER_MANAGEMENT]:l.A.gettext("æå¡è³æç®¡ç"),[r.N3.PRODUCT_BATCH_UPDATE]:l.A.gettext("æ¹æ¬¡ç·¨è¼¯ååè³è¨"),[r.N3.ORDER_PRINT_PICKING_LIST]:l.A.gettext("æ¹æ¬¡åå°æè²¨å®"),[r.N3.ORDER_EXPORT_CSV]:l.A.gettext("æ¹æ¬¡å¯åºè¨å® CSV"),[r.N3.ORDER_PRINT_SHIPPING_TICKET]:l.A.gettext("æ¹æ¬¡åå°åºè²¨å®"),[r.N3.MEMBER_EXPORT_CSV]:l.A.gettext("æ¹æ¬¡å¯åºæå¡åå®"),[r.N3.DATA_GOOGLE_ANALYTICS]:l.A.gettext("GA4 串æ¥"),[r.N3.SEO_GOOGLE_SEARCH_CONSOLE]:l.A.gettext("Google Search Console 串æ¥"),[r.N3.DATA_META_PIXEL]:l.A.gettext("Meta Pixel 串æ¥"),[r.N3.DATA_OPENAI_PIXEL]:l.A.gettext("ChatGPT Ads P
1ixel 串æ¥"),[r.N3.GOOGLE_AD_FEED]:l.A.gettext("串æ¥å»£åç®é"),[r.N3.META_AD_FEED]:l.A.gettext("串æ¥å»£åç®é"),[r.N3.MEMBER_CUSTOM_TAGS]:l.A.gettext("ç¡éå¶"),[r.N3.MEMBER_POINTS]:l.A.gettext("æå¡æ¶è²»åé¥é»æ¸"),[r.N3.MEMBER_POINTS_ADJUST]:l.A.gettext("æåç¼æ¾æå¡é»æ¸"),[r.N3.MEMBER_MANUAL_COUPON]:l.A.gettext("æåç¼éæå¡åªæ å¸"),[r.N3.EDITOR_SCHEDULED_ANNOUNCEMENT]:l.A.gettext("å
¬åè§¸ç¼æ¢ä»¶èæç¨è¨å®"),[r.N3.BLOG_ARTICLE]:l.A.gettext("ç¡éå¶"),[r.N3.BLOG_SEO_URL_SLUG_CUSTOM]:l.A.gettext("èªè¨ URL slug")};function x(e){if(!e)return"";let t=e.match(/(.*)\/upload-url\?media_type=video/),n=e.match(/(.*)\/invitation/),l=e.match(/(.*)\/promo\/coupon/),i=e.match(/(.*)\/batch-update/),o=e.match(/(.*)\/member\/export/),a=e.match(/(.*)\/page/),s=e.match(/(.*)\/domain/),c=e.match(/(.*)\/description-template/),x=e.match(/(.*)\/promo\/giveaway/),d=e.match(/(.*)\/promo/),p=e.match(/(.*)\/tracking-config/),m=e.match(/(.*)\/ad-feed\/config\/google-merchant-center/),h=e.match(/(.*)\/ad-feed\/config\/meta-business/),g=e.match(/(.*)\/blog\/admin\/article\/(.*)\/status/);return t?r.N3.VIDEO_CAPACITY:n?r.N3.BRAND_ADMIN_SET:l?r.N3.PROMO_COUPON_SET:i?r.N3.PRODUCT_BATCH_UPDATE:a?r.N3.EDITOR_CUSTOM_PAGE:s?r.N3.SEO_CUSTOM_DOMAIN:c?r.N3.PRODUCT_CUSTOM_DESCRIPTION_TEMPLATE:x?r.N3.PROMO_GIVEAWAY_SET:d?r.N3.PROMO_PROMO_SET:o?r.N3.MEMBER_EXPORT_CSV:p?window.location.pathname.includes("/advertisement/openai")?r.N3.DATA_OPENAI_PIXEL:window.location.href.includes("facebook")?r.N3.DATA_META_PIXEL:r.N3.DATA_GOOGLE_ANALYTICS:m?r.N3.GOOGLE_AD_FEED:h?r.N3.META_AD_FEED:g?r.N3.BLOG_ARTICLE:""}function d(e,t){if(!t||!e)return"";let n=s[`${t}_${e}`]||s[t];if(!n)return"";let l=(0,o.tL)(t,e),i=a[e]??"";return n=n.replace("{plan_type}",i),l&&(n=n.replace("{count}",String(l))),n}function p(e){let{feature:t,currentPlan:n,renewPlan:l}=e,i=(0,r.tn)(n,l);return(i===r.oS.DOWNGRADE||i===r.oS.NOT_COMPARABLE)&&!(0,o.OJ)(t,l)?.enabled}function m(e,t){return e!==i.Tp.INACTIVE&&e!==i.Tp.SUSPENDED||t!==i.GB.KYC_AUDIT_REJECTED}},59135:(e,t,n)=>{n.d(t,{E2:()=>g,Ps:()=>x,gP:()=>u,pS:()=>c,sj:()=>s,tW:()=>d,uR:()=>h,w0:()=>m,xS:()=>p});var l,i=n(91443),r=n(34582),o=n(74617),a=n(80915),s=((l={}).FREE_TRIAL_UPGRADE_ADVANCED="FREE_TRIAL_UPGRADE_ADVANCED",l.OFFICIAL_UPGRADE="OFFICIAL_UPGRADE",l.OFFICIAL_DOWNGRADE="OFFICIAL_DOWNGRADE",l.RESUBSCRIBE="RESUBSCRIBE",l.PERIOD_CHANGE_ONLY="PERIOD_CHANGE_ONLY",l.SELF_SERVICE_NOT_ALLOWED="SELF_SERVICE_NOT_ALLOWED",l);let c=(e,t,n)=>{if(!n&&!e.is_renewable)return"RESUBSCRIBE";let l=(0,a.tn)(e.plan_type,t.planType);return l===a.oS.NOT_COMPARABLE?"SELF_SERVICE_NOT_ALLOWED":t.planType===i.v0.ADVANCED&&e.type===i.RV.FREE_TRIAL?"FREE_TRIAL_UPGRADE_ADVANCED":e.plan_type!==t.planType?l===a.oS.UPGRADE?"OFFICIAL_UPGRADE":l===a.oS.DOWNGRADE?"OFFICIAL_DOWNGRADE":"SELF_SERVICE_NOT_ALLOWED":"PERIOD_CHANGE_ONLY"};function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,o.v)();return!t&&null!==e&&!(0,i.Pr)(e)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,o.v)();return!!t||(0,i.Pr)(e)}let p=(e,t)=>({FREE_TRIAL_UPGRADE_ADVANCED:{type:"FREE_TRIAL_UPGRADE_ADVANCED",showUpgradeSection:!0,upgradeSectionTitle:r.A.gettext("ç¾å¨åç´æ¹æ¡"),showPaymentInfo:!1,notices:[r.A.gettext("é²é Advanced æ¹æ¡ä¸æä¾å
費試ç¨ï¼åç´å¾åè½å°ç«å³çæã"),r.A.gettext("確å®åç´æ¹æ¡å¾å°ç´æ¥æ£æ¬¾ã")],buttonText:r.A.gettext("確å®åç´æ¹æ¡")},OFFICIAL_UPGRADE:{type:"OFFICIAL_UPGRADE",showUpgradeSection:!0,upgradeSectionTitle:r.A.gettext("åç´æ¹æ¡å¹å·®"),showPaymentInfo:!0,notices:[r.A.gettext("åç´å¾åè½å°ç«å³çæï¼è¨é±é±æä¸åå½±é¿ã"),r.A.gettext("åç´æ¹æ¡éä¾ç
§ç®å鱿å©é¤æéè£ä¸æ¹æ¡å¹å·®ï¼ç¢ºå®åç´æ¹æ¡å¾å°ç´æ¥æ£æ¬¾ã"),...t?[r.A.gettext("è¨é±é±æèª¿æ´ï¼éçç®åé±æçµæè³ä¸ä¸å仿¬¾æ¥æææ´æ°ã")]:[]],buttonText:r.A.gettext("確å®åç´æ¹æ¡")},OFFICIAL_DOWNGRADE:{type:"OFFICIAL_DOWNGRADE",showUpgradeSection:!1,upgradeSectionTitle:"",showPaymentInfo:!0,notices:[r.A.gettext("éç´æ¹æ¡å
æå¨ä¸ä¸åè¨é±é±æçæï¼å æ¤ä½ å¯ä»¥ç¹¼çºä½¿ç¨åå
çæ¹æ¡åè½è³è¨é±é±æçµæã")],buttonText:r.A.gettext("ç¢ºå®æ´æ°æ¹æ¡")},RESUBSCRIBE:{type:"RESUBSCRIBE",title:r.A.gettext("éæ°è¨é±æ¹æ¡"),showUpgradeSection:!0,upgradeSectionTitle:r.A.gettext("ç¾å¨è¨é±æ¹æ¡"),showPaymentInfo:!1,notices:[r.A.gettext("確å®è¨é±æ¹æ¡å¾å°ç´æ¥æ£æ¬¾ã")],buttonText:r.A.gettext("確å®è¨é±æ¹æ¡")},PERIOD_CHANGE_ONLY:{type:"PERIOD_CHANGE_ONLY",showUpgradeSection:!1,upgradeSectionTitle:"",showPaymentInfo:!0,notices:[r.A.gettext("è¨é±é±æèª¿æ´ï¼éçç®åé±æçµæè³ä¸ä¸å仿¬¾æ¥æææ´æ°ã")],buttonText:r.A.gettext("ç¢ºå®æ´æ°æ¹æ¡")},SELF_SERVICE_NOT_ALLOWED:{type:"SELF_SERVICE_NOT_ALLOWED",showUpgradeSection:!1,upgradeSectionTitle:"",showPaymentInfo:!1,notices:[r.A.gettext("æ¤æ¹æ¡èª¿æ´éç±æ¥ååå©èçï¼è«è¯ç¹«æåçæ¥ååéã")],buttonText:""}}
1)[e],m=e=>{if(!e||e.length<8)return e;let t=e.slice(0,4),n=e.slice(-4),l=e.length-8,i="*".repeat(l);return`${t}${i}${n}`},h=e=>{let t=new Date;return String(Math.ceil(Math.max(0,new Date(1e3*e-864e5).getTime()-t.getTime())/864e5))},g=e=>{if(e===i.C5.MONTHLY||e===i.C5.YEARLY)return e},u=e=>{let t=e??[];return{pricePromotion:t.find(e=>e.code&&"pricing"===e.type)??null,functionPromotions:t.filter(e=>"function"===e.type)}}},64133:(e,t,n)=>{n.d(t,{me:()=>T,S9:()=>g,y4:()=>b,hd:()=>w,px:()=>$,V8:()=>Z,AI:()=>V,HQ:()=>X});var l=n(54568),i=n(99680),r=n(7620),o=n(13446),a=n(34582);let s=e=>{let t,n,r=(0,i.c)(3),{onClick:s}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.A.gettext("å¥ç¨è¨é±åªæ "),r[0]=t):t=r[0],r[1]!==s?(n=(0,l.jsx)(o.Box,{children:(0,l.jsx)(o.Button,{variant:"plain",fontSize:"xs",color:"primary.040",px:"none !important",onClick:s,inline:!0,children:t})}),r[1]=s,r[2]=n):n=r[2],n},c=e=>{let t,n=(0,i.c)(2),{code:r}=e;return n[0]!==r?(t=(0,l.jsx)(o.Badge,{display:"inline-flex",alignItems:"center",px:"xs",py:"xxs",borderRadius:"lg",fontSize:"xs",fontWeight:"regular",textTransform:"none",color:"primary.040",backgroundColor:"primary.010",children:r}),n[0]=r,n[1]=t):t=n[1],t},x=e=>{let t,n,r,a,s,c,x,d,p=(0,i.c)(23),{title:m,placeholder:h,value:g,buttonText:u,error:A,isLoading:_,onChange:f,onSubmit:S}=e,T=void 0!==_&&_;p[0]===Symbol.for("react.memo_cache_sentinel")?(t={base:"s",md:"m"},p[0]=t):t=p[0],p[1]!==m?(n=m&&(0,l.jsx)(o.Text,{fontSize:"sm",fontWeight:"semibold",color:"neutral.120",children:m}),p[1]=m,p[2]=n):n=p[2],p[3]===Symbol.for("react.memo_cache_sentinel")?(r={base:"100%",md:"384px"},p[3]=r):r=p[3],p[4]!==A||p[5]!==f||p[6]!==S||p[7]!==h||p[8]!==g?(a=(0,l.jsx)(o.Box,{flex:"1",w:r,children:(0,l.jsx)(o.FormControlInput,{placeholder:h,defaultValue:g,onChange:f,enterEvent:S,useDebounce:!1,error:A})}),p[4]=A,p[5]=f,p[6]=S,p[7]=h,p[8]=g,p[9]=a):a=p[9],p[10]!==g?(s=g.trim(),p[10]=g,p[11]=s):s=p[11];let b=!s;return p[12]!==u||p[13]!==T||p[14]!==S||p[15]!==b?(c=(0,l.jsx)(o.Button,{variant:"primary",size:"lg",height:"50px",isDisabled:b,isLoading:T,onClick:S,inline:!0,children:u}),p[12]=u,p[13]=T,p[14]=S,p[15]=b,p[16]=c):c=p[16],p[17]!==a||p[18]!==c?(x=(0,l.jsxs)(o.Flex,{alignItems:"flex-start",gap:"s",children:[a,c]}),p[17]=a,p[18]=c,p[19]=x):x=p[19],p[20]!==n||p[21]!==x?(d=(0,l.jsxs)(o.Flex,{py:"m",px:t,flexDirection:"column",alignItems:"stretch",gap:"m",borderRadius:"lg",backgroundColor:"neutral.000",children:[n,x]}),p[20]=n,p[21]=x,p[22]=d):d=p[22],d};var d=n(81022),p=n(57614),m=n(16787);function h(e){return(e instanceof m.F9&&e.context.error_code===m.bo.DATA_NOT_FOUND||e instanceof m.yI&&e.context.error_code===m.bo.PARAMETER_ERROR)&&"string"==typeof e.context.error_msg?e.context.error_msg:a.A.gettext("系統å¿ç¢ä¸ï¼è«ç¨å¾åè©¦ä¸æ¬¡ã")}let g=e=>{let{period:t,planType:n,title:i,buttonText:o,onClaimed:s}=e,[c,m]=(0,r.useState)(""),[g,u]=(0,r.useState)(""),[A,_]=(0,r.useState)(!1),f=async()=>{if(c.trim()&&!A){_(!0),u("");try{let e=await (0,d.kc)(c.trim(),{period:t,plan_type:n});if(!e?.data)return void u(a.A.gettext("系統å¿ç¢ä¸ï¼è«ç¨å¾åè©¦ä¸æ¬¡ã"));await s(c.trim()),m("")}catch(e){u(h(e)),(0,p.e8)(e,{tags:{scope:"Client"}})}finally{_(!1)}}};return(0,l.jsx)(x,{title:i,placeholder:a.A.gettext("è«è¼¸å
¥åªæ 碼"),value:c,buttonText:o,error:g,isLoading:A,onChange:e=>{e!==c&&u(""),m(e)},onSubmit:f})};var u=n(40996);let A=e=>{let t,n,r,a,s,c,x,d,p,m,h=(0,i.c)(23),{before:g,after:A,highlight:_}=e;return h[0]!==g.label?(t=(0,l.jsx)(o.Text,{fontSize:"base",color:"neutral.070",textAlign:"center",children:g.label}),h[0]=g.label,h[1]=t):t=h[1],h[2]!==g.value?(n=(0,l.jsx)(o.Text,{fontSize:"md",fontWeight:"bold",color:"neutral.070",textAlign:"center",wordBreak:"break-word",children:g.value}),h[2]=g.value,h[3]=n):n=h[3],h[4]!==t||h[5]!==n?(r=(0,l.jsx)(o.Flex,{justifyContent:"flex-end",children:(0,l.jsxs)(o.Flex,{flexDirection:"column",flex:"1",minWidth:"0",gap:"xxs",children:[t,n]})}),h[4]=t,h[5]=n,h[6]=r):r=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(o.Box,{flex:"0 0 auto",color:"neutral.120",children:(0,l.jsx)(u.Q,{size:"20px",weight:"bold"})}),h[7]=a):a=h[7],h[8]!==A.label?(s=(0,l.jsx)(o.Text,{fontSize:"base",color:"neutral.120",textAlign:"center",children:A.label}),h[8]=A.label,h[9]=s):s=h[9],h[10]!==A.value?(c=(0,l.jsx)(o.Text,{fontSize:"md",fontWeight:"bold",color:"primary.040",textAlign:"center",wordBreak:"break-word",children:A.value}),h[10]=A.value,h[11]=c):c=h[11],h[12]!==s||h[13]!==c?(x=(0,l.jsx)(o.Flex,{justifyContent:"flex-start",children:(0,l.jsxs)(o.Flex,{flex:"1",minWidth:"0",flexDirection:"column",gap:"xxs",children:[s,c]})}),h[12]=s,h[13]=c,h[14]=x):x=h[14],h[15]!==r||h[16]!==x?(d=(0,l.jsxs)(o.Flex,{width:"100%",alignItems:"center",justifyContent:"center",gap:"m",children:[r,a,x]}),h[15]=r,h[16]=x,h[17]=d):d=h[17],h[18]!==_?(p=_&&(0,l.jsx)(o.Badge,{display:"inline-flex",alignItems:"center",px:"xs",py:"xxs",borderRadius:"16px",fontWeight:"semibold",textTransform:"none",color:"positive.060",backgroundColor:"positive.010",children:_}),h[18]=_,h[19]=p):p=h[19],h[20]!==d||h[21]!==p?(m=(0,l.jsxs)(o.Flex,{flexDirection:"column",alignItems:"center",gap:"s",p:"l",borderRadius:"lg",border:"1px solid",borderColor:"neutral.030",backgroundColor:"neutral.010",children:[d,p]}),h[20]=d,h[21]=p,h[22]=m):m=h[22],m},_=e=>{let t,n,r,s,c,x=(0,i.c)(9),{originalPriceText:d,discountText:p}=e;return x[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(o.Text,{fontSize:"base",color:"neutral.080",children:a.A.gettext("åå¹")}),x[0]=t):t=x[0],x[1]!==d?(n=(0,l.jsxs)(o.Flex,{gap:"xxs",children:[t,(0,l.jsx)(o.Text,{fontSize:"base",color:"neutral.080",textDecoration:"line-through",children:d})]}),x[1]=d,x[2]=n):n=x[2],x[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(o.Text,{fontSize:"xs",color:"primary.040",children:a.A.gettext("æ¹æ¡åªæ /天æ¸èå
¶ä»ææµ")}),x[3]=r):r=x[3],x[4]!==p?(s=(0,l.jsxs)(o.Flex,{justifyContent:"space-between",alignItems:"center",gap:"m",children:[r,(0,l.jsx)(o.Text,{fontSize:"xs",color:"secondary.030",whiteSpace:"nowrap",children:p})]}),x[4]=p,x[5]=s):s=x[5],x[6]!==n||x[7]!==s?(c=(0,l.jsxs)(l.Fragment,{children:[n,s]}),x[6]=n,x[7]=s,x[8]=c):c=x[8],c};var f=n(51100);let S=e=>
1{let t,n,r,s,c=(0,i.c)(7),{status:x}=e;switch(x){case"not_started":{let e;t="warning.060",n="warning.010",c[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.A.gettext("å°æªéå§"),c[0]=e):e=c[0],r=e;break}case"ended":{let e;t="neutral.080",n="neutral.020",c[1]===Symbol.for("react.memo_cache_sentinel")?(e=a.A.gettext("å·²çµæ"),c[1]=e):e=c[1],r=e;break}default:{let e;t="positive.060",n="positive.010",c[2]===Symbol.for("react.memo_cache_sentinel")?(e=a.A.gettext("é²è¡ä¸"),c[2]=e):e=c[2],r=e}}return c[3]!==n||c[4]!==t||c[5]!==r?(s=(0,l.jsx)(o.Badge,{display:"inline-flex",alignItems:"center",px:"xs",py:"xxs",borderRadius:"2xl",fontWeight:"semibold",textTransform:"none",color:t,backgroundColor:n,children:r}),c[3]=n,c[4]=t,c[5]=r,c[6]=s):s=c[6],s},T={ALL:"all",IN_PROGRESS:"in_progress",NOT_STARTED:"not_started",ENDED:"ended"},b=e=>{let t,n,r,s,x,d,p,m,h,g,u,A,_,T,b,y,j,C=(0,i.c)(37),{tabs:O,activeFilter:N,items:R,currentPage:I,totalPages:D,onFilterChange:P,onPageChange:v,onItemClick:M}=e;C[0]!==N||C[1]!==O?(t=O.indexOf(N),C[0]=N,C[1]=O,C[2]=t):t=C[2];let L=Math.max(t,0);C[3]!==P||C[4]!==O?(n=e=>{let t=O[e];t&&P(t)},C[3]=P,C[4]=O,C[5]=n):n=C[5];let w=n;if(C[6]!==O?(r=O.map(E),C[6]=O,C[7]=r):r=C[7],C[8]!==r?(s=(0,l.jsx)(o.TabList,{borderBottomWidth:"1px",borderBottomStyle:"solid",borderColor:"neutral.030 !important",children:r}),C[8]=r,C[9]=s):s=C[9],C[10]!==L||C[11]!==w||C[12]!==s?(x=(0,l.jsx)(o.Tabs,{index:L,onChange:w,children:s}),C[10]=L,C[11]=w,C[12]=s,C[13]=x):x=C[13],C[14]===Symbol.for("react.memo_cache_sentinel")?(d={textTransform:"none",letterSpacing:"normal",fontSize:"xs",color:"neutral.120"},C[14]=d):d=C[14],C[15]===Symbol.for("react.memo_cache_sentinel")?(p={"thead th":d,"tbody td":{borderBottom:"1px solid",borderColor:"neutral.030",fontSize:"xs",py:{base:"xl",md:"4xl"}},"tbody tr:hover":{backgroundColor:"dynamic.010 !important"}},C[15]=p):p=C[15],C[16]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(o.Th,{width:"180px",children:a.A.gettext("åªæ å稱")}),C[16]=m):m=C[16],C[17]===Symbol.for("react.memo_cache_sentinel")?(h=(0,l.jsx)(o.Th,{width:"180px",children:a.A.gettext("åªæ é¡å")}),C[17]=h):h=C[17],C[18]===Symbol.for("react.memo_cache_sentinel")?(g=(0,l.jsx)(o.Th,{width:"140px",children:a.A.gettext("åªæ 碼")}),C[18]=g):g=C[18],C[19]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(o.Th,{width:"120px",children:a.A.gettext("å
ææ¥æ")}),C[19]=u):u=C[19],C[20]===Symbol.for("react.memo_cache_sentinel")?(A=(0,l.jsx)(o.Th,{width:"230px",children:a.A.gettext("åªæ æé")}),C[20]=A):A=C[20],C[21]===Symbol.for("react.memo_cache_sentinel")?(_=(0,l.jsx)(o.Thead,{backgroundColor:"primary.010",children:(0,l.jsxs)(o.Tr,{children:[m,h,g,u,A,(0,l.jsx)(o.Th,{width:"150px",children:a.A.gettext("çæ
")})]})}),C[21]=_):_=C[21],C[22]!==R||C[23]!==M){let e;C[25]!==M?(e=(e,t)=>(0,l.jsxs)(o.Tr,{cursor:"pointer",_hover:{backgroundColor:"neutral.010"},onClick:()=>M(e),children:[(0,l.jsx)(o.Td,{children:(0,l.jsx)(o.Text,{whiteSpace:"normal",wordBreak:"break-word",noOfLines:2,children:e.remark})}),(0,l.jsx)(o.Td,{children:"pricing"===e.type?a.A.gettext("ææ£åªæ "):a.A.gettext("åè½åªæ ")}),(0,l.jsx)(o.Td,{children:(0,l.jsx)(c,{code:e.code})}),(0,l.jsx)(o.Td,{children:(0,f.i)(e.created_datetime)}),(0,l.jsxs)(o.Td,{whiteSpace:"nowrap",children:[(0,f.i)(e.start_datetime)," ~ ",(0,f.i)(e.end_datetime)]}),(0,l.jsx)(o.Td,{children:(0,l.jsx)(S,{status:e.status})})]},`${e.code}-${e.type}-${t}`),C[25]=M,C[26]=e):e=C[26],T=R.map(e),C[22]=R,C[23]=M,C[24]=T}else T=C[24];return C[27]!==T?(b=(0,l.jsx)(o.TableContainer,{backgroundColor:"neutral.000",children:(0,l.jsxs)(o.Table,{sx:p,children:[_,(0,l.jsx)(o.Tbody,{children:T})]})}),C[27]=T,C[28]=b):b=C[28],C[29]!==I||C[30]!==v||C[31]!==D?(y=(0,l.jsx)(o.Box,{children:(0,l.jsx)(o.Pagination,{currentPage:I,totalPages:D,onPageChange:v})}),C[29]=I,C[30]=v,C[31]=D,C[32]=y):y=C[32],C[33]!==b||C[34]!==y||C[35]!==x?(j=(0,l.jsxs)(o.Flex,{flexDirection:"column",alignItems:"stretch",gap:"m",children:[x,b,y]}),C[33]=b,C[34]=y,C[35]=x,C[36]=j):j=C[36],j};function E(e){return(0,l.jsx)(o.Tab,{children:function(e){switch(e){case T.IN_PROGRESS:return a.A.gettext("é²è¡ä¸");case T.NOT_STARTED:return a.A.gettext("å°æªéå§");case T.ENDED:return a.A.gettext("å·²çµæ");default:return a.A.gettext("å
¨é¨")}}(e)},e)}var y=n(42928),j=n(3699);let C=e=>{let t,n,s,c,x,d=(0,i.c)(11),{offers:p,onOfferClick:m}=e,[h,g]=(0,r.useState)(!1);return 0===p.length?null:(d[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>g(O),d[0]=t):t=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(o.Text,{fontSize:"xs",color:"primary.040",children:a.A.gettext("å
¶ä»å·²å¥ç¨æ¹æ¡åªæ ")}),d[1]=n):n=d[1],d[2]!==h?(s=(0,l.jsx)(o.Button,{variant:"plain",fontSize:"xs",fontWeight:"regular",color:"primary.040",p:"none !important",onClick:t,inline:!0,children:(0,l.jsxs)(o.Flex,{alignItems:"center",gap:"xxs",children:[n,h?(0,l.jsx)(y.Z,{size:"12px"}):(0,l.jsx)(j.a,{size:"12px"})]})}),d[2]=h,d[3]=s):s=d[3],d[4]!==h||d[5]!==p||d[6]!==m?(c=h&&(0,l.jsx)(o.Flex,{flexDirection:"column",alignItems:"flex-start",ga
1p:"xxs",pl:"s",children:p.map((e,t)=>e.code?(0,l.jsx)(o.Button,{variant:"plain",fontSize:"xs",fontWeight:"regular",color:"primary.040",p:"none !important",onClick:()=>m(e.code),inline:!0,children:e.name},`${e.name}-${t}`):(0,l.jsx)(o.Text,{fontSize:"xs",color:"neutral.100",children:e.name},`${e.name}-${t}`))}),d[4]=h,d[5]=p,d[6]=m,d[7]=c):c=d[7],d[8]!==s||d[9]!==c?(x=(0,l.jsxs)(o.Flex,{flexDirection:"column",alignItems:"flex-start",gap:"xs",children:[s,c]}),d[8]=s,d[9]=c,d[10]=x):x=d[10],x)};function O(e){return!e}var N=n(91443),R=n(46038),I=n(16086),D=n(72007),P=n(35794);let v=e=>{let t,n,r,s,c,x,d,p,m,h,g,A=(0,i.c)(18),{featureName:_,before:f,after:S}=e;return A[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(I.R,{size:"16px",weight:"fill"}),A[0]=t):t=A[0],A[1]!==_?(n=(0,l.jsxs)(o.Flex,{alignItems:"center",gap:"xs",color:"primary.040",children:[t,(0,l.jsx)(o.Text,{fontSize:"xs",fontWeight:"bold",color:"primary.040",children:_})]}),A[1]=_,A[2]=n):n=A[2],A[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(D.c,{size:"20px"}),A[3]=r):r=A[3],A[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(o.Text,{fontSize:"base",color:"neutral.070",children:a.A.gettext("å¥ç¨å")}),A[4]=s):s=A[4],A[5]!==f?(c=(0,l.jsx)(o.Flex,{flex:"1",justifyContent:"flex-end",children:(0,l.jsxs)(o.Flex,{flex:"1",minWidth:"0",flexDirection:"column",alignItems:"center",gap:"xxs",p:"l",borderRadius:"lg",border:"1px solid",borderColor:"neutral.030",backgroundColor:"neutral.010",color:"neutral.070",children:[r,s,(0,l.jsx)(o.Text,{fontSize:"xs",color:"neutral.070",textAlign:"center",wordBreak:"break-word",children:f})]})}),A[5]=f,A[6]=c):c=A[6],A[7]===Symbol.for("react.memo_cache_sentinel")?(x=(0,l.jsx)(o.Flex,{flex:"0 0 auto",alignItems:"center",color:"neutral.120",children:(0,l.jsx)(u.Q,{size:"20px",weight:"bold"})}),A[7]=x):x=A[7],A[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,l.jsx)(P.e,{size:"20px",weight:"bold"}),A[8]=d):d=A[8],A[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(o.Text,{fontSize:"base",color:"primary.040",children:a.A.gettext("å¥ç¨å¾")}),A[9]=p):p=A[9],A[10]!==S?(m=(0,l.jsx)(o.Flex,{flex:"1",justifyContent:"flex-start",children:(0,l.jsxs)(o.Flex,{flex:"1",minWidth:"0",flexDirection:"column",alignItems:"center",gap:"xxs",p:"l",borderRadius:"lg",border:"1px solid",borderColor:"primary.040",backgroundColor:"neutral.010",color:"primary.040",children:[d,p,(0,l.jsx)(o.Text,{fontSize:"xs",fontWeight:"semibold",color:"primary.040",textAlign:"center",wordBreak:"break-word",children:S})]})}),A[10]=S,A[11]=m):m=A[11],A[12]!==c||A[13]!==m?(h=(0,l.jsxs)(o.Flex,{alignItems:"stretch",gap:"m",children:[c,x,m]}),A[12]=c,A[13]=m,A[14]=h):h=A[14],A[15]!==n||A[16]!==h?(g=(0,l.jsxs)(o.Flex,{flexDirection:"column",alignItems:"stretch",gap:"s",children:[n,h]}),A[15]=n,A[16]=h,A[17]=g):g=A[17],g},M=[N.C5.YEARLY,N.C5.MONTHLY],L=e=>{let t,n,s,c,x,d,p,m,h,g=(0,i.c)(23),{item:u}=e,[_,f]=(0,r.useState)(),S=_&&u.bodies[_]?_:u.defaultPeriod;g[0]!==u.bodies?(t=e=>{let t=M[e];t&&u.bodies[t]&&f(t)},g[0]=u.bodies,g[1]=t):t=g[1];let T=t,b=u.bodies[S];return g[2]!==u.title?(n=u.title&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.Flex,{alignItems:"center",gap:"xs",color:"neutral.070",children:[(0,l.jsx)(R.R,{size:"16px",weight:"bold"}),(0,l.jsx)(o.Text,{fontSize:"xs",color:"neutral.100",children:u.title})]}),(0,l.jsx)(o.Divider,{borderColor:"neutral.030"})]}),g[2]=u.title,g[3]=n):n=g[3],g[4]!==S?(s=M.indexOf(S),g[4]=S,g[5]=s):s=g[5],g[6]!==u.bodies?(c=M.map(e=>(0,l.jsx)(o.Tab,{disabled:!u.bodies[e],children:e===N.C5.YEARLY?a.A.gettext("å¹´è¨é±"):a.A.gettext("æè¨é±")},e)),g[6]=u.bodies,g[7]=c):c=g[7],g[8]!==c?(x=(0,l.jsx)(o.TabList,{justifyContent:"center",borderBottomWidth:"0",children:c}),g[8]=c,g[9]=x):x=g[9],g[10]!==T||g[11]!==s||g[12]!==x?(d=(0,l.jsx)(o.Tabs,{index:s,onChange:T,children:x}),g[10]=T,g[11]=s,g[12]=x,g[13]=d):d=g[13],g[14]!==b?(p=b?.layout==="comparison"&&(0,l.jsx)(A,{before:b.before,after:b.after,highlight:b.highlight}),g[14]=b,g[15]=p):p=g[15],g[16]!==b?(m=b?.layout==="unlock"&&(0,l.jsx)(v,{featureName:b.featureName,before:b.before,after:b.after}),g[16]=b,g[17]=m):m=g[17],g[18]!==n||g[19]!==d||g[20]!==p||g[21]!==m?(h=(0,l.jsxs)(o.Flex,{flexDirection:"column",alignItems:"stretch",gap:"m",children:[n,d,p,m]}),g[18]=n,g[19]=d,g[20]=p,g[21]=m,g[22]=h):h=g[22],h},w=e=>{let t,n,r,s,x,d,p,m,h,g,u,A,_,f,S,T,b,E,y,j,C,O,N=(0,i.c)(57),{isOpen:R,code:I,campaignName:D,limitText:P,planTabs:v,activePlanType:M,items:L,isClaimed:w,isCancelable:k,isSubmitting:U,actionError:G,onPlanTabChange:z,onCancel:W,onBack:Y,onClose:H}=e,V=void 0!==U&&U,$=w&&k;if(N[0]!==M||N[1]!==v){let e;N[3]!==M?(e=e=>e.planType===M,N[3]=M,N[4]=e):e=N[4],t=v.findIndex(e),N[0]=M,N[1]=v,N[2]=t}else t=N[2];let X=Math.max(t,0);N[5]!==z||N[6]!==v?(n=e=>{let t=v[e];t&&!t.isDisabled&&z(t.planType)},N[5]=z,N[6]=v,N[7]=n):n=N[7];let Z=n;return N[8]===Symbol.for("react.memo_cache_sentinel")?(r={maxW:"504px",width:"100%",py:"m"},N[8]=r):r=N[8],N[9]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(o.Text,{fontSize:"sm",fontWeight:"bold",children:a.A.gettext("åªæ 碼")}
1),N[9]=s):s=N[9],N[10]!==H?(x=(0,l.jsx)(o.Modal.Header,{px:"xl",children:(0,l.jsxs)(o.Flex,{justifyContent:"space-between",alignItems:"center",gap:"m",children:[s,(0,l.jsx)(o.CloseButton,{onClick:H})]})}),N[10]=H,N[11]=x):x=N[11],N[12]!==I?(d=(0,l.jsx)(o.Flex,{children:(0,l.jsx)(c,{code:I})}),N[12]=I,N[13]=d):d=N[13],N[14]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(o.Divider,{borderColor:"neutral.030"}),N[14]=p):p=N[14],N[15]!==D?(m=(0,l.jsx)(o.Text,{fontSize:"sm",fontWeight:"bold",mt:"xxs",children:D}),N[15]=D,N[16]=m):m=N[16],N[17]!==P?(h=P&&(0,l.jsx)(o.Text,{fontSize:"xs",color:"neutral.080",children:P}),N[17]=P,N[18]=h):h=N[18],N[19]!==d||N[20]!==m||N[21]!==h?(g=(0,l.jsxs)(o.Flex,{flexDirection:"column",alignItems:"stretch",gap:"10px",children:[d,p,m,h]}),N[19]=d,N[20]=m,N[21]=h,N[22]=g):g=N[22],N[23]!==v?(u=v.map(B),N[23]=v,N[24]=u):u=N[24],N[25]!==u?(A=(0,l.jsx)(o.TabList,{borderBottomWidth:"1px",borderBottomStyle:"solid",borderColor:"neutral.030 !important",children:u}),N[25]=u,N[26]=A):A=N[26],N[27]!==X||N[28]!==Z||N[29]!==A?(_=(0,l.jsx)(o.Tabs,{mt:"l",index:X,onChange:Z,children:A}),N[27]=X,N[28]=Z,N[29]=A,N[30]=_):_=N[30],N[31]!==L.length?(f=0===L.length&&(0,l.jsx)(o.Text,{mt:"l",fontSize:"xs",color:"neutral.080",children:a.A.gettext("éå¼µåªæ 碼å°ç®åçæ¹æ¡æ²æå¯å¥ç¨çææï¼ææ¹æ¡å¾å¯è½é©ç¨ã")}),N[31]=L.length,N[32]=f):f=N[32],N[33]!==L?(S=L.map(F),N[33]=L,N[34]=S):S=N[34],N[35]!==S?(T=(0,l.jsx)(o.Flex,{mt:"l",flexDirection:"column",alignItems:"stretch",gap:"l",children:S}),N[35]=S,N[36]=T):T=N[36],N[37]===Symbol.for("react.memo_cache_sentinel")?(b=(0,l.jsx)(o.Text,{fontSize:"xs",color:"neutral.060",children:a.A.gettext("é©ç¨èªªæ")}),N[37]=b):b=N[37],N[38]===Symbol.for("react.memo_cache_sentinel")?(E=(0,l.jsx)(o.ListItem,{fontSize:"xs",color:"neutral.090",children:a.A.gettext("è²»ç¨ææµå°æ¼ä¸ä¸æè¨é±æ¹æ¡çææèªåå¥ç¨ï¼ææ£ä¸å¯ä½µç¨çå ")}),N[38]=E):E=N[38],N[39]===Symbol.for("react.memo_cache_sentinel")?(y=(0,l.jsxs)(o.Flex,{mt:"m",flexDirection:"column",alignItems:"stretch",gap:"xs",children:[b,(0,l.jsxs)(o.UnorderedList,{children:[E,(0,l.jsx)(o.ListItem,{fontSize:"xs",color:"neutral.090",children:a.A.gettext("åè½è´éæ¼å¥ç¨æç«å³çæï¼å¯çå å併使ç¨ï¼å¦æéè¤é
ç®åæå¤§çµæ¸")})]})]}),N[39]=y):y=N[39],N[40]!==g||N[41]!==_||N[42]!==f||N[43]!==T?(j=(0,l.jsxs)(o.Modal.Body,{px:"xl",pt:"s",maxH:"60vh",overflowY:"auto",children:[g,_,f,T,y]}),N[40]=g,N[41]=_,N[42]=f,N[43]=T,N[44]=j):j=N[44],N[45]!==G||N[46]!==$||N[47]!==V||N[48]!==Y||N[49]!==W?(C=(Y||$)&&(0,l.jsx)(o.Modal.Footer,{px:"xl",pt:"l",children:(0,l.jsxs)(o.Flex,{flexDirection:"column",alignItems:"flex-end",gap:"xs",width:"100%",children:[G&&(0,l.jsx)(o.Text,{fontSize:"base",color:"negative.040",children:G}),(0,l.jsxs)(o.Flex,{gap:"s",alignItems:"center",children:[Y&&(0,l.jsx)(o.Button,{variant:"secondary",onClick:Y,inline:!0,children:a.A.gettext("åå°ä¸ä¸æ¥")}),$&&(0,l.jsx)(o.Button,{variant:"primary",isLoading:V,onClick:W,inline:!0,children:a.A.gettext("åæ¶å¥ç¨")})]})]})}),N[45]=G,N[46]=$,N[47]=V,N[48]=Y,N[49]=W,N[50]=C):C=N[50],N[51]!==R||N[52]!==H||N[53]!==j||N[54]!==C||N[55]!==x?(O=(0,l.jsxs)(o.Modal,{isOpen:R,onClose:H,dialogProps:r,children:[x,j,C]}),N[51]=R,N[52]=H,N[53]=j,N[54]=C,N[55]=x,N[56]=O):O=N[56],O};function B(e){return(0,l.jsx)(o.Tab,{isDisabled:e.isDisabled,opacity:e.isDisabled?.5:1,children:e.isCurrent?`${(0,N.Iq)(e.planType)} ${a.A.gettext("(ç®å)")}`:(0,N.Iq)(e.planType)},e.planType)}function F(e){return(0,l.jsx)(L,{item:e},e.key)}var k=n(20979);function U(e,t){return null===e?a.A.gettext("ç¡ä¸é"):"string"==typeof e?e:t?`${e} ${t}`:String(e)}let G=[N.C5.YEARLY,N.C5.MONTHLY];function z(e,t){return e[t]?t:G.find(t=>e[t])}function W(e){return!!e.price||e.functional.length>0}async function Y(e,t){try{let n=await (0,d.oo)(e,{period:t});return n?.data??null}catch(n){return n instanceof m.F9&&n.context.error_code===m.bo.DATA_NOT_FOUND||(0,p.e8)(n,{tags:{scope:"Client"},extra:{code:e,period:t}}),null}}async function H(e){let[t,n]=await Promise.all([Y(e,N.C5.YEARLY),Y(e,N.C5.MONTHLY)]),l={};return t&&(l[N.C5.YEARLY]=t),n&&(l[N.C5.MONTHLY]=n),l}function V(e){var t;let{functionPeriod:n,pricePeriod:l,currentPlanType:i,defaultPlanType:o,onChanged:s}=e,c=o??i,[x,m]=(0,r.useState)({}),[g,u]=(0,r.useState)(),[A,_]=(0,r.useState)(!1),[f,S]=(0,r.useState)(!1),[T,b]=(0,r.useState)(!1),[E,y]=(0,r.useState)(""),j=(0,r.useCallback)(async e=>{S(!0),y("");try{let t=await H(e),n=Object.values(t);if(0===n.length)return!1;m(t);let l=n.flatMap(e=>e.plans).filter(W);return u(l.find(e=>e.plan_type===c)?.plan_type??l[0]?.plan_type),_(!0),!0}catch(t){return(0,p.e8)(t,{tags:{scope:"Client"},extra:{code:e}}),!1}finally{S(!1)}},[c]),C=(0,r.useCallback)(()=>{_(!1)},[]),O=x[N.C5.YEARLY]??x[N.C5.MONTHLY]??null,R=(0,r.useCallback)(async()=>
1{if(O){b(!0),y("");try{let e=await (0,d.Bd)(O.code);if(!e?.data)return void y(a.A.gettext("系統å¿ç¢ä¸ï¼è«ç¨å¾åè©¦ä¸æ¬¡ã"));_(!1),s?.()}catch(e){y(h(e)),(0,p.e8)(e,{tags:{scope:"Client"},extra:{code:O.code}})}finally{b(!1)}}},[O,s]),I=[l,N.C5.YEARLY,N.C5.MONTHLY].find(e=>!!(e&&x[e])),D=I?(t=x[I],null!==t.period_limit?(I===N.C5.YEARLY?a.A.gettext("ä½¿ç¨ææ¸éå¶ï¼{count} å¹´"):a.A.gettext("ä½¿ç¨ææ¸éå¶ï¼{count} åæ")).replace("{count}",String(t.period_limit)):null!==t.usage_limit?a.A.gettext("ä½¿ç¨æ¬¡æ¸éå¶ï¼{count} 次").replace("{count}",String(t.usage_limit)):void 0):void 0,P=[...new Set(Object.values(x).flatMap(e=>e.plans.map(e=>e.plan_type)))].map(e=>({planType:e,isDisabled:!Object.values(x).some(t=>t.plans.some(t=>t.plan_type===e&&W(t))),isCurrent:e===i})),v=function(e){let{plans:t,preferredPricePeriod:n,preferredFunctionPeriod:l}=e,i=[],r={};G.forEach(e=>{let n=t[e]?.price;if(!n)return;let l=function(e,t){let{original_price:n,promo_price:l}=e;if(!n||!l)return null;let i=t===N.C5.YEARLY?a.A.gettext("/å¹´"):a.A.gettext("/æ"),r=(0,k.pI)(n.amount)-(0,k.pI)(l.amount);return{layout:"comparison",before:{label:`${a.A.gettext("åå¹")}${i}`,value:n.value},after:{label:`${a.A.gettext("æå¾")}${i}`,value:l.value},highlight:r>0?a.A.gettext("æ¯æç {amount}").replace("{amount}",(0,k.Xi)(r,null,n.currency)):void 0}}(n,e);l&&(r[e]=l)});let o=z(r,n);o&&i.push({key:"price",defaultPeriod:o,bodies:r});let s=[],c=new Map,x=new Map;return G.forEach(e=>{t[e]?.functional?.forEach(t=>{var n;let l="boolean"===(n=t).value_type?n.original.enabled||!n.promo.enabled?null:{layout:"unlock",featureName:n.title,before:a.A.gettext("䏿¯æ´"),after:a.A.gettext("已解é")}:{layout:"comparison",before:{label:a.A.gettext("åä¸é"),value:U(n.original.limit,n.unit)},after:{label:a.A.gettext("å¥ç¨å¾"),value:U(n.promo.limit,n.unit)},highlight:function(e){let{original:t,promo:n,unit:l}=e;if("number"!=typeof t.limit||"number"!=typeof n.limit)return;let i=n.limit-t.limit;if(!(i<=0))return a.A.gettext("å¢å {delta}").replace("{delta}",l?`${i} ${l}`:String(i))}(n)};if(!l)return;x.has(t.type)||(x.set(t.type,{}),c.set(t.type,t.title),s.push(t.type));let i=x.get(t.type);i&&(i[e]=l)})}),s.forEach(e=>{let t=x.get(e)??{},n=z(t,l);n&&i.push({key:e,title:c.get(e),defaultPeriod:n,bodies:t})}),i}({plans:{[N.C5.YEARLY]:x[N.C5.YEARLY]?.plans.find(e=>e.plan_type===g),[N.C5.MONTHLY]:x[N.C5.MONTHLY]?.plans.find(e=>e.plan_type===g)},preferredPricePeriod:l??n??N.C5.MONTHLY,preferredFunctionPeriod:n??l??N.C5.MONTHLY});return{isOpen:A,isLoading:f,isSubmitting:T,isClaimed:O?.is_claimed??!1,isCancelable:O?.is_cancelable??!1,actionError:E,code:O?.code??"",campaignName:O?.remark??"",limitText:D,planTabs:P,activePlanType:g,items:v,open:j,close:C,selectPlanTab:u,cancel:R}}let $=e=>{let t,n,r,s,c,x,d,p=(0,i.c)(29),{promo:m}=e,{profitModal:h}=m,u=m.isApplyOpen,A=m.closeApply;p[0]===Symbol.for("react.memo_cache_sentinel")?(t={maxW:"504px",width:"100%"},p[0]=t):t=p[0],p[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(o.Modal.Header,{px:"xl",pt:"m",children:(0,l.jsx)(o.Text,{fontSize:"sm",fontWeight:"bold",children:a.A.gettext("å¥ç¨è¨é±åªæ ")})}),p[1]=n):n=p[1];let _=m.claimPeriod,f=m.claimPlanType;return p[2]===Symbol.for("react.memo_cache_sentinel")?(r=a.A.gettext("å¥ç¨"),p[2]=r):r=p[2],p[3]!==m.claimPeriod||p[4]!==m.claimPlanType||p[5]!==m.handleClaimed?(s=(0,l.jsx)(o.Modal.Body,{px:"xs",children:(0,l.jsx)(g,{period:_,planType:f,buttonText:r,onClaimed:m.handleClaimed})}),p[3]=m.claimPeriod,p[4]=m.claimPlanType,p[5]=m.handleClaimed,p[6]=s):s=p[6],p[7]!==m.closeApply||p[8]!==m.isApplyOpen||p[9]!==s?(c=(0,l.jsxs)(o.Modal,{isOpen:u,onClose:A,dialogProps:t,children:[n,s]}),p[7]=m.closeApply,p[8]=m.isApplyOpen,p[9]=s,p[10]=c):c=p[10],p[11]!==h.actionError||p[12]!==h.activePlanType||p[13]!==h.campaignName||p[14]!==h.cancel||p[15]!==h.close||p[16]!==h.code||p[17]!==h.isCancelable||p[18]!==h.isClaimed||p[19]!==h.isOpen||p[20]!==h.isSubmitting||p[21]!==h.items||p[22]!==h.limitText||p[23]!==h.planTabs||p[24]!==h.selectPlanTab?(x=h.isOpen&&(0,l.jsx)(w,{isOpen:h.isOpen,code:h.c
1ode,campaignName:h.campaignName,limitText:h.limitText,planTabs:h.planTabs,activePlanType:h.activePlanType,items:h.items,isClaimed:h.isClaimed,isCancelable:h.isCancelable,isSubmitting:h.isSubmitting,actionError:h.actionError,onPlanTabChange:h.selectPlanTab,onCancel:h.cancel,onBack:h.close,onClose:h.close}),p[11]=h.actionError,p[12]=h.activePlanType,p[13]=h.campaignName,p[14]=h.cancel,p[15]=h.close,p[16]=h.code,p[17]=h.isCancelable,p[18]=h.isClaimed,p[19]=h.isOpen,p[20]=h.isSubmitting,p[21]=h.items,p[22]=h.limitText,p[23]=h.planTabs,p[24]=h.selectPlanTab,p[25]=x):x=p[25],p[26]!==x||p[27]!==c?(d=(0,l.jsxs)(l.Fragment,{children:[c,x]}),p[26]=x,p[27]=c,p[28]=d):d=p[28],d};function X(e){let t,n,l,s,c,x=(0,i.c)(19),{claimPeriod:d,claimPlanType:p,functionPeriod:m,pricePeriod:h,currentPlanType:g,targetPlanType:u,onChanged:A}=e,_=(0,o.useToast)(),[f,S]=(0,r.useState)(!1);x[0]!==g||x[1]!==m||x[2]!==A||x[3]!==h||x[4]!==u?(t={functionPeriod:m,pricePeriod:h,currentPlanType:g,defaultPlanType:u,onChanged:A},x[0]=g,x[1]=m,x[2]=A,x[3]=h,x[4]=u,x[5]=t):t=x[5];let T=V(t);x[6]===Symbol.for("react.memo_cache_sentinel")?(n=()=>S(!1),x[6]=n):n=x[6];let b=n;x[7]!==A||x[8]!==T||x[9]!==_?(l=async e=>{let t=await T.open(e);A(),S(!1),t||_({title:a.A.gettext("åªæ 碼已å¥ç¨ï¼ä½ç¡æ³è¼å ¥åªæ å §å®¹"),status:"warning"})},x[7]=A,x[8]=T,x[9]=_,x[10]=l):l=x[10];let E=l,y=d??"",j=f||T.isOpen;return x[11]===Symbol.for("react.memo_cache_sentinel")?(s=()=>S(!0),x[11]=s):s=x[11],x[12]!==p||x[13]!==E||x[14]!==f||x[15]!==T||x[16]!==y||x[17]!==j?(c={claimPeriod:y,claimPlanType:p,isOverlayOpen:j,isApplyOpen:f,openApply:s,closeApply:b,handleClaimed:E,profitModal:T,openProfit:T.open},x[12]=p,x[13]=E,x[14]=f,x[15]=T,x[16]=y,x[17]=j,x[18]=c):c=x[18],c}let Z=e=>{let t,n,r,a,c,x,d=(0,i.c)(20),{promo:p,pricePromotion:m,originalPriceText:h,discountText:g,showAmounts:u,otherOffers:A}=e;d[0]!==A?(t=void 0===A?[]:A,d[0]=A,d[1]=t):t=d[1];let f=t;return d[2]!==g||d[3]!==h||d[4]!==m||d[5]!==u?(n=u&&m&&(0,l.jsx)(_,{originalPriceText:h,discountText:g}),d[2]=g,d[3]=h,d[4]=m,d[5]=u,d[6]=n):n=d[6],d[7]!==m||d[8]!==p?(r=m&&(0,l.jsx)(o.Flex,{children:(0,l.jsx)(o.Button,{variant:"plain",fontSize:"xs",fontWeight:"regular",color:"primary.040",p:"none !important",onClick:()=>{m.code&&p.openProfit(m.code)},inline:!0,children:m.remark||m.code||""})}),d[7]=m,d[8]=p,d[9]=r):r=d[9],d[10]!==f||d[11]!==p.openProfit?(a=(0,l.jsx)(C,{offers:f,onOfferClick:p.openProfit}),d[10]=f,d[11]=p.openProfit,d[12]=a):a=d[12],d[13]!==p.openApply?(c=(0,l.jsx)(s,{onClick:p.openApply}),d[13]=p.openApply,d[14]=c):c=d[14],d[15]!==n||d[16]!==r||d[17]!==a||d[18]!==c?(x=(0,l.jsxs)(o.Flex,{flexDirection:"column",alignItems:"stretch",gap:"s",w:"full",children:[n,r,a,c]}),d[15]=n,d[16]=r,d[17]=a,d[18]=c,d[19]=x):x=d[19],x}},71929:(e,t,n)=>{n.d(t,{Si:()=>c,jA:()=>s,q7:()=>x,sp:()=>a,vl:()=>o});var l=n(54568),i=n(99680),r=n(43158);let o=(0,r.JN)((0,r.no)("/static/panel-upgrade-overlay-ribbon-yellow_v1.avif")),a=(0,r.JN)((0,r.no)("/static/panel-upgrade-overlay-ribbon-red_v1.avif")),s=(0,r.JN)((0,r.no)("/static/panel-upgrade-overlay-ribbon-salmon_v1.avif")),c=(0,r.JN)((0,r.no)("/static/panel-upgrade-overlay-ribbon-green_v1.avif")),x=()=>{let e,t,n,r,o,a,s,c,x,d,p,m,h,g=(0,i.c)(13);return g[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("path",{d:"M139.11 21.32h-20.5v17.5h20.5v-17.5Z",fill:"#FACB4D"}),g[0]=e):e=g[0],g[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("path",{d:"M139.11 38.82h-20.5v-17.5l20.5 17.5Z",fill:"#FACB4D",style:{mixBlendMode:"multiply",opacity:"0.29"}}),n=(0,l.jsx)("path",{d:"M5.42 6.23s9.08 6.14 10.8 32.57",stroke:"#0A7C3E",strokeWidth:".99",strokeMiterlimit:"10"}),r=(0,l.jsx)("path",{d:"M8.59 10.2c-1.22 1.1-2.92 1.14-3.88.1L1.68 7l5-4.5 2.6 3.67c.82 1.16.52 2.93-.7 4.02Z",fill:"#FF81B3"}),o=(0,l.jsx)("path",{d:"M3.88 6.76c1.15 0 2.08-.98 2.08-2.2 0-1.2-.93-2.18-2.08-2.18S1.8 3.35 1.8 4.56s.93 2.2 2.08 2.2Z",fill:"#FF81B3"}),a=(0,l.jsx)("path",{d:"M2.5 8.62c1.15 0 2.08-.99 2.08-2.2 0-1.21-.93-2.2-2.08-2.2S.42 5.22.42 6.43c0 1.21.93 2.2 2.08 2.2ZM6.17 5.31c1.14 0 2.07-.98 2.07-2.2 0-1.2-.93-2.19-2.07-2.19-1.15 0-2.08.99-2.08 2.2 0 1.2.93 2.2 2.08 2.2Z",fill:"#FF81B3"}),s=(0,l.jsx)("path",{d:"M10.38 16.87s-3.23-2.34-7.29-1.76c0 0 1.47 2.44 7.3 1.76Z",fill:"#0A9450",stroke:"#0A9450",strokeWidth:"1.52",strokeMiterlimit:"10"}),c=(0,l.jsx)("path",{d:"M23.8 21.32H5.1v17.5h18.7v-17.5Z",fill:"#FA8986"}),g[1]=t,g[2]=n,g[3]=r,g[4]=o,g[5]=a,g[6]=s,g[7]=c):(t=g[1],n=g[2],r=g[3],o=g[4],a=g[5],s=g[6],c=g[7]),g[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)("path",{d:"M23.8 38.82H5.1v-17.5l18.7 17.5Z",fill:"#FA8986",style:{mixBlendMode:"multiply",opacity:"0.29"}}),m=(0,l.jsx)("path",{d:"M98.66 31.88c0 3.32-1.86 5.02-2.95 6.95h19.15c-.9-1.65-2.47-3.2-3.15-6.6-1.07-5.44 3.38-5.92 3.38-11.48 0-5.56-3.41-5.56-3.41-11.12 0-3.46 2-5.15 3.07-7.19H95.58c1.07 2.03 3.08 3.73 3.08 7.19 0 5.56-3.41 5.56-3.41 11.12s3.4 5.56 3.4 11.13Z",fill:"#0A9450"}),x=(0,l.jsx)("path",{d:"M42.5 8.27S41.45.03 38.45 1.6c-3 1.59 4.07 6.66 4.07 6.66ZM42.53 8.27S43.6.03 46.6 1.6c3 1.59-4.07 6.66-4.07 6.66Z",stroke:"#053252",strokeWidth:"1.22",strokeMiterlimit:"10"}),d=(0,l.jsx)("path",{d:"M57.5 7.51H27.8v31.34h29.7V7.5Z",fill:"#41ABC8"}),g[8]=x,g[9]=d,g[10]=p,g[11]=m):(x=g[8],d=g[9],p=g[10],m=g[11]),g[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"140",height:"39",fill:"none",children:[e,t,n,r,o,a,s,c,p,m,x,d,(0,l.jsx)("path",{d:"M42.53 7.51H27.8v31.34h14.73V7.5Z",fill:"#41ABC8",style:{mixBlendMode:"multiply",opacity:"0.25"}}),(0,l.jsx)("path",{d:"M83.75 11.37H68.71L61.2 25.12l7.52 13.74h15.04l7.53-13.74-7.53-13.75Z",fill:"#FFB72D"}),(0,l.jsx)("path",{d:"M61.29 25.12h29.9M76.23 11.37v27.5M80.72 30.07l-7.2-8.14c-.88-1-2.38.35-1.54 1.4.64.78 1.84 1.5 4.04 1.88",stroke:"#fff",strokeWidth:".97",strokeMiterlimit:"10"}),(0,l.jsx)("path",{d:"m71.73 30.07 7.2-8.14c.88-1 2.38.35 1.54 1.4-.63.78-1.84 1.5-4.04 1.88",stroke:"#fff",strokeWidth:".97",strokeMiterlimit:"10"})]}),g[12]=h):h=g[12],h}},76884:(e,t,n)=>{n.d(t,{O:()=>p});var l=n(99680),i=n(7620),r=n(91443),o=n(9827),a=n(81022),s=n(57614);let c=new Map;async function x(e,t){let n=await (0,a.Rt)({plan_group:e,period:t}),l=n?.data;if(!l||0===l.length)throw Error(`plan catalog response has no plan for ${e}/${t}`);return(0,r.Xu)(l)}async function d(e){let[t,n]=await Promise.all([x(e,o.C5.MONTHLY),x(e,o.C5.YEARLY)]);return{[o.C5.MONTHLY]:t,[o.C5.YEARLY]:n}}function p(e){let t,n,r,o=(0,l.c)(7),[a,x]=(0,i.useState)(null),[p,m]=(0,i.useState)(!1);o[0]!==e?(t=()=>{if(!e)return;let t=!1;return m(!1),x(null),(function(e){let t=c.get(e);if(t)return t;let n=d(e).catch(t=>{throw c.delete(e),t});return c.set(e,n),n})(e).then(e=>{t||x(e)}).catch(n=>{(0,s.e8)(n,{tags:{scope:"plan"},extra:{planGroup:e}}),t||m(!0)}),()=>{t=!0}},n=[e],o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]),(0,i.useEffect)(t,n);let h=!!e&&!a&&!p;return o[3]!==a||o[4]!==p||o[5]!==h?(r={catalog:a,isLoading:h,isError:p},o[3]=a,o[4]=p,o[5]=h,o[6]=r):r=o[6],r}},80915:(e,t,n)=>{n.d(t,{$2:()=>c,Bh:()=>d,GG:()=>a,N3:()=>l.N3,Ot:()=>i.Ot,X9:()=>l.X9,ks:()=>r,oS:()=>o,r9:()=>x,tn:()=>s,v0:()=>l.v0,vM:()=>i.vM});var l=n(91443),i=n(9827);let r={[l.v0.STARTER]:1,[l.v0.BASIC]:2,[l.v0.STANDARD]:3,[l.v0.ADVANCED]:4,[l.v0.SPARK]:1,[l.v0.PIONEER]:2},o={UPGRADE:"UPGRADE",DOWNGRADE:"DOWNGRADE",SAME:"SAME",NOT_COMPARABLE:"NOT_COMPARABLE"},a=[l.v0.ADVANCED,l.v0.PIONEER];function s(e,t){if(e===t)return o.SAME;if((0,i.vM)(e)!==(0,i.vM)(t))return o.NOT_COMPARABLE;let n=r[e],l=r[t];return void 0===n||void 0===l?o.NOT_COMPARABLE:l>n?o.UPGRADE:l<n?o.DOWNGRADE:o.SAME}let c="[email protected]",x="https://line.me/R/ti/p/@659ukwcc?oat_content=url&ts=08041614",d="https://pinzap.pinkoi.com/plan/partner-offer"}}]); 2//# sourceMappingURL=https://mypinzap.com/static/chunks/storepanel-1ef17131-dc925f4b0aec2370.js.map
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.