PageSourceSearch

https://embracingthemadness.com/_next/static/immutable/chunks/1qj6fjb4srple.js

js embracingthemadness.com collected 2026-09-27 11:48:32 UTC 47,598 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="57f3c1cf-f2cb-115c-dd0e-0b200fccd215")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,292666,e=>{"use strict";var l=e.i(268601),t=e.i(396528),r=e.i(975705),a=e.i(18624),i=e.i(715111),s=e.i(429283);let n={src:e.i(434922).default,width:24,height:24,blurWidth:0,blurHeight:0};function o({children:e}){return(0,l.jsx)("div",{className:"[writing-mode:vertical-rl] font-interTight font-normal text-[12px] leading-[15px] text-center uppercase border-l border-black px-3 min-w-[40px]",children:e})}function c({width:e=22,height:t=21,className:r}){return(0,l.jsxs)("svg",{width:e,height:t,viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[(0,l.jsx)("path",{d:"M0.900391 10.7002H21.4004",stroke:"currentColor",strokeWidth:"1.5874",strokeMiterlimit:"10"}),(0,l.jsx)("path",{d:"M11.0996 0.299805V20.9998",stroke:"currentColor",strokeWidth:"1.5874",strokeMiterlimit:"10"}),(0,l.jsx)("path",{d:"M11.0996 0.299805V20.9998",stroke:"currentColor",strokeWidth:"1.5874",strokeMiterlimit:"10"}),(0,l.jsx)("path",{d:"M21.4004 10.7002H0.900391",stroke:"currentColor",strokeWidth:"1.5874",strokeMiterlimit:"10"})]})}let d=(0,s.withPreview)(function({name:e,username:t,image:a,bio:s,isVip:d}){let[u,m]=(0,r.useState)(!1),p=e?`${e}`:`@${t}`;return(0,l.jsxs)("div",{className:"flex min-h-[130px] border-t border-black bg-layering-color1 text-layering-color9",children:[(0,l.jsxs)("div",{className:"w-full py-2 px-3",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between mb-[10px]",children:[!d&&(0,l.jsx)("h1",{className:"layering-template-title line-clamp-2 text-inherit",children:p}),d&&(0,l.jsxs)("div",{className:"flex items-start justify-center gap-1",children:[(0,l.jsx)("h1",{className:"layering-template-title line-clamp-2 text-inherit",children:p}),(0,l.jsx)("div",{className:"shrink-0 mt-1",children:(0,l.jsx)(i.default,{src:n,alt:"Planoly VIP account",width:22,height:22})})]}),(0,l.jsx)("button",{onClick:()=>{m(!u)},className:"bg-transparent border-none relative cursor-pointer w-[22px] h-[21px] min-w-[22px] mt-1 ml-1",children:(0,l.jsx)(c,{className:`absolute top-0 left-0 w-full h-full transition-transform duration-100 ease-in-out ${u?"rotate-0":"rotate-45"}`})})]}),!u&&(0,l.jsxs)("div",{className:"w-full animate-toggle-in",children:[(0,l.jsx)("div",{className:"relative w-full aspect-square mr-5 rounded-[15px] overflow-hidden border border-black",children:(0,l.jsx)(i.default,{src:a,fill:!0,priority:!0,sizes:"100vw",alt:""})}),(0,l.jsx)("p",{className:"font-interTight font-normal text-[13px] leading-[16px] mt-3",children:s})]})]}),(0,l.jsx)(o,{children:"profile"})]})},s.blockPreviewConfig.bio);var u=e.i(621624),m=e.i(124641),p=e.i(435987),h=e.i(230902),x=e.i(631197),f=e.i(688166);function b({title:e,children:t,type:a,className:i,fadeOnly:s}){let[n,d]=(0,r.useState)(!1),u=()=>{d(!n)};return(0,l.jsxs)("div",{className:`flex min-h-[130px] border-t border-black ${i||""}`,children:[(0,l.jsxs)("div",{className:"w-full py-2 px-3 overflow-hidden",children:[(0,l.jsx)("div",{className:"flex items-start justify-between mb-[10px]",children:e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h1",{className:"layering-template-title line-clamp-2 text-inherit",children:e}),(0,l.jsx)("button",{onClick:u,className:"bg-transparent border-none relative cursor-pointer w-[22px] h-[21px] min-w-[22px] mt-1",children:(0,l.jsx)(c,{className:`absolute top-0 left-0 w-full h-full transition-transform duration-100 ease-in-out ${n?"rotate-0":"rotate-45"}`})})]}):(0,l.jsx)("button",{onClick:u,className:"bg-transparent border-none relative cursor-pointer w-[22px] h-[21px] min-w-[22px] mt-1 ml-auto",children:(0,l.jsx)(c,{className:`absolute top-0 left-0 w-full h-full transition-transform duration-100 ease-in-out ${n?"rotate-0":"rotate-45"}`})})}),!n&&(0,l.jsx)("div",{className:`w-full ${s?"animate-fade-in":"animate-toggle-in"}`,children:t})]}),(0,l.jsx)(o,{children:a})]})}var g=e.i(671246),j=e.i(642290);let y={src:e.i(760376).default,width:344,height:150,blurWidth:0,blurHeight:0};var v=e.i(221639);function k({title:e,price:t,saleDiscountPrice:r,description:a,image:s,url:n,onClick:o,id:c,rating:d}){return(0,l.jsxs)(j.default,{href:n,prefetch:!1,onClick:o,children:[(0,l.jsx)("div",{className:"relative w-full aspect-[2] border border-black rounded-[15p
2x] overflow-hidden",children:(0,l.jsx)(i.default,{src:s||y,fill:!0,sizes:"100vw",style:{objectFit:"cover"},alt:e??""})}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"w-full flex items-start justify-between mb-3 mt-3",children:[e&&(0,l.jsx)("h2",{className:"layering-template-title mr-3 break-words line-clamp-2",children:e}),t&&(0,l.jsx)("p",{className:"layering-template-paragraph-eyebrow whitespace-nowrap",children:r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("s",{children:t})," ",(0,l.jsx)("strong",{children:r})]}):t})]}),a&&(0,l.jsx)("p",{className:"layering-template-paragraph-body line-clamp-3",dangerouslySetInnerHTML:{__html:a}}),d&&(0,l.jsx)("div",{onClick:e=>e.preventDefault(),className:"mt-2",children:(0,l.jsx)(g.default,{serviceId:c,...d,style:g.RatingsStyles.COMPACT,starsColor:v.default.color2.color5})})]})]})}function w({title:e,image:t,description:r,price:a,url:i,type:s,id:n,saleDiscountPrice:o,isCarouselItem:c,rating:d}){return(0,l.jsxs)(l.Fragment,{children:[c&&(0,l.jsx)(k,{image:t,id:n,description:r,price:a,rating:d,saleDiscountPrice:o,url:i,title:e}),!c&&(0,l.jsx)(b,{title:e||"Featued link",type:s||"featured",className:"w-full relative bg-layering-color3",children:(0,l.jsx)(k,{image:t,id:n,description:r,price:a,rating:d,saleDiscountPrice:o,url:i})})]})}var C=e.i(980728);function N({className:e}){return(0,l.jsxs)("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:{minWidth:23},children:[(0,l.jsx)("path",{d:"M11.2016 21.2998C10.9016 21.2998 10.7017 21.1998 10.5017 20.9998C10.1017 20.5998 10.1017 19.9998 10.5017 19.5998L19.9017 10.7998L10.5017 1.9998C10.1017 1.5998 10.1017 0.999805 10.5017 0.599805C10.9017 0.199805 11.5017 0.199805 11.9017 0.599805L21.9017 9.9998C22.1017 10.1998 22.3016 10.4998 22.3016 10.7998C22.3016 11.0998 22.2017 11.3998 21.9017 11.5998L11.9017 20.9998C11.7017 21.1998 11.4016 21.2998 11.2016 21.2998Z",fill:"currentColor"}),(0,l.jsx)("path",{d:"M20.7016 11.6997H1.10156C0.601562 11.6997 0.101562 11.2997 0.101562 10.6997C0.101562 10.1997 0.501562 9.69971 1.10156 9.69971H20.7016C21.2016 9.69971 21.7016 10.0997 21.7016 10.6997C21.7016 11.2997 21.2016 11.6997 20.7016 11.6997Z",fill:"currentColor"})]})}function P({title:e,children:t,type:r,className:a}){return(0,l.jsxs)("div",{className:`flex min-h-[130px] border-t border-black ${a||""}`,children:[(0,l.jsxs)("div",{className:"w-full py-2 px-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-[10px]",children:[(0,l.jsx)("h1",{className:"layering-template-title text-inherit",children:e}),(0,l.jsx)(N,{})]}),(0,l.jsx)("div",{className:"w-full",children:t})]}),(0,l.jsx)(o,{children:r})]})}function S({title:e,type:t,url:r,image:a,small:s,onClick:n}){return(0,l.jsxs)(j.default,{href:r,prefetch:!1,onClick:n,children:[a&&(0,l.jsxs)("div",{className:"flex bg-layering-color3 border-t border-black",children:[(0,l.jsx)("div",{className:`relative h-[145px] min-w-[145px] min-[480px]:${s?"h-[145px] min-w-[145px]":"h-[200px] min-w-[200px]"}`,children:(0,l.jsx)(i.default,{src:a,alt:e,fill:!0,sizes:"100vw",style:{objectFit:"cover"}})}),(0,l.jsx)("div",{className:"w-full py-2 px-3 min-w-0",children:(0,l.jsxs)("div",{className:"flex items-start justify-between mb-[10px]",children:[(0,l.jsx)("h1",{className:"m-0 font-interTight font-normal text-[20px] leading-[25px] uppercase line-clamp-4 break-words hyphens-auto",children:e}),(0,l.jsx)(N,{className:"mt-1 ml-1"})]})}),(0,l.jsx)(o,{children:t})]}),!a&&(0,l.jsx)(P,{title:e,type:t,className:"bg-layering-color3 border-t border-black",children:null})]})}function A({title:e,price:t,description:a,imageUrls:s,url:n,onClick:o}){let[c,d]=(0,r.useState)(0),[u,m]=(0,r.useState)(!1),[p,h]=(0,C.useKeenSlider)({initial:0,slideChanged(e){d(e.track.details.rel)},created(){m(!0)}}),x=(0,r.useRef)(0),f=(0,r.useCallback)(e=>{x.current=e.screenX},[]),b=(0,r.useCallback)(e=>{Math.abs(e.screenX-x.current)>10&&e.preventDefault()},[]),g=(0,r.useMemo)(()=>u&&h.current?[...Array(h.current.slides.length).keys()]:[],[h,u]);return(0,l.jsxs)(j.default,{href:n,prefetch:!1,onClick:o,children:[(0,l.jsxs)("div",{className:"relative border border-black rounded-[15p
2x] overflow-hidden brightness-[0.8]",children:[(0,l.jsx)("ul",{ref:p,className:"keen-slider",role:"button",tabIndex:0,onMouseDown:f,onClick:b,children:s?.map((t,r)=>(0,l.jsx)("li",{className:"keen-slider__slide",children:(0,l.jsx)("div",{className:"relative w-full aspect-[2]",children:(0,l.jsx)(i.default,{src:t||y,alt:e??"",fill:!0,sizes:"100vw",style:{objectFit:"cover"}})})},r))}),u&&h.current&&s&&s.length>1&&(0,l.jsx)("div",{className:"w-full absolute text-center z-10 bottom-[10px]",children:g.map(e=>(0,l.jsx)("span",{role:"button",tabIndex:e,className:`w-2 h-2 rounded-full cursor-pointer mx-1 inline-block bg-white ${c===e?"opacity-100":"opacity-40"}`,onClick:l=>{l.preventDefault(),h.current?.moveToIdx(e)}},e))})]}),(0,l.jsxs)("div",{className:"mt-3",children:[(0,l.jsxs)("div",{className:"w-full flex items-start justify-between mb-3",children:[e&&(0,l.jsx)("h2",{className:"layering-template-title mr-3 break-words line-clamp-2",children:e}),(0,l.jsx)("p",{className:"layering-template-paragraph-eyebrow",children:t})]}),(0,l.jsx)("p",{className:"layering-template-paragraph-body line-clamp-3",children:a})]})]})}function T({block:e,isCarouselItem:t,onClick:r}){let{productBlockTitle:a,description:i,url:s,price:n,coverAssets:o}=e,c=o?.map(({facades:e})=>e?.image?.url)??[];return(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsx)(A,{title:a,imageUrls:c,description:i,price:n&&n.amount>
20?(0,p.formatAmountForDisplay)(n.amount/100,n.currencyCode):void 0,url:s,onClick:()=>r&&r(e)}),!t&&(0,l.jsx)(b,{title:a||"product link",type:"featured",fadeOnly:!0,className:"w-full relative bg-layering-color3",children:(0,l.jsx)(A,{imageUrls:c,description:i,price:n&&n.amount>0?(0,p.formatAmountForDisplay)(n.amount/100,n.currencyCode):void 0,url:s,onClick:()=>r&&r(e)})})]})}let E=(0,s.withPreview)(function({block:e,onClick:t}){let{productBlockTitle:r,url:a,cardStyle:i,...s}=e;return(0,l.jsx)(l.Fragment,{children:"THUMBNAIL"===i?(0,l.jsx)(S,{url:a,onClick:()=>t&&t(e),type:"product",title:r,image:s?.coverAssets&&s.coverAssets.length>0&&s.coverAssets[0].facades?.image?.url}):(0,l.jsx)(T,{block:e,onClick:t})})},s.blockPreviewConfig.product);function B({children:e,title:t,isProduct:a,type:i}){let[s,n]=(0,r.useState)(!1);if(e&&1===e.length)if(r.default.isValidElement(e[0]))return(0,l.jsx)(b,{title:t,type:i,className:"bg-layering-color3",children:r.default.cloneElement(e[0],{isCarouselItem:!0})});else return(0,l.jsx)(b,{title:t,type:i,className:"bg-layering-color3",children:e[0]});return(0,l.jsxs)("div",{className:"flex min-h-[130px] bg-layering-color3 border-t border-black",children:[(0,l.jsxs)("div",{className:"w-full pt-2 pb-2 overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between mx-[10px] mb-[10px]",children:[(0,l.jsx)("h1",{className:"layering-template-title line-clamp-2",children:t}),(0,l.jsx)("button",{onClick:()=>{n(!s)},className:"bg-transparent border-none relative cursor-pointer w-[22px] h-[21px] min-w-[22px]",children:(0,l.jsx)(c,{className:`absolute top-0 left-0 w-full h-full transition-transform duration-100 ease-in-out ${s?"rotate-0":"rotate-45"}`})})]}),!s&&(0,l.jsx)("div",{className:`w-full ${a?"animate-fade-in":"animate-toggle-in"}`,children:(0,l.jsx)("ul",{className:"w-full m-0 snap-x snap-mandatory scroll-pr-0 flex scroll-smooth relative overflow-x-auto px-[10px] scroll-pl-3",children:r.default.Children.map(e,e=>r.default.isValidElement(e)?(0,l.jsx)("li",{className:"min-w-[85%] list-none snap-start ml-3 first-of-type:ml-0",children:r.default.cloneElement(e,{isCarouselItem:!0})}):(0,l.jsx)("li",{className:"min-w-[85%] list-none snap-start ml-3 first-of-type:ml-0",children:e}))})})]}),(0,l.jsx)(o,{children:i||"featured"})]})}let I=(0,s.withPreview)(function({block:e,linkPrefix:t,onCarouselItemClick:a,isPreview:i}){let{id:s,title:n,carouselService:o,cards:c}=e,d=(0,r.useMemo)(()=>"PRODUCT"===o,[o]),u=(0,r.useCallback)(e=>(0,x.generateServicePath)({service:o,linkPrefix:t,id:e,isCarousel:!0}),[o,t]),b=o&&h.serviceToType[o];return(0,l.jsx)(B,{title:n,isProduct:d,type:b,children:c?.map(r=>{let{__typename:n,id:c,description:h,price:x,rating:b,...g}=r,j="ProductBlock"===r.__typename?r.productBlockTitle:r.title,y="coverAssets"in g&&g.coverAssets?g.coverAssets.map(({facades:e})=>e?.image?.url):[],v=("ConsultationLinkCard"===r.__typename||"BundleLinkCard"===r.__typename||"ShoutoutLinkCard"===r.__typename||"LiveStreamLinkCard"===r.__typename?r.saleDiscount:null)?.price,k=y.length>1,C=(0,f.generateCarouselProductUrl)({linkPrefix:t,url:"url"in g&&g.url,id:s});return d?k?(0,l.jsx)(A,{title:r.productBlockTitle||"",imageUrls:y,description:h,price:x&&x.amount>
20?(0,p.formatAmountForDisplay)(x.amount/100,x.currencyCode):void 0,url:C,onClick:()=>a&&a(e,r)},c):(0,l.jsx)(w,{id:c,rating:b,title:j||"",description:(0,m.tiptapJsonToPlainText)(h),price:x?.amount?(0,p.formatAmountForDisplay)(x.amount/100,x?.currencyCode):void 0,image:y[0],url:C,onClick:()=>a&&a(e,r),type:"product",isCarouselItem:!0},c):(0,l.jsx)(w,{id:c,rating:b,title:j||"",description:(0,m.tiptapJsonToPlainText)(h),price:x?.amount?(0,p.formatAmountForDisplay)(x.amount/100,x?.currencyCode):"FREE",saleDiscountPrice:v?(0,p.formatAmountForDisplay)(v.amount/100,r.price?.currencyCode):void 0,image:"coverAsset"in g?g.coverAsset?.facades?.video?.thumbnailUrl||g.coverAsset?.facades?.image?.url:void 0,url:u(i?s:c),onClick:()=>a&&a(e,r),type:o,isCarouselItem:!0},c)})})},s.blockPreviewConfig.carousel);function L({title:e,description:t,url:r,type:a,onClick:i}){return(0,l.jsx)(j.default,{href:r,prefetch:!1,onClick:i,children:(0,l.jsx)(P,{title:e,type:a,className:"bg-layering-color2",children:t})})}let F=(0,s.withPreview)(function({block:e,isPreview:t,onClick:r}){let{title:a,description:i,coverAsset:s,url:n,customBlockCardStyle:o}=e,c=s?.facades?.image?.url;return(0,l.jsx)(l.Fragment,{children:"FEATURED"===o?(0,l.jsx)(w,{title:a||"Custom block",description:i,image:c,type:"link",url:n,onClick:()=>r&&r(e)}):"TEXT_ONLY"===o?(0,l.jsx)(L,{url:n,title:a||"Custom block",type:"link",description:i,onClick:()=>r&&r(e)}):(0,l.jsx)(S,{title:a||"Custom block",image:c,type:"link",url:n,onClick:()=>r&&r(e),small:t})})},s.blockPreviewConfig.customLink);e.i(761911);var M=e.i(50700);function $(){return(0,l.jsxs)("div",{className:"flex items-center py-[14px] px-[10px] w-full min-w-[260px] bg-[#feeef2] border border-[#eb5757] my-[10px] mx-auto",children:[(0,l.jsx)(M.AlertCircle,{color:"#EB5757"}),(0,l.jsx)("p",{className:"layering-template-title text-[#eb5757] ml-3",children:"An error occured when loading this block :/"})]})}var D=e.i(100004);let G=(0,s.withPreview)(function({block:{items:e,thumbnailsBlockCardStyle:t,thumbnailsBlockTitle:r}}){let a=t===D.ThumbnailsBlockCardStyleEnum.CircleCarousel||t===D.ThumbnailsBlockCardStyleEnum.SquareCarousel;return(0,l.jsx)(b,{title:r,type:"highlight images",children:(0,l.jsxs)("div",{className:`relative ${a?"-mx-3":""}`,children:[(t===D.ThumbnailsBlockCardStyleEnum.CircleCarousel||t===D.ThumbnailsBlockCardStyleEnum.SquareCarousel)&&(0,l.jsx)("ul",{className:`${e.length>1?"flex":"block"} gap-[10px] w-full snap-x snap-mandatory scroll-smooth relative overflow-x-auto px-3`,children:e.map(({title:e,coverAsset:r,url:a},s)=>(0,l.jsx)("li",{className:`list-none snap-center w-[200px] aspect-square relative overflow-hidden shrink-0 ${t===D.ThumbnailsBlockCardStyleEnum.CircleCarousel?"rounded-full":"rounded-lg"}`,children:a?(0,l.jsx)("a",{href:a,children:(0,l.jsx)(i.default,{alt:e||"Thumbnails image",src:r.facades?.image?.url||"",fill:!0,style:{objectFit:"cover"}})},s):(0,l.jsx)(i.default,{alt:e||"Thumbnails image",src:r.facades?.image?.url||"",fill:!0,style:{objectFit:"cover"}})},s))}),(t===D.ThumbnailsBlockCardStyleEnum.CircleGrid||t===D.ThumbnailsBlockCardStyleEnum.SquareGrid)&&(0,l.jsx)("ul",{className:`${e.length>1?"grid grid-cols-2":"block"} gap-[10px]`,children:e.map(({title:e,coverAsset:r,url:a},s)=>(0,l.jsx)("li",{className:`list-none w-full aspect-square relative overflow-hidden ${t===D.ThumbnailsBlockCardStyleEnum.CircleGrid?"rounded-full":"rounded-lg"}`,children:a?(0,l.jsx)("a",{href:a||"",children:(0,l.jsx)(i.default,{alt:e||"Thumbnails image",src:r.facades?.image?.url||"",fill:!0,style:{objectFit:"cover"}})},s):(0,l.jsx)(i.default,{alt:e||"Thumbnails image",src:r.facades?.image?.url||"",fill:!0,style:{objectFit:"cover"}})},s))})]})})},s.blockPreviewConfig.thumbnails);var _=e.i(123956),U=e.i(156254),R=e.i(603128),O=e.i(376950),q=e.i(920399),H=e.i(253371),z=e.i(271465),V=e.i(616110);let W={PDF:q.File,IMAGE:H.Image,VIDEO:V.Video,APPLICATION:q.File,AUDIO:z.Microphone};function Y({thankYouMessageTitle:e,thankYouMessageDescription:t,downloadables:a}){let[i,s]=(0,r.useState)(!1);return(0,l.jsxs)("div",{className:"w-full bg-layering-color7 border-t border-black flex z-[99] relative",children:[(0,l.jsxs)("div",{className:"w-full py-[30px] px-3",children:[(0,l.jsx)("h2",{className:"layering-template-title mb-5",children:e||"Thank you for subscribing!"}),(0,l.jsx)("p",{className:"layering-template-paragraph-body",children:t||"You have been added to the list"}),a&&a.length>0&&(0,l.jsx)("ul",{className:"list-none mt-3",children:a.map(({title:e,asset:t})=>{let r=t?.file?.contentType.split("/")[0].toUpperCase(),a=t?.file?.contentType&&r in W&&W[r]||q.File;return(0,l.jsx)("li",{className:"mb-1 last:mb-0",children:(0,l.jsxs)("button",{onClick:()=>((e,l)=>{if(!e)throw Error("Resource URL not provided! You need to provide one");s(!0),fetch(e).then(e=>e.blob()).then(e=>{s(!1);let t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.style.display="none",l&&l.length&&(r.download=l),document.body.appendChild(r),r.click()})})(function(e,l){if(e?.file?.contentType?.includes("video")){let t=e?.facades?.video,r=t?.playbackId;return`https://stream.mux.com/${r}/high.mp4?download=${l}`}return e?.facades?.image?.url||e?.facades?.document?.url||e?.facades?.audio?.url||e.facades?.video?.videoUrl}(t,e),e),disabled:i,className:"flex justify-center mb-1 bg-transparent border-none underline cursor-pointer last:mb-0 gap-2",children:[(0,l.jsx)(a,{}),(0,l.jsx)("p",{className:"w-auto text-xs font-normal",children:e})]})},t.id)})})]}),(0,l.jsx)(o,{children:"Contact"})]})}function K({block:e,onSubmit:t}){let[a,i]=(0,r.useState)(""),[s,n]=(0,r.useState)(!1),o=(0,r.useCallback)(e=>{i(e.target.value)},[]),c=(0,r.useCallback)(()=>{let e=!0;return a||(e=!1),(0,O.validateEmail)(a)||(n(!0),e=!1),e},[a]),d=(0,r.useCallback)(l=>{!t||(l.preventDefault(),c()&&t(e,{email:l.target.email?.value}))},[t,e,c]);return(0,l.jsxs)("form",{className:"mt-[15px]",onSubmit:d,children:[(0,l.jsx)("div",{className:"relative w-full mt-[10px] f
2irst-of-type:mt-0",children:(0,l.jsx)("input",{className:`layering-mailing-list-input ${s?"!border-red-500":""}`,placeholder:"Email address",type:"email",name:"email",onChange:o,onBlur:()=>c(),value:a})}),(0,l.jsx)("button",{className:"layering-mailing-list-submit-btn",type:"submit",disabled:s,children:(0,l.jsx)(N,{})})]})}function J({onSubmit:e,requirePhone:t,showPhoneInput:a,requireName:i,showNameInput:s,additionalInputFields:n,block:o}){let[c,d]=(0,r.useState)({name:"",email:""}),[u,m]=(0,r.useState)({}),[p,h]=(0,r.useState)({}),[x,f]=(0,r.useState)({}),b=(0,r.useCallback)(e=>{let{name:l,value:t}=e.target;d(e=>({...e,[l]:t}))},[]),g=(0,r.useCallback)(()=>{let e=!0,l={};i&&(!c.name||c.name&&!c.name.trim())&&(e=!1,l.name="Name cannot be empty"),c.email||(e=!1,l.email="Cannot be empty"),(0,O.validateEmail)(c.email)||(l.email="Email not valid",e=!1);let r=(0,O.validatePhone)(c.phone);return t&&(!c.phone||0===c.phone.trim().length)&&(e=!1,l.phone="Phone cannot be empty"),c.phone&&c.phone.trim().length>0&&!r&&(l.phone="Phone number not valid",e=!1),m(l),e},[c.name,c.email,c.phone,i,t]),j=(0,r.useCallback)(()=>{let e=!0,l={};return n?.forEach((t,r)=>{t.required&&!p[`${t.label.toLowerCase()}+${r}`]&&(e=!1,l[t.label.toLowerCase()]=`${t.label} cannot be empty`)}),f(l),e},[n,p]),y=()=>{let e=g(),l=j();return e&&l},v=(0,r.useCallback)(l=>{if(e&&(l.preventDefault(),g()&&j())){let t=Array.from(l.target.querySelectorAll('input[data-type="additional-input-field"]')).map(e=>({label:e.name.split("+")[0],value:e.value,id:e.id}));e(o,{name:l.target.name?.value,email:l.target.email?.value,phone:l.target.phone?.value,additionalInputFields:t})}},[e,o,g,j]),k=(0,r.useCallback)(e=>{d(l=>({...l,phone:(0,O.enforcePhoneNumberE164)(e)??""}))},[]),w=(0,r.useCallback)(e=>{let{name:l,value:t}=e.target;h(e=>({...e,[l]:t}))},[]);return(0,l.jsxs)("form",{className:"mt-[15px]",onSubmit:v,children:[s&&(0,l.jsxs)("div",{className:"relative w-full mt-[10px] first-of-type:mt-0",children:[(0,l.jsx)("input",{className:`layering-mailing-list-input ${u.name?"!border-red-500":""}`,placeholder:"Name",type:"text",name:"name",onChange:b,onBlur:()=>g(),value:c.name,maxLength:80}),u.name&&(0,l.jsx)("p",{className:"text-[#eb5757] block text-[9px] leading-[11px] my-[3px]",children:u.name})]}),(0,l.jsxs)("div",{className:"relative w-full mt-[10px] first-of-type:mt-0",children:[(0,l.jsx)("input",{className:`layering-mailing-list-input ${u.email?"!border-red-500":""}`,placeholder:"Email address",type:"email",name:"email",onChange:b,onBlur:()=>g(),value:c.email}),u.email&&(0,l.jsx)("p",{className:"text-[#eb5757] block text-[9px] leading-[11px] my-[3px]",children:u.email})]}),a&&(0,l.jsxs)("div",{className:"layering-phone-input relative w-full mt-[10px] first-of-type:mt-0",children:[(0,l.jsx)(U.default,{value:c.phone,onChange:k,inputProps:{name:"phone"},placeholder:"+1 (234) 567-8"}),u.phone&&(0,l.jsx)(R.InputError,{children:u.phone})]}),n&&n.length>0&&(0,l.jsx)("ul",{className:"mt-[10px]",children:n.map((e,t)=>(0,l.jsx)("li",{className:"mt-2 first-of-type:mt-0",children:(0,l.jsxs)("div",{className:"relative w-full mt-[10px] first-of-type:mt-0",children:[(0,l.jsx)("input",{id:e.id,className:`layering-mailing-list-input ${x[e.label.toLowerCase()]?"!border-red-500":""}`,placeholder:e.label,name:`${e.label.toLowerCase()}+${t}`,onChange:w,onBlur:y,value:p[e.label.toLowerCase()],"data-type":"additional-input-field"}),x[e.label.toLowerCase()]&&(0,l.jsx)(R.InputError,{children:x[e.label.toLowerCase()]})]})},e.id))}),(0,l.jsx)("button",{className:"layering-mailing-list-submit-btn",type:"submit",children:(0,l.jsx)(N,{})})]})}let Z=(0,s.withPreview)(function({block:e,onSubmit:t}){let{title:a,description:s,requireName:n,requirePhone:c,showPhoneInput:d,showNameInput:u,showThumbnail:m,thumbnailAsset:p,additionalInputFields:h,thankYouMessageTitle:x,thankYouMessageDescription:f,downloadables:b}=e||{},[g,j]=(0,r.useState)(!1),y=(0,r.useMemo)(()=>h?.filter(e=>e.show)||[],[h]),v=y.length,k=!u&&!d&&!s&&!v,w=p?.facades?.image?.url||null;return g?(0,l.jsx)(Y,{thankYouMessageTitle:x,thankYouMessageDescription:f,downloadables:b}):(0,l.jsxs)("div",{className:"w-full bg-layering-color7 border-t border-black flex z-[99] relative",children:[(0,l.jsxs)("div",{className:"w-full py-[18px] px-3",children:[!k&&m&&(0,l.jsx)("div",{className:"mb-3",children:p?(0,l.jsx)(i.default,{src:w,alt:a||"Join mailing list",width:40,height:36}):(0,l.jsx)(_.Mail,{width:40,height:36,color:"currentColor"})}),(0,l.jsx)("h1",{className:"layering-template-title",children:a||""}),(0,l.jsx)("p",{className:"layering-template-paragraph-body",children:s||""}),k?(0,l.jsx)(K,{block:e,onSubmit:async(e,l)=>{if(t){let r=await t(e,l);return j(r),r}return!1}}):(0,l.jsx)(J,{onSubmit:async(e,l)=>{if(t){let r=await t(e,l);return j(r),r}return!1},showPhoneInput:d,requirePhone:c,requireName:n,showNameInput:u,additionalInputFields:y,block:e})]}),(0,l.jsx)(o,{children:"Contact"})]})},s.blockPreviewConfig.mailingList),X={SMALL:"80px",LARGE:"352px"},Q={SMALL:"150px",LARGE:"374px"},ee={width:"100%",height:"450px",autoPlay:!1,hideRelated:!1,showComments:!0,showUser:!0,showReposts:!1,visual:!0,color:"ff5500"},el={SMALL:"auto",LARGE:"450px"},et={SMALL:"150px",LARGE:"350px"},er={SMALL:{width:"100%",height:"100px"},LARGE:{width:"350px",height:"470px"}},ea={SPOTIFY:function({url:e,size:t=D.MusicPlayerSize.Small}){let r=X[t];return(0,l.jsx)("iframe",{title:"Spotify music player",className:"SpotifyPlayer block mx-auto rounded-2xl border-t border-black",src:e,frameBorder:"0",style:{height:r,width:"100%"}})},APPLE_MUSIC:function({url:e,size:t}){let r=Q[t];
2return(0,l.jsx)("iframe",{title:"Apple Music",className:"AppleMusicPlayer block w-full md:h-auto",src:e,frameBorder:"0",style:{height:r}})},SOUNDCLOUD:function({url:e,size:t}){let{autoPlay:a,hideRelated:i,showComments:s,showUser:n,showReposts:o,visual:c,color:d}=ee,u=(0,r.useMemo)(()=>"LARGE"===t?`${e}&auto_play=${a}&hide_related=${i}&show_comments=${s}&show_user=${n}&show_reposts=${o}&visual=${c}`:`${e}&color=${d}&auto_play=${a}&hide_related=${i}&show_comments=${s}&show_user=${n}&show_reposts=${o}`,[a,d,i,s,o,n,e,c,t]),m=el[t];return(0,l.jsx)("iframe",{title:"SoundCloud player",className:"block mx-auto rounded-2xl border-t border-black",scrolling:"no",frameBorder:"no",src:u,style:{height:m,width:"100%"}})},DEEZER:function({url:e,size:t}){let r=new URL(e),a=et[t];return"LARGE"===t&&r.searchParams.set("tracklist","true"),(0,l.jsx)("iframe",{title:"Deezer",className:"DeezerPlayer block mx-auto rounded-2xl border-t border-black",src:r.toString(),frameBorder:"0",style:{height:a,width:"100%"}})},BANDCAMP:function({url:e,size:t}){let{width:r,height:a}=er[t];return(0,l.jsx)("iframe",{title:"Bandcamp",className:"BandcampPlayer block mx-auto rounded-2xl border-t border-black",src:"LARGE"===t?`${e}/size=large/bgcol=333333/tracklist=false`:`${e}/bgcol=333333`,frameBorder:"0",style:{width:r,height:a}})}},ei=(0,s.withPreview)(function({block:{musicPlatform:e,url:t,playerSize:r}}){if(!e)return null;let a=ea[e];return(0,l.jsx)(P,{title:`check my ${e}`,type:"music",className:"bg-layering-color6 text-layering-color9",children:(0,l.jsx)(a,{url:t,size:r})})},s.blockPreviewConfig.music);var es=e.i(609203),en=e.i(766181),eo=e.i(462546);let ec=(0,en.cva)("w-full mb-3 mt-3",{variants:{isGridItem:{false:"flex items-start justify-between"}}}),ed=(0,en.cva)("",{variants:{isGridItem:{true:"font-interTight text-[18px] leading-[20px] font-normal uppercase line-clamp-2",false:"layering-template-title line-clamp-2"}}}),eu=(0,en.cva)("",{variants:{isGridItem:{true:"font-interTight text-[18px] leading-[20px] font-normal uppercase mt-2",false:"layering-template-paragraph-eyebrow whitespace-nowrap ml-2"}}}),em=(0,en.cva)("relative w-full border bg-white border-black rounded-lg overflow-hidden",{variants:{cardStyle:{[D.PhysicalProductBlockCardStyle.FeaturedSquare]:"aspect-square",[D.PhysicalProductBlockCardStyle.FeaturedLeft]:"aspect-square",[D.PhysicalProductBlockCardStyle.FeaturedTop]:"aspect-[2]"}}});function ep({cardStyle:e,title:t,price:r,description:a,image:s,url:n,onClick:o,isGridItem:c}){return(0,l.jsxs)(j.default,{href:n,prefetch:!1,onClick:o,children:[(0,l.jsx)("div",{className:em({cardStyle:e}),children:(0,l.jsx)(i.default,{src:s||eo.default,fill:!0,sizes:"100vw",alt:t??"",className:"object-contain"})}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:ec({isGridItem:c}),children:[t&&(0,l.jsx)("h2",{className:ed({isGridItem:c}),children:t}),r&&(0,l.jsx)("p",{className:eu({isGridItem:c}),children:r})]}),a&&(0,l.jsx)("p",{className:"layering-template-paragraph-body line-clamp-3",dangerouslySetInnerHTML:{__html:a}})]})]})}function eh({product:e,cardStyle:t,displayProductDescription:a,blockId:i,onClick:s,isPreview:n,linkPrefix:o,isGridItem:c=!1}){let[d,u]=(0,r.useState)(""),m=(0,r.useMemo)(()=>n&&i?`/store/links/merch?id=${i}&mode=edit`:`${o}merch/${e.id}`,[o,e.id,n,i]),h=e.coverAsset?.facades?.image?.url,x=e.price,f=x?(0,p.formatAmou
2ntForDisplay)(x.amount/100,x.currencyCode):void 0;return(0,r.useEffect)(()=>{if(a&&e.description)try{u((0,es.tiptapJsonToHtml)(e.description))}catch(e){console.error("Error converting description JSON:",e),u("<p>Error loading description.</p>")}else u("")},[e.description,a]),(0,l.jsx)(ep,{title:e?.title||"",description:a&&d||null,image:h,price:f,onClick:()=>s&&s(),url:m,cardStyle:t,isGridItem:c})}let ex={[D.PhysicalProductBlockLayout.Grid]:function({children:e,title:t,type:r}){return(0,l.jsx)(b,{title:t,type:r,className:"bg-layering-color3",children:(0,l.jsx)("div",{className:"grid grid-cols-2 gap-2",children:e})})},[D.PhysicalProductBlockLayout.Vertical]:function({children:e,title:t,type:r}){return(0,l.jsx)(b,{title:t,type:r,className:"bg-layering-color3",children:(0,l.jsx)("div",{className:"flex flex-col gap-2",children:e})})},[D.PhysicalProductBlockLayout.Carousel]:B},ef=(0,s.withPreview)(function({block:e,isPreview:t,onClick:r,linkPrefix:a}){let i=e.physicalProductBlockTitle??e.title,s=e.products??[];if(0===s.length)return null;if(1===s.length){let n=s[0];return(0,l.jsx)(b,{title:i,type:"Merch",className:"bg-layering-color3",children:(0,l.jsx)(eh,{product:n,cardStyle:e.physicalProductBlockCardStyle,onClick:()=>r?.(e,n),displayProductDescription:e.displayProductDescription,blockId:e.id,isPreview:t,linkPrefix:a},n.id)})}let n=ex[e.layout];return(0,l.jsx)(n,{title:i,type:"Merch",children:s.map(i=>(0,l.jsx)(eh,{product:i,cardStyle:e.physicalProductBlockCardStyle,onClick:()=>r?.(e,i),displayProductDescription:e.displayProductDescription,blockId:e.id,isPreview:t,linkPrefix:a,isGridItem:e.layout===D.PhysicalProductBlockLayout.Grid},i.id))})},s.blockPreviewConfig.physicalProduct);var eb=e.i(746276);let eg=(0,s.withPreview)(function({block:e,linkPrefix:t,isPreview:a,onClick:i}){let{card:s,service:n,premiumBlockCardStyle:o}=e,c=n&&h.serviceToType[n],d=(0,r.useMemo)(()=>n?(0,x.generateServicePath)({service:n,linkPrefix:t,id:s.id}):"",[s.id,t,n]),u=(0,r.useMemo)(()=>(0,eb.getSaleDiscountPriceFromLinkCard)(s),[s]),f=(0,r.useMemo)(()=>
2{if(u)return`${(0,p.formatAmountForDisplay)(u.amount/100,s.price?.currencyCode)}`},[u,s.price?.currencyCode]);return(0,l.jsx)(l.Fragment,{children:"FEATURED"===o?(0,l.jsx)(w,{id:s?.id,rating:s?.rating,url:`${d}?canGoBack=true`,onClick:()=>i&&i(e),title:s?.title||"",image:s?.coverAsset?.facades?.video?.thumbnailUrl||s?.coverAsset?.facades?.image?.url,description:(0,m.tiptapJsonToPlainText)(s?.description),price:s?.price?.amount?(0,p.formatAmountForDisplay)(s.price.amount/100,s.price?.currencyCode):"FREE",saleDiscountPrice:f,type:c||"feature"}):(0,l.jsx)(S,{url:`${d}?canGoBack=true`,onClick:()=>i&&i(e),title:s?.title||"",type:c||"feature",image:s?.coverAsset?.facades?.video?.thumbnailUrl||s?.coverAsset?.facades?.image?.url,small:a})})},s.blockPreviewConfig.premium);function ej({title:e,price:t,saleDiscountPrice:r,description:a,image:s,url:n,onClick:o,id:c,rating:d}){return(0,l.jsxs)(j.default,{href:n,prefetch:!1,onClick:o,children:[(0,l.jsx)("div",{className:"relative w-full aspect-square border border-black rounded-[15p
2x] overflow-hidden",children:(0,l.jsx)(i.default,{src:s||y,fill:!0,sizes:"100vw",style:{objectFit:"contain"},alt:e??""})}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"w-full flex items-start justify-between mb-3 mt-3",children:[e&&(0,l.jsx)("h2",{className:"layering-template-title mr-3 break-words line-clamp-2",children:e}),t&&(0,l.jsx)("p",{className:"layering-template-paragraph-eyebrow whitespace-nowrap",children:r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("s",{children:t})," ",(0,l.jsx)("strong",{children:r})]}):t})]}),a&&(0,l.jsx)("p",{className:"layering-template-paragraph-body line-clamp-3",dangerouslySetInnerHTML:{__html:a}}),d&&(0,l.jsx)("div",{onClick:e=>e.preventDefault(),className:"mt-2",children:(0,l.jsx)(g.default,{serviceId:c,...d,style:g.RatingsStyles.COMPACT,starsColor:v.default.color2.color5})})]})]})}function ey({title:e,image:t,description:r,price:a,url:i,type:s,id:n,saleDiscountPrice:o,isCarouselItem:c,rating:d}){return(0,l.jsxs)(l.Fragment,{children:[c&&(0,l.jsx)(ej,{image:t,id:n,description:r,price:a,rating:d,saleDiscountPrice:o,url:i,title:e}),!c&&(0,l.jsx)(b,{title:e||"Featued link",type:s||"featured",className:"w-full relative bg-layering-color3",children:(0,l.jsx)(ej,{image:t,id:n,description:r,price:a,rating:d,saleDiscountPrice:o,url:i})})]})}function ev({product:e,cardStyle:t,onClick:a,displayProductDescription:i,isCarouselItem:s,blockId:n,isPreview:o}){let c=(0,r.useMemo)(()=>(0,f.shopifyProductUrlGenerator)({shopifyProductUrl:e.shopifyProductUrl,id:n,isPreview:o}),[n,o,e.shopifyProductUrl]);return console.log("cardStyle",t),(0,l.jsxs)(l.Fragment,{children:[t===D.ShopifyBlockCardStyleEnum.FeaturedTop&&(0,l.jsx)(w,{id:e?.shopifyProductId,title:e?.title||"",description:i?e?.description:null,image:e?.productImageUrls[0],price:e?.priceRange?(0,p.formatAmou
2ntForShopify)(e.priceRange):void 0,onClick:a,url:c,isCarouselItem:s}),(t===D.ShopifyBlockCardStyleEnum.FeaturedSquare||t===D.ShopifyBlockCardStyleEnum.FeaturedLeft)&&(0,l.jsx)(ey,{id:e?.shopifyProductId,title:e?.title||"",description:i?e?.description:null,image:e?.productImageUrls[0],price:e?.priceRange?(0,p.formatAmountForShopify)(e.priceRange):void 0,onClick:a,url:c,isCarouselItem:s})]})}let ek=(0,s.withPreview)(function({block:e,isPreview:t,onClick:r}){let{products:a,shopifyProductBlockTitle:i,shopifyProductBlockCardStyle:s}=e;if(1===a.length){let i=a[0];return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(ev,{product:i,cardStyle:s,onClick:()=>r&&r(e,i),displayProductDescription:e.displayProductDescription,blockId:e.id,isPreview:t},i.shopifyProductId)})}return(0,l.jsx)(B,{title:i,children:a.map(a=>(0,l.jsx)(ev,{product:a,cardStyle:s,onClick:()=>r&&r(e,a),displayProductDescription:e.displayProductDescription,blockId:e.id,isPreview:t,isCarouselItem:!0},a.shopifyProductId))})},s.blockPreviewConfig.shopify);var ew=e.i(91566);let eC=(0,en.cva)("list-none w-full relative overflow-hidden",{variants:{cardStyle:{[D.SocialFeedBlockCardStyleEnum.CircleGrid]:"aspect-square",[D.SocialFeedBlockCardStyleEnum.RectangleGrid]:"aspect-[0.68]",[D.SocialFeedBlockCardStyleEnum.SquareGrid]:"aspect-square"}}}),eN=(0,s.withPreview)(function({block:e,onClick:t,isPreview:r}){let{items:a,socialFeedBlockCardStyle:s,socialFeedBlockTitle:n}=e;return(0,l.jsx)("div",{className:"bg-[var(--layering-template-color3)]",children:(0,l.jsx)(b,{title:n,type:"social feed",children:(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)("ul",{className:(0,ew.cn)("grid grid-cols-2 gap-3",!r&&"md:grid-cols-3"),children:a.map((r,a)=>{let{title:n,coverAsset:o,url:c}=r;return(0,l.jsx)("li",{className:eC({cardStyle:s}),children:c?(0,l.jsx)("a",{href:c||"",onClick:()=>t&&t(e,r),children:(0,l.jsx)(i.default,{alt:n||"Social feed image",src:o.facades?.image?.url||"",fill:!0,style:{objectFit:"cover"}})},a):(0,l.jsx)(i.default,{alt:n||"Social feed image",src:o.facades?.image?.url||"",fill:!0,style:{objectFit:"cover"}})},a)})})})})})},s.blockPreviewConfig.socialFeed),eP=(0,s.withPreview)(function({block:e}){let[t,a]=(0,r.useState)(!1),[i,s]=(0,r.useState)("");return(0,r.useEffect)(()=>{s((0,es.tiptapJsonToHtml)(e.content))},[e.content]),(0,l.jsxs)("div",{className:"flex min-h-[130px] border-t border-black bg-layering-color4 text-layering-color5 text-left layering-template-paragraph-body",children:[(0,l.jsxs)("div",{className:"w-full py-2 px-3 flex",children:[(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)("div",{className:`${t?"line-clamp-6":""} [&_h1]:text-inherit [&_h2]:text-inherit [&_h3]:text-inherit [&_h4]:text-inherit [&_h5]:text-inherit [&_h6]:text-inherit`,dangerouslySetInnerHTML:{__html:i}})}),(0,l.jsx)("button",{onClick:()=>{a(!t)},className:"bg-transparent border-none relative cursor-pointer w-[22px] h-[21px] min-w-[22px]",children:(0,l.jsx)(c,{className:`absolute top-0 left-0 w-full h-full transition-transform duration-100 ease-in-out ${t?"rotate-0":"rotate-45"}`})})]}),(0,l.jsx)(o,{children:" "})]})},s.blockPreviewConfig.text);function eS({image:e,title:t,description:r,amount:a,goal:s,url:n,onClick:o}){return(0,l.jsx)(b,{title:t,type:"tipping",className:"bg-layering-color10 border-t border-black",children:(0,l.jsxs)(j.default,{href:n,onClick:o,children:[e&&(0,l.jsx)("div",{className:"relative w-full aspect-[2] border border-black rounded-[15px] overflow-hidden mb-5",children:(0,l.jsx)(i.default,{src:e,alt:t,fill:!0,sizes:"100vw",style:{objectFit:"cover"}})}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("h2",{className:"layering-template-title mb-1",children:[(0,l.jsx)("b",{children:a})," (",(0,l.jsxs)("span",{children:["Goal: ",s]}),")"]}),(0,l.jsx)("p",{className:"layering-template-paragraph-body",children:r})]})]})})}function eA({title:e,url:t,goal:r,onClick:a}){return(0,l.jsx)("div",{className:"bg-layering-color10",children:r||(0,l.jsx)(j.default,{href:t,onClick:a,children:(0,l.jsx)(P,{title:e,type:"tipping"})})})}let eT=(0,s.withPreview)(function({block:e,onClick:t,linkPrefix:a}){let{id:i,goal:s,buttonText:n,tipBlockCardStyle:o}=e,c=(0,r.useMemo)(()=>(0,f.tipUrlGenerator)({id:i,linkPrefix:a}),[i,a]);return(0,l.jsx)(eA,{title:n,url:c,onClick:()=>
2t&&t(e),cardStyle:o,goal:s&&(0,l.jsx)(eS,{title:s.title,description:s.description,url:c,image:s.coverAsset?.facades?.image?.url,onClick:()=>t&&t(e),goal:(0,p.formatAmountForDisplay)((s.target?.amount??0)/100,s.target?.currencyCode??D.CurrencyCode.Usd),amount:(0,p.formatAmountForDisplay)((s.accumulatedAmount?.amount??0)/100,s.accumulatedAmount?.currencyCode??D.CurrencyCode.Usd)})})},s.blockPreviewConfig.supportMe);var eE=e.i(961571);let eB=(0,s.withPreview)(function({block:e,isPreview:t}){let{tweetUrls:a}=e,[i,s]=(0,r.useState)(!1);return(0,l.jsxs)("div",{className:"flex min-h-[130px] bg-layering-color6 text-layering-color9 border-t border-black",children:[(0,l.jsxs)("div",{className:"w-full pt-2 pb-2 overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between mx-[10px] mb-[10px]",children:[(0,l.jsx)("h1",{className:"layering-template-title line-clamp-2 text-inherit",children:"twitter"}),(0,l.jsx)("button",{onClick:()=>{s(!i)},className:"bg-transparent border-none relative cursor-pointer w-[22px] h-[21px] min-w-[22px]",children:(0,l.jsx)(c,{className:`absolute top-0 left-0 w-full h-full transition-transform duration-100 ease-in-out ${i?"rotate-0":"rotate-45"}`})})]}),!i&&(0,l.jsx)("div",{className:"w-full animate-fade-in",children:(0,l.jsx)(eE.default,{tweetUrls:a,preview:t})})]}),(0,l.jsx)(o,{children:"twitter"})]})},s.blockPreviewConfig.twitterEmbed);var eI=e.i(616540);let eL={TIKTOK:function({url:e}){return(0,l.jsx)("blockquote",{className:"w-full relative mx-auto max-w-[322px] overflow-hidden rounded-[20px] block max-h-[730px] h-[730px] [&_iframe]:-mt-0.5",children:(0,l.jsx)("iframe",{src:e,allowFullScreen:!0,frameBorder:"0",className:"absolute w-full h-full top-0 left-0 rounded-2xl"})})},VIMEO:function({url:e}){return(0,l.jsx)("blockquote",{className:"w-full h-full relative mx-auto pt-[56%]",children:(0,l.jsx)("iframe",{src:e,allowFullScreen:!0,frameBorder:"0",className:"absolute w-full h-full top-0 left-0 rounded-2xl"})})},TWITCH:function({url:e}
2){let[t,a]=(0,r.useState)(e);return(0,r.useEffect)(()=>{a(`${e}&parent=${window.location.host}`)},[e]),(0,l.jsx)("blockquote",{className:"w-full h-full relative mx-auto pt-[50%]",children:(0,l.jsx)("iframe",{allowFullScreen:!0,frameBorder:"0",src:t,className:"absolute w-full h-full top-0 left-0 rounded-2xl"})})},YOUTUBE:function({url:e}){return(0,l.jsx)("blockquote",{className:"w-full h-full relative mx-auto pt-[50%]",children:(0,l.jsx)(eI.default,{url:e,width:"100%",height:"100%",className:"[&_iframe]:absolute [&_iframe]:w-full [&_iframe]:h-full [&_iframe]:top-0 [&_iframe]:left-0 [&_iframe]:rounded-2xl"})})}},eF=(0,s.withPreview)(function({block:{videoPlatform:e,url:t}}){let[a,i]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{i(!0)},[]),!e)return null;let s=eL[e];return(0,l.jsx)(b,{title:`check my ${e}`,type:e,className:"bg-layering-color6 text-layering-color9",children:a&&(0,l.jsx)(s,{url:t})})},s.blockPreviewConfig.video);function eM({linkPrefix:e,username:t,block:r,api:a,isPreview:i}){let s=r.__typename;return(0,l.jsxs)(u.ErrorBoundary,{FallbackComponent:()=>(0,l.jsx)($,{}),children:["TextBlock"===s&&(0,l.jsx)(eP,{block:r,isPreview:i}),"TipBlock"===s&&(0,l.jsx)(eT,{block:r,onClick:a?.onTrackTipBlockClick,linkPrefix:e,isPreview:i}),"CustomBlock"===s&&(0,l.jsx)(F,{block:r,onClick:a?.trackCustomBlockClick,isPreview:i}),"ProductBlock"===s&&(0,l.jsx)(E,{block:r,onClick:a?.trackProductBlockClick,isPreview:i}),"MusicPreviewBlock"===s&&(0,l.jsx)(ei,{block:r,isPreview:i}),"VideoPreviewBlock"===s&&(0,l.jsx)(eF,{block:r,isPreview:i}),"MailingListBlock"===s&&(0,l.jsx)(Z,{block:r,isPreview:i,onSubmit:a?.submitMailingList}),"PremiumBlock"===s&&(0,l.jsx)(eg,{block:r,isPreview:i,linkPrefix:e,onClick:a?.trackPremiumBlockClick}),"CarouselBlock"===s&&(0,l.jsx)(I,{block:r,onCarouselItemClick:a?.onCarouselItemClick,linkPrefix:e,username:t,isPreview:i}),"TwitterEmbedBlock"===s&&(0,l.jsx)(eB,{block:r,isPreview:i}),"ThumbnailsBlock"===s&&(0,l.jsx)(G,{block:r,isPreview:i}),"SocialFeedBlock"===s&&(0,l.jsx)(eN,{block:r,onClick:a?.trackSocialFeedBlockClick,isPreview:i}),"ShopifyProductBlock"===s&&(0,l.jsx)(ek,{block:r,onClick:a?.trackShopifyProductBlockClick,isPreview:i}),"PhysicalProductBlock"===s&&(0,l.jsx)(ef,{block:r,onClick:a?.onPhysicalProductItemClick,isPreview:i,linkPrefix:e})]})}e.i(269273);var e$=e.i(945294),eD=e.i(719755);function eG({username:e,isPreview:t}){return(0,l.jsx)(eD.default,{username:e,medium:"powered-by-snipfeed",isPreview:t,children:(0,l.jsxs)("div",{className:"flex items-center justify-center bg-layering-color7 border-t border-black gap-[5px] py-2",children:[(0,l.jsx)("p",{className:"layering-template-paragraph-body",children:"powered by"}),(0,l.jsx)(e$.LogoWordmark,{width:98,height:30,alt:"snipfeed"})]})})}var e_=e.i(815351);let eU=(0,e_.default)(()=>e.A(965066),{loadableGenerated:{modules:[577369]},ssr:!1}),eR=(0,e_.default)(()=>e.A(915900),{loadableGenerated:{modules:[266434]},ssr:!1}),eO=(0,e_.default)(()=>e.A(722857),{loadableGenerated:{modules:[364452]},ssr:!1}),eq=(0,e_.default)(()=>e.A(697612),{loadableGenerated:{modules:[477767]},ssr:!1}),eH=(0,e_.default)(()=>e.A(889234),{loadableGenerated:{modules:[629994]},ssr:!1}),ez=(0,e_.default)(()=>e.A(87603),{loadableGenerated:{modules:[238594]},ssr:!1}),eV=(0,e_.default)(()=>e.A(746097),{loadableGenerated:{modules:[620331]},ssr:!1}),eW=(0,e_.default)(()=>e.A(94192),{loadableGenerated:{modules:[556052]},ssr:!1}),eY=(0,e_.default)(()=>e.A(36073),{loadableGenerated:{modules:[585463]},ssr:!1}),eK=(0,e_.default)(()=>e.A(467977),{loadableGenerated:{modules:[138101]},ssr:!1}),eJ=(0,e_.default)(()=>e.A(146477),{loadableGenerated:{modules:[251471]},ssr:!1}),eZ=(0,e_.default)(()=>e.A(116765),{loadableGenerated:{modules:[308978]},ssr:!1}),eX=(0,e_.default)(()=>e.A(228460),{loadableGenerated:{modules:[89424]},ssr:!1}),eQ=(0,e_.default)(()=>e.A(769845),{loadableGenerated:{modules:[576155]},ssr:!1}),e0=(0,e_.default)(()=>e.A(392199),{loadableGenerated:{modules:[127224]},ssr:!1}),e1=(0,e_.default)(()=>e.A(403052),{loadableGenerated:{modules:[12052]},ssr:!1}),e2=(0,e_.default)(()=>
2e.A(116399),{loadableGenerated:{modules:[993405]},ssr:!1}),e9=(0,e_.default)(()=>e.A(920318),{loadableGenerated:{modules:[882336]},ssr:!1}),e3=(0,e_.default)(()=>e.A(762793),{loadableGenerated:{modules:[742370]},ssr:!1}),e5=(0,e_.default)(()=>e.A(454938),{loadableGenerated:{modules:[408741]},ssr:!1}),e6=(0,e_.default)(()=>e.A(410159),{loadableGenerated:{modules:[214857]},ssr:!1}),e7=(0,e_.default)(()=>e.A(397624),{loadableGenerated:{modules:[157293]},ssr:!1}),e4=(0,e_.default)(()=>e.A(126989),{loadableGenerated:{modules:[784285]},ssr:!1}),e8=(0,e_.default)(()=>e.A(34830),{loadableGenerated:{modules:[607020]},ssr:!1}),le={SHOP:eU,ETSY:eR,EMAIL:eO,TIDAL:eq,DEEZER:eH,TIKTOK:ez,TWITCH:eV,NAPSTER:eW,WEBSITE:eY,SPOTIFY:eK,YOUTUBE:eJ,TWITTER:eZ,GROOVER:eX,PATREON:eQ,BANDCAMP:e0,FACEBOOK:e1,LINKEDIN:e2,SNAPCHAT:e9,PINTEREST:e3,INSTAGRAM:e5,SOUNDCLOUD:e6,APPLE_MUSIC:e7,AMAZON_MUSIC:e4,APPLE_PODCAST:(0,e_.default)(()=>e.A(102717),{loadableGenerated:{modules:[696694]},ssr:!1}),TUMBLR:e8,THREADS:(0,e_.default)(()=>e.A(260048),{loadableGenerated:{modules:[383398]},ssr:!1})};function ll({platform:e}){let t=le[e];return(0,l.jsx)(t,{height:18,color:"var(--layering-template-color9)",className:"block"})}let lt=(0,s.withPreview)(function({links:e,onClick:t}){return(0,l.jsx)("div",{className:"p-[14px] bg-layering-color1 border-t border-black",children:(0,l.jsx)("ul",{className:"flex justify-center items-center flex-wrap",children:e?.map(({link:e,databaseId:r})=>(0,l.jsx)("li",{className:"m-2",children:(0,l.jsx)("a",{href:e.url,onClick:()=>t&&t(e,r),className:"block",children:(0,l.jsx)(ll,{platform:e.platform})})},e.id))})})},s.blockPreviewConfig.socialLinks);e.s(["default",0,function({creatorLink:{username:e,profile:i,premiumTemplate:s,blocks:n,isVip:o},bioBlock:c=!1,linkPrefix:u,isPreview:m,api:p,displayBranding:h,oneBlockPreview:x}){let f=(0,r.useMemo)(()=>n.filter(e=>"SocialIconsBlock"===e.__typename),[n]),b=(0,r.useMemo)(()=>f.reduce((e,l)=>[...e,...l.links.map(e=>({link:e,databaseId:l.databaseId}))],[]),[f]);(0,r.useEffect)(()=>{var e;let l,t,r;e=s?.theme??"color1",t={"--layering-template-color1":(l=v.default[e]??v.default.color1).color1||"","--layering-template-color2":l.color2||"","--layering-template-color3":l.color3||"","--layering-template-color4":l.color4||"","--layering-template-color5":l.color5||"","--layering-template-color6":l.color6||"","--layering-template-color7":l.color7||"","--layering-template-color8":l.color8||"","--layering-template-color9":l.color9||"","--layering-template-color10":l.color10||"","--layering-template-bg":l.bg||""},r=document.documentElement,Object.keys(t).forEach(e=>{"name"!==e&&r.style.setProperty(e,t[e])})},[s?.theme]);let g=b?.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.default,{children:(0,l.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Inter+Tight&display=swap",rel:"stylesheet"})}),(0,l.jsx)("div",{className:"min-[480px]:bg-layering",children:(0,l.jsxs)("div",{className:"w-full mx-auto relative text-black border border-black min-[480px]:max-w-[568px] min-[480px]:shadow-[0px_0px_170px_#0000005c]",children:[(0,l.jsxs)("ul",{children:[c&&(0,l.jsx)("li",{children:(0,l.jsx)(d,{username:e,name:i.name,image:i.avatarAsset?.facades?.image?.url,bio:i.description,isVip:o,isPreview:m})}),b&&!!g&&g>0&&(0,l.jsx)("li",{children:(0,l.jsx)(lt,{links:b,block:f[0],isPreview:m})}),n?.filter(({isVisible:e,isValid:l})=>e&&l||x)?.map(t=>(0,l.jsx)("li",{children:(0,l.jsx)(eM,{block:t,linkPrefix:u,username:e,isPreview:m,api:p})},t.id)),h&&(0,l.jsx)("li",{children:(0,l.jsx)(eG,{username:e,isPreview:m})})]}),!m&&h&&(0,l.jsx)(a.default,{username:e})]})})]})}],292666)},26611,function(e){e.n(e.i(292666))}]);
3
4//# debugId=57f3c1cf-f2cb-115c-dd0e-0b200fccd215

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.