PageSourceSearch

https://tohoorin.com/_next/static/chunks/70789-7ed121de82e4483e.js

js tohoorin.com collected 2026-09-26 14:30:06 UTC 46,019 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[70789],{26565:(e,t,a)=>{a.d(t,{A:()=>l});let l={src:"/_next/static/media/placeholder.86941164.svg",height:1,width:1,blurWidth:0,blurHeight:0}},61129:(e,t,a)=>{a.d(t,{A:()=>c});var l=a(2445),r=a(27006),o=a(86715),n=a(96540),i=a(6442),s=a(13302),d=a(84316);let c=e=>{let{isOpen:t,onClose:a,namespace:c="guest",page:u="login",query:p,size:h="lg",onLoggedIn:m,onSignedUp:f,motionPreset:x,isPlatform:g}=e,b=(0,i.A)(),v=(0,r.useDisclosure)(),w=(0,n.useRef)(),A=(0,o.useRouter)(),Y=(0,n.useMemo)(()=>{let e=new URLSearchParams,t=A.asPath;if(p){let a=new URLSearchParams;Object.entries(p).forEach(t=>{let[l,r]=t;e.set(l,r),a.set(l,r)}),t=t.split("?")[0],t=encodeURIComponent("".concat(t,"?").concat(a))}return e.set("redirectTo",t),e.toString()},[p,A.asPath]);(0,n.useEffect)(()=>{if(t)return window.__closeLoginModal=a,window.__onModalLoggedIn=m,window.__onModalSignedUp=f,window.__onModalSetAlert=()=>{w.current=!0},()=>{delete window.__closeLoginModal,delete window.__onModalLoggedIn,delete window.__onModalSignedUp,delete window.__onModalSetAlert}},[t,m,f,a]);let y=(0,d.A)("".concat("en"===b.locale?"/en":"","/").concat(u,"/").concat(c,"?").concat(Y).concat(g?"&platform=1":""));return(0,l.FD)(l.FK,{children:[(0,l.FD)(r.Modal,{isOpen:t,onClose:()=>{if(w.current){v.onOpen();return}a()},isCentered:!0,size:h,motionPreset:x,children:[(0,l.Y)(r.ModalOverlay,{}),(0,l.FD)(r.ModalContent,{p:"0",borderRadius:"2xl",overflow:"hidden",transform:"translate3d(0,0,0)",children:[(0,l.Y)(r.ModalCloseButton,{}),(0,l.Y)(r.ModalBody,{p:"0",children:(0,l.Y)(r.Box,{as:"iframe",src:y,w:"full",h:"635px",maxH:"90vh"})})]})]}),(0,l.Y)(s.A,{...v,onConfirm:a,body:b.formatMessage({defaultMessage:"確定要離開嗎?",id:"admin.favorite.確定要離開嗎?"}),size:"sm"})]})}},81557:(e,t,a)=>{a.d(t,{A:()=>n,k:()=>o});var l=a(2445),r=a(27006);a(96540);let o=(e,t)=>{let[a,l]=t;return"".concat(e.substring(0,a)).concat(Array(l-a).fill("*").join("")).concat(e.substring(l))},n=e=>{let{children:t,start:a,end:n,as:i}=e,s=String(t),d="number"==typeof n?n:Math.max(0,s.length-1),c="number"==typeof a?a:Math.max(0,d);return(0,l.Y)(r.Text,{as:i,children:o(s,[c,d])})}},87409:(e,t,a)=>{a.d(t,{A:()=>m,_:()=>h});var l=a(2445),r=a(27006),o=a(87583),n=a(96540),i=a(33877),s=a(6442),d=a(80261),c=a(46817),u=a(44995),p=a(37267);let h=e=>{let{value:t,icon:a,utm:r,w:i,circle:s}=e,d=(0,n.useRef)(),c=null!=i?i:256;return(0,n.useEffect)(()=>{if(d.current){let e=d.current.getContext("2d");e.clearRect(0,0,c,c),o.toCanvas(d.current,r?"".concat(t,"?utm_source=").concat(r,"&utm_medium=").concat(r):t,{width:c},t=>{if(t&&console.error(t),a){let t=new Image;t.onload=()=>{let a=(c-36)/2+.5,l=(c-36)/2;s||(e.fillStyle="#fff",e.arc(100,75,50,0,2*Math.PI),e.fillRect(a,l,36,36)),e.drawImage(t,a,l,36,36)},t.src=a}})}},[t,r,a]),(0,l.Y)("canvas",{ref:d,style:{width:c,height:c}})},m=e=>{let{as:t=c.A,link:a,name:o,label:m,favicon:f,qrcodeImage:x,onClick:g,utm:b,isEditing:v,isDisabled:w,iconSize:A="1.5em",size:Y="",hoverBg:y="transparent",...M}=e,k=(0,s.A)(),C="en"===k.locale,[F,S]=(0,n.useState)();(0,n.useEffect)(()=>{S((0,d.A)(x||f)||p.W)},[JSON.stringify(x||f)]);let{isOpen:D,onOpen:B,onClose:E}=(0,r.useDisclosure)(),T=k.formatMessage({defaultMessage:"(已關閉)",id:"admin.shared.已關閉"});return(0,l.FD)(l.FK,{children:[(0,l.Y)(r.Tooltip,{label:"QR Code".concat(w?T:""),children:(0,n.createElement)(t,{icon:(0,l.Y)(i.wQB,{size:A}),...M,variant:"ghost",opacity:w?.5:1,onClick:()=>{"function"==typeof g&&g(),v||B()},"aria-label":"QR Code",isDisabled:w,size:Y})}),(0,l.FD)(r.Modal,{isOpen:D,onClose:E,returnFocusOnClose:!1,children:[(0,l.Y)(r.ModalOverlay,{}),(0,l.FD)(r.ModalContent,{children:[(0,l.FD)(r.ModalHeader,{textAlign:"center",children:[o||k.formatMessage({defaultMessage:"我",id:"admin.shared.qrcode.我"}),C?" ":"的",m||k.formatMessage({defaultMessage:"傳送門",id:"admin.shared.qrcode.傳送門"})]}),(0,l.Y)(r.ModalCloseButton,{}),(0,l.FD)(r.ModalBody,{as:r.VStack,pb:"6",children:[(0,l.Y)(h,{value:a,icon:F,utm:b}),(0,l.Y)(u.A,{href:a,isExternal:!0,children:a})]})]})]})]})}},42606:(e,t,a)=>{a.d(t,{A:()=>p});var l=a(2445),r=a(27006),o=a(96540),n=a(33877),i=a(6442),s=a(87370),d=a(46817);let c=(0,r.forwardRef)((e,t)=>(0,o.createElement)(d.A,{variant:"ghost",_hover:{bg:"transparent"},_active:{bg:"transparent"},_focus:{bg:"transparent",color:"primary.500"},...e,ref:t}));var u=a(63789);let p=e=>{let{label:t,targetUrl:a,isEditing:o,isDisabled:d,isFullMode:p,...h}=e,m=(0,s.A)(),{hasCopied:f,onCopy:x}=(0,r.useClipboard)(a||m.href),g=(0,i.A)(),b=g.formatMessage({defaultMessage:"分享",id:"admin.shareButton.分享"}),v=g.formatMessage({defaultMessage:"(已關閉)",id:"admin.shared.已關閉"}),w=async e=>{if(!o)try{await navigator.share({url:e})}catch(e){("NotAllowedError"===e.name||e.message.includes("not a function"))&&x()}};
1return(0,l.FD)(r.Popover,{placement:"top",isOpen:f,isLazy:!0,children:[(0,l.Y)(r.PopoverTrigger,{children:(0,l.Y)(r.Tooltip,{label:"".concat(t||b).concat(d?v:""),children:a?(0,l.Y)(r.IconButton,{onClick:()=>w(a),bg:"white",color:"GUI.green.500",border:"none",icon:(0,l.Y)(n.uKc,{size:"1.375em"}),opacity:d?.5:1}):p?(0,l.Y)(u.A,{icon:(0,l.Y)(n.uKc,{size:"1.4em"}),onClick:()=>w(m.href),isDisabled:d,...h}):(0,l.Y)(c,{icon:(0,l.Y)(n.uKc,{size:"1.5em"}),onClick:()=>w(m.href),opacity:d?.5:1,...h})})}),(0,l.Y)(r.PopoverContent,{w:"auto",bg:"blocks.bg",children:(0,l.Y)(r.PopoverBody,{color:"blocks.text",children:g.formatMessage({defaultMessage:"已複製到剪貼簿",id:"admin.shareButton.已複製到剪貼簿"})})})]})}},55709:(e,t,a)=>{a.d(t,{A:()=>i});var l=a(2445),r=a(27006);a(96540);var o=a(6442),n=a(52513);let i=e=>{let{isOpen:t,onClose:a,onConfirm:i,name:s}=e,d=(0,o.A)();return(0,l.Y)(n.A,{comfirmIsOpen:t,comfirmOnClose:a,subButtonName:d.formatMessage({defaultMessage:"返回",id:"admin.favorite.返回"}),buttonName:d.formatMessage({defaultMessage:"取消收藏",id:"admin.favorite.取消收藏"}),handleUpdate:i,content:(0,l.FD)(r.Box,{fontSize:"lg",children:[(0,l.Y)(r.Text,{children:d.formatMessage({defaultMessage:"確定要取消收藏",id:"admin.favorite.確定要取消收藏"})}),(0,l.FD)(r.Text,{fontWeight:"500",color:"teal.500",children:[s," ?"]})]})})}},52513:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(2445),r=a(27006),o=a(96540),n=a(58065);let i=e=>{let{isOpen:t,onClose:a,nextModalContent:o,subImg:i}=e;return(0,l.FD)(r.Modal,{isOpen:t,onClose:a,isCentered:!0,size:"lg",children:[(0,l.Y)(r.ModalOverlay,{}),(0,l.FD)(r.ModalContent,{p:"3em",justifyContent:"center",children:[(0,l.Y)(r.ModalCloseButton,{}),(0,l.Y)(r.ModalBody,{children:(0,l.FD)(r.VStack,{justifyContent:"center",children:[i&&i,(0,l.Y)("br",{}),(0,l.Y)(r.Text,{children:o})]})}),(0,l.Y)(r.ModalFooter,{justifyContent:"center",children:(0,l.Y)(r.Button,{colorScheme:"teal",mr:3,onClick:a,w:"10em",children:(0,l.Y)(n.A,{defaultMessage:"確定",id:"admin.index.editorTools.確定"})})})]})]})},s=e=>{let{comfirmIsOpen:t,comfirmOnClose:a,title:s,content:d,img:c,buttonName:u,subButtonName:p,alert:h,nextModalContent:m,subImg:f,handleUpdate:x,afterContentImg:g}=e,{isOpen:b,onOpen:v,onClose:w}=(0,r.useDisclosure)(),[A,Y]=(0,o.useState)(!1);return(0,l.FD)(l.FK,{children:[(0,l.FD)(r.Modal,{isOpen:t,onClose:a,isCentered:!0,size:"lg",children:[(0,l.Y)(r.ModalOverlay,{}),(0,l.FD)(r.ModalContent,{p:{base:"1em",md:"3em"},justifyContent:"center",fontFamily:"sans",children:[s&&(0,l.Y)(r.ModalHeader,{color:h?"red.500":"teal.500",textAlign:"center",fontSize:"26px",children:s}),(0,l.Y)(r.ModalCloseButton,{}),(0,l.Y)(r.ModalBody,{alignItems:"center",px:{base:"0.5em",md:"3em"},children:(0,l.FD)(r.VStack,{justifyContent:"center",children:[c&&c,d&&(0,l.Y)(r.Text,{textAlign:"center",children:d}),g&&g]})}),(0,l.FD)(r.ModalFooter,{justifyContent:"center",children:[p&&(0,l.Y)(r.Button,{colorScheme:"gray",mr:3,onClick:a,w:"10em",variant:"outline",children:p}),(0,l.Y)(r.Button,{colorScheme:h?"red":"teal",mr:3,onClick:async()=>{Y(!0),x&&await x(),a(),Y(!1),m&&v()},w:"10em",isLoading:A,children:u||(0,l.Y)(n.A,{defaultMessage:"確定",id:"admin.index.editorTools.確定"})})]})]})]}),m&&(0,l.Y)(i,{isOpen:b,onClose:w,nextModalContent:m,subImg:f})]})}},79613:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(2445),r=a(27006);a(96540);var o=a(55044);let n=e=>{let{avatarWidth:t,isTransparent:a,avatar:n,isDemo:i,name:s,isDesktop:d,...c}=e;return(0,l.Y)(r.Box,{w:"".concat(t,"px"),border:!a&&"3px solid",borderColor:"blocks.bg",rounded:"full",transform:"translate3d(0,0,0)",...c,children:(0,l.Y)(o.A,{src:n,alt:s,w:"".concat(t-6,"px"),unoptimized:i,isDesktop:d})})}},100:(e,t,a)=>{a.d(t,{A:()=>m});var l=a(2445),r=a(27006),o=a(96540),n=a(84316),i=a(53935),s=a(46896),d=a(29720),c=a(55044);let u=(0,n.W)("/"),p=(0,o.forwardRef)((e,t)=>{let{item:a,isDemo:o}=e,n="".concat(u,"/").concat(a.slug),s=(0,i.A)(a.badgeTheme);return(0,l.Y)(r.Link,{href:n,ref:t,children:(0,l.Y)(r.Badge,{borderRadius:"1em",py:"1",px:"3",alignItems:"center",justifyContent:"center",border:"2px s
1olid",borderColor:s,bg:"#F2F2F2",children:(0,l.FD)(r.HStack,{spacing:"1",children:[(0,l.Y)(c.A,{src:a.avatar,width:"15px",unoptimized:o}),(0,l.Y)(r.Text,{children:a.name})]})})})}),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(e=>!(null==e?void 0:e.hidden)).map(e=>null==e?void 0:e.label).join("/")},m=e=>{let{groups:t,joinTagsOrder:a,joinTagsHidden:n,isEn:i,isDemo:c}=e,u=(0,o.useMemo)(()=>(0,s.A)((0,d.A)(t),a).filter(e=>!e.hidden&&!(null==n?void 0:n[e.id])),[t,a,n]);return u&&!i&&(0,l.Y)(r.HStack,{justifyContent:"center",alignItems:"baseline",spacing:2,mt:"3",children:u.map(e=>(0,l.Y)(r.HStack,{justifyContent:"center",mb:"3",children:(0,l.Y)(r.Tooltip,{label:h(e.tags),children:(0,l.Y)(p,{item:e,isDemo:c})})},e.slug))})}},18013:(e,t,a)=>{a.d(t,{A:()=>h});var l=a(2445),r=a(27006),o=a(96540),n=a(51216),i=a(23230),s=a.n(i),d=a(78459);let c=e=>{let{color:t,ratio:a}=e;return(0,l.Y)(r.AspectRatio,{ratio:1200/280,background:t,pos:"absolute",width:"full",top:"0",right:"0",children:(0,l.Y)("div",{})})};var u=a(26565);let p=e=>{let[t,{width:a}]=(0,n.A)(),r=(0,o.useMemo)(()=>s()("M1058.67,0H13.51C6.05,0,0,6.05,0,13.51V276.44c137.12-20.32,326.68-32.9,536.09-32.9s398.96,12.57,536.09,32.9V13.51c0-7.46-6.05-13.51-13.51-13.51Z").scale(a?a/1072:1).toString(),[a]);return(0,l.Y)(d.Ay,{ref:t,clipPath:"path('".concat(r,"')"),...e})},h=e=>{let{isCurveBanner:t,headerLayout:a,isEditing:n,isPreview:i,headerBanner:s,isDemo:h,headerVariant:m,size:f}=e,x=null==m?void 0:m.startsWith("cover"),g="center"!==a&&("default"===m||!m||"solid"===m);return x?(0,l.Y)(r.Box,{pos:"absolute",left:"0",top:"0",right:"0",w:"full",children:(0,o.createElement)(t&&"center"===a?p:d.Ay,{size:f,isEditing:n,isPreview:i,ratio:1200/(t&&"center"===a?320:280),src:s||u.A,skeleton:!1,unoptimized:h})}):g?(0,l.Y)(c,{color:"primary.500"}):null}},28663:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(2445),r=a(27006);a(96540);var o=a(6442),n=a(70382),i=a(42701);let s=e=>{let{register:t,formState:a,name:s}=e,d=(0,o.A)();return(0,l.Y)(i.A,{name:"agreeEmail",register:t,formState:a,children:(0,l.FD)(r.HStack,{children:[(0,l.FD)("span",{children:[d.formatMessage({defaultMessage:"我同意將我的聯絡資訊分享給",id:"admin.favorite.我同意將我的聯絡資訊分享給"})," ",s]}),(0,l.Y)(n.A,{display:"inline-block",children:d.formatMessage({defaultMessage:"未來此用戶將可透過站內訊息或 email 與您聯繫",id:"admin.favorite.未來此用戶將可透過站內訊息或 email 與您聯繫"})})]})})}},72034:(e,t,a)=>{a.d(t,{A:()=>i});var l=a(2445),r=a(27006);a(96540);var o=a(58065),n=a(78459);let i=e=>{let{name:t,avatar:a,isSuccess:i}=e;return(0,l.FD)(r.VStack,{spacing:6,children:[(0,l.Y)(n.Ay,{src:a,ratio:1,width:"100px",overflow:"hidden",borderRadius:"full"}),(0,l.FD)(r.Text,{fontSize:"1.375em",fontWeight:"700",textAlign:"center",children:[i?(0,l.Y)(o.A,{id:"favoritePage.favorite.ok",defaultMessage:"您已成功收藏"}):(0,l.Y)(o.A,{id:"favoritePage.favorite",defaultMessage:"收藏"}),i&&(0,l.Y)("br",{}),(0,l.Y)(r.Text,{ml:!i&&1,as:"span",color:"teal.500",children:t})]})]})}},42701:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(2445),r=a(27006);a(96540);var o=a(6442);let n=e=>{var t;let{register:a,name:n,isRequired:i,children:s,formState:d}=e,c=(0,o.A)();return(0,l.FD)(r.FormControl,{isInvalid:!!d.errors[n],fontSize:"sm",children:[(0,l.Y)(r.Checkbox,{...a(n,i&&{required:{value:!0,message:c.formatMessage({defaultMessage:"請閱讀並同意",id:"admin.favorite.請閱讀並同意"})}}),colorScheme:"gray",w:"full",color:"gray.500",fontWeight:"400",size:"md",sx:{span:{fontSize:"sm"}},children:s}),(0,l.Y)(r.FormErrorMessage,{children:null===(t=d.errors[n])||void 0===t?void 0:t.message})]})}},21376:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(96540).createContext)({})},63789:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(2445),r=a(27006),o=a(46817);let n=(0,r.forwardRef)((e,t)=>{let{isDisabled:a,...r}=e;return(0,l.Y)(o.A,{_hover:{bg:"white"},_active:{bg:"transparent",color:"white"},_focus:{bg:"transparent",color:"white"},bg:"rgba(255, 255, 255, 0.5)",opacity:a?.5:1,borderRadius:"50%",color:"primary.500",border:"none",size:"sm",backdropFilter:"blur(4px)",...r,ref:t})})},2838:(e,t,a)=>{a.d(t,{Z:()=>s,h:()=>n});let l=(e,t)=>
1({pt:e?t?"22%":"20%":0,left:"0",right:"0",top:8,pos:"absolute",px:{base:6,sm:8}}),r=(e,t)=>({...l(e,t),pt:0,pos:"absolute",px:{base:0,sm:4}}),o=()=>({left:"7",right:"7",px:"0",py:"2"}),n=(e,t)=>{let a=l(e,t);return{full:r(e,t),card:o(e,t),center:a,left:a}},i={lineHeight:"tall",whiteSpace:"pre-wrap"},s={full:{px:"6",textAlign:"center",pt:"4",color:"blocks.text",...i},left:{fontSize:"sm",maxLine:3,textAlign:"left",whiteSpace:"pre-wrap",ellipsisPosition:"headerSection"},center:{px:"4",textAlign:"center",...i},card:{px:"0",textAlign:"start",color:"blocks.text",...i}}},50377:(e,t,a)=>{a.d(t,{A:()=>c});var l=a(2445),r=a(27006),o=a(96540),n=a(35712);let i="verified",s=e=>{let t=(0,r.useToken)("colors","blocks.text");return(0,l.FD)(n.A,{...e,viewBox:"0 0 30 30",children:[(0,l.FD)("defs",{children:[(0,l.FD)("linearGradient",{id:"".concat(i,"-b"),x1:"59.46",y1:"-451.53",x2:"89.2",y2:"-451.53",gradientTransform:"translate(85.08 467.3) rotate(-18.16)",gradientUnits:"userSpaceOnUse",children:[(0,l.Y)("stop",{offset:"0",stopColor:"#862983"}),(0,l.Y)("stop",{offset:"1",stopColor:"#12a4a1"})]}),(0,l.Y)("linearGradient",{id:"".concat(i,"-c"),x1:"39.49",y1:"-302.25",x2:"45.23",y2:"-302.25",gradientTransform:"translate(38.99 312.26) rotate(-12.02)",xlinkHref:"#".concat(i,"-b")})]}),(0,l.FD)("g",{children:[(0,l.Y)("path",{d:"M22.05,2.02c.74,.98,1.46,2.29,2,3.85,.06,.18,.12,.35,.17,.53-1.36-2.6-6.26-7.93-13.85-5.44C2.57,3.51-1.69,11.93,.87,19.72c.97,2.97,2.8,5.42,5.12,7.18-.54-.78-1.58-2.27-2.1-3.27-1.55-2.98-1.75-5.49-1.81-5.66,2.49,8.12,7.62,10.36,8.24,10.59,1.48,.72,6.05,1.74,9.33,.67,7.79-2.56,12.05-10.97,9.5-18.77-1.23-3.76-3.84-6.69-7.08-8.44Zm-7.95,26.1c-1.43-.05-3.85-.45-6.71-3.3-.13-.13-.26-.26-.38-.4,5.78,4.9,10.91,2.74,11.55,2.1,0,.23-1.12,1.71-4.46,1.6Zm3.98-3.64c-5.17,1.7-10.76-1.13-12.46-6.3-1.7-5.17,1.13-10.76,6.3-12.46,5.17-1.7,10.76,1.13,12.46,6.3s-1.13,10.76-6.3,12.46Z",fill:"url(#".concat(i,"-b)")}),(0,l.Y)("path",{d:"M19.28,7.54c-2.78-1.86-4.84-1.03-4.95-.82,3.71,.29,6.36,2.31,6.36,2.31-.37-.87-1.41-1.49-1.41-1.49Z",fill:"url(#".concat(i,"-c)")})]}),(0,l.Y)("polygon",{points:"13.93 22.69 5.68 15.28 10.38 15.17 13.66 17.88 23.08 7.32 27.65 7.31 13.93 22.69",fill:t})]})};var d=a(21376);let c=e=>{let{intl:t,isCenter:a}=e,{titleFontSize:n,titleFontSizeValue:i,name:c,isVerified:u,isDesktop:p}=(0,o.useContext)(d.A);return void 0===c?(0,l.Y)(r.Skeleton,{w:"full",h:"7"}):(0,l.Y)(r.Box,{w:"100%",children:(0,l.Y)(r.HStack,{alignItems:"flex-start",justifyContent:a?"center":"space-between",pos:"relative",children:(0,l.Y)(r.HStack,{pl:p?3:0,children:(0,l.FD)(r.Heading,{as:"h1",fontSize:p?"32px":n?"".concat(i[n],"px"):"18px",w:{base:"auto"},mr:p&&"2em",color:"blocks.text",textAlign:a?"center":"left",children:[c,u&&(0,l.Y)(r.Tooltip,{label:t.formatMessage({defaultMessage:"Portaly 官方認證帳號",id:"profile.Portaly 官方認證帳號"}),mb:"1",children:(0,l.Y)("span",{children:(0,l.Y)(r.Icon,{as:s,w:p?6:4,h:p?6:4,ml:"2",color:"custom.primary"})})})]})})})})}},70789:(e,t,a)=>{a.d(t,{A:()=>W});var l=a(2445),r=a(27006),o=a(86715),n=a(96540),i=a(6442),s=a(42948),d=a(84316),c=a(100),u=a(21376),p=a(17437),h=a(64846),m=a(2838),f=a(52956);let x=e=>{let{mode:t,description:a}=e;return t===f.A.LEFT?(0,l.Y)(r.Box,{w:"full",children:(0,p.createElement)(h.A,{...m.Z[t],key:a},a)}):(0,l.Y)(r.Text,{...m.Z[t],children:a})};var g=a(29965),b=a.n(g),v=a(78459),w=a(11469);let A={white:(0,l.Y)(b(),{src:{src:"/_next/static/media/logoWhite.ff32a93b.png",height:210,width:459,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEX///////////9MaXH///////////////////9GmzfWAAAACXRSTlNmICsAPAIKSkmuCCreAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAI0lEQVR4nAXBgQEAIAjDsG4F9f+LTVjBVVpIEmaG+1rUcPQDBZMAVAsfzJoAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},alt:"Portaly",width:90,height:56}),black:(0,l.Y)(b(),{src:w.A,alt:"Portaly",width:90,height:56})},Y=()=>{let{footer:e}=(0,r.useTheme)();return A[(null==e?void 0:e.color)||"black"]};var y=a(50377),M=a(85247);let k=e=>{let{i:t,borderColor:a,bg:o,tagName:n}=e,[i]=(0,r.useMediaQuery)("(max-width: 450px)");return(0,l.Y)(r.Box,{border:"1px solid",borderColor:null!=a?a:"transparent",px:"3",py:"1",borderRadius:"20px",bg:o,fontSize:"12px",children:(0,l.Y)(r.Tooltip,{label:n,children:(0,l.Y)(r.Box,{maxWidth:"".concat(i?60:86,"px"),children:(0,l.Y)(r.Text,{overflow:"hidden",
1whiteSpace:"nowrap",textOverflow:"ellipsis",children:n})})})},t)},C=e=>{let{bg:t,borderColor:a,justifyContent:o,w:i="100%",personalTag:s,havePersonalTag:d=!0,...c}=e,{tier:p}=(0,n.useContext)(u.A),h=p>=M.fb.PREMIUM,m=[null==s?void 0:s.tag1,null==s?void 0:s.tag2,null==s?void 0:s.tag3].filter(Boolean);return d&&h&&(0,l.Y)(r.HStack,{w:i,justifyContent:o,color:"blocks.text",...c,children:m.map((e,r)=>(0,l.Y)(k,{i:r,borderColor:a,bg:t,tagName:e},r))})},F=(0,n.forwardRef)((e,t)=>{let{avatar:a,descriptionSection:o,badgeAndSocialLinksSection:s,shareSection:d,brandLogo:c,logoUrl:u,isEditing:p,showQrCode:h,showShare:m,showFavorite:f,personalTag:x,isPeople:g,slug:w}=e,A=(0,i.A)(),M=!h&&!m&&!f,{colorMode:k}=(0,r.useTheme)(),F="dark"===k,S=(0,n.useMemo)(()=>u||"/signup?ref=".concat(w),[u,w]);return(0,l.FD)(r.Box,{borderRadius:"2.5em",pos:"relative",w:"100%",pt:"1",bg:"linear-gradient(105deg, rgba(242, 242, 242, 0.4) 10.3%,  rgba(255, 255, 255, 0.5) 32.6%, rgba(255, 255, 255, 0.5) 64.29%, rgba(242, 242, 242, 0.5) 94.42%)",backdropFilter:"blur(20px)",boxShadow:!F&&"rgba(149, 157, 165, 0.5) 0px 6px 16px",children:[(0,l.Y)(r.Link,{href:S,children:(0,l.Y)(r.Box,{py:"3",children:(0,l.Y)(r.Box,{pos:"relative",h:"48px",w:"100%",children:(null==c?void 0:c.publicURL)||c?(0,l.Y)(b(),{src:(null==c?void 0:c.publicURL)||c,alt:"",fill:!0,style:{objectFit:"contain"}}):(0,l.Y)(r.Center,{children:(0,l.Y)(Y,{})})})})}),(0,l.FD)(r.Box,{position:"relative",children:[(0,l.Y)(v.Ay,{src:a||"/welcome2.png",ratio:g?{base:1,lg:16/9}:1,width:"100%",size:"2xl"}),(0,l.Y)(C,{position:"absolute",bottom:"5",left:"5",bg:"blocks.text",color:"blocks.bg",w:"auto",personalTag:x})]}),(0,l.FD)(r.VStack,{alignItems:"flex-start",p:"5",children:[(0,l.Y)(y.A,{intl:A}),o]}),(0,l.Y)(r.Box,{px:"5",pb:M?2:0,children:s}),p&&(0,l.Y)(r.Center,{pb:"4",children:(0,l.Y)("div",{ref:t})}),!M&&(0,l.Y)(r.Box,{bg:F?"rgba(0,0,0,0.15)":"rgba(150,150,150,0.15)",w:"100%",overflow:"hidden",borderBottomRadius:"2.5em",px:"10",children:d})]})});var S=a(79613),D=a(18013);let B=e=>{let{children:t,borderRadiusStyles:a}=e,{isEditing:o,isPreview:i,isDemo:s,isTransparent:d,isBoxShadow:c,isOutline:p,isCurveBanner:h,headerLayout:m,headerBanner:f,headerVariant:x}=(0,n.useContext)(u.A);return(0,l.FD)(r.Box,{bg:d?"transparent":"blocks.bg",color:"blocks.text",borderRadius:null==a?void 0:a.outer,w:"full",as:"section",boxShadow:!d&&(c?"block":p?"none":"sm"),pos:"relative",overflow:"hidden",transform:!o&&"translateZ(0)",className:"block-item",border:p&&"2px solid",borderColor:p&&"blockOutline",children:[(0,l.Y)(D.A,{isCurveBanner:h,headerLayout:m,isEditing:o,isPreview:i,headerBanner:f,isDemo:s,headerVariant:x,size:"lg"}),t]})},E=(0,n.forwardRef)((e,t)=>{let{isTransparent:a,isDemo:o,avatarWidth:n,avatar:s,shareSection:d,name:c,badgeAndSocialLinksSection:u,isEditing:p,descriptionSection:h,personalTag:m,havePersonalTag:f,borderRadiusStyles:x}=e,g=(0,i.A)();return(0,l.FD)(B,{borderRadiusStyles:x,children:[(0,l.FD)(r.Box,{pb:4,pt:"11.5%",pos:"relative",children:[(0,l.FD)(r.Stack,{spacing:5,alignItems:"center",direction:"column",mx:{base:6,sm:8,md:10},pt:{base:4,md:2},children:[(0,l.Y)(S.A,{avatarWidth:n,isTransparent:a,avatar:s,isDemo:o,name:c}),(0,l.FD)(r.Stack,{flex:"1",alignItems:"center",w:"full",textAlign:"center",children:[(0,l.Y)(y.A,{intl:g,isCenter:!0}),(0,l.Y)(C,{bg:"transparent",color:"blocks.text",borderColor:"blocks.text",justifyContent:"center",personalTag:m,havePersonalTag:f,py:"3"}),h]})]}),d]}),u,p&&(0,l.Y)(r.Center,{pb:"4",children:(0,l.Y)("div",{ref:t})})]})}),T=(0,n.forwardRef)((e,t)=>{let{avatar:a,badgeAndSocialLinksSection:o,shareSection:n,descriptionSection:s,isEditing:d,personalTag:c,havePersonalTag:u,isPeople:p,isPreview:h,isDemo:m}=e,f=(0,i.A)(),[x]=(0,r.useMediaQuery)("(max-width: 480px)"),g=!h&&!d&&!m;return(0,l.FD)(r.Stack,{w:"100%",alignItems:"center",children:[(0,l.FD)(r.Box,{position:"relative",width:"100%",height:"auto",h:"25em",children:[x&&g?(0,l.Y)(r.Portal,{children:(0,l.Y)(v.Ay,{src:a||"/welcome2.png",ratio:1,zIndex:-1,width:"100%",sx:{maskImage:"linear-gradient(to bottom, black, transparent)",WebkitMaskImage:"linear-gradient(to bottom, black 50%, transparent)"},position:"absolute",top:"0",left:"0"})}):(0,l.Y)(v.Ay,{src:a||"/welcome2.png",ratio:p?16/9:1,zIndex:0,width:"100%",sx:{maskImage:"linear-gradient(to bottom, black, transparent)",WebkitMaskImage:"linear-gradient(to bottom, black 50%, transparent)"},size:"2xl"}),(0,l.FD)(r.Box,{position:"absolute",bottom:"-0.8em",w:"100%",px:4,children:[(0,l.Y)(y.A,{intl:f,isCenter:!0}),(0,l.Y)(C,{bg:"transparent",color:"blocks.text",borderColor:"blocks.text",justifyContent:"center",py:"3",personalTag:c,havePersonalTag:u})]}),(0,l.Y)(r.Box,{pos:"absolute",top:{base:"-2em",md:"-1em"},w:"100%",children:n})]}),s,o,d&&(0,l.Y)(r.Center,{children:(0,l.Y)("div",{ref:t})})]})});var I=a(46265);let R=(0,n.forwardRef)((e,t)=>{let{isTransparent:a,isDemo:o,avatarWidth:n,avatar:s,shareSection:d,name:c,isPeople:u,badgeAndSocialLinksSection:p,isEditing:h,descriptionSection:m,personalTag:f,borderRadiusStyles:x}=e,g=(0,i.A)(),b=(0,l.FD)(r.HStack,{justifyContent:"space-between",children:[(0,l.Y)(r.Box,{as:I.$U,greaterThanOrEqual:"sm",style:{width:"100%"},children:(0,l.Y)(r.Box,{mb:{base:"1em",sm:null},children:(0,l.Y)(S.A,{avatarWidth:n,isTransparent:a,avatar:s,isDemo:o,name:c})})}),(0,l.Y)(I.$U,{lessThan:"sm",children:(0,l.Y)(S.A,{avatarWidth:n,isTransparent:a,avatar:s,isDemo:o,name:c,w:"full",mb:"1em"})}),d]});return(0,l.FD)(B,{borderRadiusStyles:x,children:[(0,l.FD)(r.Box,{pt:{base:"10.6%",sm:u?"16.5%":null},mx:"5",sx:{"@media (max-width:410px)":{paddingTop:"10%"}},children:[b,(0,l.FD)(r.Stack,{flex:"1",w:"full",mt:"2",children:[(0,l.Y)(y.A,{intl:g}),m]})]}),(0,l.Y)(C,{bg:"transparent",color:"blocks.text",borderColor:"blocks.text",justifyContent:"left",pb:"2",pl:"4",pt:"4",personalTag:f}),p,h&&(0,l.Y)(r.Center,{pb:"6",children:(0,l.Y)(r.Box,{children:(0,l.Y)("div",{ref:t})})})]})});var P=a(59028),z=a(6231),_=a(34505);let L=(0,d.W)("/"),O={small:"18",medium:"22",large:"26"},U=e=>({center:"center",left:"left",full:"full",card:"card"})[e]||"center",W=e=>{var t;let{id:a,avatar:d,name:p,description:h,social:m,headerLayout:g,isPreview:b,isEditing:v,editorRef:w,slug:A,showQrCode:Y=!0,showShare:y=!0,show
1Favorite:M=!0,headerVariant:k="solid",headerBanner:C,blockVariant:S,headerFill:D,favicon:B,qrcode:I,isVerified:W,groups:j,joinTagsOrder:H,joinTagsHidden:N,isbrandProfile:V,titleFontSize:K,buttonFields:q,onUpdate:G,isDemo:Q,customDomain:Z,brandLogo:X,logoUrl:$,personalTag:J,tier:ee}=e,{isPeople:et}=(0,n.useContext)(s.b),{borderRadiusStyles:ea}=(0,r.useTheme)(),el="center"===g,er="en"===(0,i.A)().locale,eo=k.startsWith("cover"),en=(0,o.useRouter)(),ei="cover-curve"===k,es=Object.values(null!==(t=null==m?void 0:m.links)&&void 0!==t?t:{}).filter(Boolean).length>0,ed=Object.values(null!=J?J:{}).filter(Boolean).length>0,ec=(0,l.FD)(l.FK,{children:[(0,l.Y)(c.A,{groups:j,joinTagsOrder:H,joinTagsHidden:N,isEn:er,isDemo:Q}),es&&(0,l.Y)(r.Box,{mb:4,px:el?6:0,children:(0,l.Y)(_.A,{...m,isEditing:v,isPreview:b,id:a,isCardMode:"card"===U(g)})})]}),eu=(0,l.Y)(z.A,{mode:U(g)}),ep=(0,l.Y)(x,{mode:U(g),description:h,name:p}),eh={avatarWidth:124,headerLayout:g,headerVariant:k,blockVariant:S,headerFill:D,headerBanner:C,customDomain:Z,isOutline:"outline"===S,isBoxShadow:"dropShadow"===S,isTransparent:"transparent"===D||"transparent"===S,isCurveBanner:"cover-curve"===k,hasCover:eo,isCurveBanner:ei,borderRadiusStyles:ea,showQrCode:Y,showShare:y,showFavorite:!Z&&M,onUpdate:G,buttonFields:q,id:a,avatar:d,name:p,description:h,slug:A,favicon:B,qrcode:I,groups:j,joinTagsOrder:H,joinTagsHidden:N,social:m,brandLogo:X,logoUrl:$,personalTag:J,havePersonalTag:ed,tier:ee,titleFontSize:K,titleFontSizeValue:O,isDemo:Q,isEditing:v,isPeople:et,isPreview:b,isVerified:W,isbrandProfile:V,isFrontPage:!b&&!v,shareSection:eu,badgeAndSocialLinksSection:ec,descriptionSection:ep};return(0,l.FD)(l.FK,{children:[V&&(0,l.Y)(r.Box,{as:"header",p:"2",position:"sticky",top:"0",bg:"blocks.bg",boxShadow:"md",rounded:"md",children:(0,l.Y)(P.default,{backUrl:"".concat(L,"/").concat(en.query.group,"/group"),data:{name:p,slug:A,avatar:d},brand:!0,groups:j})}),(0,l.Y)(u.A.Provider,{value:eh,children:(0,l.Y)(r.Box,{w:"100%",pb:"4",children:(e=>{switch(e){case f.A.CENTER:return(0,l.Y)(E,{...eh,ref:w});case f.A.LEFT:return(0,l.Y)(R,{...eh,ref:w});case f.A.FULL:return(0,l.Y)(T,{...eh,ref:w});case f.A.CARD:return(0,l.Y)(F,{...eh,ref:w})}})(U(g))})})]})}},6231:(e,t,a)=>{a.d(t,{A:()=>V});var l=a(2445),r=a(27006),o=a(96540),n=a(6442),i=a(84316),s=a(61032),d=a(22405),c=a(77037),u=a(58065),p=a(30808),h=a(61129),m=a(8548),f=a(55709),x=a(14120),g=a(63789),b=a(49015),v=a(10767),w=a(77666),A=a(49785),Y=a(99624),y=a(81557),M=a(72034),k=a(7817),C=a(28663);a(42701);let F=e=>{let{isOpen:t,onClose:a,onConfirm:o,name:i,avatar:s,isFavorited:d,onLogout:c,motionPreset:u}=e,{data:p}=(0,Y.aB)(),{register:h,formState:f,handleSubmit:x}=(0,A.mN)(),g=async e=>{await o(e.agreeEmail)},b=(0,n.A)(),v=(0,k.A)();return(0,l.FD)(r.Modal,{isOpen:t,onClose:a,isCentered:!0,size:"md",motionPreset:u,children:[(0,l.Y)(r.ModalOverlay,{}),(0,l.FD)(r.ModalContent,{p:"0",borderRadius:"2xl",overflow:"hidden",transform:"translate3d(0,0,0)",fontFamily:"sans",children:[(0,l.Y)(r.ModalCloseButton,{}),(0,l.Y)(r.ModalBody,{children:void 0!==d?(0,l.FD)(r.VStack,{px:4,py:8,as:"form",onSubmit:x(g),spacing:4,children:[(0,l.FD)(r.Stack,{spacing:1,children:[(0,l.Y)(M.A,{name:i,avatar:s,isSuccess:!!d}),!d&&(0,l.Y)(r.Text,{fontSize:"md",textAlign:"center",children:b.formatMessage({defaultMessage:"收藏創作者的傳送門,取得最新消息。",id:"admin.favorite.收藏創作者的傳送門,取得最新消息。"})})]}),!d&&(0,l.FD)(l.FK,{children:[(0,l.Y)(r.Box,{fontSize:"md",bg:"gray.50",w:"full",borderRadius:"lg",px:"4",color:"gray.300",py:"4",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:((null==p?void 0:p.email)||"").split("@").reduce((e,t,a)=>{let r=0===a?(0,l.Y)(y.A,{as:"span",children:t},a):t;return e.concat(0===a?r:["@",r])},[])}),(0,l.FD)(r.HStack,{spacing:1,fontSize:"sm",w:"full",justifyContent:"flex-start",children:[(0,l.Y)(r.Text,{children:b.formatMessage({defaultMessage:"不是你?",id:"admin.favorite.不是你?"})}),(0,l.Y)(m.A,{textDecor:"underline",size:"sm",fontWeight:"400",colorScheme:"gray",variant:"link",onClick:c,children:b.formatMessage({defaultMessage:"登出",id:"admin.favorite.登出"})})]}),(0,l.Y)(C.A,{register:h,formState:f,name:i})]}),(0,l.FD)(r.ButtonGroup,{spacing:0,as:r.Stack,pt:"2",w:"full",size:"lg",colorScheme:"primary",children:[(0,l.Y)(m.A,{w:"full",isLoading:f.isSubmitting,type:d?"button":"submit",href:d?"".concat((null==v?void 0:v.locale)==="en"?"/en":"","/admin/board/favorite"):void 0,isExternal:!0,children:d?b.formatMessage({defaultMessage:"瀏覽我的收藏",id:"admin.favorite.瀏覽我的收藏"}):b.formatMessage({defaultMessage:"立刻收藏",id:"admin.favorite.立刻收藏"})}),d&&(0,l.Y)(m.A,{onClick:a,variant:"ghost",children:b.formatMessage({defaultMessage:"返回",id:"admin.favorite.返回"})})]})]}):(0,l.Y)(r.Center,{py:"40",children:(0,l.Y)(r.Spinner,{})})})]})]})},S=e=>{let{isActive:t,onClick:a,isLoading:n,isDisabled:i,isEditing:s,isFullMode:d,isCardMode:p}=e,h={className:!s&&"animate__animated animate__infinite animate__pulse animate__fast",isLoading:n,onClick:a,isDisabled:i,trackerName:"top.favorite"};return(0,l.Y)(l.FK,{children:d?(0,l.Y)(r.Tooltip,{label:(0,l.Y)(u.A,{id:"admin.favoriteButton.favorite.收藏",defaultMessage:"收藏"}),children:(0,l.Y)(g.A,{icon:(0,l.Y)(c.wei,{size:"1.4em"}),...h})}):p?(0,l.Y)(r.Tooltip,{label:(0,l.Y)(u.A,{id:"admin.favoriteButton.favorite.收藏",defaultMessage:"收藏"}),children:(0,l.Y)(r.IconButton,{size:"sm",variant:"ghost",icon:(0,o.createElement)(t?c.gt3:c.wei,{size:"1.3em"}),borderRadius:"full",colorScheme:"primary",_hover:{bg:"none"},...h})}):(0,l.Y)(m.A,{colorScheme:"primary",variant:"outline",leftIcon:(0,o.createElement)(t?c.gt3:c.wei),size:"sm",_focus:{boxShadow:"none"},opacity:i?.5:1,...h,children:(0,l.Y)(u.A,{id:"admin.favoriteButton.favorite.收藏",defaultMessage:"收藏"})})})},D=e=>{let{children:t}=e,a=(0,n.A)().formatMessage({defaultMessage:"(已關閉)",id:"admin.shared.已關閉"});return(0,l.Y)(r.Tooltip,{label:a,shouldWrapChildren:!0,children:t})},B=e=>{let{uid:t,profileId:a,profileName:n,profileAvatar:i,onLogout:s,defaultIsOpen:c,onClose:u,onClick:h,isEditing:m,isDisabled:x,isFullMode:g,isCardMode:b}=e,[v,A]=(0,o.useState)(!1),[Y,y]=(0,p.A)("portaly:favorite-".concat(t,"-").concat(a)),M=(0,w.A)(),{isOpen:k,onClose:C,onOpen:B}=(0,r.useDisclosure)({defaultIsOpen:c,onClose:u}),[E,T]=(0,o.useState)();(0,o.useEffect)(()=>
1{if(M){let e=(0,d.query)((0,d.collection)(M,"favorites"),(0,d.where)("uid","==",t),(0,d.where)("profileId","==",a)),l=(0,d.onSnapshot)(e,e=>{y(e.size>0&&e.docs[0].id)});return()=>l()}},[M,a,t]),(0,o.useEffect)(()=>{if(void 0!==Y){let e=new URLSearchParams(location.search);"favorite"!==e.get("action")||Y||a!==e.get("id")||(A(!0),(0,d.addDoc)((0,d.collection)(M,"favorites"),{uid:t,profileId:a,createdAt:(0,d.serverTimestamp)()}).then(()=>{A(!1)}))}},[Y]),(0,o.useEffect)(()=>{k||T(Y)},[k,Y]);let I=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A(!0),Y?await (0,d.deleteDoc)((0,d.doc)(M,"favorites",Y)):await (0,d.addDoc)((0,d.collection)(M,"favorites"),{uid:t,profileId:a,agreeShare:e,createdAt:(0,d.serverTimestamp)()}),A(!1)},R=E?f.A:F,P=x?D:r.Box;return(0,l.FD)(l.FK,{children:[(0,l.Y)(P,{pos:"relative",children:(0,l.Y)(S,{isActive:!!Y,onClick:m?h:B,isLoading:v,isDisabled:x,isEditing:m,isFullMode:g,isCardMode:b})}),(0,l.Y)(R,{isOpen:k,onClose:C,onConfirm:I,name:n,avatar:i,isFavorited:Y,onLogout:s,motionPreset:c&&"none"})]})},E=e=>{let{profileId:t,onSignedUp:a,onLoggedIn:n,defaultIsOpen:i,onClose:s,isFullMode:d,isCardMode:c}=e,{isOpen:u,onClose:p,onOpen:m}=(0,r.useDisclosure)({defaultIsOpen:i,onClose:s}),{customDomain:f}=(0,o.useContext)(x.A),g={id:t,action:"favorite"};return f&&(g.hostname=f),(0,l.FD)(l.FK,{children:[(0,l.Y)(S,{onClick:m,isFullMode:d,isCardMode:c}),(0,l.Y)(h.A,{isOpen:u,onClose:p,namespace:"favorite",page:"signup",query:g,size:"md",onSignedUp:a,onLoggedIn:n,motionPreset:i&&"none"})]})},T=e=>{let{profileId:t,profileName:a,profileAvatar:r,isEditing:n,onClick:i,isDisabled:c,isFullMode:u,isCardMode:p}=e,[h,m]=(0,o.useState)(!1),f=(0,v.A)(),x=(0,w.A)(),[g,b]=(0,o.useState)(),A=(0,o.useRef)();return(0,o.useEffect)(()=>{f&&(setTimeout(()=>{A.current=!0},3e3),(0,s.onAuthStateChanged)(f,e=>{e&&!A.current&&b(e.uid)}))},[f]),g?(0,l.Y)(B,{defaultIsOpen:h,uid:g,profileId:t,profileName:a,profileAvatar:r,onLogout:()=>{f.signOut(),m(!0),b(null)},onClose:()=>m(!1),onClick:i,isEditing:n,isDisabled:c,isFullMode:u,isCardMode:p}):(0,l.Y)(E,{defaultIsOpen:h,profileId:t,onClose:()=>m(!1),onLoggedIn:e=>{(0,s.onAuthStateChanged)(f,e=>{(null==e?void 0:e.uid)&&(m(!0),b(e.uid))})},onSignedUp:async function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{await new Promise(e=>setTimeout(e));let l=(0,d.query)((0,d.collection)(x,"favorites"),(0,d.where)("uid","==",e),(0,d.where)("profileId","==",t));(await (0,d.getDocs)(l)).size||await (0,d.addDoc)((0,d.collection)(x,"favorites"),{uid:e,profileId:t,agreeShare:a,createdAt:(0,d.serverTimestamp)()}),m(!0),b(e)}catch(e){console.error(e)}},isFullMode:u,isCardMode:p})},I=e=>(0,l.Y)(b.default,{children:(0,l.Y)(T,{...e})});var R=a(14953);let P=a.n(R)()(()=>Promise.all([a.e(43465),a.e(69735),a.e(53958),a.e(92535),a.e(63596),a.e(65354),a.e(42419),a.e(92893),a.e(80971),a.e(97042),a.e(37500),a.e(46661),a.e(87627),a.e(20821),a.e(31833),a.e(96323),a.e(77381),a.e(90585),a.e(47533),a.e(5244),a.e(85701),a.e(57716),a.e(71511),a.e(59324),a.e(66428),a.e(10907),a.e(94708),a.e(82122),a.e(46438),a.e(71086),a.e(24005),a.e(95005),a.e(87260),a.e(64190),a.e(43184),a.e(92556),a.e(65581),a.e(62919),a.e(72982),a.e(36109)]).then(a.bind(a,64481)),{loadableGenerated:{webpack:()=>[64481]},ssr:!1}),z=e=>{let{isEditing:t,showFavorite:a,showQrCode:r,qrcode:o,showShare:n,intl:i,onUpdate:s,fields:d,children:c,size:u="sm"}=e;return t&&d?(0,l.Y)(P,{fields:d,data:{showFavorite:a,showQrCode:r,qrcode:o,showShare:n},childrenAs:c,isFullHeightModal:!1,title:i.formatMessage({id:"admin.shared.編輯按鈕",defaultMessage:"編輯按鈕"}),size:u,onUpdate:(e,t)=>s(e)}):c},_=e=>{let{fields:t,isEditing:a,showFavorite:r,showQrCode:o,qrcode:n,showShare:i,intl:s,onUpdate:d,name:c,id:u,avatar:p,isFullMode:h,isCardMode:m}=e;return(0,l.Y)(z,{fields:t,isEditing:a,showFavorite:r,showQrCode:o,qrcode:n,showShare:i,intl:s,onUpdate:d,children:(0,l.Y)(I,{profileId:u,profileName:c,profileAvatar:p,isEditing:a,isDisabled:!r,isFullMode:h,isCardMode:m})})};var L=a(21376),O=a(2838),U=a(87409);let W=e=>{let{fields:t,isEditing:a,showFavorite:o,showQrCode:n,qrcode:i,showShare:s,intl:d,onUp
1date:c,link:u,name:p,favicon:h,isFullMode:m,backdropFilter:f}=e,x="en"===d.locale;return(0,l.Y)(z,{fields:t,isEditing:a,showFavorite:o,showQrCode:n,qrcode:i,showShare:s,intl:d,onUpdate:c,size:x?"sm":"xl",children:(0,l.Y)(U.A,{qrcodeImage:i,trackerName:"top.qrcode",utm:"qrcode",colorScheme:"primary",link:u,name:p,isEditing:a,isDisabled:!n,favicon:h,as:m?g.A:r.IconButton,_hover:m?{bg:"white"}:{bg:"transparent"},_active:m?{}:{bg:"transparent"},backdropFilter:m?f:"none",size:"sm"})})};var j=a(42606);let H=e=>{let{fields:t,isEditing:a,showFavorite:r,showQrCode:o,qrcode:n,showShare:i,intl:s,onUpdate:d,isFullMode:c}=e;return(0,l.Y)(z,{fields:t,isEditing:a,showFavorite:r,showQrCode:o,qrcode:n,showShare:i,intl:s,onUpdate:d,children:(0,l.Y)(j.A,{trackerName:"top.share",pointerEvents:"all",colorScheme:"primary",size:"sm",isEditing:a,isDisabled:!i,isFullMode:c})})};var N=a(52956);let V=e=>{let{mode:t}=e,a=t!==N.A.LEFT,s=t===N.A.FULL,d=t===N.A.CARD,c=(0,n.A)(),{showShare:u,isEditing:p,showQrCode:h,showFavorite:m,hasCover:f,isCurveBanner:x,isPinedSection:g,qrcode:b,onUpdate:v,isDemo:w,buttonFields:A,slug:Y,favicon:y,avatar:M,id:k,name:C}=(0,o.useContext)(L.A),F=(0,i.A)(Y),S={isEditing:p,showFavorite:m,showQrCode:h,qrcode:b,showShare:u,intl:c,onUpdate:v,isFullMode:s},D=!w&&(0,l.Y)(H,{fields:null==A?void 0:A.share,...S}),B=!w&&(0,l.Y)(W,{fields:null==A?void 0:A.qrCode,...S,link:F,favicon:y,backdropFilter:"blur(4px)"}),E=!w&&(0,l.Y)(_,{fields:null==A?void 0:A.favorite,isCardMode:d,avatar:M,id:k,name:C,...S});return a?(0,l.FD)(r.HStack,{...(0,O.h)(f,x)[t],children:[u||p?D:!m&&!E&&h&&B,(m&&h||p)&&B,(0,l.Y)(r.Spacer,{}),m||p?E:(h||p)&&B]}):(0,l.FD)(r.HStack,{spacing:1,pt:!g&&"12",children:[(u||p)&&D,(h||p)&&B,(m||p)&&(0,l.Y)(r.Box,{pl:"2",children:E})]})}},85128:(e,t,a)=>{a.d(t,{A:()=>A,T:()=>g});var l=a(2445),r=a(27006),o=a(55378),n=a.n(o),i=a(96540),s=a(6442),d=a(44995),c=a(80442),u=a(46265),p=a(41012),h=a(61005),m=a(28422),f=a(3048);let x=["youtube","threads","lineAt"],g=e=>{let{link:t,pttn:a,isEmail:l,noReplace:r,platform:o}=e;return t&&a?l?t.startsWith("mailto:")?t:"mailto:".concat(t):t.startsWith("http")?t:t.includes("/")||r?"https://".concat(t):t.startsWith("@")&&!x.includes(o)?a.replace("xx
1x",t.substring(1)):x.includes(o)&&!t.startsWith("@")?a.replace("xxx","@".concat(t)):a.replace("xxx",t):""},b=(0,r.forwardRef)((e,t)=>{let{profileId:a,shouldCollect:o,label:n,...i}=e,s=(0,p.A)(a,"social",n),d=(0,r.useMergeRefs)(t,o?s:void 0);return(0,l.Y)(r.IconButton,{ref:d,...i})}),v=e=>{let{platform:t,style:a,variant:o,isEditing:n,isPreview:c,url:p,profileId:x,colorScheme:v,isDesktop:w,isCardMode:A}=e,Y=(0,s.A)(),y=(0,i.useMemo)(()=>(0,f.A)(Y).find(e=>e.value===t),[t,Y]),M=(0,h.A)("click"),k=!n&&!c,{colorMode:C}=(0,r.useTheme)(),F=(0,l.Y)(b,{shouldCollect:k,label:null==y?void 0:y.label,profileId:x,colorScheme:v||"primary",variant:o,as:!n&&d.A,href:g({link:p,pttn:null==y?void 0:y.pttn,isEmail:(null==y?void 0:y.value)==="email",noReplace:null==y?void 0:y.noReplace,platform:t}),...!n&&{isExternal:!0},icon:(0,i.createElement)(m.A,{icon:null==y?void 0:y.value,size:w?"1.75em":"1.5em"}),color:A?"dark"===C?"white":"black":null==a?void 0:a.color,bg:null==a?void 0:a.bg,"aria-label":null==y?void 0:y.label,_hover:{bg:null==a?void 0:a.hoverBg},_active:{bg:null==a?void 0:a.activeBg},_focus:{bg:null==a?void 0:a.activeBg},onClick:()=>{k&&M(x,"social",null==y?void 0:y.label)}});return(0,l.FD)(l.FK,{children:[(0,l.Y)(u.$U,{lessThan:"md",children:F}),(0,l.Y)(u.$U,{greaterThanOrEqual:"md",children:(0,l.Y)(r.Tooltip,{label:null==y?void 0:y.label,children:F})})]})},w=e=>{let{links:t,orders:a=(0,f.A)().map(e=>e.value),style:o,variant:i,isEditing:s,isPreview:d,profileId:u,isDesktop:p,isCardMode:h}=e;return(0,l.Y)(r.Wrap,{justify:h?"flex-start":"center",spacing:p&&5,children:n()(a,e=>{let a=null==t?void 0:t[e];return a&&(0,l.Y)(r.WrapItem,{children:(0,l.Y)(c.A,{children:(0,l.Y)(v,{platform:e,style:o,variant:i,isEditing:s,isPreview:d,url:a,profileId:u,isDesktop:p,isCardMode:h})})},e)})})};w.defaultProps={variant:"solid"};let A=w},34505:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(2445),r=a(27006);a(96540);var o=a(85128);let n=e=>{let{isEditing:t,isPreview:a,id:n,isDesktop:i,isCardMode:s,...d}=e;return(0,l.Y)(l.FK,{children:void 0===d?(0,l.Y)(r.HStack,{spacing:4,children:Array.from([,,,],(e,t)=>(0,l.Y)(r.Skeleton,{w:i?10:8,h:i?10:8},t))}):(0,l.Y)(o.A,{...d,variant:"ghost",isEditing:t,isPreview:a,profileId:n,isDesktop:i,isCardMode:s})})}},42948:(e,t,a)=>{a.d(t,{b:()=>l});let l=(0,a(96540).createContext)({isPeople:!1,setIsPeople:e=>e})},52956:(e,t,a)=>{a.d(t,{A:()=>r});class l{}l.CENTER="center",l.LEFT="left",l.FULL="full",l.CARD="card";let r=l},37267:(e,t,a)=>{a.d(t,{W:()=>l});let l="/android-chrome-192x192.png"},3048:(e,t,a)=>{a.d(t,{A:()=>l});let l=e=>{let t=null!=e?e:{formatMessage:e=>e.defaultMessage},a="en"===t.locale;return[{value:"email",label:"E-mail",pttn:"[email protected]"},{value:"facebook",label:"Facebook",at:!0,pttn:"https://www.facebook.com/xxx"},{value:"instagram",label:"Instagram",at:!0,pttn:"https://www.instagram.com/xxx"},{value:"website",label:t.formatMessage({defaultMessage:"官方網站",id:"admin.shared.官方網站"}),pttn:"https://www....",noReplace:!0},{value:"portaly",label:t.formatMessage({defaultMessage:"傳送門",id:"admin.shared.傳送門"}),pttn:"https://portaly.cc/xxx"},{value:"xiaohongshu",label:a?"Xiaohongshu":"小紅書",pttn:"http://www.xiaohongshu.com/user/profile/xxx"},{value:"youtube",label:"Youtube",at:!0,pttn:"https://www.youtube.com/xxx"},{value:"tiktok",label:"Tiktok",at:!0,pttn:"https://www.tiktok.com/@xxx"},{value:"twitch",label:"Twitch",pttn:"https://www.twitch.tv/xxx"},{value:"vimeo",label:"Vimeo",pttn:"https://vimeo.com/xxx"},{value:"twitter",label:"Twitter",at:!0,pttn:"https://twitter.com/xxx"},{value:"threads",label:"Threads",at:!0,pttn:"https://www.threads.net/xxx"},{value:"discord",label:"Discord",pttn:"https://discord.gg/xxx"},{value:"bluesky",label:"Bluesky",pttn:"https://bsky.app/profile/xxx"},{value:"line",label:"Line",pttn:"https://line.me/ti/p/xxx"},{value:"lineAt",label:"Line@",pttn:"https://line.me/R/xxx"},{value:"whatsapp",label:"WhatsApp",pttn:"https://wa.me/xxx"},{value:"wechat",label:"WeChat",pttn:"https://u.wechat.com/xxx",hidden:!0},{value:"telegram",label:"Telegram",pttn:"https://t.me/xxx"},{value:"medium",label:"Medium",pttn:"https://medium.com/@xxx"},{value:"substack",label:"Substack",pttn:"https://xxx.substack.com/"},{value:"github",label:"Github",pttn:"https://github.com/xxx"},{value:"devTo",label:"Dev.to",pttn:"https://dev.to/xxx"},{value:"stackoverflow",label:"Stackoverflow",pttn:"https://stackoverflow.com/users/xxx"},{value:"linkedIn",label:"LinkedIn",pttn:"https://www.linkedin.com/in/xxx"},{value:"notion",label:"Notion",pttn:"https://www.notion.so/xxx/...",noReplace:!0},{value:"figma",label:"Figma",pttn:"https://www.figma.com/@xxx"},{value:"behance",label:"Behance",pttn:"https://behance.net/xxx"},{value:"dribbble",label:"Dribbble",pttn:"https://dribbble.com/xxx"},{value:"pinterest",label:"Pinterest",pttn:"https://www.pinterest.com/xxx"},{value:"webtoon",label:"Webtoon",pttn:"https://www.webtoons.com/creator/xxx"},{value:"blogger",label:"Blogger",pttn:"https://xxx.blogspot.com"},{value:"applePodcasts",label:"Apple Podcasts",pttn:"https://podcasts.apple.com/tw/podcast/xxx"},{value:"spotify",label:"Spotify",pttn:"https://open.spotify.com/show/xxx"},{value:"appleMusic",label:"Apple Music",pttn:"https://music.apple.com/xxx"},{value:"youtubeMusic",label:"YouTube Music",pttn:"https://music.youtube.com/xxx"},{value:"letterboxd",label:"Letterboxd",pttn:"https://letterboxd.com/xxx"},{value:"soundcloud",label:"Soundcloud",pttn:"https://soundcloud.com/xxx"},{value:"pixiv",label:"Pixiv",pttn:"https://www.pixiv.net/users/xxx"},{value:"artstation",label:"Artstation",pttn:"https://www.artstation.com/xxx"},{value:"deviant",label:"Deviant",pttn:"https://www.deviantart.com/xxx"},{value:"patreon",label:"Patreon",pttn:"https://www.patreon.com/xxx"},{value:"kofi",label:"Kofi",pttn:"https://ko-fi.com/xxx"},{value:"buymeacoffee",label:"Buy me a coffee",pttn:"https://www.buymeacoffee.com/xxx"},{value:"onlyfans",label:"OnlyFans",pttn:"https://onlyfans.com/xxx"},{value:"gumroad",label:"Gumroad",pttn:"https://xxx.gumroad.com"},{value:"amazon",label:"Amazon",pttn:"https://www.amazon.com/shops/xxx"},{value:"etsy",label:"Etsy",pttn:"https://www.etsy.com/shop/xxx"},{value:"inprnt",label:"Inprnt",pttn:"https://www.inprnt.com/gallery/xxx"},{value:"redbubble",label:"Redbubble",pttn:"https://www.redbubble.com/people/xxx/shop"},{value:"shopee",label:"Shopee",pttn:"https://shopee.tw/xxx"},{value:"pinkoi",label:"Pinkoi",pttn:"https://www.pinkoi.com/store/xxx"},{value:"appstore",label:"App store",pttn:"https://www....",noReplace:!0},{value:"googleplay",label:"Play store",pttn:"https://www....",noReplace:!0},{value:"plurk",label:"Plurk",pttn:"https://www.plurk.com/xxx"},{value:"flickr",label:"Flickr",pttn:"https://www.flickr.com/people/xxx"}]}},49015:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var l=a(2445),r=a(99624),o=a(43216),n=a(96540),i=a(36795),s=a(37098),d=a(65606);let c={firestore:async()=>Promise.all([r.z_,Promise.resolve().then(a.bind(a,22405)).then(e=>{let{getFirestore:t,connectFirestoreEmulator:a}=e;return{getter:t,connectEmulator:a}}),["localhost",8080]]),functions:async()=>Promise.all([r.VB,Promise.resolve().then(a.bind(a,9749)).then(e=>{let{getFunctions:t,connectFunctionsEmulator:a}=e;return{getter:t,connectEmulator:a}}),["localhost",5001]]),auth:async()=>Promise.all([r.OJ,Promise.resolve().then(a.bind(a,61032)).then(e=>{let{getAuth:t,connectAuthEmulator:a}=e;return{getter:t,connectEmulator:a}}
1),["http://localhost:9099"]]),database:async()=>Promise.all([r.Dt,Promise.resolve().then(a.bind(a,69141)).then(e=>{let{getDatabase:t,connectDatabaseEmulator:a}=e;return{getter:t,connectEmulator:a}}),["localhost",9199]])},u=e=>{let{children:t,allModules:a,isSuper:o}=e,u=(0,n.useRef)({}),p=(0,n.useRef)({}),h=(a?["functions","firestore","auth"]:[]).concat(o?"database":[]),[m,f]=(0,n.useState)([]),x=(0,r.sh)(),g=async e=>{await Promise.all(e.map(async e=>{p.current[e]=await c[e]()}))},b=e=>t=>e.every(e=>t.includes(e))?t:[...new Set([...t,...e])],v=async e=>{let t=[].concat(e);await g(t),f(b(t))};return(0,n.useEffect)(()=>{window[s.Sn]=x},[x]),(0,n.useEffect)(()=>{h.length&&g(h).then(()=>{f(b(h))})},[]),(0,l.Y)(i.A.Provider,{value:{addSdk:v,activeSDK:m},children:(0,n.useMemo)(()=>m.reduce((e,t)=>{if(!u.current[t]){let[e,{getter:a,connectEmulator:l},r]=p.current[t],o=a(x);"function"==typeof l&&d.env.NEXT_PUBLIC_FIREBASE_EMULATOR,u.current[t]=(0,n.createElement)(e,{sdk:o})}return(0,n.cloneElement)(u.current[t],{},e)},t),[m,t])})},p=e=>{let{children:t,allModules:a,isSuper:n}=e;return(0,l.Y)(r.qB,{firebaseConfig:o.A,children:(0,l.Y)(u,{allModules:a,isSuper:n,children:t})})}},46896:(e,t,a)=>{a.d(t,{A:()=>l});let l=(e,t,a)=>{if(t&&e){let l=Object.values(t).reduce((e,t,a)=>(e[t]=a,e),{}),r=[...e].filter(e=>{if(Array.isArray(t)){let l=a?e.groupMemberId:e.id;return null==t?void 0:t.includes(l)}}).sort((e,t)=>a?l[e.groupMemberId]-l[t.groupMemberId]:l[e.id]-l[t.id]);return[...e.filter(e=>{if(Array.isArray(t)){let l=a?e.groupMemberId:e.id;return!t.includes(l)}}),...r].filter(e=>!Array.isArray(e))}return e}},29720:(e,t,a)=>{a.d(t,{A:()=>o});var l=a(23805),r=a.n(l);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";return r()(e)?Object.keys(e).map(a=>({...e[a],[t]:a})):[]}}}]);

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.