1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10614,e=>{"use strict";var t=e.i(6710);e.s(["useMediaQuery",0,e=>{if(void 0===window.matchMedia)return!1;let l=window.matchMedia(e),[r,n]=(0,t.useState)(!!l.matches);return(0,t.useEffect)(()=>{let e=()=>n(!!l.matches);return l.addEventListener("change",e),()=>l.removeEventListener("change",e)},[l]),r}])},97629,42477,e=>{"use strict";var t=e.i(63296);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38.4",height:"38.4",fill:"none",viewBox:"0 0 48 48",...e,children:(0,t.jsx)("g",{clipPath:"url(#clip0_20086_7969)",children:(0,t.jsx)("path",{fill:"currentColor",d:"M24 8c8.58 0 15.726 4.858 21.33 14.308l.44.758.09.2.06.166.028.11.028.164.022.2v.22l-.028.222q-.02.112-.052.22l-.078.216-.072.15-.032.06c-5.528 9.672-12.6 14.76-21.11 14.998L24 40c-8.792 0-16.074-5.098-21.736-15.008a2 2 0 0 1 0-1.984C7.926 13.098 15.208 8 24 8m0 10a6 6 0 1 0 0 12 6 6 0 0 0 0-12"})})})],97629),e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38.4",height:"38.4",fill:"none",viewBox:"0 0 48 48",...e,children:(0,t.jsx)("g",{clipPath:"url(#clip0_20086_7974)",children:(0,t.jsx)("path",{fill:"currentColor",d:"M17.626 23.224c.914-.76 1.836-.76 2.772.022l.216.196 9.972 9.972.188.166a2 2 0 0 0 2.806-2.806l-.166-.188L30.83 28l.584-.586.212-.19c.914-.76 1.836-.76 2.772.022l.216.196 9.348 9.35a8 8 0 0 1-7.55 7.198L36 44H12a8 8 0 0 1-7.96-7.206l13.374-13.38zM36 4a8 8 0 0 1 7.99 7.6l.01.4v19.17l-6.586-6.584-.3-.274c-2.512-2.19-5.7-2.194-8.192-.034l-.308.28-.614.612-4.586-4.584-.3-.274c-2.512-2.19-5.7-2.194-8.192-.034l-.308.28L4 31.17V12a8 8 0 0 1 7.6-7.99L12 4zm-5.98 10-.254.014a2 2 0 0 0 0 3.972L30 18l.254-.014a2 2 0 0 0 0-3.972z"})})})],42477)},71622,17252,e=>{"use strict";var t=e.i(63296),l=e.i(19558),r=e.i(48084),n=e.i(68328),s=e.i(44060),i=e.i(89187),a=e.i(95408),o=e.i(59602),c=e.i(45291),u=e.i(63585),d=e.i(6710),m=e.i(88949),h=e.i(10103);e.s(["default",0,e=>{let{modalIsOpen:f,toggleModal:p,type:x,slug:g,platform:b,serUserSiteLoading:v=()=>{},aiImportable:E=!1}=e,[C,F]=(0,d.useState)(null),[_,{data:y,loading:w}]=(0,u.useMutation)(o.GET_USER_SITE_LIST);!C&&y&&y.userSitesList&&F(y.userSitesList.map(e=>({site_url:e.site_url,checked:!1}))),(0,d.useEffect)(()=>{F(C&&C.map(e=>({...e,checked:!1})))},[f]),(0,d.useEffect)(()=>{v(w)},[w]),(0,d.useEffect)(()=>{{let e=(0,a.getToken)();e&&_({variables:{token:e}})}},[]);let N=e=>{F(C&&C.map((t,l)=>l===e?{...t,checked:!0}:{...t,checked:!1}))};return(0,t.jsxs)(m.default,{isOpen:f,onRequestClose:()=>p(!1),style:l.modalStyles,children:[(0,t.jsxs)("div",{className:s.default.tly__modal__body,children:[(0,t.jsxs)("div",{className:i.default.tly__form__group,children:[(0,t.jsx)("div",{style:{margin:"0 0 20px",backgroundColor:"#f7f8ff",padding:"10px",borderRadius:"5px"},children:(0,t.jsxs)("p",{style:{fontSize:".8em",color:"#000000"},children:[(0,t.jsx)("strong",{children:(0,t.jsxs)("a",{style:{color:"#000000",display:"inline-flex"},href:"https://wordpress.org/plugins/templately/",target:"_blank",rel:"noreferrer noopener",children:[(0,t.jsx)("i",{className:"ticon t-info",style:{display:"inline-flex",alignItems:"center",marginRight:5}})," ","Templately Plugin v2.2.0"]})})," ","(or later version) is required to insert item from website."]})}),w?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("label",{children:"Loading site ...."})}):(0,t.jsx)(t.Fragment,{children:C&&C.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("label",{children:"Pick a website where you want to insert this Template:"}),(0,t.jsx)("div",{style:{maxHeight:"12em",overflowX:"hidden"},className:i.default.tly__multi__item__choose__group,children:C.map((e,l)=>(0,t.jsxs)("label",{className:i.default.tly__multi__item__radio,children:[(0,t.jsx)("input",{type:"radio",checked:e.checked,onClick:()=>N(l),onChange:()=>N(l),name:i.default.tly__multi__item__radio}),(0,t.jsx)("span",{children:e.site_url})]},l))})]}):(0,t.jsx)("div",{style:{margin:"50px 0",textAlign:"center",color:"#545454",fontSize:".9em"},children:"You do not have any active website for this account."})})]}),C&&C.length>0&&(0,t.jsx)("div",{className:`${i.default.tly__form__group} ${n.default.tly__mt_1_5}`,children:(0,t.jsx)("button",{type:"button",onClick:()=>
1{if(!C)return void h.toast.error("We could not find any associated sites");let e=C&&C.find(e=>e.checked);if(!e)return void h.toast.error("Please select a site first");if(E){var t;let l=(0,r.readStoredChat)(),n=(null==l?void 0:l.uuid)&&(null==(t=l.selectedPack)?void 0:t.slug)===g?l.uuid:void 0,s=(0,c.buildPluginDeeplink)({siteUrl:e.site_url,platform:b,type:x,slug:g,chatId:n,process:"ai"});window.open(s,"_blank"),localStorage.removeItem("templately-pending-ai-import"),localStorage.removeItem(r.CHATBOT_STORAGE_KEY)}else{let t=(0,c.buildPluginDeeplink)({siteUrl:e.site_url,platform:b,type:x,slug:g,process:"general"});window.open(t,"_blank")}p(!1)},className:`${i.default.tly__button} ${i.default.tly__primary__button} ${n.default.tly__ml_auto}`,children:(0,t.jsx)("span",{children:"Insert"})})})]}),(0,t.jsx)("div",{className:s.default.tly__modal__closer,onClick:()=>p(!1)})]})}],71622);var f=e.i(40231),p=e.i(23030);e.s(["default",0,e=>{let{data:l,type:r,filteredCategory:n}=e;if(0===l.length)return(0,t.jsx)("div",{});let s=[...l];return n&&(s=[...s].filter(e=>e.template_type.name===n)),(0,t.jsx)("div",{className:"grid grid-cols-auto-64 single-laptop:grid-cols-3 single-desktop:grid-cols-auto-64 gap-x-4 gap-y-6",children:s.map((e,l)=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("h4",{className:"text-sm text-[#535865] font-normal leading-tight line-clamp-1",children:e.name}),(0,t.jsx)(p.default,{href:{pathname:`/${r}/[slug]`,query:{id:e.id,slug:e.slug,type:r,templateType:e.templateType}},className:"w-full relative aspect-[100/114.65] rounded-xs border border-solid border-[#F1F1F7] shadow-thumbnail overflow-hidden cursor-pointer",as:`/${"item"===r?"block":r}/${e.slug}`,children:(0,t.jsx)(f.default,{src:e.thumbnail?`${e.thumbnail}`:"https://assets.templately.com/frontend/banner.jpg",blurDataURL:e.thumbnail_blur,placeholder:"blur",alt:`${e&&e.name} By Templately`,fill:!0,sizes:"(max-width: 1200px) 50vw, 33vw",className:"w-full object-cover"})})]},e.id??l))})}],17252)},97845,1170,52361,63580,74212,65312,35430,38788,15653,52282,74170,e=>{"use strict";var t=e.i(63296),l=e.i(73927),r=e.i(85223),n=e.i(44060),s=e.i(13772),i=e.i(4715),a=e.i(22808),o=e.i(95408),c=e.i(98479),u=e.i(77684),d=e.i(40231),m=e.i(93673),h=e.i(6710),f=e.i(55346),p=e.i(88949);let x=e=>"number"==typeof e.sites?e.sites:parseInt(String(e.sites),10);e.s(["default",0,e=>{let{isOpen:g,onClose:b,initialPlanId:v=null}=e,{proPlans:E,fetchProPlans:C,setShowPopupCart:F}=(0,h.useContext)(l.CartContext)??{proPlans:[],fetchProPlans:()=>{},setShowPopupCart:()=>{}},_=(0,m.useRouter)(),[y,w]=(0,h.useState)(null),[N,S]=(0,h.useState)(null),[j,L]=(0,h.useState)(null),[I,k]=(0,h.useState)(!1),M=E.filter(e=>!(0,o.isBundlePlan)(e)),T=M.filter(e=>e.type===a.TYPE_YEAR).map(x).filter(Number.isFinite),P=r.BUNDLE_FAMILIES.filter(e=>T.every(t=>null!==(0,r.resolvePlanFor)(E,t,e))),R=null!=v?E.find(e=>parseInt(String(e.id),10)===parseInt(String(v),10))??null:null,D=(0,r.bundleFamilyOf)(R),A=P.length>0&&(N??(!R||null!==D)),U=j??D??r.DEFAULT_BUNDLE_FAMILY,z=P.includes(U)?U:P[0]??r.DEFAULT_BUNDLE_FAMILY,O=A?M.map(e=>({plan:(e.type===a.TYPE_YEAR?(0,r.resolvePlanFor)(E,x(e),z):(0,r.resolveLifetimePlanFor)(E,z))??e,label:(0,o.changePlanName)(e.slug,e.name)})):M.map(e=>({plan:e,label:(0,o.changePlanName)(e.slug,e.name)})),$=T.length?Math.min(...T):null,B=P.map(e=>{let t=null!=$?(0,r.resolvePlanFor)(E,$,e):null;return{family:e,price:t?`from $${(0,o.twoDecimalFraction)(parseFloat(String(t.discounted_price?Number(t.discounted_price)/12:Number(t.price)/12)))}`:""}}),[H,{loading:V,data:Y}]=(0,u.useLazyQuery)(c.GET_STATS);return(0,h.useEffect)(()=>{if(!y&&Y&&Y.getCounts){let e={item:0,pack:0,user:0,starter:0,pro:0};Y.getCounts.forEach(t=>{"items"===t.key?e.item=parseInt(t.value,10):"packs"===t.key?e.pack=parseInt(t.value,10):"users"===t.key?e.user=parseInt(t.value,10):"starter-items"===t.key?e.starter=parseInt(t.value,10):"pro-items"===t.key&&(e.pro=parseInt(t.value,10))}),w(e)}},[Y,y]),(0,h.useEffect)(()=>{g&&(H(),C())},[g,H,C]),(0,t.jsxs)(p.default,{isOpen:g,onRequestClose:b,style:{overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",zIndex:50},content:{position:"absolute",top:"40%",left:"50%",right:0,bottom:"auto",border:"none",background:"#28222D",borderRadius:"0.25rem",outline:"none",padding:"0",transform:"translate(-50%, -50%)",width:"43rem"}},children:[(0,t.jsxs)("div",{className:"relative mr-16 pr-2 font-sans!",children:[(0,t.jsx)("button",{type:"button",className:"absolute top-0 -right-16 h-12 bg-[#FFFFFF] aspect-square rounded-full cursor-pointer text-[#475467] inline-flex items-center justify-center z-[2] shadow-md border-[0.03125rem] border-solid border-white",onClick:b,children:(0,t.jsx)(f.IoMdClose,{className:"w-6 h-auto"})}),(0,t.jsx)("div",{className:"w-full grid grid-cols-1 gap-6 relative",children:(0,t.jsxs)("div",{className:"bg-[#FBFBFB] rounded-xl p-6 relative z-[1] overflow-hidden",children:[(0,t.jsx)(d.default,{src:"https://assets.templately.com/frontend/templately-bg-gradient.png",alt:"background",height:1206,width:1148,className:"absolute -z-[1] -left-1 -bottom-1 w-full h-full object-cover pointer-events-none object-left-bottom"}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 items-center",children:[(0,t.jsxs)("h2",{className:"text-2xl font-semibold text-[#344054] text-center",children:["Download Unlimited and ",(0,t.jsx)("br",{})," Save upto"," ",(0,t.jsx)("span",{className:"text-3xl font-extrabold text-transparent bg-clip-text bg-[conic-gradient(from_45deg,_#5CC1FF,_#5CC1FF,_#5CC1FF,_#5935D0,_#5935D0,_#5935D0,_#5935D0,_#F3AB63,_#F3AB63,_#F3AB63,_#F3AB63,_#F3AB63,_#5CC1FF,_#5CC1FF,_#5CC1FF)]",children:a.MAX_DISCOUNT})]}),(0,t.jsxs)("ul",{className:"grid grid-cols-2 gap-2 w-full max-w-[28rem] mt-5 mb-4",children:[(0,t.jsxs)("li",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("i",{className:"ticon t-circle-checked text-[#5AC0FF]"}),(0,t.jsxs)("span",{className:"text-sm font-normal text-[#475467]",children:[V?"...":null==y?void 0:y.starter," Starter Items"]})]}),(0,t.jsxs)("li",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("i",{className:"ticon t-circle-checked text-[#5AC0FF]"}),(0,t.jsx)("span",{className:"text-sm font-normal text-[#475467]",children:"Unlimited WorkSpace"})]}),(0,t.jsxs)("li",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("i",{className:"ticon t-circle-checked text-[#5AC0FF]"}),(0,t.jsxs)("span",{className:"text-sm font-normal text-[#475467]",children:[V?"...":null==y?void 0:y.pro," PRO Items"]})]}),(0,t.jsxs)("li",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("i",{className:"ticon t-circle-checked text-[#5AC0FF]"}),(0,t.jsx)("span",{className:"text-sm font-normal text-[#475467]",children:"Unlimited Items On My Cloud"})]})]}),P.length>0?(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-4",children:[(0,t.jsx)(s.default,{bundleMode:A,onBundleModeChange:S,family:z,availableFamilies:P}),A?(0,t.jsx)("div",{className:`w-full max-w-[280px] ${I?"relative z-10":""}`,children:(0,t.jsx)(i.default,{family:z,options:B,open:I,onToggle:()=>k(e=>!e),onSelect:e=>{L(e),k(!1)},analytics:{surface:"upgrade",tier:"all"}})}):null]}):null,(0,t.jsx)("div",{className:"flex flex-col gap-1 w-full",children:O.map(e=>{let{plan:l,label:n}=e;return(0,t.jsx)("div",{onClick:e=>{((e,t)=>
1{if(e.preventDefault(),t.slug)return _.push((0,o.prepareCheckoutUrl)(t.id,t.type,t.coupon)),F(!1)})(e,l)},"data-plan-id":l.id,className:"p-0.5 rounded-lg bg-[#DFE5ED] hover:bg-[conic-gradient(from_45deg,_#5935D0,_#5935D0,_#5CC1FF,_#5CC1FF,_#5CC1FF,_#5CC1FF,_#5CC1FF,_#F3AB63,_#F4E0C4,_#5935D0,_#5935D0,_#5935D0,_#5935D0)] group/pro-deal cursor-pointer",children:(0,t.jsxs)("div",{className:"bg-white px-4 py-3 rounded-md flex items-center gap-2",children:[(0,t.jsxs)("p",{className:"font-normal group-hover/pro-deal:font-medium text-[#475467] text-base max-w-[25ch] line-clamp-3",children:[(0,o.isLifeTimePlanByBillingInterval)(l.type)?(0,t.jsx)("span",{className:"text-primary font-semibold",children:n}):n," ",(0,t.jsx)("span",{children:`- ${(0,o.isUnlimitedSite)(l.sites)?"Unlimited":l.sites} Sites`}),(0,o.isBundlePlan)(l)?(0,t.jsxs)("span",{className:"block text-xs font-normal text-[#7b7b7b]",children:["Includes ",r.FAMILY_META[(0,r.bundleFamilyOf)(l)??z].optionName]}):null]}),(0,t.jsx)("p",{className:"text-[#1D2939] ml-auto text-2xl font-semibold",children:(0,o.isLifeTimePlanByBillingInterval)(l.type)?(0,t.jsxs)(t.Fragment,{children:[`$${(0,o.twoDecimalFraction)(parseFloat(String(l.discounted_price?l.discounted_price:l.price)))}`,l.discounted_price?(0,t.jsx)("sub",{className:"text-sm font-normal text-[#475467] bottom-0.5",children:(0,t.jsxs)("del",{style:{marginLeft:10,marginRight:0},children:["$",l.price]})}):(0,t.jsx)(t.Fragment,{})]}):(0,t.jsxs)(t.Fragment,{children:[`$${(0,o.twoDecimalFraction)(parseFloat(String(l.discounted_price?Number(l.discounted_price)/12:Number(l.price)/12)))}`,(0,t.jsx)("sub",{className:"text-sm font-normal text-[#475467] bottom-0.5",children:" / month"})]})}),(0,t.jsx)("span",{className:"p-0.5 rounded-full before:bg-[conic-gradient(from_45deg,_#5935D0,_#5CC1FF,_#F3AB63,_#F4E0C4,_#5935D0)] text-base h-10 aspect-square shrink-0 inline-flex items-center justify-center text-[#475467] hover:text-[#1D2939] transition ml-2 cursor-pointer relative before:absolute before:inset-0 z-[1] before:-z-[1] before:rounded-full",children:(0,t.jsx)("span",{className:"w-full h-full bg-white rounded-full flex items-center justify-center gap-2 z-1",children:(0,t.jsx)("i",{className:"ticon t-right-arrow"})})})]})},l.id)})})]})]})})]}),F&&(0,t.jsx)("div",{className:n.default.tly__modal__closer,onClick:()=>F(!1)})]})}],97845);var g=e.i(10614),b=e.i(89187);let v=e=>{let{modalIsOpen:l,toggleModal:r,fromHero:n}=e,[s,i]=(0,h.useState)(!1),a=(0,g.useMediaQuery)("(max-width: 600px)"),o=(0,g.useMediaQuery)("(max-width: 900px)");return(0,h.useEffect)(()=>{let e;if(!l)return i(!1),()=>{e&&clearTimeout(e)};e=setTimeout(()=>{i(!0)},2e3)},[l]),(0,t.jsxs)(p.default,{isOpen:l,onRequestClose:()=>r(!1),style:{overlay:{backgroundColor:"rgba(3,6,60, .8)",zIndex:50},content:{top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"transparent",border:"none",borderRadius:"2.5rem",width:a?"400px":o?"500px":"900px",padding:"0px",overflow:"visible",right:"0",bottom:"auto"}},children:[(0,t.jsxs)("div",{className:b.default.VideoWrapper,children:[(0,t.jsx)("iframe",{src:`${n?"https://www.youtube.com/embed/ZhzHWqMD1Zk?autoplay=1&rel=0":"https://www.youtube.com/embed/Df4UnvxOmJE?autoplay=1&rel=0"}`,frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),s&&(0,t.jsx)("span",{style:{position:"absolute",right:"-10px",top:"-36px",cursor:"pointer"},onClick:()=>r(!1),children:(0,t.jsx)("i",{children:(0,t.jsx)(f.IoIosClose,{style:{fontSize:"4rem",color:"white"}})})})]}),(0,t.jsx)("div",{className:b.default.tly__modal__closer,onClick:()=>r(!1)})]})};e.s(["default",0,e=>{let{modalIsOpen:l,toggleModal:r,fromHero:n}=e,[s,i]=(0,h.useState)(!1);return((0,h.useEffect)(()=>{i(!0)},[]),s)?(0,t.jsx)(v,{modalIsOpen:l,toggleModal:r,fromHero:n}):null}],1170);var E=e.i(23030);e.s(["DetailBreadcrumb",0,function(e){let{middle:l,current:r,root:n={label:"Home",href:"/"}}=e;return(0,t.jsxs)("ul",{className:"flex items-center flex-wrap mb-6",children:[(0,t.jsx)("li",{className:"text-sm font-medium",children:(0,t.jsx)(E.default,{href:n.href,className:"text-[#535865] hover:text-[#5632D1] hover:underline underline-offset-2 cursor-pointer",children:n.label})}),(0,t.jsx)("li",{className:"text-sm font-medium text-[#535865] me-0.5",children:"/"}),l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-sm font-medium",children:l}),(0,t.jsx)("li",{className:"text-sm font-medium text-[#535865] me-0.5",children:"/"})]}):null,(0,t.jsx)("li",{className:"text-sm font-medium text-[#1F2128] me-0.5",children:r})]})}],52361);let C=e=>{let{features:l}=e;if(!(l&&null!==JSON.parse(l)))return(0,t.jsx)("div",{});let r=JSON.parse(l).map(e=>`<li>${e}</li>`).join("");return(0,t.jsx)("div",{className:"max-w-full",children:(0,t.jsx)("ul",{className:"list-disc space-y-2 leading-relaxed",dangerouslySetInnerHTML:{__html:r}}
1)})},F=e=>{let{tags:l}=e;return l&&Array.isArray(l)&&0!==l.length?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"flex flex-wrap gap-x-2.5 gap-y-2",children:l.map(e=>(0,t.jsx)(E.default,{href:`/platform/elementor?tags=${e.id}&page=1`,className:"inline-flex items-center justify-center border border-solid border-[#EAECF0] px-4 py-1 bg-[#F1FBFF] text-sm rounded-full text-[#5AC0FF] not-italic",children:e.name},e.id))})}):(0,t.jsx)("div",{})};e.s(["DetailInfoTabs",0,function(e){let{data:l,descriptionRef:r,descriptionHeight:n,descriptionHeightController:s,selectedInfoTab:i,setSelectedInfoTab:a,showFullDescription:o,setShowFullDescription:c}=e;if(!l)return null;let u=!!l.description,d=n>s;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)("div",{className:"grow flex items-center border-b border-solid border-[#EAECF0]",children:(0,t.jsxs)("div",{className:"grow flex items-center gap-6 -mb-[0.0625rem]",children:[u&&(0,t.jsx)("button",{type:"button",onClick:()=>a("description"),className:`h-10 inline-flex items-center justify-center border-b-[0.1875rem] border-solid text-base font-medium cursor-pointer ${"description"===i?"text-[#5632D1] border-[#5632D1]":"text-[#535865] border-transparent"}`,children:"Description"}),l.features&&(0,t.jsx)("button",{type:"button",onClick:()=>a("features"),className:`h-10 inline-flex items-center justify-center border-b-[0.1875rem] border-solid text-base font-medium cursor-pointer ${"features"===i?"text-[#5632D1] border-[#5632D1]":"text-[#535865] border-transparent"}`,children:"Features"}),l.tags&&(0,t.jsx)("button",{type:"button",onClick:()=>a("tags"),className:`h-10 inline-flex items-center justify-center border-b-[0.1875rem] border-solid text-base font-medium cursor-pointer ${"tags"===i?"text-[#5632D1] border-[#5632D1]":"text-[#535865] border-transparent"}`,children:"Tags"})]})})}),(0,t.jsx)("div",{className:`${u&&"description"===i?"block":"hidden"}`,children:(0,t.jsx)("div",{className:`${d?`flex flex-col overflow-hidden transition-[max-height,margin-bottom] ${o?"mb-10":"-mb-6"}`:"flex flex-col"}`,style:{maxHeight:d&&o?n:s},children:(0,t.jsxs)("div",{ref:r,className:"flex flex-col gap-4",children:[(0,t.jsx)("div",{className:"prose prose-slate max-w-full",dangerouslySetInnerHTML:{__html:l.description??""}}),l.video_url&&(0,t.jsx)("iframe",{width:"100%",height:"400",className:"w-full rounded-2xl",src:l.video_url,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0,frameBorder:"0"})]})})}),!!l.features&&"features"===i&&(0,t.jsx)("div",{className:`${l.features&&"features"===i?"block":"hidden"}`,children:(0,t.jsx)(C,{features:l.features})}),(0,t.jsx)("div",{className:`${l.tags&&"tags"===i?"block":"hidden"}`,children:(0,t.jsx)(F,{tags:l.tags})})]}),u&&"description"===i&&d?(0,t.jsx)("div",{className:`absolute inset-x-0 bottom-0 z-[1] flex items-center justify-center ${o?"h-16 pb-2":"pt-8 h-32 bg-gradient-to-b from-white/30 to-[#F8FAFE]"}`,children:(0,t.jsxs)("button",{className:"text-base font-medium flex items-center justify-center gap-2.5 text-[#1F2128]",onClick:()=>c(e=>!e),children:[(0,t.jsx)("span",{className:"hover:underline underline-offset-4",children:o?"View Less":"View More"}),(0,t.jsx)("span",{className:"inline-flex items-center justify-center h-8 aspect-square rounded-full bg-[#5632D1] text-base text-white",children:o?(0,t.jsx)("i",{className:"ticon t-arrow-cool-up text-xl"}):(0,t.jsx)("i",{className:"ticon t-arrow-cool-down text-xl"})})]})}):null]})}],63580);var _=e.i(13034);function y(e){let{slide:l,rect:r}=e,{imageFit:n}=(0,_.useLightboxProps)().carousel,s=(0,_.isImageSlide)(l)&&(0,_.isImageFitCover)(l,n);if(!(0,_.isImageSlide)(l)||"number"!=typeof l.width||"number"!=typeof l.height)return;let i=s?r.width:Math.round(Math.min(r.width,r.height/l.height*l.width)),a=s?r.height:Math.round(Math.min(r.height,r.width/l.width*l.height));return(0,t.jsx)("div",{style:{position:"relative",width:i,height:a},children:(0,t.jsx)(d.default,{fill:!0,alt:"",src:l.src,loading:"eager",draggable:!1,placeholder:l.blurDataURL?"blur":void 0,style:{objectFit:s?"cover":"contain"},sizes:`${Math.ceil(i/window.innerWidth*100)}vw`})})}var w=e.i(69252);let N={separator:"/",container:{}},S=e=>({...N,...e});
1function j(e){let{counter:t}=e,{slides:l,currentIndex:r}=(0,_.useLightboxState)(),{separator:n,container:{className:s,...i},className:a,...o}=S(t);return 0===l.length?null:h.createElement("div",{className:(0,_.clsx)((0,_.cssClass)("counter"),s||a),...o,...i,"aria-hidden":!0},r+1," ",n," ",l.length)}function L(e){let{augment:t,addChild:l}=e;t(e=>{let{counter:t,...l}=e;return{counter:S(t),...l}}),l(w.MODULE_CONTROLLER,(0,_.createModule)(w.PLUGIN_COUNTER,j))}let I={auto:!1,ref:null},k=e=>({...I,...e}),M=h.createContext(null),T=(0,_.makeUseContext)("useFullscreen","FullscreenContext",M);function P(e){let{fullscreen:t,on:l,children:r}=e,{auto:n,ref:s}=k(t),i=h.useRef(null),[a,o]=h.useState(),[c,u]=h.useState(!1),d=h.useRef(!1),{getOwnerDocument:m}=(0,_.useDocumentContext)();(0,_.useLayoutEffect)(()=>{var e,t,l,r;let n=m();o(!(null!=(r=null!=(l=null!=(t=null!=(e=n.fullscreenEnabled)?e:n.webkitFullscreenEnabled)?t:n.mozFullScreenEnabled)?l:n.msFullscreenEnabled)&&r))},[m]);let f=h.useCallback(()=>{var e;let t=m(),l=t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement;return(null==(e=null==l?void 0:l.shadowRoot)?void 0:e.fullscreenElement)||l},[m]),p=h.useCallback(()=>{let e=i.current;try{e.requestFullscreen?e.requestFullscreen().catch(()=>{}):e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}catch(e){}},[]),x=h.useCallback(()=>{if(!f())return;let e=m();try{e.exitFullscreen?e.exitFullscreen().catch(()=>{}):e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen()}catch(e){}},[f,m]);h.useEffect(()=>{let e=m(),t=()=>{u(f()===i.current)};return(0,_.cleanup)(...["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].map(l=>(e.addEventListener(l,t),()=>e.removeEventListener(l,t))))},[f,m]);let g=(0,_.useEventCallback)(()=>{var e;return null==(e=l.enterFullscreen)?void 0:e.call(l)}),b=(0,_.useEventCallback)(()=>{var e;return null==(e=l.exitFullscreen)?void 0:e.call(l)});h.useEffect(()=>{c&&(d.current=!0),d.current&&(c?g:b)()},[c,g,b]);let v=(0,_.useEventCallback)(()=>{var e;return null==(e=n?p:null)||e(),x});h.useEffect(v,[v]);let E=h.useMemo(()=>({fullscreen:c,disabled:a,enter:p,exit:x}),[c,a,p,x]);return h.useImperativeHandle(s,()=>E,[E]),h.createElement("div",{ref:i,className:(0,_.clsx)((0,_.cssClass)(w.PLUGIN_FULLSCREEN),(0,_.cssClass)(w.CLASS_FULLSIZE))},h.createElement(M.Provider,{value:E},r))}let R=(0,_.createIcon)("EnterFullscreen",h.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),D=(0,_.createIcon)("ExitFullscreen",h.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));function A(){var e;let{fullscreen:t,disabled:l,enter:r,exit:n}=T(),{render:s}=(0,_.useLightboxProps)();return l?null:s.buttonFullscreen?h.createElement(h.Fragment,null,null==(e=s.buttonFullscreen)?void 0:e.call(s,{fullscreen:t,disabled:l,enter:r,exit:n})):h.createElement(_.IconButton,{disabled:l,label:t?"Exit Fullscreen":"Enter Fullscreen",icon:t?D:R,renderIcon:t?s.iconExitFullscreen:s.iconEnterFullscreen,onClick:t?n:r})}function U(e){let{augment:t,contains:l,addParent:r}=e;t(e=>{let{fullscreen:t,toolbar:l,...r}=e;return{toolbar:(0,_.addToolbarButton)(l,w.PLUGIN_FULLSCREEN,h.createElement(A,null)),fullscreen:k(t),...r}}),r(l(w.PLUGIN_THUMBNAILS)?w.PLUGIN_THUMBNAILS:w.MODULE_CONTROLLER,(0,_.createModule)(w.PLUGIN_FULLSCREEN,P))}let z={autoplay:!1,delay:3e3,ref:null},O=e=>({...z,...e}),$=h.createContext(null),B=(0,_.makeUseContext)("useSlideshow","SlideshowContext",$);function H(e){let{slideshow:t,carousel:{finite:l},on:r,children:n}=e,{autoplay:s,delay:i,ref:a}=O(t),o=h.useRef(s),[c,u]=h.useState(s),d=h.useRef(void 0),m=h.useRef(void 0),{slides:f,currentIndex:p}=(0,_.useLightboxState)(),{setTimeout:x,clearTimeout:g}=(0,_.useTimeouts)(),{subscribe:b}=(0,_.useEvents)(),{next:v}=(0,_.useController)(),{setAutoPlaying:E}=(0,_.useA11yContext)();h.useEffect(()=>E(c),[c,E]);let C=0===f.length||l&&p===f.length-1,F=h.useCallback(()=>{c||C||u(!0)},[c,C]),y=h.useCallback(()=>{c&&u(!1)},[c]),N=h.useCallback(()=>{g(d.current),d.current=void 0},[g]),S=(0,_.useEventCallback)(()=>{N(),c&&!C&&m.current!==w.SLIDE_STATUS_LOADING&&m.current!==w.SLIDE_STATUS_PLAYING&&(d.current=x(()=>{c&&(m.current=void 0,v())},i))});h.useEffect(S,[p,c,S]),h.useEffect(()=>{c&&C&&u(!1)},[p,c,C]);let j=(0,_.useEventCallback)(()=>{var e;return null==(e=r.slideshowStart)?void 0:e.call(r)}),L=(0,_.useEventCallback)(()=>{var e;return null==(e=r.slideshowStop)?void 0:e.call(r)});h.useEffect(()=>{c?j():o.current&&L(),o.current=c},[c,j,L]),h.useEffect(()=>(0,_.cleanup)(N,b(w.ACTIVE_SLIDE_LOADING,()=>{m.current=w.SLIDE_STATUS_LOADING,N()}),b(w.ACTIVE_SLIDE_PLAYING,()=>{m.current=w.SLIDE_STATUS_PLAYING,N()}),b(w.ACTIVE_SLIDE_ERROR,()=>{m.current=w.SLIDE_STATUS_ERROR,S()}),b(w.ACTIVE_SLIDE_COMPLETE,()=>{m.current=w.SLIDE_STATUS_COMPLETE,S()})),[b,N,S]);let I=h.useMemo(()=>({playing:c,disabled:C,play:F,pause:y}),[c,C,F,y]);return h.useImperativeHandle(a,()=>I,[I]),h.createElement($.Provider,{value:I},n)}let V=(0,_.createIcon)("Play",h.createElement("path",{d:"M8 5v14l11-7z"})),Y=(0,_.createIcon)("Pause",h.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}));function Z(){let{playing:e,disabled:t,play:l,pause:r}=B(),{render:n}=(0,_.useLightboxProps)(),s=(0,_.useLoseFocus)((0,_.useController)().focus,t);return n.buttonSlideshow?h.createElement(h.Fragment,null,n.buttonSlideshow({playing:e,disabled:t,play:l,pause:r})):h.createElement(_.IconButton,{label:e?"Pause":"Play",icon:e?Y:V,renderIcon:e?n.iconSlideshowPau
1se:n.iconSlideshowPlay,onClick:e?r:l,disabled:t,...s})}function G(e){let{augment:t,addModule:l}=e;t(e=>{let{slideshow:t,toolbar:l,...r}=e;return{toolbar:(0,_.addToolbarButton)(l,w.PLUGIN_SLIDESHOW,h.createElement(Z,null)),slideshow:O(t),...r}}),l((0,_.createModule)(w.PLUGIN_SLIDESHOW,H))}let W={ref:null,position:"bottom",width:120,height:80,border:1,borderRadius:4,padding:4,gap:16,imageFit:"contain",vignette:!0,hidden:!1,showToggle:!1},q=e=>({...W,...e});function X(){let{thumbnails:e}=(0,_.useLightboxProps)();return q(e)}let J=e=>(0,_.composePrefix)(w.PLUGIN_THUMBNAILS,e),K=e=>J((0,_.composePrefix)("thumbnail",e)),Q=(0,_.createIcon)("VideoThumbnail",h.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})),ee=(0,_.createIcon)("UnknownThumbnail",h.createElement("path",{d:"M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"})),et=(0,_.makeComposePrefix)("active"),el=(0,_.makeComposePrefix)("fadein"),er=(0,_.makeComposePrefix)("fadeout"),en=(0,_.makeComposePrefix)("placeholder"),es="delay",ei="duration";function ea(e){let{slide:t,index:l,onClick:r,fadeIn:n,fadeOut:s,placeholder:i,onLoseFocus:a}=e,o=h.useRef(null),{render:c,styles:u,labels:d}=(0,_.useLightboxProps)(),{slides:m,globalIndex:f}=(0,_.useLightboxState)(),{getOwnerDocument:p}=(0,_.useDocumentContext)(),{width:x,height:g,imageFit:b}=X(),v=l===f,E=(0,_.useEventCallback)(a);return h.useEffect(()=>{s&&p().activeElement===o.current&&E()},[s,E,p]),h.createElement("button",{ref:o,type:"button",className:(0,_.clsx)((0,_.cssClass)(w.CLASS_FLEX_CENTER),(0,_.cssClass)(K()),v&&(0,_.cssClass)(K(et())),n&&(0,_.cssClass)(K(el())),s&&(0,_.cssClass)(K(er())),i&&(0,_.cssClass)(K(en()))),style:{...n?{[(0,_.cssVar)(K(el(ei)))]:`${n.duration}ms`,[(0,_.cssVar)(K(el(es)))]:`${n.delay}ms`}:null,...s?{[(0,_.cssVar)(K(er(ei)))]:`${s.duration}ms`,[(0,_.cssVar)(K(er(es)))]:`${s.delay}ms`}:null,...u.thumbnail},onClick:r,"aria-current":!!v||void 0,"aria-label":(0,_.translateSlideCounter)(d,m,l)},t&&function(e){var t;let{slide:l,render:r,rect:n,imageFit:s}=e,i=null==(t=r.thumbnail)?void 0:t.call(r,{slide:l,render:r,rect:n,imageFit:s});if(i)return i;let a={render:r,rect:n,imageFit:s};if(l.thumbnail)return h.createElement(_.ImageSlide,{slide:{src:l.thumbnail},...a});if((0,_.isImageSlide)(l))return h.createElement(_.ImageSlide,{slide:l,...a});let o=(0,_.cssClass)(K(w.ELEMENT_ICON));return"video"===l.type?h.createElement(h.Fragment,null,l.poster&&h.createElement(_.ImageSlide,{slide:{src:l.poster},...a}),h.createElement(Q,{className:o})):h.createElement(ee,{className:o})}({slide:t,render:c,rect:{width:x,height:g},imageFit:b}))}function eo(e){return["top","bottom"].includes(e)}function ec(e,t){return t+2*(e.border+e.padding)+e.gap}function eu(e){let{visible:t,containerRef:l}=e,r=h.useRef(null),n=(0,_.useRTL)(),{publish:s,subscribe:i}=(0,_.useEvents)(),{carousel:a,styles:o,labels:c}=(0,_.useLightboxProps)(),{slides:u,globalIndex:d,animation:m}=(0,_.useLightboxState)(),{registerSensors:f,subscribeSensors:p}=(0,_.useSensors)();(0,_.useKeyboardNavigation)(p);let x=X(),{position:g,width:b,height:v,border:E,borderStyle:C,borderColor:F,borderRadius:y,padding:N,gap:S,vignette:j}=x,L=(null==m?void 0:m.duration)!==void 0&&(null==m?void 0:m.increment)||0,I=(null==m?void 0:m.duration)||0,{prepareAnimation:k}=(0,_.useAnimation)(r,e=>({keyframes:eo(g)?[{transform:`translateX(${(n?-1:1)*ec(x,b)*L+e}px)`},{transform:"translateX(0)"}]:[{transform:`translateY(${ec(x,v)*L+e}px)`},{transform:"translateY(0)"}],duration:I,easing:null==m?void 0:m.easing})),M=(0,_.useEventCallback)(()=>{let e=0;if(l.current&&r.current){let t=l.current.getBoundingClientRect(),n=r.current.getBoundingClientRect();e=eo(g)?n.left-t.left-(t.width-n.width)/2:n.top-t.top-(t.height-n.height)/2}k(e)});h.useEffect(()=>(0,_.cleanup)(i(w.ACTION_SWIPE,M)),[i,M]);let T=(0,_.calculatePreload)(a,u),P=[];if((0,_.hasSlides)(u))for(let e=d-T-Math.abs(L);e<=d+T+Math.abs(L);e+=1){let t=a.finite&&(e<0||e>u.length-1)||L<0&&e<d-T||L>0&&e>d+T?null:(0,_.getSlide)(u,e),l=[`${e}`,function(e){let{thumbnail:t,poster:l}=e||{thumbnail:"placeholder"};return"string"==typeof t&&t||"string"==typeof l&&l||e&&(0,_.getSlideKey)(e)||void 0}
1(t)].filter(Boolean).join("|");P.push({key:l,index:e,slide:t})}return h.createElement("div",{className:(0,_.clsx)((0,_.cssClass)(J("container")),(0,_.cssClass)(w.CLASS_FLEX_CENTER)),style:{...!t?{display:"none"}:null,...b!==W.width?{[(0,_.cssVar)(K("width"))]:`${b}px`}:null,...v!==W.height?{[(0,_.cssVar)(K("height"))]:`${v}px`}:null,...E!==W.border?{[(0,_.cssVar)(K("border"))]:`${E}px`}:null,...C?{[(0,_.cssVar)(K("border_style"))]:C}:null,...F?{[(0,_.cssVar)(K("border_color"))]:F}:null,...y!==W.borderRadius?{[(0,_.cssVar)(K("border_radius"))]:`${y}px`}:null,...N!==W.padding?{[(0,_.cssVar)(K("padding"))]:`${N}px`}:null,...S!==W.gap?{[(0,_.cssVar)(K("gap"))]:`${S}px`}:null,...o.thumbnailsContainer}},h.createElement("nav",{ref:r,style:o.thumbnailsTrack,className:(0,_.clsx)((0,_.cssClass)(J("track")),(0,_.cssClass)(w.CLASS_FLEX_CENTER)),"aria-label":(0,_.translateLabel)(c,"Thumbnails"),tabIndex:-1,...f},P.map(e=>{let{key:t,index:l,slide:n}=e,i=I/Math.abs(L||1),a=L>0&&l>d+T-L&&l<=d+T||L<0&&l<d-T-L&&l>=d-T?{duration:i,delay:((L>0?l-(d+T-L):d-T-L-l)-1)*i}:void 0,o=L>0&&l<d-T||L<0&&l>d+T?{duration:i,delay:(L>0?L-(d-T-l):-L-(l-(d+T)))*i}:void 0;return h.createElement(ea,{key:t,index:l,slide:n,fadeIn:a,fadeOut:o,placeholder:!n,onClick:()=>{l>d?s(w.ACTION_NEXT,{count:l-d}):l<d&&s(w.ACTION_PREV,{count:d-l})},onLoseFocus:()=>{var e;return null==(e=r.current)?void 0:e.focus()}})})),j&&h.createElement("div",{className:(0,_.cssClass)(J("vignette"))}))}let ed=h.createContext(null),em=(0,_.makeUseContext)("useThumbnails","ThumbnailsContext",ed);function eh(e){let{children:t,...l}=e,{ref:r,position:n,hidden:s}=q(l.thumbnails),[i,a]=h.useState(!s),o=h.useRef(null),c=h.useMemo(()=>({visible:i,show:()=>a(!0),hide:()=>a(!1)}),[i]);return h.useImperativeHandle(r,()=>c,[c]),h.createElement(_.LightboxPropsProvider,{...l},h.createElement(ed.Provider,{value:c},h.createElement("div",{ref:o,className:(0,_.clsx)((0,_.cssClass)(J()),(0,_.cssClass)(J(`${n}`)))},["start","top"].includes(n)&&h.createElement(eu,{containerRef:o,visible:i}),h.createElement("div",{className:(0,_.cssClass)(J("wrapper"))},t),["end","bottom"].includes(n)&&h.createElement(eu,{containerRef:o,visible:i}))))}let ef=()=>h.createElement(h.Fragment,null,h.createElement("path",{strokeWidth:2,stroke:"currentColor",strokeLinejoin:"round",fill:"none",d:"M3 5l18 0l0 14l-18 0l0-14z"}),h.createElement("path",{d:"M5 14h4v3h-4zM10 14h4v3h-4zM15 14h4v3h-4z"})),ep=(0,_.createIcon)("ThumbnailsVisible",ef()),ex=(0,_.createIconDisabled)("ThumbnailsHidden",ef());function eg(){let{visible:e,show:t,hide:l}=em(),{render:r}=(0,_.useLightboxProps)();return r.buttonThumbnails?h.createElement(h.Fragment,null,r.buttonThumbnails({visible:e,show:t,hide:l})):h.createElement(_.IconButton,{label:e?"Hide thumbnails":"Show thumbnails",
1icon:e?ep:ex,renderIcon:e?r.iconThumbnailsVisible:r.iconThumbnailsHidden,onClick:e?l:t})}function eb(e){let{augment:t,contains:l,append:r,addParent:n}=e;t(e=>{let{thumbnails:t,toolbar:l,...r}=e,n=q(t);return{toolbar:(0,_.addToolbarButton)(l,w.PLUGIN_THUMBNAILS,n.showToggle?h.createElement(eg,null):null),thumbnails:n,...r}});let s=(0,_.createModule)(w.PLUGIN_THUMBNAILS,eh);l(w.PLUGIN_FULLSCREEN)?r(w.PLUGIN_FULLSCREEN,s):n(w.MODULE_CONTROLLER,s)}let ev={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1,maxZoom:8};function eE(e){let{minZoom:t,...l}={...ev,...e};return{minZoom:Math.min(Math.max(t,Number.EPSILON),1),...l}}function eC(){let{zoom:e}=(0,_.useLightboxProps)();return eE(e)}function eF(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function e_(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return e*Math.min(1+Math.abs(t/l),r)**Math.sign(t)}let ey=h.createContext(null),ew=(0,_.makeUseContext)("useZoom","ZoomControllerContext",ey);function eN(e){let{children:t}=e,[l,r]=h.useState(),{slideRect:n}=(0,_.useController)(),{ref:s,minZoom:i}=eC(),{imageRect:a,maxZoom:o}=function(e,t){var l,r,n;let s={width:0,height:0},i={width:0,height:0},{currentSlide:a}=(0,_.useLightboxState)(),{imageFit:o}=(0,_.useLightboxProps)().carousel,{maxZoomPixelRatio:c,maxZoom:u}=eC();if(e&&a){let n={...a,...t};if((0,_.isImageSlide)(n)){let t=(0,_.isImageFitCover)(n,o),a=Math.max(...((null==(l=n.srcSet)?void 0:l.map(e=>e.width))||[]).concat(n.width?[n.width]:[])),u=Math.max(...((null==(r=n.srcSet)?void 0:r.map(e=>e.height))||[]).concat(n.height?[n.height]:[]));a>0&&u>0&&e.width>0&&e.height>0&&(i={width:(i=t?{width:Math.round(Math.min(a,e.width/e.height*u)),height:Math.round(Math.min(u,e.height/e.width*a))}:{width:a,height:u}).width*c,height:i.height*c},s=t?{width:Math.min(e.width,i.width,a),height:Math.min(e.height,i.height,u)}:{width:Math.round(Math.min(e.width,e.height/u*a,a)),height:Math.round(Math.min(e.height,e.width/a*u,u))})}else e.width>0&&e.height>0&&(s=t&&t.width>0&&t.height>0?{width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}:{width:e.width,height:e.height})}let d=a&&s.width?(0,_.isImageSlide)(a)?Math.max((0,_.round)(i.width/s.width,5),1):Math.max("function"==typeof u?null!=(n=u(a))?n:ev.maxZoom:u,1):1;return{imageRect:s,maxZoom:d}}(n,null==l?void 0:l.imageDimensions),{zoom:c,offsetX:u,offsetY:d,disabled:m,changeZoom:f,changeOffsets:p,zoomIn:x,zoomOut:g}=function(e,t,l){let[r,n]=h.useState(1),[s,i]=h.useState(0),[a,o]=h.useState(0),c=function(e,t,l,r){let n=h.useRef(void 0),s=h.useRef(void 0),{zoom:i}=(0,_.useLightboxProps)().animation,a=(0,_.useMotionPreference)(),o=(0,_.useEventCallback)(()=>{var o,c,u;if(null==(o=n.current)||o.cancel(),n.current=void 0,s.current&&(null==r?void 0:r.current)){try{n.current=null==(u=(c=r.current).animate)?void 0:u.call(c,[{transform:s.current},{transform:`scale(${e}) translateX(${t}px) translateY(${l}px)`}],{duration:a?0:null!=i?i:500,easing:n.current?"ease-out":"ease-in-out"})}catch(e){console.error(e)}s.current=void 0,n.current&&(n.current.onfinish=()=>{n.current=void 0})}});return(0,_.useLayoutEffect)(o,[e,t,l,o]),h.useCallback(()=>{s.current=(null==r?void 0:r.current)?window.getComputedStyle(r.current).transform:void 0},[r])}(r,s,a,l),{currentSlide:u,globalIndex:d}=(0,_.useLightboxState)(),{containerRect:m,slideRect:f}=(0,_.useController)(),{minZoom:p,zoomInMultiplier:x}=eC(),g=u&&(0,_.isImageSlide)(u)?u.src:void 0,b=!(null==l?void 0:l.current);(0,_.useLayoutEffect)(()=>{n(1),i(0),o(0)},[d,g]);let v=h.useCallback((t,l,n)=>{let c=n||r,u=s-(t||0),d=a-(l||0),m=(e.width*c-f.width)/2/c,h=(e.height*c-f.height)/2/c;i(Math.min(Math.abs(u),Math.max(m,0))*Math.sign(u)),o(Math.min(Math.abs(d),Math.max(h,0))*Math.sign(d))},[r,s,a,f,e.width,e.height]),E=h.useCallback((e,l,s,i)=>{let a=(0,_.round)(e+.01<t?e-.01>p?e:p:t,5);l||c(),v(s?s*(1/r-1/a):0,i?i*(1/r-1/a):0,a),n(a)},[r,p,t,v,c]),C=(0,_.useEventCallback)(()=>{r>1&&(r>t&&E(t,!0),v())});(0,_.useLayoutEffect)(C,[m.width,m.height,C]);let F=h.useCallback(()=>{let e=r*x;E(r<1&&e>1?1:e)},[r,x,E]),y=h.useCallback(()=>{let e=r/x;E(r>1&&e<1?1:e)},[r,x,E]);return{zoom:r,offsetX:s,offsetY:a,disabled:b,changeOffsets:v,changeZoom:E,zoomIn:F,zoomOut:y}}(a,o,null==l?void 0:l.zoomWrapperRef);!function(e,t){let{on:l}=(0,_.useLightboxProps)(),r=(0,_.useEventCallback)(()=>{var r;t||null==(r=l.zoom)||r.call(l,{zoom:e})});h.useEffect(r,[e,r])}(c,m),function(e,t,l,r,n,s,i,a,o){let c=h.useRef([]),u=h.useRef(0),d=h.useRef(void 0),{globalIndex:m}=(0,_.useLightboxState)(),{getOwnerWindow:f}=(0,_.useDocumentContext)(),{containerRef:p,subscribeSensors:x}=(0,_.useController)(),{keyboardMoveDistance:g,zoomInMultiplier:b,wheelZoomDistanceFactor:v,scrollToZoom:E,doubleTapDelay:C,doubleClickDelay:F,doubleClickMaxStops:y,pinchZoomDistanceFactor:N,pinchZoomV4:S}=eC(),j=h.useCallback(e=>{if(p.current){let{pageX:t,pageY:l}=e,{scrollX:r,scrollY:n}=f(),{left:s,top:i,width:a,height:o}=p.current.getBoundingClientRect();return[t-s-r-a/2,l-i-n-o/2]}return[]},[p,f]),L=(0,_.useEventCallback)(t=>{let{key:l,metaKey:r,ctrlKey:o}=t,c=r||o,u=()=>{t.preventDefault(),t.stopPropagation()};if(e>1){let e=(e,t)=>
1{u(),a(e,t)};"ArrowDown"===l?e(0,g):"ArrowUp"===l?e(0,-g):"ArrowLeft"===l?e(-g,0):"ArrowRight"===l&&e(g,0)}"+"===l||c&&"="===l?(u(),n()):"-"===l||c&&"_"===l?(u(),s()):c&&"0"===l&&(u(),i(1))}),I=(0,_.useEventCallback)(t=>{if((t.ctrlKey||E)&&Math.abs(t.deltaY)>Math.abs(t.deltaX)){t.stopPropagation(),i(e_(e,-t.deltaY,v),!0,...j(t));return}e>1&&(t.stopPropagation(),E||a(t.deltaX,t.deltaY))}),k=h.useCallback(e=>{let t=c.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),M=h.useCallback(e=>{k(e),e.persist(),c.current.push(e)},[k]),T=(0,_.useEventCallback)(r=>{var n;let s=c.current;if("mouse"===r.pointerType&&r.buttons>1||!(null==(n=null==o?void 0:o.current)?void 0:n.contains(r.target)))return;e>1&&r.stopPropagation();let{timeStamp:a}=r;if(0===s.length&&a-u.current<("touch"===r.pointerType?C:F)?(u.current=0,i(e>=1?e!==l?e*Math.max(l**(1/y),b):1:e!==t?e/Math.max(t**(-1/y),b):1,!1,...j(r))):u.current=a,M(r),2===s.length){let t=eF(s[0],s[1]);d.current={previousDistance:t,initialDistance:Math.max(t,1),initialZoom:e}}}),P=(0,_.useEventCallback)(t=>{let l=c.current,r=l.find(e=>e.pointerId===t.pointerId);if(2===l.length&&d.current){t.stopPropagation(),M(t);let r=eF(l[0],l[1]);i(S?d.current.initialZoom/d.current.initialDistance*r:e_(e,r-d.current.previousDistance,N),!0,...l.map(e=>j(e)).reduce((e,t)=>t.map((t,l)=>e[l]+t/2))),d.current.previousDistance=r;return}e>1&&(t.stopPropagation(),r&&(1===l.length&&a((r.clientX-t.clientX)/e,(r.clientY-t.clientY)/e),M(t)))}),R=h.useCallback(e=>{let t=c.current;2===t.length&&t.find(t=>t.pointerId===e.pointerId)&&(d.current=void 0),k(e)},[k]),D=h.useCallback(()=>{let e=c.current;e.splice(0,e.length),u.current=0,d.current=void 0},[]);(0,_.usePointerEvents)(x,T,P,R,r),h.useEffect(D,[m,D]),h.useEffect(()=>r?()=>{}:(0,_.cleanup)(D,x(w.EVENT_ON_KEY_DOWN,L),x(w.EVENT_ON_WHEEL,I)),[r,x,D,L,I])}(c,i,o,m,x,g,f,p,null==l?void 0:l.zoomWrapperRef);let b=h.useMemo(()=>({zoom:c,minZoom:i,maxZoom:o,offsetX:u,offsetY:d,disabled:m,zoomIn:x,zoomOut:g,changeZoom:f}),[c,i,o,u,d,m,x,g,f]);h.useImperativeHandle(s,()=>b,[b]);let v=h.useMemo(()=>({...b,setZoomWrapper:r}),[b,r]);return h.createElement(ey.Provider,{value:v},t)}let eS=(0,_.createIcon)("ZoomIn",h.createElement(h.Fragment,null,h.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),h.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),ej=(0,_.createIcon)("ZoomOut",h.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),eL=h.forwardRef(function(e,t){let{zoomIn:l,onLoseFocus:r}=e,n=h.useRef(!1),s=h.useRef(!1),{zoom:i,minZoom:a,maxZoom:o,zoomIn:c,zoomOut:u,disabled:d}=ew(),{render:m}=(0,_.useLightboxProps)(),f=d||(l?i>=o:i<=a);return h.useEffect(()=>{f&&n.current&&s.current&&r(),f||(n.current=!0)},[f,r]),h.createElement(_.IconButton,{ref:t,disabled:f,label:l?"Zoom in":"Zoom out",icon:l?eS:ej,renderIcon:l?m.iconZoomIn:m.iconZoomOut,onClick:l?c:u,onFocus:()=>{s.current=!0},onBlur:()=>{s.current=!1}})});function eI(){let e=h.useRef(null),t=h.useRef(null),{focus:l}=(0,_.useController)(),r=h.useCallback(e=>{var t,r;(null==(t=e.current)?void 0:t.disabled)?l():null==(r=e.current)||r.focus()},[l]),n=h.useCallback(()=>r(e),[r]),s=h.useCallback(()=>r(t),[r]);return h.createElement(h.Fragment,null,h.createElement(eL,{zoomIn:!0,ref:e,onLoseFocus:s}),h.createElement(eL,{ref:t,onLoseFocus:n}))}function ek(){let{render:e}=(0,_.useLightboxProps)(),t=ew();
1return e.buttonZoom?h.createElement(h.Fragment,null,e.buttonZoom(t)):h.createElement(eI,null)}function eM(e,t){let{current:l,preload:r}=e,{type:n,source:s}=t;switch(n){case"fetch":if(!l)return{current:s};return{current:l,preload:s};case"done":if(s===r)return{current:s};return{current:l,preload:r};default:throw Error(w.UNKNOWN_ACTION_TYPE)}}function eT(e){var t,l;let[{current:r,preload:n},s]=h.useReducer(eM,{}),{slide:i,rect:a,imageFit:o,render:c,interactive:u}=e,d=i.srcSet.sort((e,t)=>e.width-t.width),m=null!=(t=i.width)?t:d[d.length-1].width,f=null!=(l=i.height)?l:d[d.length-1].height,p=(0,_.isImageFitCover)(i,o),x=Math.max(...d.map(e=>e.width)),g=Math.min((p?Math.max:Math.min)(a.width,m*(a.height/f)),x),b=(0,_.devicePixelRatio)(),v=(0,_.useEventCallback)(()=>{var e;let t=null!=(e=d.find(e=>e.width>=g*b))?e:d[d.length-1];(!r||d.findIndex(e=>e.src===r)<d.findIndex(e=>e===t))&&s({type:"fetch",source:t.src})});(0,_.useLayoutEffect)(v,[a.width,a.height,b,v]);let E=(0,_.useEventCallback)(e=>s({type:"done",source:e})),C={WebkitTransform:u?"initial":"translateZ(0)"};return p||Object.assign(C,a.width/a.height<m/f?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),h.createElement(h.Fragment,null,n&&n!==r&&h.createElement(_.ImageSlide,{key:"preload",...e,offset:void 0,slide:{...i,src:n,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...C},onLoad:()=>E(n),render:{...c,iconLoading:()=>null,iconError:()=>null}}),r&&h.createElement(_.ImageSlide,{key:"current",...e,slide:{...i,src:r,srcSet:void 0},style:C}))}function eP(e){var t,l;let{render:r,slide:n,offset:s,rect:i}=e,[a,o]=h.useState(),c=h.useRef(null),u=(0,_.isImageSlide)(n),{zoom:d,maxZoom:m,offsetX:f,offsetY:p,setZoomWrapper:x}=ew(),g=d>1,{carousel:b,on:v}=(0,_.useLightboxProps)(),{currentIndex:E}=(0,_.useLightboxState)();(0,_.useLayoutEffect)(()=>{if(0!==s||u||!c.current)return()=>{};let e=()=>{let e=c.current;if(!e)return;let t=0,l=0;for(let r of e.children)r instanceof HTMLElement&&(t=Math.max(t,r.offsetWidth),l=Math.max(l,r.offsetHeight));o(e=>e&&e.width===t&&e.height===l?e:{width:t,height:l})};if(e(),"u"<typeof ResizeObserver)return()=>{};let t=new ResizeObserver(e);for(let e of c.current.children)t.observe(e);return()=>t.disconnect()},[s,u,i]),(0,_.useLayoutEffect)(()=>0===s?(x({zoomWrapperRef:c,imageDimensions:a}),()=>x(void 0)):()=>{},[s,a,x]);let C=null==(t=r.slide)?void 0:t.call(r,{slide:n,offset:s,rect:i,zoom:d,maxZoom:m});if(!C&&u){let e={slide:n,offset:s,rect:i,render:r,imageFit:b.imageFit,imageProps:b.imageProps,onClick:0===s?()=>{var e;return null==(e=v.click)?void 0:e.call(v,{index:E})}:void 0};C=((null==(l=n.srcSet)?void 0:l.length)||0)>0?h.createElement(eT,{...e,slide:n,interactive:g,rect:0===s?{width:i.width*d,height:i.height*d}:i}):h.createElement(_.ImageSlide,{onLoad:e=>o({width:e.naturalWidth,height:e.naturalHeight}),...e})}return C?h.createElement("div",{ref:c,className:(0,_.clsx)((0,_.cssClass)(w.CLASS_FULLSIZE),(0,_.cssClass)(w.CLASS_FLEX_CENTER),(0,_.cssClass)(w.CLASS_SLIDE_WRAPPER),g&&(0,_.cssClass)(w.CLASS_SLIDE_WRAPPER_INTERACTIVE)),style:0===s?{transform:`scale(${d}) translateX(${f}px) translateY(${p}px)`}:void 0},C):null}let eR=e=>{let{augment:t,addModule:l}=e;t(e=>{let{zoom:t,toolbar:l,render:r,controller:n,...s}=e,i=eE(t);return{zoom:i,toolbar:(0,_.addToolbarButton)(l,w.PLUGIN_ZOOM,h.createElement(ek,null)),render:{...r,slide:e=>{var t,l;return(0,_.isImageSlide)(e.slide)||null!=e.slide.type&&(null==(t=i.supports)?void 0:t.includes(e.slide.type))?h.createElement(eP,{render:r,...e}):null==(l=r.slide)?void 0:l.call(r,e)}},controller:{...n,preventDefaultWheelY:i.scrollToZoom},...s}}),l((0,_.createModule)(w.PLUGIN_ZOOM,eN))};e.s(["DetailLightbox",0,function(e){let{open:l,onClose:r,slides:n}=e;return(0,t.jsx)(_.default,{open:l,close:r,slides:n,render:{slide:y},plugins:[eR,L,U,G,eb]})},"buildSlidesFromScreenshots",0,function(e,t){return e&&e.length>0?e.map(e=>({src:e.url??""})):t?[{src:t}]:[]}],74212);let eD=e=>{switch(e){case"top_rated":return{bg:"bg-[#FFF8F1]",text:"text-[#ED7D19]"};case"trending":return{bg:"bg-[#FDEEF2]",text:"text-[#E45883]"};case"popular":return{bg:"bg-[#F9F1FF]",text:"text-[#A16AE0]"};case"new_arrival":return{bg:"bg-[#F1FFF2]",text:"text-[#32BC2A]"};case"featured":return{bg:"bg-[#F1F7FF]",text:"text-[#7D78FF]"};default:return{bg:"bg-[#FFF9F1]",text:"text-[#FE8965]"}}},eA=[a.TYPE_MONTH,a.TYPE_YEAR,a.TYPE_ONE_TIME,a.TYPE_LIFE_TIME];e.s(["USER_PRO_PLANS",0,eA,"getBadgeStyles",0,eD],65312),e.s(["useDescriptionHeight",0,function(e,t){var l;let[r,n]=(0,h.useState)(0);return(0,h.useEffect)(()=>{var t;n((null==e||null==(t=e.current)?void 0:t.scrollHeight)??0)},[null==e||null==(l=e.current)?void 0:l.scrollHeight,t]),r},"useStickySidebarHeight",0,function(e){var t,l,r;let{mainContentRef:n,sidebarContentRef:s,extraDeps:i=[]}=e,a=(()=>{let[e,t]=(0,h.useState)(window.innerWidth);return(0,h.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e})(),[o,c]=(0,h.useState)(((null==(t=n.current)?void 0:t.scrollHeight)??0)-((null==(l=s.current)?void 0:l.scrollHeight)??0));return(0,h.useEffect)(()=>{let e=setTimeout(()=>{var e,t;c(((null==(e=n.current)?void 0:e.scrollHeight)??0)-((null==(t=s.current)?void 0:t.scrollHeight)??0))},150);return()=>clearTimeout(e)},[null==(r=s.current)?void 0:r.scrollHeight,a,...i]),o}],35430);var eU=e.i(63585),ez=e.i(10103),eO=e.i(59602);e.s(["useDetailMutations",0,function(e){let[t,l]=(0,h.useState)(e.initialLiked),[r,n]=(0,h.useState)(e.initialLikeCount),[s,i]=(0,h.useState)(e.initialRating),[a,c]=(0,h.useState)(0),[u,{loading:d}]=(0,eU.useMutation)(eO.FAVOURITE,{onCompleted(t){let{favourite:r}=t;if(!r||"success"!==r.status)return void ez.toast.error((null==r?void 0:r.message)??"Something went wrong!");let s=JSON.parse((0,o.getUserFavoritesFromStorage)()||"[]"),i=s.some(t=>(null==t?void 0:t.id)===e.itemId&&(null==t?void 0:t.type)===e.itemType)?s:[...s,{id:e.itemId,name:e.itemName,type:e.itemType}];(0,o.setUserPropertyInStorage)("templately-user-favourites",JSON.stringify(i)),l(!0),n(e=>e+1)},onError:o.onError}),[m,{loading:f}]=(0,eU.useMutation)(eO.UNFAVOURITE,{onCompleted(t){if(!t)return;let r=JSON.parse((0,o.getUserFavoritesFromStorage)()||"[]").filter(t=>null!=t&&t.id!==e.itemId);(0,o.setUserPropertyInStorage)("templately-user-favourites",JSON.stringify(r)),l(!1),n(e=>e-1)},onError:o.onError}),[p,{loading:x}]=(0,eU.useMutation)(eO.REVIEW,{onCompleted(e){let{review:t}=e,l=(null==t?void 0:t.data)?JSON.parse(t.data):null;(null==l?void 0:l.avg_rating)&&i(Number.parseFloat(l.avg_rating))},onError:o.onError});return{liked:t,setLiked:l,likeCount:r,setLikeCount:n,averageRating:s,setAverageRating:i,rating:a,setRating:c,favLoading:d,unfavLoading:f,reviewLoading:x,onFavourite:t=>{if(!d){if(!e.token)return e.onUnauthorized();u({variables:{token:e.token,type_id:t,type:e.itemType}})}},onUnfavourite:t=>{if(!f){if(!e.token)return e.onUnauthorized();m({variables:{token:e.token,type_id:t,type:e.itemType}})}},onStarClick:t=>{if(!x){if(!e.token)return e.onUnauthorized();c(t),p({variables:{token:e.token,type_id:e.itemId,type:e.itemType,rating:t}})}}}}],38788);let e$=h.useLayoutEffect,eB=e=>(e.plugin_original_slug||e.slug||e.name||String(e.id)).trim().toLowerCase();e.s(["default",0,function(e){let{dependencies:l}=e,r=(0,h.useMemo)(()=>{let e;return(null==l?void 0:l.length)?(e=new Set(l.filter(e=>e.is_pro).map(eB)),l.filter(t=>t.is_pro||!e.has(eB(t)))):[]},[l]),n=(0,h.useRef)(null),[s,i]=(0,h.useState)();return(e$(()=>{let e=n.current;if(!e)return;let t=Array.from(e.querySelectorAll("[data-plugin-chip]"));if(!t.length)return;let l=Math.max(...t.map(e=>e.getBoundingClientRect().width));i(e=>e&&e>=Math.ceil(l)?e:Math.ceil(l))},[r]),r.length)?(0,t.jsx)("div",{className:"relative border border-solid border-[#
1EBEEF2] rounded-lg bg-white z-[1]",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center h-[65px] px-6 border-b border-solid border-[#EBEEF2]",children:(0,t.jsx)("span",{className:"text-[#1F2128] text-lg font-semibold leading-[1.4]",children:"Required Plugins"})}),(0,t.jsx)("div",{className:"px-6 py-4",children:(0,t.jsx)("div",{ref:n,className:"flex flex-wrap gap-3",children:r.map(e=>(0,t.jsxs)("div",{"data-plugin-chip":!0,style:s?{minWidth:s}:void 0,className:"inline-flex items-center gap-2 h-10 px-3 bg-[#FAFBFC] border border-solid border-[#E4E7EB] rounded-md",children:[(0,t.jsx)("span",{className:"w-6 h-6 shrink-0 inline-flex items-center justify-center",children:e.icon?(0,t.jsx)(d.default,{src:e.icon,alt:e.name,height:"24",width:"24",className:"w-6 h-6 object-contain grayscale"}):(0,t.jsx)("span",{className:"text-base font-extrabold text-[#344054]",children:e.name[0]})}),(0,t.jsx)("span",{className:"text-base leading-none text-[#40444F] whitespace-nowrap",children:e.name})]},e.id))})})]})}):null}],15653);var eH=e.i(28231);let eV=[{key:"elementor",label:"Elementor",comingSoon:!0},{key:"gutenberg",label:"Gutenberg",comingSoon:!0},{key:"figma",label:"Figma",comingSoon:!1}];e.s(["default",0,function(e){let{data:l,router:r}=e,{platform:n,variations:s}=l,[i,a]=(0,h.useState)(n),[o,c]=(0,h.useState)(n);n!==o&&(c(n),a(n));let u=e=>(s??[]).find(t=>t.platform===e),d="h-14 inline-flex items-center justify-center border-b-[0.1875rem] border-solid text-lg font-medium transition-colors",m="text-[#1F2128] font-semibold border-[#1F2128] border-[#737985]",f="text-[#535865] border-transparent hover:text-[#1F2128] hover:border-[#737985]";return(0,t.jsx)("div",{className:"grow flex items-center gap-4 -mb-[0.0625rem]",children:eV.map(e=>{let{key:l,label:s,comingSoon:o}=e,c=i===l,h=n===l,p=u(l);return h||p||o?h||p?(0,t.jsx)("button",{type:"button",onClick:()=>(e=>{if(i===e)return;let t=u(e);t&&(a(e),r.push(`/${t.type}/${t.slug}`))})(l),"aria-current":c?"page":void 0,className:`${d} cursor-pointer disabled:cursor-default ${c?m:f}`,children:s},l):(0,t.jsxs)(eH.Tooltip,{enableClick:!0,children:[(0,t.jsx)(eH.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:`${d} cursor-default ${c?m:f}`,children:s})}),(0,t.jsx)(eH.TooltipContent,{bgColorClass:"!bg-[#1F2128] !fill-[#1F2128]",children:(0,t.jsx)("p",{children:"Coming Soon"})})]},l):null})})}],52282);var eY=e.i(12065);e.s(["DetailRelatedCard",0,function(e){var l;let{item:r}=e;return(0,t.jsxs)(E.default,{className:"flex flex-col w-full gap-3",href:{pathname:`/${r.type}/[slug]`,query:{id:"string"==typeof r.id?parseInt(r.id,10):r.id,slug:r.slug,type:r.type,template_type:r.template_type}},as:`/${r.type}/${r.slug}`,passHref:!0,children:[(0,t.jsx)("span",{className:"w-full relative aspect-[100/114.65] rounded-xs border border-solid border-[#F1F1F7] shadow-thumbnail overflow-hidden cursor-pointer",children:(0,t.jsx)(d.default,{src:r.thumbnail??"",blurDataURL:r.thumbnail_blur||o.commonBlurImage,placeholder:"blur",alt:`${r.name} By Templately`,fill:!0,className:"w-full object-cover"})}),(0,t.jsx)("h3",{className:"text-xs font-medium text-[#1F2128]",children:r.name}),(0,t.jsxs)("span",{className:"w-full flex items-center gap-2 mt-auto",children:[null==(l=r.badges)?void 0:l.slice(0,1).map(e=>{let l=eY.badgeList.find(t=>t.key===e);if(!l)return null;let r=eD(l.key);return(0,t.jsxs)("div",{className:`shrink-0 flex gap-1 items-center justify-center h-8 pl-1.5 pr-2 rounded-md ${r.bg}`,children:[(0,t.jsx)(d.default,{src:l.image,alt:l.title,height:63,width:56,className:"w-5 h-auto"}),(0,t.jsx)("h4",{className:`text-xs leading-none font-medium ${r.text}`,children:l.title})]},e)}),(0,t.jsx)("span",{className:"ml-auto inline-flex items-center gap-2 min-h-7",children:"0"===String(r.price)?(0,t.jsx)("span",{className:"text-base font-regular leading-none text-[#1F2128]",children:"Free"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex items-center justify-center h-7 px-2 py-0.5 border border-solid rounded-full text-[#FD853A] border-[#FDDCAB] bg-[#FFF6ED]",children:(0,t.jsx)("i",{className:"ticon t-crown-fill text-sm"})}),(0,t.jsxs)("span",{className:"text-base font-regular leading-none text-[#1F2128]",children:["$",r.price]})]})})]})]})}],74170)}]);
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.