티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4858],{13033:(e,t,n)=>{n.d(t,{n:()=>I});var l=n(54568),a=n(40598),r=n(25150),i=n.n(r),o=n(10495),d=n(7620),s=n(96268);let c=(0,d.createContext)({id:””,expandedIndex:0,theme:”light”}),u=()=>(0,d.useContext)(c),m=(0,d.forwardRef)((e,t)=>{let{className:n}=e,{icon:a}=u();return(0,l.jsxs)(“header”,{ref:t,className:i()(“block text-center lg:text-left lg:flex lg:pl-0”,{[n]:n}),children:[a?(0,l.jsx)(o.IconV3,{style:{“–w”:”46.41px”,”–md-w”:”52.22px”},className:”accordion-icon -mt-2 inline w-[var(–w)] h-fit [&_svg]:h-auto [&_svg]:w-[var(–w)] lg:w-[var(–md-w)] lg:[&_svg]:w-[var(–md-w)] lg:-ml-[20.3px] lg:flex”,iconName:a}):null,(0,l.jsx)(I.Title,{})]})});m.displayName=”AccordionHeader”;var h=n(62950);let g=(0,d.createContext)({}),x=()=>(0,d.useContext)(g);var f=n(87832),p=n(74695),v=n(69331);let w=(0,d.forwardRef)((e,t)=>{let{className:n}=e,{items:a,expandedIndex:r,id:o}=u();return null==a?void 0:a.map((e,a)=>(0,l.jsx)(v.EL,{ref:t,id:”accordion-item-content-“+r+”-“+o,bynderImage:null==e?void 0:e.bynderImage,wrapperClasses:i()(“accordion-image flex w-full h-auto aspect-[3/2] lg:aspect-[4/3]”,{[n]:n,hidden:a!==r})},a))});w.displayName=”AccordionImage”;var b=n(70129);let y=e=>{let{className:t}=e;return(0,l.jsx)(“svg”,{className:t,xmlns:”http://www.w3.org/2000/svg”,width:”33″,height:”33″,viewBox:”0 0 33 33″,fill:”none”,”aria-hidden”:”true”,children:(0,l.jsx)(“rect”,{x:”7.16699″,y:”15.5347″,width:”18.6667″,height:”2.66667″,rx:”1.33333″,fill:”currentColor”})})},j=(0,d.forwardRef)((e,t)=>{var n,a,r;let{className:d}=e,{items:s,expandedIndex:c,id:m}=u(),h=null==s?void 0:s[c||0],g=null==h||null==(n=h.video)?void 0:n.mp4;return(0,l.jsx)(“div”,{ref:t,id:”accordion-item-content-“+c+”-“+m,className:i()(“accordion-assets accordion-video flex w-full h-auto aspect-[3/2] lg:aspect-[4/3] [&_video]:object-contain”,{[d]:d}),children:g&&(0,l.jsx)(o.VideoAutoPlay,{“aria-live”:”polite”,loop:!0,mp4:g,alt:null==(a=h.video)?void 0:a.alt,poster:null==(r=h.video)?void 0:r.poster})})});j.displayName=”AccordionVideo”;let I={Provider:e=>{let{children:t,…n}=e;return(0,l.jsx)(c.Provider,{value:{…n,theme:(0,s.I)(n.theme)},children:t})},Header:m,Title:function(e){let{className:t}=e,{title:n,semanticLevel:a}=u();return(0,l.jsx)(a||”h2″,{className:i()(“accordion-title inline text-display-mobile-6 md:text-display-6 lg:max-w-[35rem]”,{[t]:t,[b.lS]:b.lS}),children:(0,f.Ay)(null!=n?n:””)})},Item:function(e){let{className:t,children:n,…a}=e,{index:r}=x();return(0,l.jsx)(h.As,{…a,value:””.concat(r),className:i()(“accordion-item”,{[t]:t}),children:n})},ItemProgress:function(){let{isExpanded:e,isPaused:t,style:n,onAnimationIteration:a,isStopped:r}=x(),{showTimer:d}=u();return(0,l.jsx)(“div”,{className:i()(“accordion-progress w-1/2 absolute left-0 top-[2px] h-[calc(100%-2px)] z-1 rounded-bokeh-lg overflow-hidden”,{“opacity-0″:!d}),”aria-hidden”:!0,children:(0,l.jsx)(o.ProgressAnimatedVertical,{hidden:!e,”aria-hidden”:!e,isPaused:t,style:n,onAnimationIteration:a,isStopped:r,responsiveAnimation:{tablet:!0}})})},ItemContent:function(e){var t,n;let r,{className:s}=e,{isExpanded:c,index:m}=x(),[g,v]=d.useState(!c),{items:w,theme:b,id:y}=u(),j=null==w?void 0:w[m||0],I=d.useRef(null),{width:N}=(0,a.G4)(),k=(0,d.useCallback)(e=>{e.target===I.current&&(e.stopPropagation(),I.current&&”0px”===I.current.style.height&&v(!0))},[]);return d.useEffect(()=>{let e=null==I?void 0:I.current;return null==e||e.addEventListener(“transitionend”,k),()=>{null==e||e.removeEventListener(“transitionend”,k)}},[k]),d.useEffect(()=>{I.current&&(c?(v(!1),I.current.style.height=””.concat(I.current.scrollHeight,”px”)):I.current.style.height=”0px”)},[c,N]),(0,l.jsxs)(h.ub,{ref:I,className:i()(“accordion-content text-lohp-container-sub-content overflow-hidden bg-transparent transition-[height] duration-500 ease-in-out w-[calc(100%-1.875rem)] flex flex-col gap-y-5 text-body-2″,”max-md:overflow-visible [&>a]:max-md:-mr-4”,p._i,{“text-lohp-gray”:”dark”!==b,[s]:s,”opacity-1″:!g,”opacity-0″:g}),forceMount:!0,”aria-hidden”:!c,hidden:g,”aria-owns”:”accordion-item-content-“+m+”-“+y,”aria-describedby”:”accordion-item-content-“+m+”-“+y,”aria-flowto”:”accordion-item-content-“+m+”-“+y,children:[(null==j?void 0:j.content)&&”string”==typeof(null==j?void 0:j.content)&&(0,f.Ay)(j.content,(r=!!c,{replace:e=>{let t=e=>{e instanceof f.Hg&&(“button”===e.name||”a”===e.name)&&(e.attribs[“aria-hidden”]=r?”false”:”true”,e.attribs.tabIndex=r?”0″:”-1″),e instanceof f.Hg&&e.children&&e.children.forEach(e=>{“name”in e&&”attribs”in e&&t(e)})};return t(e),e}})),(null==j||null==(t=j.cta)?void 0:t.url)&&(null==j||null==(n=j.cta)?void 0:n.label)&&(0,l.jsx)(o.ButtonStandard,{className:”md:!w-fit”,”aria-hidden”:!c,tabIndex:c?0:-1,theme:”dark”===b?”white”:”dark-gray”,…j.cta})]})},ItemProvider:e=>{let{children:t,…n}=e;return(0,l.jsx)(g.Provider,{value:n,children:t})},ItemTrigger:function(e){let{className:t}=e,{items:n}=u(),{index:a,isExpanded:r}=x(),o=null==n?void 0:n[a||0].title;return(0,l.jsx)(h.u,{className:”accordion-header w-full group py-2″,children:(0,l.jsxs)(h.$m,{className:i()(“accordion-trigger text-card-content transition-opacity duration-350 ease-in-out bg-transparent border-none no-underline p-0 w-full text-left flex justify-between data-[state=closed]:cursor-pointer”,{“group-hover:text-lohp-container-content-hover”:!r,[b.jE]:b.jE,[t]:t}),…{“data-bp-element”:”card”},children:[(0,l.jsx)(“h3″,{className:”text-body-2-med max-md:w-3/4 min-w-60”,children:o}),(0,l.jsx)(I.ItemTriggerIcon,{})]})})},ItemVideo:j,ItemTriggerIcon:function(){let{expandedIndex:e,hideExpandedTriggerIcon:t}=u(),{index:n}=x(),a=e===n;return(0,l.jsxs)(“div”,{className:i()(“accordion-trigger-icon relative w-6 h-6”,{“transition-opacity duration-350 linear motion-reduce:transition-none”:t,”opacity-0 delay-350″:a&&t,”opacity-1″:!a&&t}),children:[(0,l.jsx)(y,{className:” w-6 h-6 absolute top-0 left-0″}),(0,l.jsx)(y,{className:i()(” w-6 h-6 absolute top-0 left-0 transition-transform delay-350 duration-350 ease-in-out motion-reduce:transition-none”,{“rotate-90″:!a,”rotate-0″:a})})]})},ItemImages:w,CtaList:function(e){let{ctaList:t,className:n}=e,{theme:r,builderBlock:d}=u(),{ListElement:s,ListItemElement:c}=(0,a.OQ)(t),m=”dark”===r?”white”:”dark-gray”,h=”dark”===r?”black”:”white”,g=!!(null==d?void 0:d.id);return(0,l.jsx)(s,{className:i()(“flex flex-col gap-y-4 lg:flex-col xl:flex-row md:gap-x-4 items-start”,{[n]:n}),children:t.map((e,n)=>(0,l.jsx)(c,{className:”flex w-fit”,children:g?(0,l.jsx)(o.Blocks,{parent:d&&d.id,blocks:(0,o.setBuilderBlockTheme)(null==t?void 0:t[n].blocks,0===n?m:h),path:”component.options.ctaList.”.concat(n,”.blocks”)},n):0===n?(0,l.jsx)(o.ButtonStandard,{…e,theme:m}):(0,l.jsx)(o.ButtonGhost,{…e,theme:h})},n))})}}},44858:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var l=n(54568),a=n(40598),r=n(83877),i=n(62950),o=n(25150),d=n.n(o),s=n(7620),c=n(10495),u=n(13033);function m(e){var t,n,o,m,h,g,x,f,p;let{isMobile:v}=(0,a.G4)(),w=(0,s.useRef)(null),b=(0,s.useRef)(null),y=(0,s.useRef)(null),j=(0,s.useRef)(null),I=!1===(0,a.E_)({ref:b,threshold:.3,unsetOnHide:!0})||v,N=(0,r.$CC)({title:e.title}),{containerHeight:k}=(e=>{let{containerRef:t}=e,[n,l]=(0,s.useState)(0),{width:r}=(0,a.G4)(),i=(0,s.useCallback)(()=>{let e=null;if(t.current){let n=0,l=t.current.querySelectorAll(“.accordion-item-wrapper>div”),a=t.current.querySelectorAll(“.accordion-item-wrapper>.accordion-header”);if((null==l?void 0:l.length)>0){n=l.length;let t=[…l].reduce((e,t)=>Math.max(e,t.scrollHeight),0);e=t+[…a].reduce((e,t)=>e+t.scrollHeight,0)+28*n}}return e},[t]);return(0,s.useEffect)(()=>{if(t.current){let e=i();e&&l(e)}},[t,r]),{containerHeight:n,screenWidth:r}})({containerRef:w}),{animationClasses:C}=(0,a.Iw)(b,”subtle-fade-in”),{animationClasses:E}=(0,a.Iw)(y,”subtle-fade-in”),{animationClasses:T}=(0,a.Iw)(j,”slide-in-from-bottom”),{expandedIndex:A,value:R,onValueChange:S,pause:_,resume:P,isPaused:V,style:H,onAnimationIteration:B}=(e=>{var t;let{items:n,defaultReadTime:l,stopProgression:a}=e,[r,i]=(0,s.useState)(0),[o,d]=(0,s.useState)(!1),u=l||(null==n||null==(t=n[r])?void 0:t.readTime)||20;return(0,s.useEffect)(()=>{a&&(i(0),d(!1))},[a]),{value:””.concat(r),onValueChange:e=>{i(parseInt(e))},expandedIndex:r,pause:()=>d(!0),resume:()=>d(!1),onAnimationIteration:()=>{i(e=>(e+1)%((null==n?void 0:n.length)||1))},style:{[c.PROGRESS_DURATION_VAR_NAME]:u+”s”},isPaused:o}})({items:e.items,defaultReadTime:e.defaultReadTime,stopProgression:I});return(0,l.jsx)(c.ContainerStandard,{ref:w,className:”col-[1/-1] text-lohp-container-content”,theme:e.theme,style:{“–container-height”:””.concat(k,”px”)},”data-bp-cta-location-id”:e[“data-bp-cta-location-id”],children:(0,l.jsx)(u.n.Provider,{…e,id:N,expandedIndex:A,hideExpandedTriggerIcon:!0,children:(0,l.jsxs)(“div”,{className:”accordionTimedInner col-[2/-2] flex flex-col lg:grid lg:grid-areas-accordionTimed lg:grid-cols-accordionTimed lg:grid-rows-accordionTimed gap-y-10 gap-x-16″,children:[(0,l.jsx)(u.n.Header,{ref:y,className:d()(“accordion-header lg:grid-in-header”,{[E]:E})}),(!!(null==e||null==(n=e.items)||null==(t=n[A])?void 0:t.video)||!!(null==e||null==(m=e.items)||null==(o=m[A])?void 0:o.bynderImage))&&(0,l.jsx)(“div”,{className:”accordion-assets lg:grid-in-asset”,children:(null==e||null==(g=e.items)||null==(h=g[A])?void 0:h.video)?(0,l.jsx)(u.n.ItemVideo,{ref:j,className:d()(“lg:sticky lg:top-24″,”lg:grid-in-asset”,{[T]:T})}):(null==e||null==(f=e.items)||null==(x=f[A])?void 0:x.bynderImage)?(0,l.jsx)(u.n.ItemImages,{ref:j,className:d()(“lg:sticky lg:top-24″,”lg:grid-in-asset”,{[T]:T})}):null}),(0,l.jsx)(i.bL,{ref:b,type:”single”,defaultValue:”0″,value:R,onValueChange:S,collapsible:!1,className:d()(“accordion-body col-[2/-2] motion-reduce:animate-none”,”flex flex-col gap-y-5″,”lg:grid-in-accordion”,”h-[var(–container-height,372px)]”,{[C]:C}),children:null==(p=e.items)?void 0:p.map((t,n)=>{let a=n===A;return(0,l.jsx)(u.n.ItemProvider,{…t,index:n,isExpanded:a,pause:_,resume:P,isPaused:V,style:H,onAnimationIteration:B,isStopped:I,children:(0,l.jsxs)(u.n.Item,{className:”relative rounded-bokeh-lg overflow-hidden flex z-0 focus-within:relative focus-within:z-1″,onMouseEnter:a?()=>_():void 0,onMouseLeave:a?()=>P():void 0,onFocus:a?()=>_():void 0,onBlur:a?()=>P():void 0,children:[(0,l.jsx)(u.n.ItemProgress,{}),(0,l.jsxs)(“div”,{className:d()(“accordion-item-wrapper rounded-bokeh-lg z-2 w-full px-lohp-md transition-all duration-350 ease-in-out”,{“bg-lohp-container-card py-lohp-md gap-y-2.5″:a,”md:ml-1″:e.showTimer}),children:[(0,l.jsx)(u.n.ItemTrigger,{}),(0,l.jsx)(u.n.ItemContent,{})]})]},t.id||n)},t.id||n)})})]})})})}},96268:(e,t,n)=>{n.d(t,{I:()=>l});let l=e=>”black”===e?”dark”:”white”===e?”light”:”light-gray”===e?”light-gray”:”light”}}]);