(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405,3352,433,736],{48312:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return l(88283)}])},21349:function(e,t,l){"use strict";var _=l(85893),i=l(59429),o=l(67294),a=l(73935);let s=()=>{let[e,t]=(0,o.useState)({width:window.innerWidth,height:window.innerHeight});return(0,o.useEffect)(()=>{let e=(0,i.Ds)(()=>{t({width:window.innerWidth,height:window.innerHeight})});return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e},n=e=>{var t,l;let{targetRef:i,targetElement:n,children:r,render:d,alignCenter:c=!1,offset:B={top:0,left:0}}=e,[x,m]=(0,o.useState)(null),p=s(),u={top:null!==(t=B.top)&&void 0!==t?t:0,left:null!==(l=B.left)&&void 0!==l?l:0},[v,h]=(0,o.useState)({top:0,left:0});return((0,o.useEffect)(()=>{let e=(null==i?void 0:i.current)||n;if(!e)return;let t=e.getBoundingClientRect(),l=t.bottom+window.scrollY+u.top,_=p.width<=768,o=_?p.width/2:(c?t.left+window.scrollX+t.width/2:t.left+window.scrollX)+u.left;h({top:l,left:o})},[i,n,p,c,u.top,u.left]),(0,o.useEffect)(()=>{let e=document.createElement("div");return document.body.appendChild(e),m(e),()=>{document.body.removeChild(e)}},[]),x)?(0,_.jsxs)(_.Fragment,{children:[!!n&&n,(0,a.createPortal)((0,_.jsx)("div",{style:{position:"absolute",top:v.top,left:v.left},children:d?d(v):r}),x)]}):null};t.Z=n},37201:function(e,t,l){"use strict";var _=l(85893),i=l(16102),o=l.n(i);let a=e=>{var t;return(0,_.jsx)("button",{type:"button",className:"".concat(o().bbutton," ").concat(null!==(t=e.className)&&void 0!==t?t:""),style:e.style,onClick:e.onClick,disabled:e.disabled,children:e.title})};t.Z=a},47355:function(e,t,l){"use strict";var _=l(85893),i=l(94491),o=l(63750),a=l(36968),s=l(51813),n=l.n(s),r=l(1671);let d=e=>(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(i.Z,{show:e.show,onHide:e.handleClose,scrollable:!0,size:e.size,dialogClassName:n().modalDialog,children:[(0,_.jsx)(i.Z.Header,{children:(0,_.jsxs)("div",{style:{display:"flex",flex:1,justifyContent:"space-between",fontFamily:"Lato",...e.styles},children:[(0,_.jsx)(i.Z.Title,{children:e.title}),(0,_.jsx)("button",{style:{backgroundColor:"transparent",border:"none"},onClick:e.handleClose,children:(0,_.jsx)(o.C7Q,{})})]})}),(0,_.jsx)(i.Z.Body,{style:{padding:"1rem 26px"},children:e.children}),!1===e.showFooter?null:(0,_.jsxs)(i.Z.Footer,{children:[e.resetButton&&(0,_.jsx)(r.z,{rounded:"lg",title:"Reset Theme",onClick:e.handleReset?e.handleReset:()=>console.log("reset")}),e.isSaving?(0,_.jsx)(a.Z,{}):e.fields&&"file"!==e.fields[0].type?(0,_.jsx)(r.z,{primary:!0,shadow:!1,rounded:"lg",title:"Save Changes",onClick:e.handleSave}):e.fields&&"file"===e.fields[0].type?(0,_.jsx)(r.z,{primary:!0,shadow:!1,rounded:"lg",title:"Save Changes",onClick:e.handleSave}):(0,_.jsx)(r.z,{primary:!0,shadow:!1,rounded:"lg",title:"Save Changes",disabled:!1,onClick:e.handleSave})]})]})});t.Z=d},61319:function(e,t,l){"use strict";var _=l(85893),i=l(9008),o=l.n(i),a=l(4298),s=l.n(a);l(67294);var n=l(5434);let r=e=>{let{showModal:t,handleClose:l}=e;return(0,_.jsx)(_.Fragment,{children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-50 B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[90%] lg:B__min-w-[400px] B__max-w-full lg:B__max-w-[1050px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded-lg B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none",children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7 B__border-b B__border-solid B__border-blueGray-200 B__rounded-t",children:[(0,_.jsx)("h3",{className:"B__text-2xl B__font-semibold B__mb-0",children:"Book a Call"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:l,children:(0,_.jsx)(n.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsx)("div",{className:"B__relative B__flex-auto",children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(o(),{children:(0,_.jsx)("script",{type:"text/javascript",src:"https://assets.calendly.com/assets/external/widget.js",async:!0})}),(0,_.jsx)("div",{className:"calendly-inline-widget","data-url":"https://calendly.com/pritika-m/30min",style:{minWidth:320,height:666}}),(0,_.jsx)(s(),{type:"text/javascript",src:"https://assets.calendly.com/assets/external/widget.js",async:!0})]})})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-40 B__bg-black"})]}):null})};t.Z=r},90445:function(e,t,l){"use strict";var _=l(85893),i=l(25675),o=l.n(i),a=l(41664),s=l.n(a),n=l(11163);l(67294);let r=e=>{let{page:t}=e,l=(0,n.useRouter)();return(0,_.jsxs)("footer",{className:"B__bg-[#18181B]",children:[(0,_.jsxs)("div",{className:"B__bg-[#18181B]",children:[(0,_.jsxs)("div",{className:"B__container",children:[(0,_.jsxs)("div",{className:"B__grid B__grid-cols-12 lg:B__pt-32  B__max-w-[1080px] mobile:B__pt-16 B__pt-[100px] xl:B__px-0 B__mx-auto B__gap-4",children:[(0,_.jsxs)("div",{className:"sm:B__col-span-6 B__col-span-12",children:[(0,_.jsx)("div",{className:"B__mb-12 B__pt-0 B__pl-0 B__pr-0",children:(0,_.jsx)("h1",{className:"lg:B__text-section-title  mobile:B__text-left B__text-center title md:B__text-4xl mobile:B__leading:loose B__leading-[48px] B__text-white B__font-young-serif sm:B__text-3xl B__text-40 B__title-underline B__font-Young-Serif",children:"Build a stunning website in 20 seconds with butternut.ai"})}),(0,_.jsx)("a",{href:"#homeLayout",className:"B__flex mobile:B__mx-0 B__mx-auto B__bg-gradient-to-b B__shadow-lg B__from-[#A028FF] B__to-[#0F51FC]  lg:B__mt-10 B__mt-6 B__text-white B__max-w-max mobile:B__px-7 B__px-6 B__py-[14px] mobile:B__leading-auto B__leading-28 mobile:B__text-2xl B__text-18 B__rounded-[16px]  B__font-bold",children:"Try for Free"})]}),(0,_.jsx)("div",{className:"sm:B__col-span-6 lg:B__mt-10 B__col-span-12 mobile:B__mt-0 B__mt-[60px]",children:(0,_.jsx)("div",{className:"B__max-w-max B__flex lg:B__text-[21px] mobile:B__text-left B__text-center md:B__ml-auto mobile:B__mr-0 B__mx-auto B__text-base B__flex-col B__gap-5",children:(0,_.jsxs)("span",{className:"B__text-white B__flex-grow B__gap-4 B__items-center mobile:B__text-left B__text-center B__mb-2 B__flex",children:[(0,_.jsx)("i",{className:"fa fa-envelope mobile:B__mr-3 B__text-2xl mobile:B__inline-block B__mb-0 B__block mobile:B__max-w-max B__w-7","aria-hidden":"true"}),(0,_.jsxs)("a",{href:"mailto:hello@butternut.ai",className:"B__text-white",children:["  ","hello@butternut.ai"]})]})})})]}),(0,_.jsx)("div",{className:"B__flex B__justify-center",children:(0,_.jsx)("hr",{className:"lg:B__mt-[72px] mobile:B__inline-block B__hidden B__mt-8 B__w-full B__mx-auto B__max-w-[1080px] B__px-5 B__border-[#52525B] lg:B__mb-10 B__mb-8"})}),(0,_.jsx)("div",{className:"B__max-w-[1080px] B__mx-auto lg:B__px-0 B__px-5 mobile:B__mt-0 B__mt-[60px]",children:(0,_.jsxs)("div",{className:"B__w-full B__flex md:B__w-auto B__justify-between md:B__items-center B__items-start B__text-white md:B__flex-row B__flex-col",children:[(0,_.jsxs)("ul",{className:"B__font-medium B__flex-grow md:B__p-0 B__flex B__flex-col md:B__flex-row mobile:B__mt-4 B__rounded-lg lg:B__gap-0 B__gap-4 md:B__space-x-8 rtl:B__space-x-reverse md:B__mt-0 lg:B__text-18 mobile:B__text-base B__text-xl B__bg-transparent  mobile::B__w-auto B__w-full mobile:B__text-left B__text-center B__pl-0 B__mb-0 B__list-none",children:[(0,_.jsx)("li",{className:"B__mb-3 md:B__mb-0",children:"home"!==t?(0,_.jsx)("div",{className:"B__text-white B__cursor-pointer hover:B__text-[#0a58ca] B__whitespace-nowrap",onClick:()=>{l.push("/faqs")},children:"FAQs"}):(0,_.jsx)(s(),{href:"/faqs",className:"B__text-white B__cursor-pointer hover:B__text-[#0a58ca] B__whitespace-nowrap",children:"FAQs"})}),(0,_.jsx)("li",{className:"B__mb-3 md:B__mb-0",children:"home"!==t?(0,_.jsx)("div",{className:"B__text-white B__cursor-pointer hover:B__text-[#0a58ca] B__whitespace-nowrap",onClick:()=>{l.push("/pricing")},children:"Pricing"}):(0,_.jsx)(s(),{className:"B__text-white B__cursor-pointer hover:B__text-[#0a58ca] B__whitespace-nowrap",href:"/pricing",children:"Pricing"})}),(0,_.jsx)("li",{className:"B__mb-3 md:B__mb-0",children:"home"!==t?(0,_.jsx)("div",{className:"B__text-white B__cursor-pointer hover:B__text-[#0a58ca] B__whitespace-nowrap",onClick:()=>{l.push("/contact")},children:"Contact"}):(0,_.jsx)(s(),{href:"/contact",className:"B__text-white B__cursor-pointer hover:B__text-[#0a58ca] B__whitespace-nowrap",children:"Contact"})}),(0,_.jsx)("li",{className:"B__mb-3 md:B__mb-0",children:(0,_.jsx)(s(),{href:"/aboutus",className:"B__text-white B__whitespace-nowrap",children:"About Us"})}),(0,_.jsx)("li",{className:"B__mb-3 md:B__mb-0",children:(0,_.jsx)(s(),{href:"/reviews",className:"B__text-white B__whitespace-nowrap",children:"Reviews"})}),(0,_.jsx)("li",{className:"B__mb-3 md:B__mb-0",children:(0,_.jsx)(s(),{href:"/privacy",className:"B__text-white B__whitespace-nowrap",children:"Privacy Policy"})}),(0,_.jsx)("li",{className:"B__mb-3 md:B__mb-0",children:(0,_.jsx)(s(),{href:"/terms-of-use",className:"B__text-white B__whitespace-nowrap",children:"Terms and Conditions"})}),(0,_.jsx)("li",{className:" md:B__mb-0",children:(0,_.jsx)(s(),{href:"/affiliates",className:"B__text-white B__whitespace-nowrap",children:"Affiliates"})}),(0,_.jsx)("li",{className:" md:B__mb-0",children:(0,_.jsx)(s(),{href:"/seo",className:"B__text-white B__whitespace-nowrap",children:"SEO"})})]}),(0,_.jsxs)("ul",{className:"B__font-medium B__flex mobile:B__gap-4 B__gap-[34px] md:B__pl-4 mobile:B__mt-4 B__mt-[82px] mobile:B__mx-0 B__mx-auto mobile:B__text-left B__text-center B__rounded-lg md:B__flex-row md:B__space-x-4 rtl:B__space-x-reverse B__text-20 md:B__mt-0 B__bg-transparent B__pl-0 B__mb-0 B__list-none B__ml-3",children:[(0,_.jsx)("li",{children:(0,_.jsx)("a",{href:"https://twitter.com/ButternutAI",className:"B__text-white",children:(0,_.jsx)("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),(0,_.jsx)("li",{className:"B__bg-transparent B__mb-2 md:B__mb-0",children:(0,_.jsx)("a",{href:"https://www.linkedin.com/company/butternut-ai",className:"B__text-white","aria-current":"page",children:(0,_.jsx)("i",{className:"fa fa-linkedin","aria-hidden":"true"})})})]})]})})]}),(0,_.jsx)("div",{className:"B__mt-11 B__text-center B__p-5 B__bg-[#242426] B__text-white B__text-base",children:"\xa9 Butternut AI 2024. All Rights Reserved."})]}),(0,_.jsx)("a",{href:"https://www.producthunt.com/posts/butternut-ai-1-0?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-butternut-ai-1-0",target:"_blank",className:"B__fixed B__hidden md:B__block B__z-10 B__bottom-10 B__right-14",children:(0,_.jsx)(o(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/top-post-badge.svg",className:"B__h-[54px] B__w-[250px]",alt:"Butternut&#0032;AI&#0032;1&#0046;0 - Build&#0032;a&#0032;stunning&#0032;multi&#0045;page&#0032;website&#0032;in&#0032;seconds&#0032;using&#0032;AI | Product Hunt",width:"250",height:"54"})})]})};t.Z=r},65654:function(e,t,l){"use strict";var _=l(85893),i=l(67294),o=l(25675),a=l.n(o),s=l(72028),n=l(11163),r=l(65194),d=l(5434),c=l(24457);let B=()=>{let[e,t]=(0,i.useState)(!1),[l,o]=(0,i.useState)({org_name:"",keywords:"",website_type:"multipage",language:"English"}),[B,x]=(0,i.useState)({org_name:"",keywords:""}),m=(0,n.useRouter)(),p=e=>{t(!0),s.Z.generateWebsite(e).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.length)&&m.push("/generated/".concat(e.data[0]._id.$oid))})},u=e=>{var t;(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.name)&&(x(t=>({...t,[e.target.name]:""})),o(t=>({...t,[e.target.name]:e.target.value})))},v=()=>{var e;let t=!0;return(null==l?void 0:l.org_name)||(x(e=>({...e,org_name:"Please provide name of your business"})),t=!1),(null==l?void 0:l.keywords)?(null==l?void 0:null===(e=l.keywords)||void 0===e?void 0:e.length)>=1e3&&(x(e=>({...e,keywords:"Maximum 250 characters are allowed"})),t=!1):(x(e=>({...e,keywords:"Please provide keywords"})),t=!1),t},h=()=>{v()&&p(l)};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.Z,{isLoading:e}),(0,_.jsxs)("div",{id:"homeLayout",className:"banner B__text-center B__flex B__flex-col B__items-center B__relative B__z-10 lg:B__p-8 B__p-4 xl:!B__pt-56 lg:B__pt-36 lg:B__pb-30 xl:B__pb-44 B__py-20",children:[(0,_.jsxs)("h1",{className:"B__text-primary B__font-Young-Serif  B__leading-tight lg:B__text-6xl mobile:B__max-w-full B__max-w-[327px] B__text-40 [background-image: linear-gradient(red, yellow);] B__text-center B__mx-auto B__relative",children:["Build your ",(0,_.jsx)("span",{className:"B__relative B__z-10 B__left-50  after:B__width-full after:B__h-7",children:(0,_.jsxs)("span",{className:"B__relative B__z-10 banner-underline",children:[" ",(0,_.jsx)("span",{className:"B__z-10 B__relative",children:"dream website  "})," ",(0,_.jsx)(a(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/banner-underline.svg",alt:"Example Image",className:"B__w-full B__absolute lg:B__bottom-2 B__bottom-1 B__z-0 B__left-0 mobile:B__inline-block B__hidden",width:"20",height:"20"})," "]})})," ",(0,_.jsx)("br",{})," in 20 seconds with AI"]}),(0,_.jsx)("p",{className:"mobile:B__py-9 B__pt-[67px] !B__pb-[20px] bannersubtext lg:B__text-xl mobile:B__leading-snug B__leading-28 B__text-18 B__text-center mobile:B__max-w-[532px] B__mx-auto B__max-w-[280px] B__text-primary B__text-opacity-80 B__mb-0",children:"World's first text-to-website builder that creates full-fledged, multipage websites from a single prompt!"}),(0,_.jsx)("div",{className:"B__text-center lg:B__py-7 lg:B__px-0 mobile:B__m-5 B__mt-7 sm:B__px-5 B__px-0 B__mx-auto B__w-[423px] B__max-w-full generatebutton",children:(0,_.jsxs)("div",{className:"B__mb-4 B__flex B__flex-col",children:[(0,_.jsxs)("div",{className:"B__relative B__my-3 B__ml-auto",children:[(0,_.jsx)("select",{className:"B__px-5 B__py-2 B__rounded-md B__border-none B__text-base B__font-medium  B__outline-none B__bg-transparent B__w-full B__underline",name:"language",onChange:u,children:null===c.a2||void 0===c.a2?void 0:c.a2.map((e,t)=>(0,_.jsx)("option",{value:e,children:e},t))}),(0,_.jsx)("div",{className:"B__absolute B__right-4 B__top-1/2 B__-translate-y-1/2 B__z-10 B__text-xl",children:(0,_.jsx)(d.gwH,{})})]}),(0,_.jsx)("input",{type:"text",id:"org_name",name:"org_name",className:"B__bg-white  mobile:B__max-h-[64px] B__max-h-[56px] mobile:B__min-h-[64px] B__min-h-[56px] B__border B__border-[#A1A1AA] B__box-border B__border-opacity-20 B__text-gray-900 B__text-base B__rounded-2xl B__outline-none B__block B__w-full B__pl-6 B__pr-[15px] mobile:B__py-5 B__py-4 lg:placeholder:B__text-[16px] dark:focus:B__ring-blue-500 md:placeholder:B__text-base dark:focus:B__border-blue-500 placeholder:B__text-[14px] ".concat((null==B?void 0:B.org_name)?"B__border-red-400":""),placeholder:"Name of your business",onChange:u}),(null==B?void 0:B.org_name)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==B?void 0:B.org_name}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("textarea",{rows:3,id:"keywords",name:"keywords",className:"B__mt-2 B__bg-white mobile:B__min-h-[64px] B__min-h-[56px] B__border B__border-[#A1A1AA] B__box-border B__border-opacity-20 B__text-gray-900 B__text-base B__rounded-2xl  B__outline-none B__block B__w-full B__pl-6 B__pr-[15px] mobile:B__py-5 B__py-4 lg:placeholder:B__text-[16px] dark:focus:B__ring-blue-500 md:placeholder:B__text-base dark:focus:B__border-blue-500 placeholder:B__text-[14px] ".concat((null==B?void 0:B.keywords)?"B__border-red-400":""),placeholder:"Describe your business eg. real estate agency for commercial spaces, a tax law consultant for startups etc.",onChange:u}),(null==B?void 0:B.keywords)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==B?void 0:B.keywords}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("button",{className:"B__flex  B__bg-gradient-to-b B__shadow-lg B__from-[#A028FF] B__to-[#0F51FC]  lg:B__mt-10 B__mt-6 B__text-white B__max-w-max mobile:B__px-8 B__mx-auto B__px-6 B__py-[14px] mobile:B__leading-auto B__leading-28 mobile:B__text-2xl B__text-18 B__rounded-[16px] B__min-w-[194px] B__justify-center  B__font-bold",onClick:h,children:[(0,_.jsx)(a(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/starIcon.png",alt:"Picture of the author",width:28,height:29,className:"B__mr-4"}),"Generate"]})]})})]})]})};t.Z=B},14558:function(e,t,l){"use strict";var _=l(85893),i=l(67294),o=l(25675),a=l.n(o),s=l(11163),n=l(41664),r=l.n(n);let d=e=>{let{page:t,transparentNav:l}=e,[o,n]=(0,i.useState)(!1),d=(0,s.useRouter)(),c=()=>{n(!o)},B=l||["affiliates","privacy","contact","pricing","faqs","aboutUs","reviews"].includes(t||"");return(0,_.jsx)("div",{className:"B__container",children:(0,_.jsx)("div",{className:"B__relative",children:(0,_.jsx)("nav",{className:"B__absolute B__w-full B__z-30 B__border-gray-200 max B__max-w-[1328px] mobile:B__px-0 B__px-[10px] B__mx-autoB__ bg-transparent",children:(0,_.jsxs)("div",{className:"B__max-w-screen-xl B__flex B__flex-wrap B__items-center B__justify-between B__mx-auto B__py-4",children:[(0,_.jsx)("a",{className:"flex items-center space-x-3 rtl:space-x-reverse",href:"/",children:(0,_.jsx)(a(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/Logo.png",alt:"Butternut AI",width:150,height:80})}),(0,_.jsxs)("nav",{className:"md:B__hidden",children:[(0,_.jsx)("div",{children:(0,_.jsxs)("button",{onClick:c,"data-collapse-toggle":"navbar-default",type:"button",className:"B__inline-flex B__items-center B__p-2 B__w-10 B__h-10 B__justify-center B__text-sm B__text-gray-500 B__rounded-lg md:B__hidden hover:B__bg-gray-100 focus:B__outline-none focus:B__ring-2 focus:B__ring-gray-200 dark:B__text-gray-400 dark:hover:B__bg-gray-700 dark:focus:B__ring-gray-600","aria-controls":"navbar-default","aria-expanded":"false",children:[(0,_.jsx)("span",{className:"B__sr-only",children:"Open main menu"}),(0,_.jsxs)("svg",{width:"22",height:"13",viewBox:"0 0 22 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{d:"M0 2H21.5",stroke:"black","stroke-width":"4"}),(0,_.jsx)("path",{d:"M0 10.5H21.5",stroke:"black","stroke-width":"4"})]})]})}),o&&(0,_.jsxs)("div",{className:"md:B__hidden B__absolute B__w-[90%] B__left-5 B__mt-2 B__bg-white B__p-3 B__rounded B__z-20 B__text-dark",children:[(0,_.jsx)("a",{onClick:c,href:"/#home",className:"B__block B__text-black B__py-2",children:"Home"}),(0,_.jsx)("a",{onClick:c,href:"/generate",className:"B__block B__text-black B__py-2",children:"Product"}),(0,_.jsx)("a",{onClick:c,href:"/contact",className:"B__block B__text-black B__py-2",children:"Contact us"}),(0,_.jsx)("a",{onClick:c,href:"/pricing",className:"B__block B__text-black B__py-2",children:"Pricing"})]})]}),(0,_.jsx)("div",{className:"B__hidden B__w-full md:B__block md:B__w-auto",id:"navbar-default",children:(0,_.jsxs)("ul",{className:"B__font-medium B__flex B__flex-col B__p-4 md:B__p-0 B__mt-4 B__border B__border-gray-100 B__rounded-lg md:B__flex-row md:B__space-x-14 rtl:B__space-x-reverse md:B__mt-0 md:B__border-0 B__bg-transparent B__mb-0 B__list-none",children:[(0,_.jsx)("li",{className:"bg-transparent",children:"home"!==t?(0,_.jsx)(r(),{className:"B__block B__py-2 B__px-3 B__font-semibold B__rounded md:B__bg-transparent B__text-primary md:B__p-0 dark:B__text-white md:hover:B__text-blue-500 B__text-base B__cursor-pointer ".concat(B?"!B__text-[#131332]":""),"aria-current":"page",onClick:()=>{d.push("/#homeLayout")},href:"/",children:"Home"}):(0,_.jsx)(r(),{href:"/#homeLayout",className:"B__block B__py-2 B__px-3 B__font-semibold B__rounded md:B__bg-transparent B__text-primary md:B__p-0 dark:B__text-white md:dark:B__text-blue-500 B__text-base","aria-current":"home"===t&&"page",children:"Home"})}),(0,_.jsx)("li",{className:"bg-transparent",children:"home"!==t?(0,_.jsx)(r(),{href:"/generate",className:"B__block B__py-2 B__px-3 B__font-semibold B__rounded md:B__bg-transparent B__text-primary md:B__p-0 dark:B__text-white md:hover:B__text-blue-500 B__text-base B__cursor-pointer ".concat("generate"===t?"md:dark:B__text-blue-500":""," ").concat(B?"!B__text-[#131332]":""),"aria-current":"page",onClick:()=>{d.push("/generate")},children:"Product"}):(0,_.jsx)(r(),{href:"/generate",className:"B__block B__py-2 B__px-3 B__font-semibold B__rounded md:B__bg-transparent B__text-primary md:B__p-0 dark:B__text-white md:hover:B__text-blue-500 B__text-base","aria-current":"page",children:"Product"})}),(0,_.jsx)("li",{children:"home"!==t?(0,_.jsx)(r(),{className:"B__block B__py-2 B__px-3 B__font-semibold B__text-primary B__rounded hover:B__bg-gray-100 md:hover:B__bg-transparent md:B__border-0 md:hover:B__text-blue-700 md:B__p-0 dark:B__text-white md:dark:B__hover:B__text-blue-500 B__text-base dark:B__hover:B__bg-gray-700 dark:hover:B__text-white md:dark:hover:B__bg-transparent active B__cursor-pointer ".concat(B?"!B__text-[#131332]":""," ").concat("contact"===t?"md:dark:!B__text-blue-500":""),"aria-current":"page",href:"/contact",onClick:()=>{d.push("/contact")},children:"Contact us"}):(0,_.jsx)(r(),{href:"/contact",className:"B__block B__py-2 B__px-3 B__font-semibold B__text-primary B__rounded hover:B__bg-gray-100 md:hover:B__bg-transparent md:B__border-0 md:hover:B__text-blue-700 md:B__p-0 dark:B__text-white md:dark:B__hover:B__text-blue-500 B__text-base dark:B__hover:B__bg-gray-700 dark:hover:B__text-white md:dark:hover:B__bg-transparent active","aria-current":"page",children:"Contact us"})}),(0,_.jsx)("li",{children:"home"!==t?(0,_.jsx)(r(),{href:"/pricing",className:"B__block B__py-2 B__px-3 B__font-semibold B__rounded hover:B__bg-gray-100 md:B__hover:B__bg-transparent md:B__border-0 B__text-primary md:hover:B__text-blue-700 md:B__p-0 dark:B__text-white md:dark:hover:B__text-blue-500 B__text-base dark:hover:B__bg-gray-700 dark:hover:B__text-white md:dark:hover:B__bg-transparent B__cursor-pointer ".concat(B?"!B__text-[#131332]":""," ").concat("pricing"===t?"md:dark:!B__text-blue-500":""),"aria-current":"page",onClick:()=>{d.push("/pricing")},children:"Pricing"}):(0,_.jsx)(r(),{href:"/pricing",className:"B__block B__py-2 B__px-3 B__font-semibold B__rounded hover:B__bg-gray-100 md:B__hover:B__bg-transparent md:B__border-0 B__text-primary md:hover:B__text-blue-700 md:B__p-0 dark:B__text-white md:dark:hover:B__text-blue-500 B__text-base dark:hover:B__bg-gray-700 dark:hover:B__text-white md:dark:hover:B__bg-transparent","aria-current":"page",children:"Pricing"})})]})}),(0,_.jsx)("div",{className:"B__hidden B__w-full md:B__block md:B__w-auto",id:"navbar-default",children:(0,_.jsx)("button",{className:"B__font-bold B__font-lato B__text-[#565a60] B__py-1 B__px-6 lg:B__min-w-[104px] B__text-base B__rounded-lg B__border B__border-[#565a60]",onClick:()=>{d.push("/home/login")},children:"Login"})})]})})})})};t.Z=d},47463:function(e,t,l){"use strict";l.d(t,{Z:function(){return u}});var _=l(85893),i=l(67294),o=l(25675),a=l.n(o);let s=e=>{let{title:t,description:l,features:i,price:o,isShadow:s,plantype:n,buttonText:r,onButtonClick:d,planOffer:c}=e;return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"B__relative global_css",children:[s&&(0,_.jsx)("div",{className:"B__absolute B__top-0 md:B__block  B__z-0 B__left-0 lg:B__scale-x-[1.5] lg:B__scale-y-[1.4] B__overflow-hidden B__h-full B__w-full",children:(0,_.jsx)(a(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/price-box.svg",alt:"Example Image",className:"B__h-full B__w-full",width:"20",height:"20"})}),(0,_.jsxs)("div",{className:"B__bg-white B__z-10 B__relative minheight672 B__min-h-[50px] lg:B__min-w-[340px] lg:B__max-w-[340px] B__border-box B__px-8  B__py-10 B__rounded-3xl B__text-left B__shadow-md B__h-full",children:[(0,_.jsx)("h2",{className:"B__text-18 B__font-bold B__mb-5 B__leading-[24px]",children:t}),l&&(0,_.jsx)("p",{className:"B__text-[#52525B] !B__mb-5 B__text-[16px] B__leading-[22px]",children:l}),(0,_.jsxs)("p",{className:"B__text-gray-600 !B__mb-5 B__border-b-2  B__border-[#CCCCCC] B__border-dashed B__max-w-max B__pr-4 B__pb-5",children:[(0,_.jsx)("span",{className:"B__text-[42px] B__leading-[48px] B__font-bold B__text-[#18181B]",children:o}),(0,_.jsx)("span",{className:"B__text-18 B__text-[#A1A1AA]",children:n})]}),(0,_.jsx)("div",{className:"B__mb-5 B__text-[16px] B__leading-[34px] B__flex B__flex-col B__gap-[3px]",children:i&&i.map((e,t)=>(0,_.jsxs)("p",{className:"B__flex B__items-start B__text-[#18181B] B__gap-2",children:[(0,_.jsx)("svg",{className:"B__min-w-[16px] B__w-4 B__h-4 B__mr-2 B__mt-[9px] B__font-bold",fill:"none",stroke:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,_.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"})}),e]},t))}),(0,_.jsx)("button",{className:"B__bg-transparent B__font-bold B__border B__border-black B__text-black B__py-3 B__px-12 B__min-w-[195px] B__rounded-2xl hover:B__bg-black hover:B__text-white B__transition B__duration-300",onClick:d,children:r})]})]})})};var n=l(61319),r=l(11163),d=l(4298),c=l.n(d),B=l(5434);let x=e=>{let{showModal:t,handleClose:l}=e;return(0,_.jsx)(_.Fragment,{children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[90%] lg:B__min-w-[400px] B__max-w-full lg:B__max-w-[1050px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7 B__border-b B__border-solid B__border-blueGray-200",children:[(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold B__mb-0",children:"Select Subscription Plan"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:l,children:(0,_.jsx)(B.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsx)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto",children:(0,_.jsxs)("div",{className:"B__my-10 B__px-4",children:[(0,_.jsx)(c(),{async:!0,src:"https://js.stripe.com/v3/pricing-table.js"}),(0,_.jsx)("stripe-pricing-table",{"pricing-table-id":"prctbl_1NFVvKKWxstxK3NN4eDUdsLN","publishable-key":"pk_live_51N4qVSKWxstxK3NNPWUiAQilRygGO2Y91DYKc4ZYem8TufOZyESZaYx9TMpYVeIMkwEjXstuHNPEG2NTwSrbRqKJ00gfTtvVGr"})]})})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})};var m=l(24457);let p=()=>{let[e,t]=(0,i.useState)(!1),[l,o]=(0,i.useState)(!1),[a,d]=(0,i.useState)("monthly");return(0,r.useRouter)(),(0,_.jsx)("div",{className:"B__bg-slate-950",children:(0,_.jsx)("div",{className:"B__container B__px-6",children:(0,_.jsxs)("div",{id:"pricing",className:"B__flex  lg:B__px-0 B__mx-auto  lg:B__pt-28 mobile:B__py-16 B__pt-12 B__flex-col B__text-center B__max-w-[1122px] B__justify-center B__items-center",children:[(0,_.jsx)("h1",{className:"lg:B__text-section-title title md:B__text-4xl B__text-white B__font-young-serif sm:B__text-3xl B__text-32 mobie:B__leading-relaxed B__title-underline B__font-Young-Serif",children:"Simple Pricing"}),(0,_.jsx)("p",{className:"lg:B__text-20 B__lato B__text-18 B__font-lato mobile:B__leading-auto B__leading-28 lg:B__max-w-[450px] B__max-w-[320px] B__text-white lg:B__pt-6 B__py-9",children:"Try the platform for free. Upgrade to a paid plan when you are ready to make your website live."}),(0,_.jsx)("div",{className:"B__border B__border-[#1a1a1a1a] B__p-0.5 B__rounded-md B__bg-[#ffffff] B__my-3 B__w-auto B__font-semibold",children:(0,_.jsxs)("div",{className:" B__flex B__items-center B__relative B__gap-1",children:[(0,_.jsx)("div",{className:"B__cursor-pointer B__px-6 B__py-2 B__rounded-md B__text-sm B__relative B__z-10 B__transition-[color] B__duration-500 ".concat("monthly"===a?"B__font-semibold B__text-white":"B__text-[#1a1a1a]"," "),onClick:()=>{d("monthly")},children:"Monthly"}),(0,_.jsx)("div",{className:"B__cursor-pointer B__px-6 B__py-2 B__rounded-md B__text-sm B__relative B__z-10 B__transition-[color] B__duration-500 ".concat("yearly"===a?"B__font-semibold B__text-white":"B__text-[#1a1a1a]"," "),onClick:()=>{d("yearly")},children:"Yearly"}),(0,_.jsx)("div",{className:"B__absolute B__w-1/2 B__h-full B__left-0 B__rounded-md B__bg-butternut-button B__transition-all B__duration-500 B__z-[1] ".concat("monthly"===a?"":"B__translate-x-full")})]})}),(0,_.jsxs)("div",{className:"B__grid B__grid-cols-1 lg:B__grid-cols-2 mobile:B__gap-10 B__gap-6 lg:B__mt-[25px] B__mt-[15px] md:B__px-4",children:[(0,_.jsx)(s,{isShadow:!0,title:"Starter Plan",features:m.Mw,price:"monthly"===a?"$20":"$180",plantype:"monthly"===a?"/month":"/year",planOffer:"Inaugural Offer",buttonText:"Subscribe",onButtonClick:()=>{o(!0)}}),(0,_.jsx)(s,{isShadow:!1,title:"Pro Plan",features:m.ED,price:"monthly"===a?"$69":"$600",plantype:"monthly"===a?"/month":"/year",planOffer:"Inaugural Offer",buttonText:"Subscribe",onButtonClick:()=>{o(!0)}}),(0,_.jsx)(n.Z,{showModal:e,handleClose:()=>{t(!1)}}),(0,_.jsx)(x,{handleClose:()=>o(!1),showModal:l})]})]})})})};var u=p},59005:function(e,t,l){"use strict";var _=l(85893),i=l(67294),o=l(37442),a=l(98713),s=l.n(a),n=l(16310),r=l(72028),d=l(46442),c=l(5434),B=l(41664),x=l.n(B);let m=e=>{let{websiteId:t}=e,[l,a]=(0,i.useState)(""),[B,m]=(0,i.useState)(!1),p=()=>{sessionStorage.setItem("popupAcknowledged","true")};return(0,i.useEffect)(()=>{let e=sessionStorage.getItem("popupAcknowledged");e||setTimeout(()=>{m(!0)},8e3)},[]),(0,_.jsx)("div",{children:(0,_.jsx)(_.Fragment,{children:B?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] lg:B__min-w-[400px] B__max-w-[500px] md:B__max-w-[500px] xl:B__max-w-[550px] ",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded-xl B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7",children:[(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold B__mb-0"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:()=>{p(),m(!1)},children:(0,_.jsx)(c.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsxs)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto B__px-11 B__pb-9",children:[l?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__text-center B__text-3xl lg:B__text-[2.5rem] xl:B__leading-[3rem] B__font-semibold B__font-Young-Serif",children:"Thanks for subscribing!"}),(0,_.jsx)("div",{className:"B__mt-5 B__mb-9 lg:B__mb-11 xl:B__mb-14",children:(0,_.jsx)("p",{className:"B__text-center B__text-lg lg:B__text-xl B__text-[#131332] B__font-normal B__mb-8 B__px-4",children:l})})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__text-center B__text-3xl lg:B__text-[2.5rem] xl:B__leading-[3rem] B__font-semibold B__font-Young-Serif",children:"Stay Informed!"}),(0,_.jsxs)("div",{className:"B__mt-5 B__mb-9 lg:B__mb-11 xl:B__mb-14",children:[(0,_.jsx)("p",{className:"B__text-center B__text-lg lg:B__text-xl B__text-[#131332] B__font-normal B__mb-8",children:"More editing features coming soon. Be the first to know by signing up now!"}),(0,_.jsx)(o.J9,{initialValues:{email:""},validationSchema:n.Ry().shape({email:n.Z_().required("Email is required").email("Please enter a valid email")}),onSubmit:e=>{t?r.Z.subscribeForUpdates({websiteId:t,email:e.email}).then(()=>a("We have your email address and we'll get back to you shortly.")).catch(e=>{var t,l;(null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(l=t.data)||void 0===l?void 0:l.msg)==="already_subscribed"?a("We already have your email address and we'll get back to you shortly."):a("Some error occured")}):(p(),m(!1))},children:e=>{let{values:t,errors:l,handleChange:i,handleSubmit:o}=e;return(0,_.jsxs)("form",{onSubmit:o,children:[(0,_.jsxs)("div",{children:[(0,_.jsx)(d.Z,{name:"email",placeholder:"Email Address",type:"email",value:t.email,handleChange:i,className:"md:B__max-h-[64px] B__max-h-[56px] md:B__min-h-[64px] B__min-h-[56px] B__border B__border-[#131332] B__border-opacity-20 !B__text-[#131332] !B__text-base !B__rounded-lg B__outline-none B__w-full !B__pl-6 !B__pr-[15px] md:!B__py-5 !B__py-4 "}),(0,_.jsx)("button",{className:"B__text-white B__w-full B__px-8 B__py-3 B__rounded-lg B__text-xl B__font-medium",type:"submit",style:{background:"linear-gradient(180deg, #A028FF 10.19%, #0F51FC 132.03%)"},children:"Subscribe"})]}),l.email?(0,_.jsx)("p",{style:{color:"red"},children:l.email}):null]})}})]})]}),(0,_.jsx)("div",{className:s().footer_text,children:(0,_.jsxs)("p",{className:"B__text-center B__text-base B__font-normal B__mb-0",children:["Have any questions or need assistance?",(0,_.jsxs)("p",{className:"B__mb-0",children:["Book a zoom call with us"," ",(0,_.jsx)(x(),{href:"/contact",style:{color:"blue",textDecoration:"underline"},children:"here"})]})]})})]})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})})};t.Z=m},76520:function(e,t,l){"use strict";l.d(t,{mL:function(){return p},gU:function(){return b},Oe:function(){return b},Fw:function(){return x},vA:function(){return h}});var _=l(85893),i=l(67294),o=l(5434),a=l(98997),s=l.n(a),n=l(46442),r=l(97816),d=l(1671),c=l(21349);let B=e=>{var t;let[l,a]=(0,i.useState)(!1),[B,x]=(0,i.useState)(null!==(t=e.keywords)&&void 0!==t?t:""),m=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var t;x(null!==(t=e.keywords)&&void 0!==t?t:"")},[e.keywords]),(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__relative B__gap-3",style:{...e.style},children:[(0,_.jsxs)("div",{className:"B__relative B__group/regenbutton ".concat(e.regenBtnClassName?e.regenBtnClassName:""),children:[(0,_.jsx)("button",{className:"B__p-1 ".concat((null==e?void 0:e.isRegenerating)?"B__bg-shade-dark":""),type:"button",onClick:e.onClick,children:(0,_.jsx)(o.Ffb,{className:"B__text-2xl ".concat(e.isRegenerating?"B__text-black":e.v2?"B__text-butternut-orange":"B__text-white")})}),(0,_.jsxs)("div",{className:"B__hidden group-hover/regenbutton:B__block B__absolute B__z-10 B__px-8 B__py-1 B__bg-[#ededed] B__rounded-md B__ring-[0.5] B__ring-slate-100 B__text-gray-700 B__whitespace-nowrap B__normal-case ".concat((null==e?void 0:e.regenTooltipDirection)==="bottom-right"?"B__-bottom-9 B__left-0":(null==e?void 0:e.regenTooltipDirection)==="bottom-left"?"B__-bottom-9 B__right-0":(null==e?void 0:e.regenTooltipDirection)==="top-left"?"B__-top-9 B__right-0":"B__-top-9 B__left-0"),children:[e.regenBtnText||"Regenerate",(0,_.jsx)("div",{className:"B__bg-[#ededed] B__w-2.5 B__h-2.5 B__rotate-[45deg] B__absolute ".concat((null==e?void 0:e.regenTooltipDirection)==="bottom-right"?"B__-top-1 B__left-2":(null==e?void 0:e.regenTooltipDirection)==="bottom-left"?"B__-top-1 B__right-2":(null==e?void 0:e.regenTooltipDirection)==="top-left"?"B__-bottom-1 B__right-2":"B__-bottom-1 B__left-2")})]})]}),e.v2&&(0,_.jsx)(r.Su,{}),!!e.onAddKeywordHandler&&(0,_.jsxs)("div",{className:"B__relative B__group/commentbutton ".concat(e.commentBtnClassName?e.commentBtnClassName:""),children:[(0,_.jsx)("button",{ref:m,onClick:t=>{var l;t.stopPropagation(),t.preventDefault(),console.log("clicked"),a(e=>!e),null==e||null===(l=e.setAddingKeywords)||void 0===l||l.call(e,e=>!e)},className:"B__flex B__p-1 ".concat(""," B__relative"),type:"button",children:(0,_.jsx)(r.J_,{className:"B__text-2xl ".concat(e.v2?"B__text-butternut-orange":"B__text-white")})}),l&&(0,_.jsx)(c.Z,{targetRef:m,alignCenter:!0,offset:{left:-120,top:-20},children:(0,_.jsx)("div",{style:{display:l?"flex":"none",...e.addKeywordStyle},className:"".concat(l?s().keywordsContainer:""," \n                  [&_*]:!B__z-[100000] B__z-[100000] B__relative ").concat(s().keywordsStaticContainer),onClick:e=>e.stopPropagation(),children:(0,_.jsxs)("div",{style:{backgroundColor:"#fff",padding:"10px 20px",width:"100%",borderRadius:6,position:"relative",boxShadow:"0px 25px 60px 0px rgba(0, 0, 0, 0.08)"},children:[(0,_.jsx)("p",{className:"B__font-lato",style:{color:"#131332",textAlign:"left",paddingRight:"10px",fontWeight:700,marginBottom:"5px"},children:!1===e.isImg?"Add comments for text you want":"Describe keywords for image you want and our AI will generate it for you"}),(0,_.jsx)("div",{style:{position:"absolute",top:8,right:10},children:(0,_.jsx)("button",{className:"plainButton",onClick:()=>{var t;a(!1),null==e||null===(t=e.setAddingKeywords)||void 0===t||t.call(e,!1)},children:(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,_.jsx)("path",{d:"M18 6L6 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,_.jsx)("path",{d:"M6 6L18 18",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})})}),(0,_.jsx)(n.Z,{name:"keywords",type:"text",placeholder:"",handleChange:e=>x(e.target.value),styles:{border:"1px solid #000",position:"relative"},value:B,containerStyle:{margin:0}}),(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:20,columnGap:10,position:"relative"},children:[(0,_.jsx)(d.z,{title:"Remove",disabled:!0,rounded:"lg",onClick:()=>{var t,l;null===(t=e.onAddKeywordHandler)||void 0===t||t.call(e,""),x(""),a(!1),null==e||null===(l=e.setAddingKeywords)||void 0===l||l.call(e,!1)},children:"Remove"}),(0,_.jsx)(d.z,{primary:!0,rounded:"lg",title:"Add",onClick:()=>{var t,l;null===(t=e.onAddKeywordHandler)||void 0===t||t.call(e,B),a(!1),null==e||null===(l=e.setAddingKeywords)||void 0===l||l.call(e,!1)},children:"Add"})]})]})})}),(0,_.jsxs)("div",{className:"B__hidden group-hover/commentbutton:B__block B__absolute B__z-10 B__px-8 B__py-1 B__bg-[#ededed] B__rounded-md B__ring-[0.5] B__ring-slate-100 B__text-gray-700 B__whitespace-nowrap B__normal-case B__-translate-x-1/2 lg:B__translate-x-0 ".concat((null==e?void 0:e.commentTooltipDirection)==="bottom-right"?"B__-bottom-9 B__left-1/2  lg:B__left-0":(null==e?void 0:e.commentTooltipDirection)==="bottom-left"?"B__-bottom-9 B__right-1/2 lg:B__right-0":(null==e?void 0:e.commentTooltipDirection)==="top-left"?"B__-top-9  B__right-1/2 lg:B__right-0":"B__-top-9  B__left-1/2 lg:B__left-0"),children:[e.commentBtnText||(e.isImg?"Regenerate image with AI":"Regenerate with comments"),(0,_.jsx)("div",{className:"B__bg-[#ededed] B__w-2.5 B__h-2.5 B__rotate-[45deg] B__absolute B__-translate-x-1/2 lg:B__translate-x-0 ".concat((null==e?void 0:e.commentTooltipDirection)==="bottom-right"?"B__-top-1 B__left-1/2 lg:B__left-2":(null==e?void 0:e.commentTooltipDirection)==="bottom-left"?"B__-top-1 B__right-1/2 lg:B__right-2":(null==e?void 0:e.commentTooltipDirection)==="top-left"?"B__-bottom-1 B__right-1/2 lg:B__right-2":"B__-bottom-1 B__left-1/2 lg:B__left-2")})]})]})]})};var x=B;let m=e=>(0,_.jsxs)("div",{className:"B__relative B__cursor-pointer B__group/editbutton",children:[(0,_.jsx)("button",{className:"B__flex B__p-1 ".concat(e.className?e.className:""," B__bg-white"),type:"button",style:e.style,onClick:e.onClick,children:(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:[(0,_.jsx)("path",{d:"M11 4H4C3.46957 4 2.96086 4.21071 2.58579 4.58579C2.21071 4.96086 2 5.46957 2 6V20C2 20.5304 2.21071 21.0391 2.58579 21.4142C2.96086 21.7893 3.46957 22 4 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V13",stroke:"#FF8156","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,_.jsx)("path",{d:"M18.5 2.50023C18.8978 2.1024 19.4374 1.87891 20 1.87891C20.5626 1.87891 21.1022 2.1024 21.5 2.50023C21.8978 2.89805 22.1213 3.43762 22.1213 4.00023C22.1213 4.56284 21.8978 5.1024 21.5 5.50023L12 15.0002L8 16.0002L9 12.0002L18.5 2.50023Z",stroke:"#FF8156","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}),(0,_.jsxs)("div",{className:"B__hidden group-hover/editbutton:B__block B__absolute B__z-10 B__px-8 B__py-1 B__bg-[#ededed] B__rounded-md B__ring-[0.5] B__ring-slate-100 B__text-gray-700 B__whitespace-nowrap B__normal-case ".concat((null==e?void 0:e.tooltipDirection)==="bottom-right"?"B__-bottom-9 B__left-0":(null==e?void 0:e.tooltipDirection)==="bottom-left"?"B__-bottom-9 B__right-0":(null==e?void 0:e.tooltipDirection)==="top-left"?"B__-top-9 B__right-0":"B__-top-9 B__left-0"),children:[e.btntext||"Edit",(0,_.jsx)("div",{className:"B__bg-[#ededed] B__w-2.5 B__h-2.5 B__rotate-[45deg] B__absolute ".concat((null==e?void 0:e.tooltipDirection)==="bottom-right"?"B__-top-1 B__left-2":(null==e?void 0:e.tooltipDirection)==="bottom-left"?"B__-top-1 B__right-2":(null==e?void 0:e.tooltipDirection)==="top-left"?"B__-bottom-1 B__right-2":"B__-bottom-1 B__left-2")})]})]});var p=m,u=l(89583);let v=e=>(0,_.jsxs)("div",{className:"B__relative B__group/uploadbutton ".concat(e.className?e.className:""),children:[(0,_.jsx)("button",{className:"B__flex B__p-1",type:"button",style:e.style,onClick:e.onClick,children:(0,_.jsx)(u.DUB,{size:20,className:"B__text-2xl ".concat(e.v2?"B__text-butternut-orange":"B__text-white")})})," ",(0,_.jsxs)("div",{className:"B__hidden group-hover/uploadbutton:B__block B__absolute B__z-10 B__px-8 B__py-1 B__bg-[#ededed] B__rounded-md B__ring-[0.5] B__ring-slate-100 B__text-gray-700 B__whitespace-nowrap B__normal-case ".concat((null==e?void 0:e.tooltipDirection)==="bottom-right"?"B__-bottom-9 B__left-0":(null==e?void 0:e.tooltipDirection)==="bottom-left"?"B__-bottom-9 B__right-0":(null==e?void 0:e.tooltipDirection)==="top-left"?"B__-top-9 B__right-0":"B__-top-9 B__left-0"),children:[e.btntext||"Upload",(0,_.jsx)("div",{className:"B__bg-[#ededed] B__w-2.5 B__h-2.5 B__rotate-[45deg] B__absolute ".concat((null==e?void 0:e.tooltipDirection)==="bottom-right"?"B__-top-1 B__left-2":(null==e?void 0:e.tooltipDirection)==="bottom-left"?"B__-top-1 B__right-2":(null==e?void 0:e.tooltipDirection)==="top-left"?"B__-bottom-1 B__right-2":"B__-bottom-1 B__left-2")})]})]});var h=v,g=l(63750);let y=e=>{let{show:t}=e;return(0,_.jsxs)("div",{className:"B__relative B__cursor-pointer B__group/editbutton",children:[(0,_.jsx)("button",{className:"B__flex B__p-1 ".concat(e.className?e.className:""),type:"button",style:e.style,onClick:e.onClick,children:t?(0,_.jsx)(g.rCC,{size:20,className:"B__text-2xl ".concat(e.v2?"B__text-butternut-orange":"B__text-white"," ").concat(e.iconClassName?e.iconClassName:"")}):(0,_.jsx)(g.I$m,{size:20,className:"B__text-2xl ".concat(e.v2?"B__text-butternut-orange":"B__text-white","  ").concat(e.iconClassName?e.iconClassName:"")})}),(null==e?void 0:e.hideTooltip)?(0,_.jsx)(_.Fragment,{}):(0,_.jsxs)("div",{className:"B__hidden group-hover/editbutton:B__block B__absolute B__z-10 B__px-8 B__py-1 B__bg-[#ededed] B__rounded-md B__ring-[0.5] B__ring-slate-100 B__text-gray-700 B__whitespace-nowrap B__normal-case ".concat((null==e?void 0:e.tooltipDirection)==="bottom-right"?"B__-bottom-9 B__left-0":(null==e?void 0:e.tooltipDirection)==="bottom-left"?"B__-bottom-9 B__right-0":(null==e?void 0:e.tooltipDirection)==="top-left"?"B__-top-9 B__right-0":"B__-top-9 B__left-0"),children:[e.btntext||"Hide",(0,_.jsx)("div",{className:"B__bg-[#ededed] B__w-2.5 B__h-2.5 B__rotate-[45deg] B__absolute ".concat((null==e?void 0:e.tooltipDirection)==="bottom-right"?"B__-top-1 B__left-2":(null==e?void 0:e.tooltipDirection)==="bottom-left"?"B__-top-1 B__right-2":(null==e?void 0:e.tooltipDirection)==="top-left"?"B__-bottom-1 B__right-2":"B__-bottom-1 B__left-2")})]})]})};var b=y},74096:function(e,t,l){"use strict";var _=l(85893),i=l(67294),o=l(25935),a=l(57983);l(48842);var s=l(5434);let n=e=>{var t,l,n,r,d,c,B;let{article:x,formData:m,setFormData:p,setErrors:u,hideRegenerate:v}=e,[h,g]=(0,i.useState)(!1),y=(null==m?void 0:m.cardDescription)||(null==x?void 0:null===(t=x.blockProps)||void 0===t?void 0:null===(l=t.card)||void 0===l?void 0:l.description)||"",b=()=>{g(!0)},f=e=>{var t;(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.name)&&(u(t=>({...t,[e.target.name]:""})),p(t=>({...t,[e.target.name]:e.target.value})))},[j,k]=(0,i.useState)(!1),[w,N]=(0,i.useState)(!1);return(0,_.jsxs)("div",{className:"B__flex B__items-center B__w-full B__max-w-[600px] B__mx-auto B__h-[300px] hover:B__border-transparent B__gap-3 lg:B__gap-5 B__bg-surface B__text-primary B__rounded-xl   B__relative B__group/edit",style:{boxShadow:"0px 2px 12px 0px #0000001F"},children:[(0,_.jsx)("div",{className:"B__w-full B__h-full",children:(0,_.jsx)(a.Z,{field:{name:"img",key:"blockProps.card.img",value:(null==m?void 0:m.img)||(null==x?void 0:null===(n=x.blockProps)||void 0===n?void 0:null===(r=n.card)||void 0===r?void 0:r.img)||"",keywords:null==x?void 0:null===(d=x.blockProps)||void 0===d?void 0:null===(c=d.card)||void 0===c?void 0:c.img_keywords},handleImageChange:e=>{p(t=>({...t,img:e}))},article:x,hideRegenerate:v})}),(0,_.jsxs)("div",{className:"B__w-full B__text-center lg:B__text-left B__py-6 B__px-3 B__h-[inherit] B__overflow-y-auto",children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-base lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl B__break-words B__text-main",children:(0,o.ZP)((null==x?void 0:null===(B=x.blockProps)||void 0===B?void 0:B.title)||"")}),h?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("textarea",{rows:2,className:"B__px-5 B__py-3  placeholder:B__text-[#171786] placeholder:B__text-sm B__border B__border-[#e1e1e1] B__rounded-lg focus:B__outline-none focus:B__border-blue-500 B__w-full B__mt-2 B__bg-card-surface",name:"cardDescription",placeholder:"Description",onChange:f,value:null==m?void 0:m.cardDescription,style:{boxShadow:"0px 25px 60px 0px #00000014"}}),(0,_.jsx)("input",{className:"B__px-5 B__py-2  placeholder:B__text-[#171786] placeholder:B__text-sm B__border B__border-[#e1e1e1] B__rounded-lg focus:B__outline-none focus:B__border-blue-500 B__w-full B__mb-2 B__bg-card-surface",name:"readMoreText",placeholder:"Read more",onChange:f,value:null==m?void 0:m.readMoreText,style:{boxShadow:"0px 25px 60px 0px #00000014"}}),(0,_.jsx)("button",{className:"B__px-3 B__py-1 B__text-sm B__bg-butternut-button B__text-white B__rounded-md B__font-semibold",onClick:()=>{g(!1)},children:"Done"})]}):(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsxs)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-3 lg:B__mt-4 B__group/description B__relative",children:[(0,o.ZP)((null==y?void 0:y.slice(0,100))||""),(null==y?void 0:y.length)>100?"...":"",(0,_.jsx)("div",{className:"B__absolute B__top-1/2 B__left-1/2 B__-translate-x-1/2 B__-translate-y-1/2 B__flex B__gap-3 B__p-2 B__rounded-md B__bg-butternut-button B__text-white hover:B__shadow-[1px_1px_6px_0px_#7543e1] B__invisible group-hover/description:B__visible",children:(0,_.jsxs)("button",{className:"B__p-1",onClick:b,children:[" ",(0,_.jsx)(s.zmo,{size:20,className:"B__text-2xl B__text-white"})]})})]}),(0,_.jsx)("button",{className:"B__text-[#5959FF] B__text-sm B__font-normal",onClick:e=>{e.stopPropagation()},children:(null==m?void 0:m.readMoreText)||"Read more"})]})]})]})};t.Z=n},57983:function(e,t,l){"use strict";var _=l(85893),i=l(76520),o=l(48842),a=l(67294),s=l(89583),n=l(22920);let r=e=>{let{field:t,handleImageChange:l,article:r,hideRegenerate:d=!1}=e,{name:c,className:B,value:x}=t,[m,p]=(0,a.useState)(null),u=(0,a.useRef)(null),[v,h]=(0,a.useState)(null),[g,y]=(0,a.useState)(!1),b=()=>{(null==u?void 0:u.current)&&u.current.click()},f=async e=>{var t;let l=new FormData;l.append("image",e),l.append("website_id",r.website_id);let _=await o.Z.post("/v2/upload-image",l,{headers:{"Content-Type":"multipart/form-data"}});return null==_?void 0:null===(t=_.data)||void 0===t?void 0:t.new_url},j=async e=>{try{let{data:l}=await o.Z.post("/v2/regenerate-data",{query:{website_id:r.website_id,page_id:r.page_id,article_id:r._id.$oid,slot:"articles",key:t.key,type:"key",is_img:!0,...e||""===e?{keywords:e}:{},database_update:!1}});return(null==l?void 0:l.url)||""}catch(e){return console.log(e),""}},k=async e=>{if(e){let t=await f(e);l(t),h(null),p(null)}},[w,N]=(0,a.useState)(!1),P=async e=>{let t=await j(e);t&&l(t)},I=async()=>{let e=await j();e&&l(e)};return(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__relative B__w-full B__h-full B__group/fileuploader",children:[m||x?(0,_.jsx)("div",{className:"B__w-full B__h-full",children:(0,_.jsx)("img",{src:m||x,className:"B__w-full B__h-full B__object-cover B__object-center B__rounded-l-xl"})}):(0,_.jsx)("div",{className:"B__w-full B__min-h-[200px]"}),(0,_.jsxs)("div",{className:"B__absolute B__top-1/2 B__left-1/2 B__-translate-x-1/2 B__-translate-y-1/2 B__flex B__gap-3 B__p-2 B__rounded-md B__bg-butternut-button B__text-white hover:B__shadow-[1px_1px_6px_0px_#7543e1] B__invisible group-hover/fileuploader:B__visible B__z-10",children:[!d&&(0,_.jsx)(i.Fw,{onClick:I,onAddKeywordHandler:P,addingKeywords:w,setAddingKeywords:N,keywords:null==t?void 0:t.keywords,isImg:!0,isRegenerating:g}),(0,_.jsxs)("button",{className:"B__p-1",onClick:b,children:[" ",(0,_.jsx)(s.DUB,{size:20,className:"B__text-2xl B__text-white"})]})]}),(0,_.jsx)("input",{name:c,ref:u,type:"file",className:"B__invisible B__max-w-[1px] B__mx-auto B__flex B__items-center ".concat(B),accept:".jpg, .jpeg, .png,",onChange:e=>{let t=e.target.files[0],l=t.type;if(l&&["/jpg","/jpeg","/png","/svg"].some(e=>l.endsWith(e))){let e=new FileReader;e.onload=()=>{let t=e.result;p(t)},h(t),k(t),e.readAsDataURL(t)}else e.target.value=null,n.Am.error("Please select a valid image file (JPEG,JPG,PNG) .",{position:n.Am.POSITION.TOP_CENTER})}})]})};t.Z=r},1671:function(e,t,l){"use strict";l.d(t,{u:function(){return d},z:function(){return n}});var _=l(85893),i=l(67294),o=l(99036),a=l(97816);let s=(0,o.tv)({base:"B__text-butternut-orange B__box-border B__flex B__items-center B__gap-2 hover:B__translate-y-[-2px] hover:B__transition-all hover:B__duration-300 B__cursor-pointer",variants:{primary:{true:"",false:""},outline:{true:"B__border B__border-solid B__border-butternut-orange",false:""},disabled:{true:"B__bg-[rgba(0,0,0,0.3)] B__text-white"},transparent:{true:"B__bg-transparent",false:""},padded:{x:"px-4",y:"py-2",all:"px-4 py-2",false:""},shadow:{true:"B__shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)]",sm:"B__shadow-[0px_2px_2px_0px_rgba(0,0,0,0.25)]",false:""},rounded:{true:"B__rounded-[15px]",lg:"B__rounded-lg",false:""}},compoundVariants:[{transparent:!1,primary:!0,class:"B__bg-butternut-orange B__text-white"},{transparent:!1,primary:!1,class:"B__bg-white B__text-butternut-orange"}],defaultVariants:{shadow:!0,rounded:!0,padded:"all",primary:!1,transparent:!1,outline:!1}}),n=e=>{let{className:t,children:l,shadow:i,rounded:o,padded:a,transparent:n,primary:r,title:d,outline:c,...B}=e;return(0,_.jsx)("div",{className:s({className:t,shadow:i,rounded:o,padded:a,transparent:n,primary:r,outline:c}),...B,children:null!=l?l:d})},r=(0,o.tv)({base:"B__flex B__items-center B__p-4 B__py-2",variants:{direction:{row:"flex-row",column:"flex-col"}},defaultVariants:{direction:"row"}}),d=e=>{let{className:t,direction:l,buttons:o,...d}=e;return(0,_.jsx)("div",{className:r({className:s({className:t,padded:!1}),direction:l}),...d,children:o.map((e,t,l)=>(0,_.jsxs)(i.Fragment,{children:[(0,_.jsx)(n,{shadow:!1,padded:!1,rounded:!1,...e,children:e.children}),t<l.length-1&&(0,_.jsx)(a.Su,{})]},t))})}},97816:function(e,t,l){"use strict";l.d(t,{J_:function(){return a},Su:function(){return i},_7:function(){return o}});var _=l(85893);let i=()=>(0,_.jsx)("svg",{width:"2",height:"18",viewBox:"0 0 2 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_.jsx)("path",{id:"Vector 77",d:"M1 1V17",stroke:"black","stroke-opacity":"0.11","stroke-width":"2","stroke-linecap":"round"})}),o=()=>(0,_.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#FF8156","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,_.jsx)("path",{d:"M12 8V16",stroke:"#FF8156","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,_.jsx)("path",{d:"M8 12H16",stroke:"#FF8156","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),a=e=>{let{className:t,color:l="#FF8156"}=e;return(0,_.jsxs)("svg",{className:t,width:"18",height:"18",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{d:"M16 0L18.4308 6.56918L25 9L18.4308 11.4308L16 18L13.5692 11.4308L7 9L13.5692 6.56918L16 0Z",fill:l}),(0,_.jsx)("path",{d:"M6 11L7.62054 15.7444L12 17.5L7.62054 19.2556L6 24L4.37946 19.2556L0 17.5L4.37946 15.7444L6 11Z",fill:l})]})}},77349:function(e,t,l){"use strict";var _=l(85893);l(67294);let i=e=>{let{showModal:t,handleClose:l,handleConfirm:i,modalMessage:o,modalTitle:a,cancelButtonClassName:s,cancelButtonText:n,confirmButtonClassName:r,modalMessageClassName:d,confirmButtonText:c}=e;return(0,_.jsx)(_.Fragment,{children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] lg:B__max-w-[500px] xl:B__max-w-[600px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsx)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7 B__border-b B__border-solid B__border-blueGray-200",children:(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold B__mb-0",children:a||"Confirm"})}),(0,_.jsxs)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto  B__p-5 B__px-7 B__font-[Lato]",children:[(0,_.jsx)("div",{className:"B__py-3 B__pb-6 B__text-center B__text-lg ".concat(d||""),children:o||"Are you sure you want to continue?"}),(0,_.jsxs)("div",{className:"B__flex B__justify-end B__items-center B__gap-3 B__mt-3",children:[(0,_.jsxs)("button",{className:"B__text-[#131332] B__border B__border-[#131332] B__text-sm B__font-bold B__px-5 B__py-2 B__rounded-md B__font-[Lato] ".concat(s||""),onClick:l,children:[n||"Cancel"," "]}),(0,_.jsx)("button",{className:"B__text-white B__bg-butternut-button B__text-sm B__font-bold B__px-5 B__py-2 B__rounded-md B__font-[Lato] ".concat(r||""),onClick:i,children:c||"Confirm"})]})]})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})};t.Z=i},53136:function(e,t,l){"use strict";l.d(t,{Z:function(){return p}});var _=l(85893),i=l(67294),o=l(98713),a=l.n(o),s=l(76520),n=l(5434),r=l(50167),d=l(36968),c=l(1671),B=l(97816);let x=e=>{let t="live"===e.type;return t?null:(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,paddingBottom:20,marginTop:10,...e.style},children:e.isAdding?(0,_.jsx)(d.Z,{}):(0,_.jsxs)(c.z,{onClick:e.onAddHandler,transparent:!0,shadow:"sm",padded:"y",className:"B__border-2 B__border-transparent hover:B__border-butternut-orange B__border-dashed B__px-3",children:[(0,_.jsx)(B._7,{}),(0,_.jsx)("span",{className:"B__text-sm",children:"Add Item"})]})})},m=e=>{var t,l,o,d,B,m,p;let[u,v]=(0,i.useState)((()=>{let e=new Date().getTime(),t="".concat(e).concat(Math.floor(9e9*Math.random())+1e9);return t.slice(10,20)})()),[h,g]=(0,i.useState)(!1),y="live"===e.type,{regenInProgressEl:b,setRegenInProgressEl:f,editContentFields:j,deleteData:k,setEditContentFields:w,setShowEditContentModal:N,regenerateData:P,setEditSectionMetaData:I,addItem:C,updateSectionData:Z}=(0,i.useContext)(r.o)||{},T=null!=b&&!!b.find(t=>t.key===u&&t.sectionId===e.sectionId),L=(0,i.useCallback)(()=>{var t,l;null==w||w((null==e?void 0:null===(t=e.editBtn)||void 0===t?void 0:t.fields)||[]),null==N||N(!0),null==I||I({sectionId:e.sectionId,editBaseData:(null===(l=e.editBtn)||void 0===l?void 0:l.editBaseData)||"website"===e.sectionLocation,slot:e.slot,articleId:e.articleId})},[e.editBtn,e.sectionId,e.sectionLocation,e.slot,e.articleId,w,N,I]),S=(0,i.useCallback)(async()=>{var t,l,_,i,o;(null==e?void 0:null===(t=e.regenrateBtn)||void 0===t?void 0:t.updateType)&&(null==P||P(null==e?void 0:null===(l=e.regenrateBtn)||void 0===l?void 0:l.updateType,e.sectionId,null==e?void 0:null===(_=e.regenrateBtn)||void 0===_?void 0:_.key,null==e?void 0:null===(i=e.regenrateBtn)||void 0===i?void 0:i.itemIndex,null==e?void 0:null===(o=e.regenrateBtn)||void 0===o?void 0:o.isImg,void 0,u,"website"===e.sectionLocation,e.slot,null==e?void 0:e.articleId))},[null==e?void 0:e.regenrateBtn,e.sectionId,e.sectionLocation,e.slot,null==e?void 0:e.articleId,P,u]),D=(0,i.useCallback)(()=>{var t,l;null==w||w((null==e?void 0:null===(t=e.uploadBtn)||void 0===t?void 0:t.fields)||[]),null==N||N(!0),null==I||I({sectionId:e.sectionId,editBaseData:(null===(l=e.editBtn)||void 0===l?void 0:l.editBaseData)||"website"===e.sectionLocation,slot:e.slot,articleId:e.articleId})},[e.articleId,null===(t=e.editBtn)||void 0===t?void 0:t.editBaseData,e.sectionId,e.sectionLocation,e.slot,null==e?void 0:null===(l=e.uploadBtn)||void 0===l?void 0:l.fields,w,I,N]),F=(0,i.useCallback)(()=>{var t,l,_;(null==e?void 0:null===(t=e.deleteBtn)||void 0===t?void 0:t.deleteType)&&(null==k||k(null==e?void 0:null===(l=e.deleteBtn)||void 0===l?void 0:l.deleteType,e.sectionId,null==e?void 0:null===(_=e.deleteBtn)||void 0===_?void 0:_.itemIndex,"website"===e.sectionLocation,e.deleteBtn.itemKeyName,e.slot))},[null===(o=e.deleteBtn)||void 0===o?void 0:o.deleteType,null===(d=e.deleteBtn)||void 0===d?void 0:d.itemIndex,null==e?void 0:null===(B=e.deleteBtn)||void 0===B?void 0:B.itemKeyName,e.sectionId,e.sectionLocation,e.slot,k]),E=(0,i.useCallback)(t=>{var l,_,i,o,a;(null==e?void 0:null===(l=e.regenrateBtn)||void 0===l?void 0:l.updateType)&&(null==P||P(null==e?void 0:null===(_=e.regenrateBtn)||void 0===_?void 0:_.updateType,e.sectionId,null==e?void 0:null===(i=e.regenrateBtn)||void 0===i?void 0:i.key,null==e?void 0:null===(o=e.regenrateBtn)||void 0===o?void 0:o.itemIndex,null==e?void 0:null===(a=e.regenrateBtn)||void 0===a?void 0:a.isImg,t,u,"website"===e.sectionLocation,e.slot,null==e?void 0:e.articleId))},[e.articleId,e.sectionId,e.sectionLocation,e.slot,null==e?void 0:e.regenrateBtn,P,u]),A=(0,i.useCallback)(()=>{var t,l,_;(null==e?void 0:null===(t=e.hideBtn)||void 0===t?void 0:t.key)&&(null==Z||Z({[null==e?void 0:null===(l=e.hideBtn)||void 0===l?void 0:l.key]:!(null==e?void 0:null===(_=e.hideBtn)||void 0===_?void 0:_.value)},e.sectionId,"website"===e.sectionLocation,e.slot))},[e.sectionId,e.sectionLocation,e.slot,null==e?void 0:e.hideBtn,Z]),H=async()=>{if(null==e?void 0:e.addItemBtn){var t;g(!0),(null==e?void 0:e.sectionId)&&await (null==C?void 0:C(null==e?void 0:e.sectionId,null==e?void 0:null===(t=e.addItemBtn)||void 0===t?void 0:t.key,"website"===e.sectionLocation,e.slot))}g(!1)},[z,M]=(0,i.useState)(!1),U=(0,i.useMemo)(()=>{let t=[];if(e.regenrateBtn){var l,i,o,a,n;t.push({children:(0,_.jsx)(s.Fw,{v2:!0,style:{...null===(l=e.regenrateBtn)||void 0===l?void 0:l.style},icon:null===(i=e.regenrateBtn)||void 0===i?void 0:i.icon,onClick:S,onAddKeywordHandler:E,addingKeywords:z,setAddingKeywords:M,addKeywordStyle:null===(o=e.regenrateBtn)||void 0===o?void 0:o.addKeywordStyle,keywords:null===(a=e.regenrateBtn)||void 0===a?void 0:a.keywords,isImg:null===(n=e.regenrateBtn)||void 0===n?void 0:n.isImg,isRegenerating:T})})}return e.editBtn&&t.push({children:(0,_.jsx)(s.mL,{v2:!0,style:{...e.editBtn.style},icon:e.editBtn.icon,onClick:L,btntext:e.editBtn.btntext})}),e.uploadBtn&&t.push({children:(0,_.jsx)(s.vA,{v2:!0,style:{...e.uploadBtn.style},icon:e.uploadBtn.icon,onClick:D})}),e.hideBtn&&t.push({children:(0,_.jsx)(s.gU,{v2:!0,style:{...e.hideBtn.style},show:e.hideBtn.value||!1,onClick:A})}),t},[e.regenrateBtn,e.editBtn,e.uploadBtn,e.hideBtn,S,E,z,T,L,D,A]);return(0,_.jsxs)("div",{style:{position:"relative",width:"100%",height:"100%",...e.style},className:"".concat(a().editHoverContainer," ").concat(T?"blur":""," ").concat((null==e?void 0:e.className)?null==e?void 0:e.className:""," ").concat(e.alwaysShow||y||e.addItemBtn?"":"B__border B__border-transparent hover:B__border-butternut-orange B__border-dashed"),children:[e.children,!y&&(0,_.jsx)(_.Fragment,{children:(null==e?void 0:e.addItemBtn)?(0,_.jsx)(x,{isAdding:h,onAddHandler:H,type:e.type,style:null===(p=e.addItemBtn)||void 0===p?void 0:p.style}):(0,_.jsxs)("div",{className:"".concat(a().editContainer," !B__top-[50%] !B__h-fit !B__-translate-y-1/2 ").concat(e.alwaysShow?"!B__flex":""," ").concat(z?"!B__flex":"","\n              ").concat(e.buttonsWrapperClasses?e.buttonsWrapperClasses:"","\n              "),children:[(0,_.jsx)(c.u,{buttons:U}),!!e.deleteBtn&&(0,_.jsx)("button",{style:{position:"absolute",top:-10,right:-10,zIndex:1,...e.deleteBtn.style},className:"".concat(a().iconButton," ").concat((null===(m=e.deleteBtn)||void 0===m?void 0:m.className)||""),onClick:F,children:(0,_.jsx)(n.ZkW,{size:30,className:"B__text-butternut-orange"})})]})})]})};var p=m},2160:function(e,t,l){"use strict";var _=l(85893);l(67294);var i=l(98713),o=l.n(i),a=l(76520);let s=e=>{let{field:t,toggleIcons:l,values:i,handleChange:s,errors:n={},hideInput:r,children:d}=e;return(0,_.jsxs)("div",{style:{marginBottom:"1rem",opacity:t.hideIconBtnKey?t.hideIconBtnValue?"100%":"50%":"100%",width:"100%"},children:[(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsx)("label",{className:o().modal_label,style:{margin:"auto 0"},children:t.field_label||t.placeholder}),t.children?t.children:"",t.hideIconBtnKey&&(0,_.jsx)(a.Oe,{style:{border:"none",outline:"none"},show:t.hideIconBtnValue||!1,onClick:()=>{t.hideIconBtnKey&&(null==l||l(t.hideIconBtnKey))},iconClassName:"!B__text-black",hideTooltip:!0})]}),!r&&(0,_.jsx)("input",{name:t.name,type:"text",placeholder:t.placeholder,value:i[t.name],onChange:s,className:"".concat(o().modal_input," disabled:B__opacity-70"),disabled:t.hideIconBtnKey?!t.hideIconBtnValue:t.disabled||!1}),!!d&&d,"video_link"===t.name&&n.video_link?(0,_.jsx)("p",{style:{color:"red"},children:n.video_link}):null]})};t.Z=s},21096:function(e,t,l){"use strict";l.d(t,{Z:function(){return h}});var _=l(85893),i=l(67294),o=l(98713),a=l.n(o),s=l(76520),n=l(38452),r=l.n(n),d=l(5434);let c=e=>{let[t,l]=(0,i.useState)(!1);return(0,_.jsx)("div",{className:r().icon,style:e.style,onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},children:(0,_.jsxs)("button",{type:"button",className:r().button,onClick:()=>{e.onClick(),l(!1)},children:[(0,_.jsx)(d.la_,{size:25,color:"#545050"}),(0,_.jsx)("p",{className:"".concat(r().iconText," ").concat(t?r().showText:""),style:{marginBottom:0,color:"#545050"},children:e.title})]})})};var B=l(5152),x=l.n(B);let m=x()(Promise.all([l.e(939),l.e(1167)]).then(l.t.bind(l,71167,23)).then(e=>{let t=e.default.Quill,_=l(2292).Z;var i=t.import("formats/font"),o=t.import("attributors/style/size");return o.whitelist=["10px","12px","14px","16px","18px","20px","24px","28px","32px","48px","56px"],t.register(o,!0),i.whitelist=["monospace","serif","montserrat","lato","poppins","roboto","playfair-display","libre-bodoni","lora","bebas-neue-regular","pacifico-regular","fira-sans","quicksand","oswald","dancing-script","nunito","great-vibes","merriweather","raleway"],t.register(i,!0),t.register("modules/imageUploader",_),e}),{loadableGenerated:{webpack:()=>[71167]},ssr:!1,loading:()=>(0,_.jsx)("p",{children:"Loading ..."})}),p=["header","font","size","bold","italic","underline","strike","link","color","background","list","image","imageBlot","video","align"],u=e=>{let t=(0,i.useMemo)(()=>({toolbar:{container:[[{header:"1"},{header:"2"},{font:["monospace","serif","montserrat","lato","poppins","roboto","playfair-display","libre-bodoni","lora","bebas-neue-regular","pacifico-regular","fira-sans","quicksand","oswald","dancing-script","nunito","great-vibes","merriweather","raleway"]},{size:["10px","12px","14px","16px","18px","20px","24px","28px","32px","48px","56px"]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["link"],[{color:[]}],[{background:[]}],["clean"],[{list:"ordered"},{list:"bullet"}],...e.showImage?[["image"],["video"]]:[]]},imageUploader:{upload:t=>new Promise((l,_)=>{e.uploadImage(t).then(e=>{l(e)})})},clipboard:{matchVisual:!1}}),[]);return(0,_.jsx)(m,{...e,modules:t,formats:p})},v=e=>{let{field:t,toggleIcons:l,values:i,handleChange:o,errors:n={},isSaving:r,editSectionMetaData:d,regenerateHandler:B,regenerateWithPrompt:x,uploadImage:m}=e;return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{style:{marginBottom:"1rem",opacity:t.hideIconBtnKey?t.hideIconBtnValue?"100%":"50%":"100%"},children:[(0,_.jsxs)("div",{style:{display:"flex",marginBottom:5},children:[(0,_.jsx)("label",{className:a().modal_label,style:{margin:"auto 0",fontSize:"16px"},children:t.placeholder}),t.regenerateBtn&&(0,_.jsx)(c,{title:"Regenerate",style:{marginLeft:5},onClick:()=>{d?B(d.sectionId,"regenerate",!1,i[t.name]):x(t.name,i[t.name])}}),t.children?t.children:"",t.hideIconBtnKey&&(0,_.jsx)(s.Oe,{style:{border:"none",outline:"none"},show:t.hideIconBtnValue||!1,onClick:()=>{t.hideIconBtnKey&&l(t.hideIconBtnKey)},iconClassName:"!B__text-black",hideTooltip:!0})]}),(0,_.jsx)(u,{placeholder:t.placeholder,value:i[t.name],onChange:e=>{o({target:{name:t.name,value:e}})},className:a().text_editor,theme:"snow",readOnly:!!t.hideIconBtnKey&&!t.hideIconBtnValue&&r,uploadImage:m,showImage:!0})]},t.name)})};var h=v},71365:function(e,t,l){"use strict";var _=l(85893),i=l(37442),o=l(4298),a=l.n(o),s=l(67294),n=l(5434),r=l(16310),d=l(46442),c=l(72028),B=l(22920),x=l(11163);let m=e=>{let{showModal:t,handleClose:l,websiteId:o,onStep:m}=e,[p,u]=(0,s.useState)(m||0),[v,h]=(0,s.useState)(!1),g=(0,x.useRouter)(),y=async()=>{if(o)try{let{data:e}=await c.Z.fetchStaticSubsStatus({websiteId:o});(null==e?void 0:e.website)&&u(1)}catch(e){console.log(e)}};(0,s.useEffect)(()=>{!m&&t&&y(),h(!0)},[]);let b=async e=>{if(o)try{await c.Z.goLiveStatic({email:e.email,websiteId:o}),u(1)}catch(e){B.Am.error((null==e?void 0:e.message)||"Unable to link")}};return(0,_.jsx)(_.Fragment,{children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[90%] lg:B__min-w-[400px] B__max-w-full lg:B__max-w-[1050px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded-lg B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7 B__border-b B__border-solid B__border-blueGray-200 B__rounded-t",children:[(0,_.jsx)("h3",{className:"B__text-2xl B__font-bold B__mb-0 B__w-[75%]",children:0===p?"Your website will be live in just 3 easy steps":1===p?"Just one more step to go live":"After this your website will be live"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:l,children:(0,_.jsx)(n.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsx)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto",children:(0,_.jsxs)("div",{className:"".concat(v?"B__visible":"B__invisible"),children:[(0,_.jsxs)("div",{className:"B__hidden lg:B__flex B__flex-wrap B__justify-center B__gap-1 B__items-center B__my-4",children:[(0,_.jsxs)("div",{className:"B__relative B__h-[75px] lg:B__w-[30%]",children:[(0,_.jsx)("img",{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/rectangle-1-dark.png",className:"B__w-full B__h-[75px]"}),(0,_.jsxs)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2 B__px-8 B__py-2 B__font-semibold",children:["Enter Email",(0,_.jsx)("div",{className:" B__text-slate-500 B__text-xs B__font-normal",children:"Email you'd like to associate with Butternut account"})]})]}),(0,_.jsxs)("div",{className:"B__relative B__h-[75px] lg:B__w-[30%] lg:B__-left-[12px]",children:[(0,_.jsx)("img",{src:p<1?"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/rectangle-2.png":"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/rectangle-2-dark.png",className:"B__w-full B__h-[75px]"}),(0,_.jsxs)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2  B__px-8 B__py-2 B__font-semibold",children:["Make a Payment",(0,_.jsx)("div",{className:" B__text-slate-500 B__text-xs B__font-normal",children:"Pick a payment plan and pay on secure platform"})]})]}),(0,_.jsxs)("div",{className:"B__relative B__h-[75px] lg:B__w-[30%] lg:B__-left-[24px]",children:[(0,_.jsx)("img",{src:p<2?"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/rectangle-3.png":"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/rectangle-3-dark.png",className:"B__w-full B__h-[75px]"}),(0,_.jsxs)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2  B__px-8 B__py-2 B__font-semibold",children:["Link Domain",(0,_.jsx)("div",{className:" B__text-slate-500 B__text-xs B__font-normal",children:"Link your website on Butternut with your domain name"})]})]})]}),(0,_.jsx)("div",{className:"lg:B__hidden B__flex B__flex-wrap B__justify-center B__gap-1 B__items-center B__my-4",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-center B__justify-center B__mt-7 B__w-full",children:[(0,_.jsxs)("div",{className:"B__relative B__w-full B__flex B__justify-center B__items-center",children:[(0,_.jsx)("div",{className:"B__h-[40px] B__w-[40px] B__rounded-full B__text-white B__bg-butternut-button B__flex B__justify-center B__items-center B__text-lg B__font-bold B__z-10 B__relative",children:p+1}),0===p?(0,_.jsx)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2 B__right-0 B__w-1/2 B__h-[5px] B__bg-[#D9D2F7] B__z-0"}):1===p?(0,_.jsx)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2 B__w-full B__h-[5px] B__bg-[#D9D2F7] B__z-0"}):(0,_.jsx)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2 B__left-0 B__w-1/2 B__h-[5px] B__bg-[#D9D2F7] B__z-0"})]}),(0,_.jsxs)("div",{className:"B__w-1/2 B__mx-auto B__flex B__justify-center B__items-center B__mt-3 B__flex-col",children:[(0,_.jsx)("div",{className:"B__font-bold B__text-xl B__text-center",children:0===p?"Enter Email":1===p?"Make a Payment":"Link Domain"}),(0,_.jsx)("div",{className:"B__mt-2 B__text-slate-500 B__text-sm B__font-normal B__text-center",children:0===p?"Email you'd like to associate with Butternut account":1===p?"Pick a payment plan and pay on secure platform":"Link your website on Butternut with your domain name"})]})]})}),0===p?(0,_.jsx)("div",{className:"B__my-10 B__mt-16 B__border B__border-slate-400 B__rounded-md B__bg-white B__p-5 B__max-w-[80%] lg:B__max-w-[600px] B__mx-auto",children:(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)("div",{className:"B__font-medium B__text-xl B__mb-3",children:"Enter email to register your website"}),(0,_.jsx)(i.J9,{initialValues:{email:""},validationSchema:r.Ry().shape({email:r.Z_().required("Email is required").email("Please enter a valid email")}),onSubmit:b,children:e=>{let{values:t,errors:l,handleChange:i,handleSubmit:o}=e;return(0,_.jsxs)("form",{onSubmit:o,children:[(0,_.jsx)(d.Z,{name:"email",placeholder:"Email address",type:"email",value:t.email,handleChange:i,className:"rounded B__rounded-md focus:!B__shadow-none !B__p-4 !B__mt-3"}),l.email?(0,_.jsx)("p",{style:{color:"red"},children:l.email}):null,(0,_.jsx)("button",{type:"submit",className:"B__mt-3 B__px-6 lg:B__px-10 B__w-fit B__rounded-md B__mx-auto B__py-2 B__bg-butternut-button B__text-white B__font-medium B__text-lg lg:B__text-xl",children:"Continue"})]})}})]})}):1===p?(0,_.jsxs)("div",{className:"B__my-10 B__px-4",children:[(0,_.jsx)(a(),{async:!0,src:"https://js.stripe.com/v3/pricing-table.js"}),(0,_.jsx)("stripe-pricing-table",{"pricing-table-id":"prctbl_1NFVvKKWxstxK3NN4eDUdsLN","publishable-key":"pk_live_51N4qVSKWxstxK3NNPWUiAQilRygGO2Y91DYKc4ZYem8TufOZyESZaYx9TMpYVeIMkwEjXstuHNPEG2NTwSrbRqKJ00gfTtvVGr"})]}):2===p?(0,_.jsx)("div",{className:"B__relative B__p-6 B__flex-auto ",children:(0,_.jsxs)("div",{className:"B__p-6 B__flex B__flex-col B__items-center B__gap-2 B__rounded-md",children:[(0,_.jsx)(n.ZSR,{className:"B__text-green-400 B__text-3xl B__w-14 B__h-14"}),(0,_.jsx)("div",{className:"B__text-xl B__text-center B__font-semibold B__mt-3",children:"Subscription Successful"}),(0,_.jsx)("div",{className:"B__text-gray-600 B__text-base B__text-center",children:"Thanks for subscribing, You will receive email for domain linking procedure."}),(0,_.jsx)("button",{className:"B__bg-butternut-button B__px-6 B__py-2 B__text-white B__w-full B__mx-auto B__max-w-[500px] B__mt-5 B__rounded-md",onClick:()=>{o?g.push("/generated/".concat(o)):g.push("/")},children:"Back to Home"})]})}):(0,_.jsx)(_.Fragment,{})]})})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})};t.Z=m},65194:function(e,t,l){"use strict";var _=l(85893),i=l(4298),o=l.n(i),a=l(67294),s=l(28192),n=l.n(s);let r=e=>{let{isLoading:t}=e,l=()=>{new(n())("#loading_text_all",{strings:["Rome wasn't built in a day but your website will be ready in just a few seconds…","Life is too short to code yourself!"],autoStart:!0})};return(0,a.useEffect)(()=>{l()},[t]),(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)(o(),{src:"https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"}),(0,_.jsx)("div",{className:"B__fixed B__inset-0 B__z-[99999] B__bg-white B__overflow-hidden ".concat(t?"":"B__hidden"),children:(0,_.jsxs)("div",{className:"B__absolute B__top-1/2 B__left-1/2 B__-translate-x-1/2 B__-translate-y-1/2 B__flex B__flex-col B__justify-center B__items-center B__w-full",children:[(0,_.jsx)("lottie-player",{src:"/animation/lottie-loader.json",background:"transparent",speed:"1",style:{width:"150px",height:"150px",minWidth:"150px"},direction:"1",mode:"normal",autoplay:!0,loop:!0}),(0,_.jsx)("div",{className:"B__p-4 B__px-10",children:(0,_.jsx)("p",{id:"loading_text_all",style:{color:"#000daf",fontSize:"1.25em"}})})]})})]})};t.Z=r},50167:function(e,t,l){"use strict";l.d(t,{o:function(){return W},R:function(){return K}});var _=l(85893),i=l(67294),o=l(48842),a=l(47355),s=l(37442),n=l(2160),r=l(21096),d=l(76520),c=l(76396),B=l(98713),x=l.n(B),m=l(59429),p=l(25675),u=l.n(p),v=l(41664),h=l.n(v),g=l(69),y=l(73192),b=l(35005),f=l(8193),j=l(89583),k=l(86893),w=l(22920);let N=Math.PI/180;async function P(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=document.createElement("canvas"),o=i.getContext("2d");if(!o)throw Error("No 2d context");let a=e.naturalWidth/e.width,s=e.naturalHeight/e.height,n=window.devicePixelRatio;i.width=Math.floor(t.width*a*n),i.height=Math.floor(t.height*s*n),o.scale(n,n),o.imageSmoothingQuality="high";let r=t.x*a,d=t.y*s,c=e.naturalWidth/2,B=e.naturalHeight/2;return o.save(),o.translate(-r,-d),o.translate(c,B),o.rotate(_*N),o.scale(l,l),o.translate(-c,-B),o.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),o.restore(),new Promise((e,t)=>{i.toBlob(l=>{if(!l){t(null);return}e([l,i.toDataURL()])})})}var I=l(82084);l(77929);let C=e=>{let{src:t,onChange:l,style:o,aspectRatio:a,...s}=e,[n,r]=(0,i.useState)(),[d,c]=(0,i.useState)(a),[B,x]=(0,i.useState)(1),p=(0,i.useRef)(null),u=(0,i.useRef)(l);u.current=l;let v=(0,m.Ds)((0,i.useCallback)(async e=>{var t,l,_;if(!e||!p.current)return;let[i]=await P(p.current,(0,I.BB)(e,null!==(l=p.current.naturalWidth)&&void 0!==l?l:0,null!==(_=p.current.naturalHeight)&&void 0!==_?_:0),B),o=await (0,m.q7)(i);null===(t=u.current)||void 0===t||t.call(u,o[1])},[B]),300);return document&&!document.querySelector("body")?null:(0,_.jsxs)("div",{children:[t&&(0,_.jsx)(I.ZP,{keepSelection:!0,crop:n,onChange:r,aspect:d,minHeight:100,onComplete:v,children:(0,_.jsx)("img",{src:t,onLoad:function(e){let{width:t,height:l}=e.currentTarget,_=d||t/l;_||c(_),r((0,I._H)((0,I.YG)({unit:"%",width:90},_,t,l),t,l))},style:{...null!=o?o:{},transform:"scale(".concat(B,")")},...s,ref:p})}),(0,_.jsx)("input",{id:"scale-input",className:"B__mx-auto B__p-1 B__w-1/2 B__block",type:"range",step:"0.1",min:1,max:3,value:B,disabled:!t,onChange:e=>x(Number(e.target.value))})]})},Z=e=>{let{field:t,toggleIcons:l,formRef:a,setIsSaving:s,setRegenInProgressEL:n,websiteId:r}=e,[B,p]=(0,i.useState)(""),[v,N]=(0,i.useState)(""),[P,I]=(0,i.useState)([]),[Z,T]=(0,i.useState)(null),[L,S]=(0,i.useState)(null),[D,F]=(0,i.useState)("upload"),[E,A]=(0,i.useState)(""),[H,z]=(0,i.useState)(!1),[M,U]=(0,i.useState)(!1),[V,R]=(0,i.useState)(""),W=e=>{var l,_;F(e),"upload"===e&&L?null==a||null===(l=a.current)||void 0===l||l.setFieldValue(t.name,L):"search"===e&&V&&(null==a||null===(_=a.current)||void 0===_||_.setFieldValue(t.name,V))},K=async(e,t)=>{var l;R(t),null==a||null===(l=a.current)||void 0===l||l.setFieldValue(e,t)},q=async(e,l)=>{U(!1),I([]),s(!0);try{var _,i,a;n(t=>[...t,e]);let s=await o.Z.post("/v2/get-searched-images",{website_id:r,field_name:e,keywords:l,...t.isIcon?{is_icon:!0}:{}});I((null==s?void 0:null===(_=s.data)||void 0===_?void 0:_.urls)||[]),R((null==s?void 0:null===(i=s.data)||void 0===i?void 0:null===(a=i.urls)||void 0===a?void 0:a[0])||"")}catch(e){console.log("No results"),A("No results found")}s(!1)};return(0,i.useEffect)(()=>{"search"!==D||(null==P?void 0:P.length)||q("","")},[D]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsx)("label",{className:x().modal_label,style:{margin:"auto 0"},children:t.placeholder}),t.children?t.children:"",t.hideIconBtnKey&&(0,_.jsx)(d.Oe,{style:{border:"none",outline:"none"},show:t.hideIconBtnValue||!1,onClick:()=>{t.hideIconBtnKey&&l(t.hideIconBtnKey)},iconClassName:"!B__text-black",hideTooltip:!0})]}),t.hideSearchTab?(0,_.jsx)("div",{style:{marginBottom:"1rem"},children:(0,_.jsxs)("div",{style:{border:"1px solid lightgrey",padding:"4px",display:"flex",borderRadius:"0px",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,_.jsx)("input",{name:t.name,type:"file",className:x().modal_input,style:{border:"none",outline:"none"},accept:".jpg, .jpeg, .png,",onChange:e=>{let l=e.target.files[0],_=l.type,i=Math.round(l.size/1024);if(_&&["/jpg","/jpeg","/png"].some(e=>_.endsWith(e))&&i<=500){let e=new FileReader;e.onload=()=>{var _;let i=e.result;T(i),null==a||null===(_=a.current)||void 0===_||_.setFieldValue(t.name,l)},e.readAsDataURL(l),U(!0)}else i>500?(e.target.value=null,w.Am.error("File size cannot exceed 500KB.",{position:w.Am.POSITION.TOP_CENTER})):(e.target.value=null,w.Am.error("Please select a valid image file (JPEG,JPG,PNG) .",{position:w.Am.POSITION.TOP_CENTER}))}}),L&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("img",{src:L,alt:"Thumbnail",style:{width:"100%",height:"auto",padding:"1rem",borderRadius:"0px"}})})]})},t.name):(0,_.jsxs)(g.Z,{defaultActiveKey:"upload",id:"upload-image",className:"mb-3",onSelect:W,children:[(0,_.jsx)(y.Z,{eventKey:"upload",title:(0,_.jsx)("span",{className:"B__text-butternut-orange",children:"Upload"}),style:{marginBottom:"1rem"},children:(0,_.jsxs)("div",{children:[(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("label",{className:x().modal_label,children:t.placeholder})}),(0,_.jsxs)("div",{style:{border:"1px solid lightgrey",padding:"4px",display:"flex",borderRadius:"0px",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,_.jsx)("input",{name:t.name,type:"file",className:x().modal_input,style:{border:"none",outline:"none"},accept:".jpg, .jpeg, .png,",onChange:async e=>{A("");let l=e.target.files[0];if(!l)return;let _=l.type,i=l.size/1024/1024;if(!["/jpg","/jpeg","/png","/svg"].some(e=>_.endsWith(e))){e.target.value=null,w.Am.error("Please select a valid image file (JPEG,JPG,PNG) .",{position:w.Am.POSITION.TOP_CENTER});return}if(i>5){A("Image size is huge."),e.target.value=null;return}let o=(0,m.mg)(.5,5)(i);if(o){var s;let[e,_]=await (0,m.q7)(l);T(e),null==a||null===(s=a.current)||void 0===s||s.setFieldValue(t.name,_);return}let n=new FileReader;n.onload=()=>{var e;let _=n.result;T(_),null==a||null===(e=a.current)||void 0===e||e.setFieldValue(t.name,l)},n.readAsDataURL(l),U(!0)}}),(0,_.jsx)("p",{className:"B__mx-3 B__self-start B__text-xs B__text-gray-500 B__font-primary B__italic",children:"Maximum 1MB file size allowed."}),E&&(0,_.jsx)("p",{className:"B__text-sm B__text-red-400",children:E}),Z&&(0,_.jsx)(C,{src:Z,aspectRatio:t.aspectRatio?16/9:void 0,onChange:e=>{var l;S(e),null==a||null===(l=a.current)||void 0===l||l.setFieldValue(t.name,e)},className:"B__object-contain",style:{width:"100%",height:"auto",padding:"1rem",borderRadius:"0px"},alt:"Thumbnail"})]})]},t.name)}),(0,_.jsxs)(y.Z,{eventKey:"search",title:(0,_.jsxs)("span",{className:"B__text-butternut-orange B__flex B__items-center B__gap-1.5",children:[(0,_.jsx)(j.GjU,{className:"B__text-black"}),(0,_.jsx)("span",{className:"B__ml-1",children:"Unsplash Images"})]}),children:[(0,_.jsxs)("form",{children:[(0,_.jsxs)("label",{className:x().modal_label,children:["Search an image"," "]}),(0,_.jsxs)("div",{style:{display:"flex"},children:[(0,_.jsx)("input",{name:t.name,type:"text",value:B,onChange:e=>{A(""),p(e.target.value)},placeholder:"Enter keywords...",className:x().modal_input}),(0,_.jsx)(b.Z,{variant:"light",type:"submit",title:"Edit",onClick:e=>{e.preventDefault(),""!==B.trim()?(q(t.name,B),N(B),z(!1)):A("Required")},className:x().searchBtn,children:(0,_.jsx)(f.RB5,{size:24})})]}),E&&(0,_.jsx)("p",{style:{fontFamily:"Roboto",paddingTop:"0.5rem",color:"red",fontWeight:"300"},children:(0,_.jsx)("i",{children:E})})]}),P&&(null==P?void 0:P.length)?(0,_.jsxs)("div",{children:[(0,_.jsxs)("p",{className:"B__my-3 B__mb-1 B__text-center B__font-medium B__text-lg B__flex B__items-center B__justify-center B__gap-1.5",children:["Photos by :  ",(0,_.jsx)(j.GjU,{className:"B__text-black"})," ",(0,_.jsx)(h(),{href:"https://unsplash.com/?utm_source=butternutai&utm_medium=referral",target:"_blank",className:"B__text-inherit B__font-semibold B__underline",children:"Unsplash"})]}),(0,_.jsx)("div",{className:"B__columns-2 B__gap-2 B__p-2",children:null==P?void 0:P.map((e,l)=>{var i,o;return(0,_.jsxs)("div",{className:"B__relative B__py-1 B__group/image",children:[(0,_.jsx)(u(),{width:150,height:100,className:"B__w-full B__h-auto B__max-h-[450px] B__object-cover B__object-center B__m-0 B__p-0.5 B__rounded-md B__border B__cursor-pointer ".concat(V===(null==e?void 0:e.url)?"B__border B__border-[#5959ff]":"B__border-transparent"),onLoadingComplete:()=>{z(!0)},onClick:()=>K(t.name,null==e?void 0:e.url),src:null==e?void 0:e.url,alt:"Image"}),(null==e?void 0:null===(i=e.more_info)||void 0===i?void 0:i.username)&&(0,_.jsx)("div",{className:"B__absolute B__hidden group-hover/image:B__flex B__bottom-1 B__p-0.5 B__w-full B__text-white  ",children:(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__w-full B__px-2 B__pb-1 B__cursor-pointer",style:{background:"linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%)"},onClick:t=>{if(t.stopPropagation(),window){var l;window.open("https://unsplash.com/@".concat(null==e?void 0:null===(l=e.more_info)||void 0===l?void 0:l.username,"/?utm_source=butternutai&utm_medium=referral"))}},children:[(0,_.jsx)(k.AlO,{className:"B__text-sm"}),(0,_.jsx)("span",{className:"B__text-sm B__font-medium",children:null==e?void 0:null===(o=e.more_info)||void 0===o?void 0:o.name})]})}),V===(null==e?void 0:e.url)&&(0,_.jsx)("div",{className:"B__absolute B__top-4 B__right-2 B__text-[#5959ff] B__text-xl B__bg-white B__rounded-full",children:(0,_.jsx)(f.mny,{})}),H?null:(0,_.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,_.jsx)("p",{style:{fontSize:20},children:"Loading..."})})]},l)})})]}):(0,_.jsx)("div",{className:"B__flex B__my-3 B__justify-center B__items-center",children:(0,_.jsx)(c.Z,{})})]})]})]})},T=e=>{var t;let{field:l,toggleIcons:i,values:o,handleChange:a}=e;return(0,_.jsxs)("div",{style:{marginBottom:"1rem",opacity:l.hideIconBtnKey?l.hideIconBtnValue?"100%":"50%":"100%"},children:[(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsx)("label",{className:x().modal_label,style:{margin:"auto 0"},children:l.placeholder}),l.children?l.children:"",l.hideIconBtnKey&&(0,_.jsx)(d.Oe,{style:{border:"none",outline:"none"},show:l.hideIconBtnValue||!1,onClick:()=>{l.hideIconBtnKey&&i(l.hideIconBtnKey)},iconClassName:"!B__text-black",hideTooltip:!0})]}),(0,_.jsx)("select",{name:l.name,value:o[l.name],onChange:a,className:x().modal_input,disabled:!!l.hideIconBtnKey&&!l.hideIconBtnValue,children:null==l?void 0:null===(t=l.dropDownList)||void 0===t?void 0:t.map(e=>(0,_.jsx)("option",{value:e,children:e},e))})]},l.name)};var L=l(71353),S=l.n(L);let D=e=>{let[t,l]=(0,i.useState)(e.checked),o=()=>{l(e=>!e),e.onChange(!t)};return(0,_.jsxs)("label",{className:S().sliding_radio,children:[(0,_.jsx)("input",{type:"radio",name:e.name,checked:t,onChange:()=>{},onClick:o}),(0,_.jsx)("div",{className:S().sliding_indicator})]})},F=e=>{let{field:t,toggleIcons:l,setFieldValue:i}=e;return(0,_.jsx)("div",{style:{margin:"1rem 0",opacity:t.hideIconBtnKey?t.hideIconBtnValue?"100%":"50%":"100%"},children:(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsx)("label",{className:x().modal_label,style:{margin:"auto 0"},children:t.placeholder}),t.hideIconBtnKey&&(0,_.jsx)(d.Oe,{style:{border:"none",outline:"none"},show:t.hideIconBtnValue||!1,onClick:()=>{t.hideIconBtnKey&&l(t.hideIconBtnKey)},iconClassName:"!B__text-black",hideTooltip:!0}),(0,_.jsx)(D,{name:t.name,checked:!!t.value,onChange:e=>{i(t.name,e)}})]})},t.name)},E=e=>{let{field:t,toggleIcons:l,values:i,handleChange:o}=e;return(0,_.jsx)("div",{style:{marginBottom:"1rem",opacity:t.hideIconBtnKey?t.hideIconBtnValue?"100%":"50%":"100%"},children:(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsx)("label",{className:x().modal_label,style:{margin:"auto 0"},children:t.placeholder}),t.hideIconBtnKey&&(0,_.jsx)(d.Oe,{style:{border:"none",outline:"none"},show:t.hideIconBtnValue||!1,onClick:()=>{t.hideIconBtnKey&&l(t.hideIconBtnKey)},iconClassName:"!B__text-black",hideTooltip:!0}),(0,_.jsx)("input",{name:t.name,type:"color",placeholder:t.placeholder,value:t.hideIconBtnKey?t.hideIconBtnValue?i[t.name]:"":i[t.name],onChange:o,disabled:!!t.hideIconBtnKey&&!t.hideIconBtnValue})]})},t.name)},A=e=>{let{field:t,toggleIcons:l,values:i,handleChange:o}=e;return(0,_.jsxs)("div",{style:{opacity:t.hideIconBtnKey?t.hideIconBtnValue?"100%":"50%":"100%"},children:[(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsx)("label",{className:x().modal_label,children:t.field_label||t.placeholder}),t.children?t.children:"",t.hideIconBtnKey&&(0,_.jsx)(d.Oe,{style:{border:"none",outline:"none"},show:t.hideIconBtnValue||!1,onClick:()=>{t.hideIconBtnKey&&l(t.hideIconBtnKey)},iconClassName:"!B__text-black",hideTooltip:!0})]}),(0,_.jsx)("textarea",{placeholder:t.placeholder,name:t.name,rows:3,value:t.hideIconBtnKey?t.hideIconBtnValue?i[t.name]:"":i[t.name],onChange:o,className:x().modal_textarea,style:{height:""},disabled:!!t.hideIconBtnKey&&!t.hideIconBtnValue})]},t.name)};var H=l(89415);let z=e=>{let t=(0,i.useRef)(),[l,d]=(0,i.useState)(!1);e.formRef.current=t.current;let c=t=>{let l=(0,H.N5)(e.websiteData,e.editSectionMetaData,t);if("boolean"==typeof l||null===l){let _=null===l||!l,i=(0,H.TU)(e.websiteData,e.editSectionMetaData,t,_,"website");e.setWebsiteData(i),e.setEditContentFields(e=>(null==e?void 0:e.length)?e.map(e=>(e.hideIconBtnKey===t&&(e.hideIconBtnValue=_),e)):null)}};if(!e.fields)return null;let B=()=>{l||(e.handleClose(),e.setEditSectionMetaData(null))},x=async(l,_)=>{d(!0);let i=await o.Z.post("/regenerate_with_prompt",{website_id:e.websiteId,element_id:l,keywords:_});t.current.setValues({...t.current.values,...i.data}),d(!1)},m=async t=>{var l;let _=new FormData;_.append("image",t),_.append("website_id",e.websiteId);let i=await o.Z.post("/v2/upload-image",_,{headers:{"Content-Type":"multipart/form-data"}});return null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.new_url},p=async t=>{d(!0);let l=Object.keys(t);for(let e=0;e<l.length;e++)if("object"==typeof t[l[e]]){let _=await m(t[l[e]]);_?t[l[e]]=_:t[l[e]]=""}let _=e.fields.reduce((e,l)=>(l.key&&(e[l.key.replace(/\?\./g,".")]=t[l.name]),e),{});d(!1),e.handleSave(_)};return(0,_.jsx)(a.Z,{title:"Edit",show:e.show,handleClose:B,handleSave:()=>{var e;null===(e=t.current)||void 0===e||e.submitForm()},isSaving:l,fields:e.fields,children:(0,_.jsx)(s.J9,{initialValues:e.fields.reduce((e,t)=>({...e,[t.name]:t.value}),{}),onSubmit:e=>{p(e)},innerRef:t,children:i=>{let{values:o,handleChange:a,handleSubmit:s,setFieldValue:B,errors:p}=i;return(0,_.jsx)("form",{onSubmit:s,className:"B__min-h-[240px]",children:e.fields.map(i=>(0,_.jsxs)("div",{children:[!!i.beforeText&&(0,_.jsx)("div",{style:{margin:"0 10px"},children:(0,_.jsx)("p",{style:{textAlign:"center"},children:i.beforeText})}),"input"===i.type?(0,_.jsx)(n.Z,{field:i,handleChange:a,toggleIcons:c,values:o,errors:p}):"texteditor"===i.type?(0,_.jsx)(r.Z,{field:i,handleChange:a,regenerateHandler:e.regenerateHandler,toggleIcons:c,values:o,errors:p,isSaving:l,editSectionMetaData:e.editSectionMetaData,regenerateWithPrompt:x,uploadImage:m}):"file"===i.type?(0,_.jsx)(Z,{field:i,setIsSaving:d,setRegenInProgressEL:e.setRegenInProgressEL,toggleIcons:c,formRef:t,websiteId:null==e?void 0:e.websiteId}):"select"===i.type?(0,_.jsx)(T,{field:i,handleChange:a,toggleIcons:c,values:o}):"radio"===i.type?(0,_.jsx)(F,{field:i,toggleIcons:c,setFieldValue:B}):"color"===i.type?(0,_.jsx)(E,{field:i,handleChange:a,toggleIcons:c,values:o}):(0,_.jsx)(A,{field:i,handleChange:a,toggleIcons:c,values:o})]},i.name))})}})})},M=()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>(t(!0),()=>{t(!1)}),[]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-50 B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[90%] lg:B__min-w-[300px] B__max-w-[400px] B__bg-white B__rounded-md",children:(0,_.jsx)("div",{className:"B__h-[250px] lg:B__h-[350px] B__flex B__justify-center B__items-center",children:(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"B__flex B__justify-center",children:(0,_.jsx)("lottie-player",{src:"/animation/lottie-loader.json",background:"transparent",speed:"1",style:{width:"150px",height:"150px",minWidth:"150px"},direction:"1",mode:"normal",autoplay:!0,loop:!0})}),(0,_.jsx)("h4",{children:"Generating content..."})]})})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-40 B__bg-black"})]})};var U=l(11163),V=l(24457),R=l(72028);let W=(0,i.createContext)(null),K=e=>{let{children:t,websiteData:l,setWebsiteData:a,pageId:s,refetchWebsiteData:n,setAddingPage:r,type:d,articles:c,refetchArticlesData:B,styleChanges:x,setStyleChanges:p}=e,[u,v]=(0,i.useState)(!1),[h,g]=(0,i.useState)([]),[y,b]=(0,i.useState)(!1),f=(0,U.useRouter)(),j=async(e,t,_,i,r,d,c,x,m,p)=>{try{t&&g(e=>[...e,{sectionId:t,key:c||""}]);let u=await o.Z.post("/v2/regenerate-data",{query:{website_id:l._id.$oid,section_id:t,...x?{}:{page_id:s},slot:m,key:_,type:e,index:i,is_img:r,...d||""===d?{keywords:d}:{},...p||""===p?{article_id:p}:{}}});g(e=>{let l=JSON.parse(JSON.stringify(e)),_=l.findIndex(e=>e.key===c?e.sectionId===t&&e.key===c:e.sectionId===t);return _>-1&&l.splice(_,1),l}),t?(es(s,t,m),x&&"footer_sections"===m?a(e=>{var l;return{...e,footer_sections:null==e?void 0:null===(l=e.footer_sections)||void 0===l?void 0:l.map(e=>t===e.id?{...u.data}:e)}}):a(e=>({...e,pages:e.pages.map(e=>e.page_id===s?{...e,sections:e.sections.map(e=>e.id===t?{...u.data}:e)}:e)}))):"articles"===m?null==B||B():"blogs"===m&&(null==n||n())}catch(e){console.log(e)}},[k,N]=(0,i.useState)(null),[P,I]=(0,i.useState)(null),C=(0,i.useRef)(),Z=async function(e,t,_,i){var n,r,d,c,B;let x=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"items",p=arguments.length>5?arguments[5]:void 0;if("section"===e){let e=null==l?void 0:null===(n=l.pages)||void 0===n?void 0:n.find(e=>e.page_id===s),_=null==e?void 0:e.sections.findIndex(e=>e.id===t);es(s,t,p,void 0,"delete",_)}if(t)try{let n=JSON.parse(JSON.stringify(l));if(i&&"footer_sections"===p){if("section"===e){(null==n?void 0:n.footer_sections)&&(n.footer_sections=n.footer_sections.filter(e=>e.id!==t));let e={footer_sections:n.footer_sections};await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid},data:e}),a(e=>({...e,footer_sections:n.footer_sections}))}else if("item"===e){es(void 0,t,p);let e=null==n?void 0:null===(r=n.footer_sections)||void 0===r?void 0:r.find(e=>e.id===t);(null==e?void 0:null===(d=e.blockProps)||void 0===d?void 0:d[x])&&(0===_||_)&&(null==e?void 0:null===(c=e.blockProps)||void 0===c?void 0:c[x])&&e.blockProps[x].splice(_,1),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,section_id:t,slot:p},data:e}),a(l=>{var _;return{...l,footer_sections:null==l?void 0:null===(_=l.footer_sections)||void 0===_?void 0:_.map(l=>l.id===t?e:l)}})}}else if("section"===e){let e=n.pages.find(e=>e.page_id===s);(null==e?void 0:e.sections)&&(e.sections=e.sections.filter(e=>e.id!==t));let{_id:_,...i}=e||{};await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,page_id:s},data:i}),a(t=>({...t,pages:t.pages.map(t=>t.page_id===s&&e?{...e}:{...t})}))}else if("item"===e){es(s,t,p);let e=null==n?void 0:null===(B=n.pages)||void 0===B?void 0:B.reduce((e,l)=>(l.page_id===s&&(e=l.sections.find(e=>e.id===t)),e),{});(0,m.e$)(null==e?void 0:e.blockProps,x)&&(0===_||_)&&(0,m.e$)(null==e?void 0:e.blockProps,x)&&(0,m.U2)(e.blockProps,x).splice(_,1),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,section_id:t,page_id:s},data:e}),a(l=>({...l,pages:l.pages.map(l=>({...l,sections:l.sections.map(l=>l.id===t?e:l)}))}))}}catch(e){console.error(e)}},T=async(e,t,_,i,n)=>{var r,d;if(_&&("global_sections"===i||"footer_sections"===i)?es(s,t,i):_?es(void 0,void 0,void 0,e):t&&es(s,t,i),_){if("footer_sections"===i){let _=null==l?void 0:null===(r=l.footer_sections)||void 0===r?void 0:r.find(e=>e.id===t);Object.keys(e).forEach(t=>{_=(0,H.TU)(_,{websiteId:l._id.$oid},t,e[t],"section")}),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,section_id:t,slot:i},data:_}),a(e=>({...e,footer_sections:e.footer_sections?e.footer_sections.map(e=>e.id===t?_:e):[]}))}else{let t=JSON.parse(JSON.stringify(l));Object.keys(e).forEach(_=>{t=(0,H.TU)(t,{websiteId:l._id.$oid},_,e[_],"website")}),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid},data:t}),a(e=>({...e,...t}))}}else if(t){let _=null==l?void 0:null===(d=l.pages)||void 0===d?void 0:d.reduce((e,l)=>(l.page_id===s&&(e=l.sections.find(e=>e.id===t)),e),{});Object.keys(e).forEach(i=>{_=(0,H.TU)(_,{websiteId:l._id.$oid,pageId:s,sectionId:t},i,e[i],"section")}),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,section_id:t,page_id:s},data:_}),a(e=>({...e,pages:e.pages.map(e=>({...e,sections:e.sections.map(e=>e.id===t?_:e)}))}))}else"blogs"===i?S(e):"articles"===i&&n&&L(e,n)},L=async(e,t)=>{let _=null==c?void 0:c.find(e=>e._id.$oid===t);Object.keys(e).forEach(t=>{_=(0,H.TU)(_,{websiteId:l._id.$oid,pageId:s},t,e[t],"page")}),await o.Z.post("/v2/edit-article-data",{query:{website_id:l._id.$oid,page_id:s,article_id:t},data:_}),null==B||B()},S=async(e,t)=>{var _;let i=t||s,n=null==l?void 0:null===(_=l.pages)||void 0===_?void 0:_.find(e=>e.page_id===i);es(i,void 0,void 0,e),Object.keys(e).forEach(t=>{n=(0,H.TU)(n,{websiteId:l._id.$oid,page_id:i},t,e[t],"page")}),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,page_id:i},data:n}),a(e=>({...e,pages:e.pages.map(e=>e.page_id===i?{...n}:{...e})}))},D=async(e,t,_,i)=>{let n=JSON.parse(JSON.stringify(l));if(_&&"footer_sections"===i){(null==n?void 0:n.footer_sections)&&(n.footer_sections=(0,H.BE)(n.footer_sections,e,t));let _={footer_sections:n.footer_sections};await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid},data:_}),a(e=>({...e,footer_sections:n.footer_sections}))}else{let _=n.pages.find(e=>e.page_id===s);(null==_?void 0:_.sections)&&(_.sections=(0,H.BE)(_.sections,e,t));let{_id:i,...r}=_||{};await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,page_id:s},data:r}),a(e=>({...e,pages:e.pages.map(e=>e.page_id===s&&_?{..._}:{...e})}))}},F=async(e,t,_,i)=>{try{var n;let r=await o.Z.post("/v2/add-item",{query:{website_id:l._id.$oid,section_id:e,key:t,..._?{}:{page_id:s},slot:i}});(null===(n=r.data)||void 0===n?void 0:n.id)&&(_&&"footer_sections"===i?a(t=>{var l;return{...t,footer_sections:null==t?void 0:null===(l=t.footer_sections)||void 0===l?void 0:l.map(t=>t.id===e?{...r.data}:t)}}):a(t=>({...t,pages:t.pages.map(t=>t.page_id===s?{...t,sections:t.sections.map(t=>t.id===e?{...r.data}:t)}:t)})))}catch(e){console.log(e)}},E=async(e,t,_,i,n,r)=>{b(!0);try{var d;es(s,void 0,r,void 0,"add",t);let c=await o.Z.post("/v2/add-section",{query:{website_id:l._id.$oid,section:e,...n?{}:{page_id:s},slot:r,section_version:i,index:t,keywords:_}});(null===(d=c.data)||void 0===d?void 0:d.id)&&(n&&"footer_sections"===r?a(e=>{let l=JSON.parse(JSON.stringify(e));return l.footer_sections&&t?l.footer_sections.splice(t,0,c.data):l.footer_sections?l.footer_sections.push(c.data):l.footer_sections=[c.data],l}):a(e=>({...e,pages:e.pages.map(e=>{if(e.page_id!==s)return e;{let l=JSON.parse(JSON.stringify(e));return t?l.sections.splice(t,0,c.data):l.sections.push(c.data),l}})}))),setTimeout(()=>{var e;let t=document.getElementById(null===(e=c.data)||void 0===e?void 0:e.id);t&&window.scrollTo({top:(null==t?void 0:t.getBoundingClientRect().top)+window.scrollY-100,behavior:"smooth"})},100),b(!1)}catch(e){console.log(e),b(!1)}},A=async(e,t)=>{a(e=>({...e,generatedPages:!1})),null==r||r(!0);let _=await o.Z.post("/v2/add-page",{query:{website_id:l._id.$oid,title:e,name:t}});if(null==_?void 0:_.data){var i,s;null==r||r(!1),await (null==n?void 0:n());let e=null===(i=_.data)||void 0===i?void 0:null===(s=i.page)||void 0===s?void 0:s.slug;e&&f.pathname.startsWith("/generated")||f.pathname.startsWith("/edit")||f.pathname.startsWith("/live")&&V.EB.includes(window.location.host)?f.push("/".concat("preview"===d?"generated":"edit"===d?"edit":"live","/").concat(l._id.$oid,"/").concat(e)):e&&f.push("/".concat(e))}},K=async e=>{let t=await o.Z.post("/v2/edit-pages-titles",{query:{website_id:l._id.$oid},data:e});(null==t?void 0:t.data)&&(null==n||n())},q=async(e,t)=>{try{let _=await o.Z.post("/v2/edit-page-slug",{query:{website_id:l._id.$oid,page_id:e,slug:t}});(null==_?void 0:_.data)&&(null==n||n())}catch(e){console.log(e)}},O=async(e,t,_)=>{let i=await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,page_id:e},data:{active:t,mainPage:_}});(null==i?void 0:i.data)&&(null==n||n())},G=async(e,t)=>{let _=await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,page_id:e},data:{showInNavbar:t}});(null==_?void 0:_.data)&&(null==n||n())},$=async(e,t)=>{let _=await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,page_id:e},data:{showInFooter:t}});(null==_?void 0:_.data)&&(null==n||n())},Y=async(e,t,_)=>{let i=await o.Z.post("/v2/reorder-pages",{query:{website_id:l._id.$oid,page_id:e,direction:t,navbar_pages:_}});(null==i?void 0:i.data)&&(null==n||n())},J=async e=>{let t=await o.Z.post("/v2/delete-page",{query:{website_id:l._id.$oid,page_id:e}});if(null==t?void 0:t.data){if(s===e){var _,i;f.push("".concat("edit"===d?"/edit/"+(null==l?void 0:null===(_=l._id)||void 0===_?void 0:_.$oid):"/generated/"+(null==l?void 0:null===(i=l._id)||void 0===i?void 0:i.$oid)))}null==n||n()}},Q=async e=>{try{es(void 0,void 0,"styles",e);let t=await o.Z.post("/v2/update-global-styles",{styles:e,website_id:l._id.$oid});t.data&&(null==n||n())}catch(e){w.Am.error("Unable to update global styles")}},X=async e=>{var t;let _=new FormData;_.append("image",e),_.append("website_id",l._id.$oid);let i=await o.Z.post("/v2/upload-image",_,{headers:{"Content-Type":"multipart/form-data"}});return null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.new_url},ee=(e,t)=>{a(l=>{var _,i;return{...l,prompts:(null===(_=l.prompts)||void 0===_?void 0:_.length)?null===(i=l.prompts)||void 0===i?void 0:i.map(e=>{var l;return{...e,count:(e.count||0)+1,pages:null===(l=e.pages)||void 0===l?void 0:l.map(e=>{var l;return{...e,sections:null===(l=e.sections)||void 0===l?void 0:l.map(e=>({...e,prompts:[...e.prompts,{msg:t}]}))}})}}):[{count:1,pages:[{page_id:s||"",sections:[{section_id:e,prompts:[{msg:t}]}]}]}]}})},et=async e=>{try{let{section_id:t,type:_,slot:i}=e;s&&t&&es(s,t,i);let{data:o}=await R.Z.regenerateDesign({website_id:l._id.$oid,page_id:s,section_id:t,type:_,slot:i});(null==o?void 0:o.success)&&(null==o?void 0:o.data)&&a(e=>({...e,pages:e.pages.map(e=>({...e,sections:e.sections.map(e=>e.id===t?{...e,...null==o?void 0:o.data}:e)}))}))}catch(e){console.log(e)}},[el,e_]=(0,i.useState)([]),[ei,eo]=(0,i.useState)([]),ea=(e,t,_)=>{var i;let o=e?l.pages.find(t=>t.page_id===e):void 0,a=e?JSON.parse(JSON.stringify(o)):void 0,s=t?null==a?void 0:null===(i=a.sections)||void 0===i?void 0:i.findIndex(e=>e.id===t):_;return{page:a,sectionIndex:s}},es=function(e,t){var _,i,o;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sections",s=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"edit",r=arguments.length>5?arguments[5]:void 0;if("delete"===n){let t=l.pages.find(e=>e.page_id),_=null==t?void 0:t.sections[r];e_(t=>[...t,{pageId:e,slot:a,type:"add",index:r,sectionData:{..._}}])}else if("add"===n)e_(t=>[...t,{pageId:e,slot:a,type:"delete",index:r}]);else if(t&&e&&"sections"===a){let{page:l,sectionIndex:_}=ea(e,t);if(l&&void 0!==_&&-1!==_){let i=l.sections[_];e_(l=>[...l,{sectionId:t,pageId:e,slot:a,sectionData:{...i}}])}}else if(t&&("footer_sections"===a||"global_sections"===a)){let e=null==l?void 0:null===(_=l[a])||void 0===_?void 0:_.find(e=>e.id===t);e_(l=>[...l,{sectionId:t,slot:a,sectionData:{...e}}])}else{let t={};if(e){let _=l.pages.find(t=>t.page_id===e);null===(i=Object.keys(s))||void 0===i||i.forEach(l=>{t[l]=(0,H.N5)(_,{pageId:e},l)||!1})}else"styles"===a?(t.styles=l.styles,t.theme=l.theme):null===(o=Object.keys(s))||void 0===o||o.forEach(_=>{t[_]=(0,H.N5)(l,{pageId:e},_)||!1});e_(l=>[...l,{pageId:e,payload:t}])}eo([])},en=async e=>{let{sectionId:t,pageId:_,sectionData:i,payload:s,slot:n,index:r,type:d}=e,{page:c,sectionIndex:B}=ea(_,t,r);if("footer_sections"===n||"global_sections"===n)a(e=>{var l;return{...e,[n]:null===(l=e[n])||void 0===l?void 0:l.map(e=>e.id===t?i:e)}}),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,section_id:t,slot:n},data:i});else if(_){if((null==c?void 0:c.sections)&&"delete"===d){let e=null==c?void 0:c.sections[B];c.sections=c.sections.filter(t=>t.id!==(null==e?void 0:e.id))}else(null==c?void 0:c.sections)&&"add"===d?B?c.sections.splice(B,0,i):c.sections.push(i):(null==c?void 0:c.sections)&&"edit"===d&&"sections"===n?c.sections=c.sections.map((e,t)=>t===B?i:e):t||Object.keys(s).forEach(e=>{c=(0,H.TU)(c,{websiteId:l._id.$oid},e,s[e],"website")});a(e=>({...e,pages:e.pages.map(e=>e.page_id===_&&c?{...c}:{...e})})),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid,page_id:_,...t&&"delete"!==d&&"add"!==d?{section_id:t}:{},slot:n},data:t&&"delete"!==d&&"add"!==d?i:c})}else{let e=JSON.parse(JSON.stringify(l));Object.keys(s).forEach(t=>{e=(0,H.TU)(e,{websiteId:l._id.$oid},t,s[t],"website")}),a(e),await o.Z.post("/v2/edit-website-data",{query:{website_id:l._id.$oid},data:e})}},er=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"append";"append"===l&&t?"redo"===e?eo(e=>[...e,t]):e_(e=>[...e,t]):"pop"===l&&("redo"===e?eo(e=>e.slice(0,-1)):e_(e=>e.slice(0,-1)))},ed=()=>{var e,t,_;if(0===el.length)return;let i=el[el.length-1],{sectionId:o,pageId:a,sectionData:s,payload:n,slot:r,index:d,type:c}=i;if("delete"===c){let{page:e,sectionIndex:t}=ea(a,o,d),l=null==e?void 0:e.sections[t];en(i),er("redo",{pageId:a,slot:r,type:"add",index:d,sectionData:{...l}})}else if("add"===c)en(i),er("redo",{pageId:a,slot:r,type:"delete",index:d});else if(o){if("sections"===r){let{page:e,sectionIndex:t}=ea(a,o);if(e&&void 0!==t&&-1!==t){let l=e.sections[t];er("redo",{sectionId:o,pageId:a,slot:r,type:"edit",index:d,sectionData:{...l}}),en({...i,type:"edit"}),eB(o)}}else if("footer_sections"===r||"global_sections"===r){let t=null==l?void 0:null===(e=l[r])||void 0===e?void 0:e.find(e=>e.id===o);t&&(er("redo",{sectionId:o,slot:r,type:"edit",sectionData:{...t}}),en({...i,type:"edit"}),eB(o))}}else if(a){let e={},_=l.pages.find(e=>e.page_id===a);null===(t=Object.keys(n))||void 0===t||t.forEach(t=>{e[t]=(0,H.N5)(_,{pageId:a},t)||!1}),er("redo",{pageId:a,type:"edit",payload:e}),en({...i,type:"edit"})}else{let e={};"styles"===r?e.styles=l.styles:null===(_=Object.keys(n))||void 0===_||_.forEach(t=>{e[t]=(0,H.N5)(l,{pageId:a},t)||!1}),er("redo",{pageId:a,type:"edit",payload:e}),en({...i,type:"edit"})}er("undo",void 0,"pop")},ec=()=>{var e,t,_;if(0===ei.length)return;let i=ei[ei.length-1],{sectionId:o,pageId:a,sectionData:s,payload:n,slot:r,type:d,index:c}=i;if("delete"===d){let e=l.pages.find(e=>e.page_id),t=null==e?void 0:e.sections[c];en(i),er("undo",{pageId:a,slot:r,type:"add",index:c,sectionData:{...t}})}else if("add"===d)en(i),er("undo",{pageId:a,slot:r,type:"delete",index:c});else if(o){if("sections"===r){let{page:e,sectionIndex:t}=ea(a,o);if(e&&void 0!==t&&-1!==t){let l=e.sections[t];er("undo",{sectionId:o,pageId:a,slot:r,type:"edit",sectionData:{...l}}),en({...i,type:"edit"}),eB(o)}}else if("footer_sections"===r||"global_sections"===r){let t=null==l?void 0:null===(e=l[r])||void 0===e?void 0:e.find(e=>e.id===o);t&&(er("undo",{sectionId:o,slot:r,type:"edit",sectionData:{...t}}),en({...i,type:"edit"}),eB(o))}}else if(a){let e={},_=l.pages.find(e=>e.page_id===a);null===(t=Object.keys(n))||void 0===t||t.forEach(t=>{e[t]=(0,H.N5)(_,{pageId:a},t)}),er("undo",{pageId:a,type:"edit",payload:e}),en({...i,type:"edit"})}else{let e={};"styles"===r?e.styles=l.styles:null===(_=Object.keys(n))||void 0===_||_.forEach(t=>{e[t]=(0,H.N5)(l,{pageId:a},t)}),er("undo",{pageId:a,type:"edit",payload:e}),en({...i,type:"edit"})}er("redo",void 0,"pop")},eB=e=>{if(document){let t=document.querySelector("[id='".concat(e,"']"));if(t){let e=t.getBoundingClientRect().top+window.pageYOffset-150;window.scrollTo({top:e,behavior:"smooth"})}}};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(z,{websiteId:l._id.$oid,show:u,fields:k,setEditContentFields:N,setRegenInProgressEL:g,editSectionMetaData:P,setEditSectionMetaData:I,regenerateHandler:()=>{},handleClose:()=>{v(!1),N(null)},handleSave:async e=>{T(e,null==P?void 0:P.sectionId,null==P?void 0:P.editBaseData,null==P?void 0:P.slot,null==P?void 0:P.articleId),v(!1),N(null)},formRef:C,setWebsiteData:a,websiteData:l}),(0,_.jsxs)(W.Provider,{value:{websiteData:l,showEditContentModal:u,deleteData:Z,setShowEditContentModal:v,editContentFields:k,regenInProgressEl:h,setEditContentFields:N,editSectionMetaData:P,setEditSectionMetaData:I,setRegenInProgressEl:g,regenerateData:j,updateSectionData:T,dragSection:D,addItem:F,addSection:E,addPage:A,editPagesTitle:K,togglePage:O,dragPage:Y,deletePage:J,editPageSlug:q,toggleNavbarPage:G,toggleFooterPage:$,updateGlobalStyles:Q,updatePageData:S,uploadImage:X,refetchArticlesData:B,updateArticleData:L,articles:c,styleChanges:x,setStyleChanges:p,pageId:s,addPrompt:ee,regenerateDesign:et,undoHandler:ed,redoHandler:ec,undoStack:el,redoStack:ei},children:[y?(0,_.jsx)(M,{}):null,t]})]})}},76396:function(e,t,l){"use strict";var _=l(85893);l(67294);let i=()=>(0,_.jsxs)("svg",{"aria-hidden":"true",className:"B__w-8 B__h-8 B__text-gray-200 B__animate-spin dark:B__text-gray-600 B__fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,_.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]});t.Z=i},3817:function(e,t,l){"use strict";l.d(t,{Z:function(){return oA}});var _=l(85893),i=l(67294),o=l(9008),a=l.n(o),s=l(77448),n=l(11163),r=l(50167),d=l(5434),c=l(79352),B=l(72028),x=l(71365),m=l(41664),p=l.n(m);let u=e=>{let{showModal:t,handleClose:l,onStep:i}=e;return(0,_.jsx)(_.Fragment,{children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[90%] lg:B__min-w-[400px] B__max-w-fit",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7 B__border-b B__border-solid B__border-blueGray-200",children:[(0,_.jsxs)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold B__mb-0",children:["Video Tutorial"," ",(0,_.jsx)(p(),{href:"https://butternut.ai/tutorials",target:"_blank",className:"B__text-sm B__ml-1",children:"(read all tutorials here) "})]}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:l,children:(0,_.jsx)(d.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsx)("iframe",{className:"B__p-1",width:"920",height:"500",src:"https://www.loom.com/embed/e064c3fd0e6848a3b296c6742bbfa1c9?sid=51e6272a-e5b5-400e-978a-f64b6fe90b4c",frameBorder:"0",allowFullScreen:!0})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})};var v=l(22920),h=l(21988),g=l(24457),y=l(89415),b=l(86893),f=l(8193);let j=e=>{var t,l;let{showModal:o,handleClose:a,containerClassName:s="",headerTitle:n="Change Theme",headerDescription:c="You can change the color and font of the website",options:B={theme:!0,fonts:!0,logo:!1,mode:!0}}=e,{updateGlobalStyles:x,styleChanges:m,setStyleChanges:p,websiteData:u}=(0,i.useContext)(r.o)||{},[j,k]=(0,i.useState)(null==u?void 0:null===(t=u.theme)||void 0===t?void 0:t.theme_color),[w,N]=(0,i.useState)((null==u?void 0:null===(l=u.theme)||void 0===l?void 0:l.mode)||{}),[P,I]=(0,i.useState)([{color:"#212529",bgColor:"#ffffff"},{color:"#ffffff",bgColor:"#000000"}]),[C,Z]=(0,i.useState)(!1),T=async()=>{try{Z(!0),await (null==x?void 0:x({...m,...j?{theme_color:j}:{},...w?{mode:w}:{}})),null==p||p({}),v.Am.success("Styles saved successfully"),a()}catch(e){v.Am.error("Unable to update styles")}Z(!1)},L=()=>{null==p||p(e=>{var t;return{...e,"fontSize-base":(null==e?void 0:e["fontSize-base"])?parseFloat(null==e?void 0:e["fontSize-base"])-1+"px":parseFloat((null==u?void 0:null===(t=u.styles)||void 0===t?void 0:t["fontSize-base"])||"16px")-1+"px"}})},S=()=>{null==p||p(e=>{var t;return{...e,"fontSize-base":(null==e?void 0:e["fontSize-base"])?parseFloat(null==e?void 0:e["fontSize-base"])+1+"px":parseFloat((null==u?void 0:null===(t=u.styles)||void 0===t?void 0:t["fontSize-base"])||"16px")+1+"px"}})},D=()=>{null==p||p(e=>{var t;return{...e,"logo-size":(null==e?void 0:e["logo-size"])?parseFloat(null==e?void 0:e["logo-size"])-.1+"":parseFloat((null==u?void 0:null===(t=u.styles)||void 0===t?void 0:t["logo-size"])||"1")-.1+""}})},F=()=>{null==p||p(e=>{var t;return{...e,"logo-size":(null==e?void 0:e["logo-size"])?parseFloat(null==e?void 0:e["logo-size"])+.1+"":parseFloat((null==u?void 0:null===(t=u.styles)||void 0===t?void 0:t["logo-size"])||"1")+.1+""}})},E=e=>t=>{null==p||p(l=>({...l,..."primary"===e?{"fontfamily-primary":t.target.value,"fontfamily-main":t.target.value}:"secondary"===e?{"fontfamily-secondary":t.target.value}:{}}))},A=e=>{let t=(0,y.tS)(e);null==p||p(e=>({...e,...t}))},H=e=>{N(e);let t=(0,y.at)(e);null==p||p(e=>({...e,...t}))};return(0,_.jsx)(_.Fragment,{children:o?(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"B__z-100 B__absolute B__top-[120%] B__left-1/2 B__-translate-x-1/2 B__bg-white B__rounded-md B__text-[#131332] B__min-w-[280px] md:B__min-w-[300px] lg:B__min-w-[360px] ".concat(s),style:{boxShadow:"-4px 0px 32px 0px #00000033"},children:[(0,_.jsxs)("div",{className:"B__w-full B__p-[16px] B__px-[20px] B__text-[#131332] B__bg-[#3f1dd910] B__flex B__justify-between B__gap-3 B__items-start",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"B__text-[16px] B__font-bold",children:n}),(0,_.jsx)("div",{className:"B__text-[12px] B__font-medium",children:c})]}),(0,_.jsx)(d.FU5,{className:"B__text-[22px] B__cursor-pointer",onClick:()=>{a()}})]}),(0,_.jsxs)("div",{className:"B__px-[20px] B__p-[16px] B__max-h-[70vh] lg:B__max-h-[80vh] hidescrollbar B__overflow-y-auto",children:[(null==B?void 0:B.mode)&&(0,_.jsxs)(_.Fragment,{children:["  ",(0,_.jsxs)("div",{className:"B__flex B__flex-wrap B__gap-[12px] B__items-center ",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"B__font-bold B__text-[16px]",children:"Modes :"}),(0,_.jsx)("p",{className:"B__font-medium B__text-[12px] B__mb-0 B__mt-[6px]"})]}),(0,_.jsx)("div",{className:"B__flex B__items-center B__flex-wrap B__gap-3 B__justify-start",children:null==P?void 0:P.map((e,t)=>(0,_.jsxs)("div",{className:"B__p-2 B__rounded-md B__border B__border-slate-500 B__font-bold B__cursor-pointer B__relative ".concat(((null==w?void 0:w.color)!==e.color||(null==w?void 0:w.bgColor)!==e.bgColor)&&(0!==t||(null==w?void 0:w.color))?"":"B__border-blue-600"),style:{backgroundColor:e.bgColor,color:e.color},onClick:()=>{H(e)},children:[(0,_.jsx)(f.JCu,{className:"B__text-xl"}),((null==w?void 0:w.color)!==e.color||(null==w?void 0:w.bgColor)!==e.bgColor)&&(0!==t||(null==w?void 0:w.color))?(0,_.jsx)(_.Fragment,{}):(0,_.jsxs)("div",{className:"B__absolute B__-top-1.5 B__-right-1.5 B__text-xs B__bg-butternut-button B__rounded-full B__p-0.5 B__text-white",children:[(0,_.jsx)(d.OhQ,{})," "]})]},t))})]})]}),(null==B?void 0:B.theme)&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-[8px] B__pt-[24px]",children:[(0,_.jsx)(d.jqW,{className:"B__text-[18px]"}),(0,_.jsx)("div",{className:"B__text-[14px] B__font-bold",children:"Brand Color"})]}),(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-center B__gap-[12px] B__border B__border-[#00000012] B__p-[20px] B__rounded-xl B__mt-[20px]",children:(0,_.jsx)(h.xS,{color:j,onChange:(e,t)=>{var l,_;k(null==e?void 0:null===(l=e.hex)||void 0===l?void 0:l.slice(0,7)),A(null==e?void 0:null===(_=e.hex)||void 0===_?void 0:_.slice(0,7))},className:"!B__w-[90%]",disableAlpha:!0})})]}),(null==B?void 0:B.fonts)&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-[8px] B__pt-[24px] B__pb-[16px] B__border-b B__border-[#0000001a]",children:[(0,_.jsx)(d.BAW,{className:"B__text-[18px]"}),(0,_.jsx)("div",{className:"B__text-[14px] B__font-bold",children:"Fonts"})]}),(0,_.jsxs)("div",{className:"B__mt-[16px]",children:[(0,_.jsx)("div",{className:"B__font-bold B__text-[16px]",children:"Primary fonts"}),(0,_.jsx)("p",{className:"B__font-medium B__text-[12px] B__mb-0 B__mt-[6px]",children:"All titles of the website"}),(0,_.jsxs)("div",{className:"B__relative B__mt-[16px]",children:[(0,_.jsx)("select",{className:"B__p-[8px] B__rounded-md B__bg-white B__w-full B__border B__border-[#000000cc] B__appearance-none B__relative B__text-[14px]",onChange:E("primary"),children:null===g.F5||void 0===g.F5?void 0:g.F5.map((e,t)=>(0,_.jsx)("option",{value:e,children:e},t))}),(0,_.jsx)("div",{className:"B__absolute B__z-10 B__right-[12px] B__top-1/2 B__-translate-y-1/2 B__text-[#131332c9]",children:(0,_.jsx)(b.bTu,{})})]})]}),(0,_.jsxs)("div",{className:"B__mt-[20px]",children:[(0,_.jsx)("div",{className:"B__font-bold B__text-[16px]",children:"Secondary fonts"}),(0,_.jsx)("p",{className:"B__font-medium B__text-[12px] B__mb-0 B__mt-[6px]",children:"All subtitles and paragraphs"}),(0,_.jsxs)("div",{className:"B__relative B__mt-[16px]",children:[(0,_.jsx)("select",{className:"B__p-[8px] B__rounded-md B__bg-white B__w-full B__border B__border-[#000000cc] B__appearance-none B__text-[14px]",onChange:E("secondary"),children:null===g.QW||void 0===g.QW?void 0:g.QW.map((e,t)=>(0,_.jsx)("option",{value:e,children:e},t))}),(0,_.jsx)("div",{className:"B__absolute B__z-10 B__right-[12px] B__top-1/2 B__-translate-y-1/2 B__text-[#131332c9]",children:(0,_.jsx)(b.bTu,{})})]})]}),(0,_.jsxs)("div",{className:"B__mt-[28px] B__flex B__gap-[12px] B__items-center B__justify-between",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"B__font-bold B__text-[16px]",children:"Font Size"}),(0,_.jsx)("p",{className:"B__font-medium B__text-[12px] B__mb-0 B__mt-[6px]",children:"Applicable for all fonts"})]}),(0,_.jsxs)("div",{className:"B__flex B__items-center",children:[(0,_.jsx)("button",{className:"B__bg-white B__shadow-md B__border B__border-slate-300 B__rounded-l-md B__p-[6px] B__px-[12px] B__text-[18px] B__cursor-pointer",onClick:L,children:(0,_.jsx)(b.ego,{})}),(0,_.jsxs)("button",{className:"B__bg-white B__shadow-md B__border B__border-slate-300 B__rounded-r-md B__p-[6px] B__px-[12px] B__text-[18px] B__cursor-pointer",onClick:S,children:[" ",(0,_.jsx)(b.OvN,{})]})]})]})]}),(null==B?void 0:B.logo)&&(0,_.jsxs)(_.Fragment,{children:["  ",(0,_.jsxs)("div",{className:"B__mt-[20px] B__flex B__gap-[12px] B__items-center B__justify-between",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"B__font-bold B__text-[16px]",children:"Logo size"}),(0,_.jsx)("p",{className:"B__font-medium B__text-[12px] B__mb-0 B__mt-[6px]"})]}),(0,_.jsxs)("div",{className:"B__flex B__items-center",children:[(0,_.jsx)("button",{className:"B__bg-white B__shadow-md B__border B__border-slate-300 B__rounded-l-md B__p-[6px] B__px-[12px] B__text-[18px] B__cursor-pointer",onClick:D,children:(0,_.jsx)(b.ego,{})}),(0,_.jsxs)("button",{className:"B__bg-white B__shadow-md B__border B__border-slate-300 B__rounded-r-md B__p-[6px] B__px-[12px] B__text-[18px] B__cursor-pointer",onClick:F,children:[" ",(0,_.jsx)(b.OvN,{})]})]})]})]}),(0,_.jsxs)("div",{className:"B__mt-[28px] B__flex B__justify-center B__items-center B__gap-[12px] B__text-[14px]",children:[(0,_.jsx)("button",{className:"B__px-[24px] B__py-[8px] B__rounded-md B__bg-butternut-button B__text-white B__flex-1 B__whitespace-nowrap",onClick:e=>{e.stopPropagation(),null==p||p({}),a()},children:"Undo changes"}),(0,_.jsx)("button",{className:"B__px-[24px] B__py-[8px] B__rounded-md B__bg-butternut-button B__text-white B__text-center B__whitespace-nowrap ".concat(C?"":"B__whitespace-nowrap"," B__flex-1"),onClick:T,children:C?"Applying...":"Apply"})]})]})]})}):null})};var k=l(25675),w=l.n(k),N=l(65194);let P=e=>{let{showModal:t,handleClose:l,userId:o,viewMode:a,onRegenerateWebsite:s,websiteData:r,regenerating:c}=e,[x,m]=(0,i.useState)(!1),[p,u]=(0,i.useState)({org_name:(null==r?void 0:r.org_name)||"",keywords:(null==r?void 0:r.keywords)||"",website_type:"multipage"}),[v,h]=(0,i.useState)({org_name:"",keywords:""}),y=(0,n.useRouter)(),b=e=>{m(!0),B.Z.generateWebsite({...e,user_id:o}).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.length)&&y.push("".concat("edit"===a?"/edit/":"/generated/").concat(e.data[0]._id.$oid))})},f=e=>{var t;(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.name)&&(h(t=>({...t,[e.target.name]:""})),u(t=>({...t,[e.target.name]:e.target.value})))},j=()=>{var e;let t=!0;return(null==p?void 0:p.org_name)||(h(e=>({...e,org_name:"Please provide name of your business"})),t=!1),(null==p?void 0:p.keywords)?(null==p?void 0:null===(e=p.keywords)||void 0===e?void 0:e.length)>=1e3&&(h(e=>({...e,keywords:"Maximum 250 characters are allowed"})),t=!1):(h(e=>({...e,keywords:"Please provide keywords"})),t=!1),t},k=()=>{j()&&(c?s(p):b(p))};return(0,_.jsx)(_.Fragment,{children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(N.Z,{isLoading:x}),(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] lg:B__min-w-[400px] B__max-w-[500px] md:B__max-w-[500px] xl:B__max-w-[600px] ",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7 B__border-b B__border-solid B__border-blueGray-200",children:[(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold B__mb-0",children:c?"Regenerate website":"Generate new website"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:l,children:(0,_.jsx)(d.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsx)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto",children:(0,_.jsx)("div",{className:"B__p-5 B__flex B__flex-col B__items-center",children:(0,_.jsx)("div",{className:"B__text-center lg:B__py-7 lg:B__px-0 md:B__mx-5 B__mt-4 sm:B__px-5 B__px-0 B__mx-auto B__w-[423px] B__max-w-full generatebutton",children:(0,_.jsxs)("div",{className:"B__mb-4 B__flex B__flex-col",children:[(0,_.jsxs)("div",{className:"B__relative B__my-3 B__ml-auto",children:[(0,_.jsx)("select",{className:"B__px-5 B__py-2 B__rounded-md B__border-none B__text-base B__font-medium  B__outline-none B__bg-transparent B__w-full B__underline B__appearance-none",name:"language",onChange:f,children:null===g.a2||void 0===g.a2?void 0:g.a2.map((e,t)=>(0,_.jsx)("option",{value:e,children:e},t))}),(0,_.jsx)("div",{className:"B__absolute B__right-4 B__top-1/2 B__-translate-y-1/2 B__z-10 B__text-xl",children:(0,_.jsx)(d.gwH,{})})]}),(0,_.jsx)("div",{className:"B__text-base B__text-left B__font-semibold B__py-2",children:"Business name"}),(0,_.jsx)("input",{type:"text",id:"org_name",name:"org_name",className:"B__bg-white  mobile:B__max-h-[64px] B__max-h-[56px] mobile:B__min-h-[64px] B__min-h-[56px] B__border B__border-[#A1A1AA] B__box-border B__border-opacity-20 B__text-gray-900 B__text-base B__rounded-2xl B__outline-none B__block B__w-full B__pl-6 B__pr-[15px] mobile:B__py-5 B__py-4 lg:placeholder:B__text-[16px] dark:focus:B__ring-blue-500 md:placeholder:B__text-base dark:focus:B__border-blue-500 placeholder:B__text-[14px] ".concat((null==v?void 0:v.org_name)?"B__border-red-400":""),placeholder:"Name of your business",defaultValue:null==r?void 0:r.org_name,onChange:f}),(null==v?void 0:v.org_name)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==v?void 0:v.org_name}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{className:"B__text-base B__text-left B__font-semibold B__mt-3 B__py-2",children:"Keywords"}),(0,_.jsx)("textarea",{rows:3,id:"keywords",name:"keywords",className:"B__mt-2 B__bg-white mobile:B__min-h-[64px] B__min-h-[56px] B__border B__border-[#A1A1AA] B__box-border B__border-opacity-20 B__text-gray-900 B__text-base B__rounded-2xl  B__outline-none B__block B__w-full B__pl-6 B__pr-[15px] mobile:B__py-5 B__py-4 lg:placeholder:B__text-[16px] dark:focus:B__ring-blue-500 md:placeholder:B__text-base dark:focus:B__border-blue-500 placeholder:B__text-[14px] ".concat((null==v?void 0:v.keywords)?"B__border-red-400":""),placeholder:"Describe your business eg. real estate agency for commercial spaces, a tax law consultant for startups etc.",defaultValue:null==r?void 0:r.keywords,onChange:f}),(null==v?void 0:v.keywords)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==v?void 0:v.keywords}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("button",{className:"B__flex  B__bg-gradient-to-b B__shadow-lg B__from-[#A028FF] B__to-[#0F51FC]  lg:B__mt-10 B__mt-6 B__text-white B__max-w-max mobile:B__px-8 B__mx-auto B__px-6 B__py-[12px] mobile:B__leading-auto B__leading-28 B__text-base lg:B__text-xl B__rounded-[16px] B__min-w-[194px] B__justify-center  B__font-bold",onClick:k,children:[(0,_.jsx)(w(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/starIcon.png",alt:"Picture of the author",width:28,height:29,className:"B__mr-4"}),c?"Regenerate":"Generate"]})]})})})})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})};var I=l(1671),C=l(45155);let Z=e=>{let[t,l]=(0,i.useState)(!1),o=(0,n.useRouter)(),[a,B]=(0,i.useState)(""),{websiteData:m,undoStack:p,redoStack:v}=(0,i.useContext)(r.o)||{},[h,g]=(0,i.useState)(!1),[y,b]=(0,i.useState)(!1),[f,k]=(0,i.useState)(!1),[w,N]=(0,i.useState)(!1),[Z,T]=(0,i.useState)("");return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"B__fixed B__w-full B__z-[1003] B__flex B__flex-col B__items-center B__justify-between B__bg-[#ebebeb] B__h-[92px] md:B__h-[62px]",children:[(0,_.jsx)("div",{className:"B__flex B__justify-center B__gap-1 B__items-center B__bg-black B__py-1 md:B__hidden B__w-full",onClick:()=>{k(!0)},children:(0,_.jsx)("span",{className:"B__text-md B__text-white B__underline",children:"Watch Tutorial"})}),(0,_.jsxs)("div",{className:"B__w-full B__flex B__justify-between B__py-[12px] B__px-[24px] lg:B__px-[36px] B__gap-6",children:[(0,_.jsx)("div",{className:"B__flex B__justify-center B__items-center B__gap-[8px] B__cursor-pointer",onClick:()=>o.push("/".concat((null==e?void 0:e.type)==="edit"?"dashboard":"")),children:(0,_.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"40",height:"40",rx:"12",fill:"#3F1DD9"}),(0,_.jsx)("path",{d:"M27 20H13",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,_.jsx)("path",{d:"M20 27L13 20L20 13",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}),(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-end B__gap-[4px] md:B__gap-[12px] xl:B__gap-[24px] B__text-[#3c3c3c] B__font-medium",children:"live"!==e.type?(0,_.jsxs)(_.Fragment,{children:[(null==m?void 0:m.generatedPages)&&(null==m?void 0:m.generatedHiddenPages)&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:" B__relative B__px-[8px]",children:(0,_.jsxs)("button",{className:"B__flex B__items-center B__gap-[6px] B__cursor-pointer ".concat((null==p?void 0:p.length)?"":"B__opacity-50"),onClick:e.undoHandler,disabled:!(null==p?void 0:p.length),children:[(0,_.jsx)(C.rb$,{className:"B__text-[#5959FF] B__text-[24px]"}),(0,_.jsx)("span",{className:"B__text-[16px] B__text-[#3F1DD9] B__hidden xl:B__block B__whitespace-nowrap",children:"Undo"})]})}),(0,_.jsx)("div",{className:" B__relative B__px-[8px]",children:(0,_.jsxs)("button",{className:"B__flex B__items-center B__gap-[6px] B__cursor-pointer ".concat((null==v?void 0:v.length)?"":"B__opacity-50"),onClick:e.redoHandler,disabled:!(null==v?void 0:v.length),children:[(0,_.jsx)(C.Syy,{className:"B__text-[#5959FF] B__text-[24px]"}),(0,_.jsx)("span",{className:"B__text-[16px] B__text-[#3F1DD9] B__hidden xl:B__block B__whitespace-nowrap",children:"Redo"})]})})]}),(0,_.jsx)("div",{className:" B__relative B__px-[8px]",children:(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-[6px] B__cursor-pointer",onClick:e.addPageHandler,children:[(0,_.jsx)(c.nmH,{className:"B__text-[#5959FF] B__text-[24px]"}),(0,_.jsx)("span",{className:"B__text-[16px] B__text-[#3F1DD9] B__hidden lg:B__block B__whitespace-nowrap",children:"Add Page"})]})}),(0,_.jsxs)("div",{className:" B__relative B__px-[8px] ".concat(e.regenerateCount<2?"":" B__opacity-80 B__group/regenerate"),children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-[6px] B__cursor-pointer ".concat(e.regenerateCount<2?"":" B__opacity-80 B__cursor-not-allowed"),onClick:()=>{b(!0)},children:[(0,_.jsx)(d.la_,{className:"B__text-[#5959FF] B__text-[24px]"}),(0,_.jsx)("span",{className:"B__text-[16px] B__text-[#3F1DD9] B__hidden lg:B__block B__whitespace-nowrap",children:"Regenerate"})]}),(0,_.jsx)("div",{className:"B__hidden B__absolute B__-bottom-[32px] B__left-1/2 B__-translate-x-1/2 group-hover/regenerate:B__block B__text-[14px] B__whitespace-nowrap B__px-[12px] B__py-[4px] B__bg-white B__border-[0.5px] B__border-[#eeeeee]",children:"Regenerate limit exceed !"})]}),(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-[6px] B__cursor-pointer B__px-[8px]",onClick:()=>{N(e=>!e)},children:[(0,_.jsx)(d.U8L,{className:"B__text-[#5959FF] B__text-[20px]"}),(0,_.jsx)("span",{className:"B__text-[16px] B__text-[#3F1DD9] B__hidden lg:B__block B__select-none B__whitespace-nowrap",children:"Change Theme"})]}),w?(0,_.jsx)(j,{showModal:w,handleClose:()=>{N(!1)}}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-[6px] B__cursor-pointer B__px-[8px] B__text-[#5959FF]",onClick:()=>{k(!0)},children:[(0,_.jsx)(d.K6X,{className:"B__text-[#5959FF] B__text-[20px]"}),(0,_.jsx)("span",{className:"B__text-[16px] B__text-[#3F1DD9] B__hidden lg:B__block",children:"Tutorial"})]}),(0,_.jsxs)(I.z,{className:"B__gap-[6px] B__text-[#5959FF] !B__border-[#5959FF]",rounded:"lg",shadow:!1,outline:!0,transparent:!0,onClick:()=>{window.open("/live/".concat(e.websiteId),"_blank")},children:[(0,_.jsx)(d.ikY,{className:"B__text-[20px] B__text-[#5959FF] lg:B__hidden"}),(0,_.jsx)("span",{className:"B__text-[16px] B__text-[#3F1DD9] B__hidden lg:B__block",children:"Preview"})]}),(0,_.jsxs)(I.z,{shadow:!1,primary:!0,rounded:"lg",className:"B__whitespace-nowrap",onClick:()=>{"edit"===e.type?o.push("/dashboard"):l(!0)},children:["edit"===e.type?"Go Back to Dashboard":"Next"," "]})]}):(0,_.jsx)(_.Fragment,{})})]})]})}),(0,_.jsx)(P,{showModal:y,handleClose:()=>{b(!1)},viewMode:e.type,onRegenerateWebsite:e.onRegenerateWebsite,websiteData:m,regenerating:!0}),(0,_.jsx)(s.Z,{show:t,handleClose:()=>l(!1),mode:"login",websiteId:e.websiteId}),(0,_.jsx)(x.Z,{handleClose:()=>g(!1),showModal:h,websiteId:e.websiteId}),(0,_.jsx)(u,{handleClose:()=>k(!1),showModal:f})]})};var T=l(98713),L=l.n(T),S=l(53136),D=l(25935);let F=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,description:r,img:d,title_keywords:c,img_keywords:B,description_keywords:x}=s;return(0,_.jsx)("div",{className:"".concat(L()["hero-cover"]),style:{backgroundImage:"url(".concat(d,")")},children:(0,_.jsx)("div",{className:"".concat(L().container),children:(0,_.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"500px",flexWrap:"wrap",margin:"0 auto",height:"100vh"},children:(0,_.jsx)("div",{style:{width:"100%"},className:"".concat(L().column_md8),children:(0,_.jsxs)("div",{className:L()["hero-content"],style:{marginTop:"10rem"},children:[(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)("div",{children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("div",{style:{display:"inline-block",padding:"10px 20px",backgroundColor:"rgba(255,255,255,0.3)"},children:(0,_.jsx)("h1",{className:L()["hero-heading"],style:{color:"#fff",textAlign:"inherit"},children:(0,D.ZP)(n||"")})})})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"".concat(L()["hero-subtexts"]),style:{marginTop:"1rem",color:"#fff"},children:(0,_.jsx)("p",{children:(0,D.ZP)(r||"")})})})]}),(0,_.jsx)("div",{style:{height:100},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:d,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img"}]}})})]})})})})})},E=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,description:r,img:d,title_keywords:c,img_keywords:B,description_keywords:x}=s;return(0,_.jsx)("div",{className:"".concat(L()["hero-cover"]," B__mx-[5px] md:B__mx-[20px]"),style:{backgroundImage:"url(".concat(d,")")},children:(0,_.jsx)("div",{className:"".concat(L().container),children:(0,_.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"500px",flexWrap:"wrap",margin:"0 auto",height:"100vh"},children:(0,_.jsx)("div",{style:{width:"100%"},className:"".concat(L().column_md8),children:(0,_.jsxs)("div",{className:L()["hero-content"],style:{marginTop:"10rem"},children:[(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)("div",{children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("div",{style:{display:"inline-block",padding:"10px 20px",backgroundColor:"rgba(255,255,255,0.3)"},children:(0,_.jsx)("h1",{className:L()["hero-heading"],style:{color:"#fff",textAlign:"inherit"},children:(0,D.ZP)(n||"")})})})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"".concat(L()["hero-subtexts"]),style:{marginTop:"1rem",color:"#fff"},children:(0,_.jsx)("p",{children:(0,D.ZP)(r||"")})})})]}),(0,_.jsx)("div",{style:{height:100},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:d,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img"}]}})})]})})})})})},A=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,description:r,img:d,title_keywords:c,img_keywords:B,description_keywords:x}=s;return(0,_.jsx)("div",{className:"".concat(L()["hero-cover"]),style:{backgroundImage:"url(".concat(d,")")},children:(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"500px",flexWrap:"wrap",margin:"0 auto",height:"100vh"},children:(0,_.jsx)("div",{style:{width:"100%"},className:"",children:(0,_.jsxs)("div",{className:L()["hero-content"],style:{marginTop:"10rem"},children:[(0,_.jsxs)("div",{className:"B__max-w-lg B__mx-[25px] md:B__ml-auto md:B__mr-[50px] B__text-center md:B__text-left B__mt-[10rem] B__py-[10px] B__px-[20px] B__bg-[#ffffffbf]",children:[(0,_.jsx)("div",{children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("div",{style:{display:"inline-block",padding:0,backgroundColor:"transparent"},children:(0,_.jsx)("h1",{className:L()["hero-heading"],style:{color:"#fff",textAlign:"inherit"},children:(0,D.ZP)(n||"")})})})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"".concat(L()["hero-subtexts"]),style:{marginTop:0,color:"#fff"},children:(0,_.jsx)("p",{children:(0,D.ZP)(r||"")})})})]}),(0,_.jsx)("div",{style:{height:100},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:d,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img"}]}})})]})})})})})},H=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,description:r,img:d,title_keywords:c,img_keywords:B,description_keywords:x}=s;return(0,_.jsx)("div",{className:"".concat(L()["hero-cover"]),style:{backgroundImage:"url(".concat(d,")")},children:(0,_.jsx)("div",{className:"".concat(L().container),children:(0,_.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"500px",flexWrap:"wrap",margin:"0 auto",height:"100vh"},children:(0,_.jsx)("div",{style:{width:"100%"},className:"".concat(L().column_md8),children:(0,_.jsxs)("div",{className:L()["hero-content"],style:{marginTop:"10rem"},children:[(0,_.jsxs)("div",{className:"B__max-w-lg B__mx-[25px] md:B__mx-auto B__text-center B__mt-[10rem] B__py-[10px] B__px-[20px] B__bg-[#ffffffbf]",children:[(0,_.jsx)("div",{children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n,regenerateBtn:!0}]},children:(0,_.jsx)("div",{style:{display:"inline-block",padding:"10px 20px",backgroundColor:"transparent"},children:(0,_.jsx)("h1",{className:L()["hero-heading"],style:{color:"#fff",textAlign:"inherit"},children:(0,D.ZP)(n||"")})})})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r,regenerateBtn:!0,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"".concat(L()["hero-subtexts"]),style:{marginTop:0,color:"#fff"},children:(0,_.jsx)("p",{children:(0,D.ZP)(r||"")})})})]}),(0,_.jsx)("div",{style:{height:100},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:d,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img"}]}})})]})})})})})},z=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,description:r,img:d,title_keywords:c,img_keywords:B,description_keywords:x}=s;return(0,_.jsxs)("div",{style:{height:"100vh",display:"flex",alignItems:"center",columnGap:50},className:"B__relative B__p-0 md:B__pt-[100px] md:B__pb-[40px] md:B__px-[50px]",children:[(0,_.jsx)("div",{style:{flex:1},className:"B__absolute md:B__static B__py-0 B__px-[25px] md:B__px-0 B__text-white md:B__text-inherit B__bottom-[40px] md:B__bottom-0",children:(0,_.jsxs)("div",{children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:3},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n,regenerateBtn:!0}]},children:(0,_.jsx)("h1",{className:L()["hero-heading"],style:{color:"inherit",textAlign:"inherit"},children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:2},type:o,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r,regenerateBtn:!0,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("p",{style:{color:"inherit"},className:"".concat(L()["hero-subtexts"]),children:(0,D.ZP)(r||"")})})]})}),(0,_.jsx)("div",{className:"B__flex-1 B__h-full",children:(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(d,")"),height:"100%"},className:"bgImg B__rounded-none md:B__rounded-[100px]",children:(0,_.jsx)("div",{style:{height:"100%",borderRadius:"inherit"},className:"B__bg-[0000004d] md:B__bg-inherit",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:d,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img"}]}})})})})]})};var M=l(63750);let U=e=>{let[t,l]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{var t;let _=()=>l(!0),i=()=>l(!1),o=null===(t=e.current)||void 0===t?void 0:t.parentElement;if(o)return o.addEventListener("mouseenter",_),o.addEventListener("mouseleave",i),()=>{o.removeEventListener("mouseenter",_),o.removeEventListener("mouseleave",i)}},[e]),t},V={active:!0,blockProps:{btn_text:"Button",btn_type:"fill",nav_page_id:"",nav_type:"page",url:""},slot:"cta-button",type:"c_cta_v1"},R=e=>{var t,l,o,a,s;let{blockProps:n,show:c,handleClose:B,parentKey:x,sectionId:m,index:p}=e,[u,v]=(0,i.useState)({}),[g,b]=(0,i.useState)(n||(null==V?void 0:V.blockProps)),f=e=>{var t;(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.name)&&(v(t=>({...t,[e.target.name]:""})),b(t=>({...t,[e.target.name]:e.target.value})))},{websiteData:j,pageId:k,updateSectionData:w}=(0,i.useContext)(r.o)||{},N=(null==j?void 0:j.pages)?null==j?void 0:null===(t=j.pages)||void 0===t?void 0:t.map(e=>({title:e.title,page_id:e.page_id})):[],[P,I]=(0,i.useState)({buttonColorPrimary:!1,buttonColorSecondary:!1}),C=()=>{if(j&&k){var e,t,l;let _=null===(e=null==j?void 0:null===(t=j.pages)||void 0===t?void 0:t.find(e=>e.page_id===k))||void 0===e?void 0:null===(l=e.sections)||void 0===l?void 0:l.find(e=>e.id===m),i=(0,y.N5)(_,{},x);if(null==i?void 0:i.length){let e=JSON.parse(JSON.stringify(i));(null==i?void 0:i[p])?e=e.map((e,t)=>p===t?{...e,blockProps:g}:{...e}):e.push({...V,blockProps:g,id:Date.now().toString()});let t=(0,y.TU)(_,{},x,e,"website");null==w||w(t,m,!1,"sections")}else{let e=[{...V,blockProps:g}],t=(0,y.TU)(_,{},x,e,"website");null==w||w(t,m,!1,"sections")}B()}},Z=()=>{if(j&&k){var e,t,l;let _=null===(e=null==j?void 0:null===(t=j.pages)||void 0===t?void 0:t.find(e=>e.page_id===k))||void 0===e?void 0:null===(l=e.sections)||void 0===l?void 0:l.find(e=>e.id===m),i=(0,y.N5)(_,{},x);if(null==i?void 0:i.length){let e=null==i?void 0:i.filter((e,t)=>t!==p),t=(0,y.TU)(_,{},x,e,"website");null==w||w(t,m,!1,"sections")}B()}},[T,L]=(0,i.useState)(!1),S=(0,i.useRef)(null);return(0,_.jsx)(_.Fragment,{children:c?(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__absolute B__top-8 B__left-[50%] B__-translate-x-1/2 B__z-[999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-full B__min-w-[384px] lg:B__max-w-[384px] xl:B__max-w-[384px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded-2xl B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none B__p-6",style:{boxShadow:"0px 4px 24px 0px #0000001F"},children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center",children:[(0,_.jsx)("div",{}),(0,_.jsx)("button",{className:"B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:B,children:(0,_.jsx)(d.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsxs)("div",{className:"B__relative B__flex-auto B__font-[Lato]",children:[(0,_.jsx)("div",{className:"B__text-[#131332] B__font-bold B__text-base B__mb-1",children:"Link Button to page or URL"}),(0,_.jsx)("div",{className:"B__text-[#131332] B__font-normal B__text-sm B__mb-1",children:"You can select any specific page or paste URL"}),(0,_.jsxs)("form",{className:"B__pt-2",children:[(0,_.jsxs)("div",{className:"B__rounded-lg B__border B__border-[#131332CC] B__px-3 B__py-1 B__my-2 B__flex B__items-center B__justify-between B__gap-2 B__cursor-pointer B__relative",onClick:()=>{L(e=>!e)},children:[(null==g?void 0:g.nav_type)==="page"?(0,_.jsx)(_.Fragment,{children:(null==g?void 0:g.nav_page_id)?null===(l=null==N?void 0:N.find(e=>e.page_id===(null==g?void 0:g.nav_page_id)))||void 0===l?void 0:l.title:"Select"}):"External Url",(0,_.jsx)("div",{className:"B__text-xl",children:(0,_.jsx)(M.IAR,{})}),T?(0,_.jsx)(_.Fragment,{children:(null==g?void 0:g.nav_type)==="page"?(0,_.jsxs)("div",{className:"B__rounded-lg B__px-3.5 B__py-2.5 B__my-3 B__flex B__justify-between B__gap-2 B__flex-col B__absolute B__top-7 B__bg-white B__left-0 B__right-0 B__z-10",style:{boxShadow:"0px 4px 24px 0px #0000001F"},children:[(0,_.jsx)("div",{className:"B__text-xs B__text-[#131332a3] B__py-1",children:"Select page from your website"}),null==N?void 0:N.map((e,t)=>(0,_.jsx)("div",{className:"B__text-sm B__text-[#131332] B__font-bold B__cursor-pointer",onClick:t=>{t.stopPropagation(),b(t=>({...t,nav_page_id:e.page_id})),L(!1)},children:e.title},t)),(0,_.jsx)("div",{className:"B__text-[#3f1dd9] B__border-t B__border-[#e7e7e7] B__pt-2 B__cursor-pointer",onClick:e=>{e.stopPropagation(),b(e=>({...e,nav_type:"url"})),L(!1)},children:"or add external URL"})]}):(0,_.jsx)("div",{className:"B__rounded-lg B__border B__border-[#131332CC] B__px-3.5 B__py-2 B__my-3 B__flex B__justify-between B__gap-2 B__flex-col B__absolute B__top-7 B__bg-white B__left-0 B__right-0 B__z-10",style:{boxShadow:"0px 4px 24px 0px #0000001F"},children:(0,_.jsx)("div",{className:"B__text-sm B__text-[#131332] B__py-1 B__font-bold B__cursor-pointer",onClick:e=>{e.stopPropagation(),b(e=>({...e,nav_type:"page"})),L(!1)},children:"Select from pages"})})}):(0,_.jsx)(_.Fragment,{})]}),(null==g?void 0:g.nav_type)==="url"?(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("input",{className:"B__rounded-lg B__border B__border-[#131332CC] B__px-3 B__py-2 B__my-3 B__text-sm focus:B__outline-none focus:B__border-blue-500 B__w-full B__mt-2 B__bg-white disabled:B__opacity-75",name:"url",placeholder:"Paste URL here",onChange:f,value:null==g?void 0:g.url,style:{boxShadow:"0px 25px 60px 0px #00000014"}})]}):"",(0,_.jsxs)("div",{className:"B__flex B__justify-between B__gap-3 B__items-center B__mt-3",children:[(0,_.jsxs)("div",{className:"B__text-base B__font-bold B__font-[Lato] B__flex B__flex-col B__w-[60%]",children:["Button Style",(0,_.jsx)("div",{className:"B__text-xs B__font-normal",children:"Filled with solid color or outlined"})]}),(0,_.jsxs)("select",{className:"B__px-3 B__py-1.5  B__text-sm B__border B__border-[#131332CC] B__rounded-lg focus:B__outline-none focus:B__border-blue-500 B__w-[40%] B__bg-white disabled:B__opacity-75 B__appearance-none",name:"btn_type",placeholder:"",onChange:f,value:null==g?void 0:g.btn_type,style:{boxShadow:"0px 25px 60px 0px #00000014"},ref:S,children:[(0,_.jsx)("option",{value:"fill",children:"Fill"}),(0,_.jsx)("option",{value:"bordered",children:"Bordered"})]}),(0,_.jsx)("div",{className:"B__text-sm B__absolute B__right-4",onClick:()=>{var e;null==S||null===(e=S.current)||void 0===e||e.click()},children:(0,_.jsx)(d.FNi,{className:"B__rotate-90 B__text-base"})})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-between B__gap-3 B__items-center B__mt-3",children:[(0,_.jsxs)("div",{className:"B__text-base B__font-bold B__font-[Lato] B__flex B__flex-col B__w-[60%]",children:["Button Text",(0,_.jsx)("div",{className:"B__text-xs B__font-normal",children:"Add call to action of button ie. name"})]}),(0,_.jsx)("input",{className:"B__px-3 B__py-1.5 B__text-sm B__border B__border-[#131332CC] B__rounded-lg focus:B__outline-none B__w-[40%]  disabled:B__opacity-75",name:"btn_text",placeholder:"Add text here",onChange:f,value:null==g?void 0:g.btn_text,style:{boxShadow:"0px 25px 60px 0px #00000014"}})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-between B__gap-3 B__items-center B__mt-3",children:[(0,_.jsxs)("div",{className:"B__text-base B__font-bold B__font-[Lato] B__flex B__flex-col B__w-[60%]",children:["Color",(0,_.jsx)("div",{className:"B__text-xs B__font-normal",children:"Button color"})]}),(0,_.jsxs)("div",{className:"B__rounded-lg B__border B__border-[#131332CC] B__px-3 B__py-1.5 B__flex B__items-center B__justify-start B__gap-1 B__cursor-pointer B__relative B__w-[40%]",onClick:()=>{I(e=>({...e,buttonColorPrimary:!e.buttonColorPrimary}))},children:[(0,_.jsx)("div",{className:"B__w-4 B__h-4 B__rounded-full B__border B__border-[#131332CC] B__cursor-pointer",style:{backgroundColor:(null==g?void 0:g.buttonColorPrimary)||(null==j?void 0:null===(o=j.styles)||void 0===o?void 0:o["background-color-primary"])}}),(0,_.jsx)("span",{className:"B__text-sm",children:(null==g?void 0:g.buttonColorPrimary)||(null==j?void 0:null===(a=j.styles)||void 0===a?void 0:a["background-color-primary"])}),(0,_.jsx)("div",{className:"B__text-sm B__absolute B__right-1",children:(0,_.jsx)(d.FNi,{className:"B__rotate-90 B__text-base"})}),(null==P?void 0:P.buttonColorPrimary)&&(0,_.jsx)("div",{className:"B__w-[200px] B__absolute B__top-9 B__left-0",children:(0,_.jsx)(h.xS,{color:(null==g?void 0:g.buttonColorPrimary)||(null==j?void 0:null===(s=j.styles)||void 0===s?void 0:s["background-color-primary"]),onChange:(e,t)=>{var l;let _=null==e?void 0:null===(l=e.hex)||void 0===l?void 0:l.slice(0,7);b(e=>({...e,buttonColorPrimary:_,buttonColorSecondary:(0,y.CN)(_)}))},className:"!B__w-[90%]",disableAlpha:!0})})]})]})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-center B__flex-col B__items-center B__gap-3 B__mt-5",children:[(0,_.jsx)("button",{className:"B__text-white B__bg-butternut-button B__text-base B__font-bold B__px-5 B__py-2 B__rounded-lg B__font-[Lato] B__w-full",onClick:C,children:"Save Button"}),(0,_.jsxs)("button",{className:"B__text-[#e31a00]  B__text-base B__font-bold B__px-5 B__rounded-lg B__font-[Lato] B__w-full",onClick:Z,children:["Delete"," "]})]})]})]})})})}):null})};var W=l(21349);let K=e=>{var t;let{active:l,components:o,slot:a,className:s,viewMode:c,parentKey:B,sectionId:x,id:m,wrapperClassName:p=""}=e,u=(0,n.useRouter)(),[v,h]=(0,i.useState)({show:!1,index:0}),y=(0,i.useRef)(null),b=(0,i.useRef)(null),f=(0,i.useRef)(null),j=U(y),{websiteData:k}=(0,i.useContext)(r.o)||{},w=e=>{let{blockProps:t}=e;if((null==t?void 0:t.nav_type)==="page"){if(k){var l,_;let e=(null===(l=null==k?void 0:null===(_=k.pages)||void 0===_?void 0:_.find(e=>e.page_id===(null==t?void 0:t.nav_page_id)))||void 0===l?void 0:l.slug)||"";u.pathname.startsWith("/generated")||u.pathname.startsWith("/edit")||u.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?u.push("".concat("/".concat("preview"===c?"generated":"edit"===c?"edit":"live"),"/").concat(k._id.$oid,"/").concat(e)):u.push("/".concat(e))}}else window&&window.open(null==t?void 0:t.url,"_blank")};return(0,_.jsxs)("div",{ref:y,className:"B__flex B__gap-3 B__items-center B__flex-wrap B__relative ".concat(p),children:[null==o?void 0:o.map((e,t)=>{var l,i,a,n,r;return(0,_.jsxs)("div",{className:" B__relative",style:{"--background-color-primary":(null==e?void 0:null===(l=e.blockProps)||void 0===l?void 0:l.buttonColorPrimary)||(null==k?void 0:null===(i=k.styles)||void 0===i?void 0:i["background-color-primary"]),"--background-color-secondary":(null==e?void 0:null===(a=e.blockProps)||void 0===a?void 0:a.buttonColorSecondary)||"#ffffff"},children:[(0,_.jsxs)("button",{className:"B__relative B__px-5 B__py-2 B__rounded-primary B__font-bold hover:B__-translate-y-1 B__transform B__transition B__duration-200 hover:B__shadow-btn focus:B__opacity-90 focus:B__ring-1 B__ring-opacity-70 focus:B__ring-[color:var(--background-color-primary)] ".concat((null==e?void 0:null===(n=e.blockProps)||void 0===n?void 0:n.btn_type)==="fill"?"B__bg-primary B__text-[color:var(--background-color-secondary)]":"B__border B__border-[color:var(--background-color-primary)] B__text-[color:var(--background-color-primary)]"," ").concat(s||""),type:"button",onClick:()=>w(e),children:[null==e?void 0:null===(r=e.blockProps)||void 0===r?void 0:r.btn_text,"live"!==c?(0,_.jsx)("div",{className:"B__cursor-pointer B__absolute B__right-0 B__rounded-md B__px-2 B__py-1.5 B__bg-[#5959ff] B__text-white B__top-[50%] B__-translate-y-1/2 B__text-base B__font-medium ".concat(j?"":"B__invisible"),onClick:e=>{e.stopPropagation(),h({show:!0,index:t})},children:(0,_.jsx)(d.zmo,{})}):""]}),(null==o?void 0:o.length)&&t===(null==o?void 0:o.length)-1&&"live"!==c?(0,_.jsx)("div",{ref:b,className:"B__cursor-pointer B__px-3 B__py-2 B__border B__border-[color:var(--color-main-light)] B__border-dashed B__rounded-primary B__text-main B__text-sm B__font-medium ".concat(j?"":"B__opacity-30 md:B__opacity-0"," B__absolute B__right-[-0.75rem] B__translate-x-full B__bottom-[1px] ").concat(s||""),onClick:()=>{h({show:!0,index:(null==o?void 0:o.length)||0})},children:(null==o?void 0:o.length)?"+":"+ Add Button"}):""]},t)}),(null==o?void 0:o.length)||"live"===c?"":(0,_.jsx)("div",{ref:f,className:"B__cursor-pointer B__px-3 B__py-2 B__z-50 B__border B__border-[color:var(--color-main-light)] B__border-dashed B__rounded-primary B__text-main B__text-sm B__font-medium B__opacity-30 md:B__opacity-30 ".concat(j?"md:B__opacity-60":""," ").concat(s||""),onClick:()=>{h({show:!0,index:(null==o?void 0:o.length)||0})},children:"+ Add Button"}),"live"!==c&&v.show&&(0,_.jsx)(W.Z,{alignCenter:!0,targetRef:b.current?b:f,offset:{top:-20},children:(0,_.jsx)(R,{show:null==v?void 0:v.show,blockProps:null==o?void 0:null===(t=o[(null==v?void 0:v.index)||0])||void 0===t?void 0:t.blockProps,handleClose:()=>{h({show:!1})},parentKey:B,sectionId:x,index:(null==v?void 0:v.index)||0})})]})},q=e=>{var t;let{id:l,sectionLocation:o,slot:a,viewMode:s,blockProps:n}=e,{title:r,items:d}=n,[c,B]=(0,i.useState)([]);return(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:"".concat(L().section," ").concat(L().section_spacing," faq B__mt-[40px]"),style:{color:"#000",backgroundColor:"#fff"},children:[(0,_.jsx)("div",{className:L().container,children:(0,_.jsx)(S.Z,{type:s,sectionId:l,sectionLocation:o,slot:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",field_label:"Title",key:"blockProps.title"}]},children:(0,_.jsx)("div",{children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(r||"")})})})}),(0,_.jsx)("div",{className:"".concat(L().container),children:d.map((e,t)=>{let i=c.includes(t);return(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,style:{height:void 0},editBtn:{style:{zIndex:1},fields:[{name:"question",placeholder:"Question",type:"texteditor",value:e.question,field_label:"Question",key:"blockProps.items[".concat(t,"].question")},{name:"answer",placeholder:"Answer",type:"texteditor",value:e.answer,field_label:"Answer",key:"blockProps.items[".concat(t,"].answer")}]},deleteBtn:{deleteType:"item",itemIndex:t,style:{top:0,right:40}},children:(0,_.jsxs)("div",{style:{borderBottom:"1px solid #bdacac"},className:"mt-3 ".concat(L().faqWrapper),children:[(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsx)("button",{style:{backgroundColor:"transparent",border:"none",zIndex:1,padding:0,color:"#000"},onClick:()=>{B(e=>{let l=JSON.parse(JSON.stringify(e)),_=l.findIndex(e=>e===t);return _>-1?l.splice(_,1):l.push(t),l})},children:(0,_.jsx)("h4",{className:"".concat(L().faq_question_text),style:{textAlign:"left"},children:(0,D.ZP)(e.question||"")})}),(0,_.jsx)("button",{style:{backgroundColor:"transparent",border:"none",zIndex:1,color:"#000"},onClick:()=>{B(e=>{let l=JSON.parse(JSON.stringify(e)||""),_=l.findIndex(e=>e===t);return _>-1?l.splice(_,1):l.push(t),l})},children:i?(0,_.jsx)(M.Wuz,{}):(0,_.jsx)(M.B8K,{})})]}),i&&(0,_.jsx)("div",{className:L().faq_answer_text,style:{padding:"10px 10px 10px 0",color:"#000"},children:(0,D.ZP)(e.answer||"")})]})},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:s})]}),(0,_.jsx)("div",{})]})};var O=l(14142),G=l.n(O);let $=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s,active:n}=e,{items:r}=s;return(0,_.jsx)("div",{style:{backgroundColor:"#f9f9f9",marginTop:"40px"},children:(0,_.jsxs)("div",{style:{padding:"80px 20px",margin:"0 auto",maxWidth:800},children:[null==r?void 0:r.map((e,t)=>(0,_.jsx)("div",{children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"quote",placeholder:"Quote",type:"texteditor",value:e.quote,key:"blockProps.items[".concat(t,"].quote"),field_label:"Quote"},{name:"author",placeholder:"Author",type:"texteditor",value:e.author,key:"blockProps.items[".concat(t,"].author"),field_label:"Author"}]},children:(0,_.jsxs)("div",{children:[(0,_.jsx)("h1",{style:{textAlign:"center",lineHeight:"1.3"},className:"text",children:(0,D.ZP)(e.quote||"")}),(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:5,marginTop:15},children:[(0,_.jsx)("div",{style:{height:1,width:20,backgroundColor:"#000"}}),(0,_.jsx)("h4",{className:"text ".concat(G().authorTextContainer),style:{textAlign:"center"},children:(0,D.ZP)(e.author||"")})]})]})})},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},Y=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s,active:n}=e,{items:r}=s;return(0,_.jsxs)("div",{className:"B__mt-[40px]",children:[null==r?void 0:r.map((e,t)=>(0,_.jsx)("div",{children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0,style:{position:"relative",top:"100px"}},uploadBtn:{fields:[{name:"img_url",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}],style:{position:"relative",top:"100px"}},children:[(0,_.jsx)("div",{className:"".concat(G().quotes_var_2_cover),style:{backgroundImage:"url(".concat(e.img,")")},children:(0,_.jsx)("div",{style:{textAlign:"center",position:"relative"},children:(0,_.jsx)("div",{className:G().container,children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"quote",placeholder:"Quote",type:"texteditor",value:e.quote,key:"blockProps.items[".concat(t,"].quote"),field_label:"Quote"},{name:"author",placeholder:"Author",type:"texteditor",value:e.author,key:"blockProps.items[".concat(t,"].author"),field_label:"Author"}]},children:[(0,_.jsx)("h1",{children:(0,_.jsx)("p",{className:"".concat(G().mt4," ").concat(G().quote_var_1_quote),style:{color:"white"},children:(0,D.ZP)(e.quote||"")})}),(0,_.jsxs)("p",{className:G().quote_var_1_authors,style:{color:"white"},children:[" ","- ",(0,D.ZP)(e.author||"")]})]})})})})," "]})},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var J=l(2050);let Q=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d,title_keywords:c}=n;return(0,_.jsxs)("div",{style:{margin:"80px 0 40px"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:40,rowGap:20,marginTop:20,padding:"0 20px"},children:d.map((e,t)=>(0,_.jsxs)("div",{style:{padding:20,width:300},className:"border",children:[(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:20,zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,width:150,height:150,style:{borderRadius:"50%",objectFit:"cover",height:"150px",width:"150px",marginLeft:"auto",marginRight:"auto"}})})}),(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{style:{textAlign:"center"},className:"text",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("p",{className:"text-p",style:{marginTop:10,textAlign:"center",fontSize:"1rem"},children:(0,D.ZP)(e.description||"")})]})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},X=e=>{var t;let{id:l,sectionLocation:o,slot:a,viewMode:s,active:n,blockProps:r}=e,{title:d,items:c,title_keywords:B}=r,[x,m]=(0,i.useState)(-1),p=-1;return(0,i.useEffect)(()=>{m(-1)},[r]),(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{style:{marginTop:"80px 40px 40px 40px"},children:(0,_.jsxs)("div",{className:L().services_var_1_container,children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:d||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(d||"")})}),(0,_.jsx)("div",{className:L().services_container,style:{columnGap:70},children:c.map((e,t)=>(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{style:{width:320,height:320,backgroundImage:"url(".concat(e.img,")"),backgroundPosition:"center center",backgroundSize:"cover"},className:L().services_var_1_img,children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,style:{zIndex:"999"},deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:"20px"}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]}})}),(0,_.jsx)("div",{className:L().services_var_1_subcard,style:{textAlign:"left",height:x>0?x:"auto"},ref:e=>{((null==e?void 0:e.clientHeight)||-1)>p&&(p=(null==e?void 0:e.clientHeight)||-1),m(p)},children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"text",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("p",{className:"text-p",style:{marginTop:10,fontSize:"1rem"},children:(0,D.ZP)(e.description||"")})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==r?void 0:null===(t=r.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:s})]})})})},ee=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"".concat(L().section),style:{marginTop:"40px"},children:[(0,_.jsxs)("div",{className:L().container,children:[(0,_.jsx)("div",{className:"".concat(L().pt0," ").concat(L().pb5),children:(0,_.jsx)("div",{children:(0,_.jsx)("div",{"data-aos":"fade-up",children:(0,_.jsx)("div",{style:{position:"relative"},className:L().editHoverContainer,children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(r||"")})})})})})}),(0,_.jsx)("div",{className:L().services_container,children:d.map((e,t)=>(0,_.jsx)("div",{className:L().column,"data-aos":"fade-up","data-aos-delay":100*t,children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:"20px"}},children:(0,_.jsxs)("div",{className:L().testimonial_card,children:[(0,_.jsx)("div",{style:{position:"relative"},className:L().editHoverContainer,children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:999},deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:"20px"}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{src:e.img,alt:(0,J.s9)(e.title),width:150,height:150,className:"img-circle",style:{width:"150px",height:"150px",marginLeft:"auto",marginRight:"auto"}})})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:(0,_.jsxs)("div",{style:{position:"relative"},children:[(0,_.jsx)("h3",{className:L().services_var_4_card_heading,style:{fontSize:"20px"},children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("p",{className:L().services_var_4_description,children:(0,D.ZP)(e.description||"")})]})})]})})},t))})]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},et=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d,title_keywords:c}=n;return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{children:(0,_.jsxs)("div",{className:"".concat(L().services_var_5_container," B__mt-[40px]"),children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:L().container,style:{marginTop:40},children:(0,_.jsx)("div",{className:L().services_container,children:d.map((e,t)=>(0,_.jsx)("div",{className:L().column,"data-aos":"fade-up","data-aos-delay":100*t,children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},type:a,deleteBtn:{deleteType:"item",itemIndex:t},children:(0,_.jsxs)("div",{className:L().services_var_3_card,style:{backgroundColor:"white",paddingBottom:"0px"},children:[(0,_.jsx)("div",{style:{position:"relative",paddingTop:"20px"},className:L().editHoverContainer}),(0,_.jsx)("div",{style:{position:"relative",top:"-50px"},children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:L().card_heading,children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{style:{height:1,width:"100%",backgroundColor:"#CCCCCC",margin:"20px 0"}}),(0,_.jsx)("p",{className:L().services_description,children:(0,D.ZP)(e.description||"")})]})}),(0,_.jsx)("p",{}),(0,_.jsx)("p",{})]})})},t))})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})})},el=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d,title_keywords:c}=n;return(0,_.jsxs)("div",{style:{marginTop:"80px"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{style:{marginTop:40},children:(0,_.jsx)("div",{className:L().services_var_7_container,children:d.map((e,t)=>(0,_.jsx)("div",{children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:"20px"}},children:(0,_.jsxs)("div",{style:{textAlign:"left"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{width:300,height:350,src:e.img,alt:(0,J.s9)(e.title),style:{objectFit:"cover",height:"200px"}})}),(0,_.jsx)("div",{style:{maxWidth:"300px",padding:"0 5px",marginTop:20},children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"text",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("p",{className:"text-p",style:{marginTop:10,fontSize:"1rem"},children:(0,D.ZP)(e.description||"")})]})})]})})},t))})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var e_=l(89583),ei=l(454);let eo=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d,title_keywords:c}=n,B=[e_.$d1,e_.QJe,e_.sI3],x=Math.floor(Math.random()*B.length);return B[x],(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{children:(0,_.jsxs)("div",{className:"".concat(L().services_var_1_container," B__mt-[40px]"),style:{backgroundColor:"white"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:L().services_container,style:{marginTop:"5rem"},children:d.map((e,t)=>(0,_.jsx)("div",{className:L().services_var_1_column,children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:"20px"}},children:[(0,_.jsx)(ei.eqi,{size:100}),(0,_.jsx)("div",{children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h2",{className:L().card_heading,style:{fontSize:"20px"},children:e.title}),(0,_.jsx)("p",{className:L().services_description,children:e.description})]})})]})},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})})};var ea=l(98187),es=l.n(ea);let en=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,type:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:"".concat(es().container," B__mt-[40px]"),children:[(0,_.jsx)("div",{style:{position:"relative",maxWidth:300},className:L().editHoverContainer,children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{style:{textAlign:"center",fontSize:"2rem"},className:"text",children:(0,D.ZP)(r||"")})})}),(0,_.jsx)("div",{style:{display:"flex",columnGap:40,rowGap:40,flexWrap:"wrap",maxWidth:600},children:d.map((e,t)=>(0,_.jsx)("div",{style:{position:"relative"},className:"".concat(L().editHoverContainer),children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t,icon:!0,className:"B__text-[#5959FF]",style:{top:10,right:10,color:"#5959FF"}},regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},type:a,children:(0,_.jsx)("div",{style:{width:150,height:150,backgroundImage:"url(".concat(e.img,")"),backgroundPosition:"center center",backgroundSize:"cover"}})})},t))})]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},er=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,components:r}=a;return(0,_.jsxs)("div",{style:{marginTop:"80px"},children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(s||"")})}),n.map((e,a)=>(0,_.jsxs)("div",{style:{display:"flex",flexDirection:a%2==0?"row":"row-reverse",alignItems:"center"},children:[(0,_.jsx)("div",{style:{flex:1,height:480,width:"100%",backgroundImage:"url(".concat(e.img,")"),backgroundSize:"cover",backgroundPosition:"center center"},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]}})}),(0,_.jsx)("div",{style:{flex:1},children:(0,_.jsx)("div",{className:L().featuresTextWrapper_var_1,style:{padding:"0 20px",maxWidth:550,margin:"0 auto"},children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},deleteBtn:{deleteType:"item",itemIndex:a,style:{padding:0,top:10,right:10}},editBtn:{style:{margin:"10px 10px"},fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(a,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h2",{className:L().features_subtitle,children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:L().features_description,children:(0,D.ZP)(e.description||"")})]})})})]},a)),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==r?void 0:r.filter(e=>"cta-button"===e.slot),className:"B__my-5 B__mt-10",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:o})]})},ed=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"".concat(L().section," features"),style:{marginTop:"40px"},children:[(0,_.jsxs)("div",{className:L().container_2,children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(n||"")})}),r.map((e,t)=>(0,_.jsxs)("div",{className:L().features_var_1_wrapper,style:{flexDirection:t%2==0?"row-reverse":"row"},children:[(0,_.jsx)("div",{style:{flex:"1"},className:L().editHoverContainer,children:(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),maxWidth:500,width:"100%",height:550},className:"bgImg",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]}})})}),(0,_.jsx)("div",{style:{flex:"1",justifyContent:"center",position:"relative"},children:(0,_.jsx)("div",{className:L().featuresTextWrapper_var_1,children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h2",{className:L().features_subtitle,children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:L().features_description,children:(0,D.ZP)(e.description||"")})]})})})]},t))]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},ec=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"".concat(L().section," features"),style:{backgroundColor:"#f9f9f9",marginTop:"40px"},children:[(0,_.jsx)("div",{children:(0,_.jsxs)("div",{className:L().container_2,children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().features_var_2_heading,children:(0,D.ZP)(n||"")})}),r.map((e,t)=>(0,_.jsxs)("div",{className:L().features_var_1_wrapper,style:{flexDirection:t%2==0?"row-reverse":"row"},children:[(0,_.jsx)("div",{style:{flex:"1",justifyContent:"center",alignItems:"center"},className:L().editHoverContainer,children:(0,_.jsx)("div",{style:{padding:10},children:(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),maxWidth:500,width:"100%",height:550},className:"bgImg",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]}})})})}),(0,_.jsx)("div",{style:{flex:"1",justifyContent:"center",position:"relative"},children:(0,_.jsx)("div",{className:L().featuresTextWrapper_var_1,style:{margin:t%2==0?"0 auto":0},children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:e.keywords,isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:0,top:10,right:10}},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h2",{className:L().features_subtitle,style:{textAlign:"left"},children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:L().features_description,style:{textAlign:"left"},children:(0,D.ZP)(e.description||"")})]})})})]},t))]})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},eB=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"".concat(L().section," features"),style:{marginTop:"40px"},children:[(0,_.jsx)("div",{children:(0,_.jsxs)("div",{className:L().container,children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{children:r.map((e,t)=>(0,_.jsxs)("div",{className:L().features_var_1_wrapper,style:{gap:"0px",marginTop:"5rem",flexWrap:"wrap",flexDirection:t%2==0?"row":"row-reverse"},children:[(0,_.jsx)("div",{style:{flex:"1",textAlign:"center",marginBottom:"20px"},children:(0,_.jsx)("div",{className:"".concat(L().feature3_img_container),children:(0,_.jsx)("div",{style:{maxWidth:400,width:"100%",height:600,backgroundImage:"url(".concat(e.img,")"),backgroundSize:"cover",backgroundPosition:"center center",marginLeft:t%2==0?"auto":void 0},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]}})})})}),(0,_.jsx)("div",{style:{flex:"1",justifyContent:"center",position:"relative"},children:(0,_.jsx)("div",{className:L().featuresTextWrapper_var_1,style:{maxWidth:"400px"},children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:e.keywords,isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:0,top:10,right:10}},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h2",{className:L().features_subtitle,children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:L().features_description,style:{color:"#000"},children:(0,D.ZP)(e.description||"")})]})})})]},t))})]})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},ex=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"".concat(L().section," features"),style:{marginTop:"40px"},children:[(0,_.jsx)("div",{children:(0,_.jsxs)("div",{className:L().container_2,children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",rowGap:80},className:"".concat(L().feature4ItemContainer),children:r.map((e,t)=>(0,_.jsxs)("div",{style:{display:"flex",width:"100%",margin:"0 auto"},className:"".concat(L().feature4Item),children:[(0,_.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")")},className:"".concat(L().feature4ItemImg),children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]}})}),(0,_.jsx)("div",{className:"".concat(L().feature4ItemTxt),style:{backgroundColor:"#f9f9f9"},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:e.keywords,isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:0,top:10,right:10}},editBtn:{style:{margin:"10px 10px"},fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:(0,_.jsxs)("div",{children:[(0,_.jsx)("h4",{className:"text",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("p",{className:"text-p",children:(0,D.ZP)(e.description||"")})]})})})]}),(0,_.jsx)("div",{style:{flex:1,backgroundColor:"#f7f7f7"},className:"".concat(L().feature4ItemEmpty),children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:e.keywords,isImg:!1},editBtn:{style:{margin:"10px 10px"},fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:(0,_.jsxs)("div",{children:[(0,_.jsx)("h4",{className:L().features_subtitle,children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:L().features_description,children:(0,D.ZP)(e.description||"")})]})})})]},t))})]})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var em=l(99036);let ep=(0,em.tv)({base:"B__font-secondary",variants:{globalCss:{true:"global_css"},verticalPadding:{true:"section-vertical-padding"},containerMaxWidth:{true:"custom-container-max-width"},center:{true:"B__mx-auto"}},defaultVariants:{globalCss:!0,verticalPadding:!0,containerMaxWidth:!0,center:!0}}),eu=e=>{var t;let{children:l,enableCTA:i,enableActionWrapper:o,id:a,sectionLocation:s,slot:n,viewMode:r,blockProps:d,...c}=e;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:ep(c),children:l}),(0,_.jsxs)("div",{className:"B__flex B__flex-col",children:[o&&(0,_.jsx)(S.Z,{sectionId:a,sectionLocation:s,slot:n,type:r,addItemBtn:{key:"blockProps.items"}}),i&&(0,_.jsx)(K,{components:null==d?void 0:null===(t=d.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:a,parentKey:"blockProps.components",viewMode:r})]})]})},ev=(0,em.tv)({base:"B__text-primary B__font-semibold B__font-primary B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words lg:B__max-w-[80%]",variants:{center:{true:"B__text-center B__mx-auto",false:"B__text-left"}},defaultVariants:{center:!0}}),eh=e=>{let{children:t,center:l}=e;return(0,_.jsx)("h2",{className:ev({center:l}),children:t})},eg=(0,em.tv)({base:"B__text-primary B__font-secondary B__max-w-2xl",variants:{center:{true:"B__text-center B__mx-auto",false:"B__text-left"}},defaultVariants:{center:!0}}),ey=e=>{let{children:t,center:l}=e;return(0,_.jsx)("p",{className:eg({center:l}),children:t})},eb=(0,em.tv)({base:"B__mb-8 B__text-lg lg:B__text-xl B__font-semibold B__text-primary B__tracking-wide B__uppercase",variants:{center:{true:"B__text-center B__mx-auto",false:"B__text-left"}},defaultVariants:{center:!0}}),ef=e=>{let{children:t,center:l}=e;return(0,_.jsx)("h2",{className:eb({center:l}),children:t})};var ej=l(21287),ek=l(37442),ew=l(16310);let eN=(0,ew.Ry)().shape({email:(0,ew.Z_)().required("Email is required").email("Please enter a valid email")}),eP=(0,em.tv)({slots:{form:"B__flex B__flex-col B__gap-4 B__flex-grow",inputWrapper:"B__w-full B__font-medium B__text-base",input:"B__w-full B__bg-shade B__font-medium B__text-base B__px-4 border border-shade ",button:"B__font-semibold B__text-xs lg:B__text-sm 2xl:B__text-base B__py-2.5 xl:B__py-3.5 B__px-6 lg:B__px-8 xl:B__px-10 2xl:B__px-14 B__text-nav-scrolled B__bg-primary B__min-w-[164px]"},variants:{direction:{row:{inputWrapper:"B__flex B__flex-row B__gap-4",input:"B__w-full"},column:{inputWrapper:"B__flex B__flex-col B__gap-4",input:"B__w-full B__py-3"}}},defaultVariants:{direction:"row"}}),eI=e=>{let{handleNewsletterSubscribe:t,direction:l}=e,{form:i,inputWrapper:o,input:a,button:s}=eP({direction:l});return(0,_.jsx)(ek.J9,{initialValues:{email:""},validationSchema:eN,onSubmit:t,children:e=>{let{values:t,errors:l,handleChange:n,handleSubmit:r}=e;return(0,_.jsxs)("form",{className:i(),onSubmit:r,children:[(0,_.jsxs)("div",{className:o(),children:[(0,_.jsx)("input",{type:"email",placeholder:"Email address",name:"email",onChange:n,value:t.email,className:a()}),(0,_.jsx)("input",{type:"submit",className:s(),value:"Subscribe","control-id":"ControlID-4"})]}),l.email?(0,_.jsx)("p",{style:{color:"white"},children:l.email}):null]})}})},eC=(0,em.tv)({base:"B__grid",variants:{image:{false:"B__grid-cols-1",true:"B__grid-cols-2"},fullWidth:{true:"B__max-w-xl B__mx-auto"}},defaultVariants:{image:!1,fullWidth:!1}}),eZ=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,websiteId:n,hasImage:r=!1,formDirection:d="column",fullWidth:c=!1}=e,{img:B,img_keywords:x,title:m,subtitle:p}=s,[u,v]=(0,i.useState)(!1),[h,g]=(0,i.useState)(""),y=e=>{"preview"===a||"edit"===a?v(!0):ej.Z.subscribe({email:e.email,websiteId:n}).then(()=>{v(!0)}).catch(e=>{var t,l;g((null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(l=t.data)||void 0===l?void 0:l.msg)==="already_subscribed"?"You are already subscribed":"Something went wrong")})};return(0,_.jsx)(eu,{sectionLocation:l,slot:o,viewMode:a,containerMaxWidth:!r,verticalPadding:!r,children:(0,_.jsxs)("div",{className:eC({image:r,fullWidth:c}),children:[(0,_.jsx)("div",{className:"".concat(r?"section-vertical-padding B__mx-auto":""),children:(0,_.jsxs)("div",{className:"B__grid ".concat(c?"B__grid-cols-6 B__gap-14":"B__grid-cols-12"," ").concat(r?"B__grid-cols-6 B__gap-14":""),children:[(0,_.jsx)("div",{className:"B__col-span-6 B__flex B__flex-col B__gap-4 ".concat(c?"B__max-w-full":"B__max-w-md"," B__mx-auto"),children:(0,_.jsxs)(S.Z,{type:"edit",sectionLocation:l,slot:o,sectionId:t,editBtn:{fields:[{name:"title",key:"blockProps.title",type:"texteditor",label:"Title",value:m,placeholder:"Sign up for our newsletter now!"},{name:"subtitle",key:"blockProps.subtitle",type:"texteditor",label:"Subtitle",value:p,placeholder:"Sign up for our newsletter now!"}]},children:[(0,_.jsx)(eh,{center:c,children:(0,D.ZP)(m||"Sign up for our newsletter now!")}),(0,_.jsx)(ey,{center:c,children:(0,D.ZP)(p||"Sign up for our newsletter now!")})]})}),u||h?u?(0,_.jsx)("p",{style:{color:"white",textAlign:"center"},children:"Thank you for subscribing."}):(0,_.jsx)("p",{className:"error-message",style:{color:"white",textAlign:"center"},children:h}):(0,_.jsx)("div",{className:"B__col-span-6 B__flex B__items-center",children:(0,_.jsx)(eI,{handleNewsletterSubscribe:y,direction:d})})]})}),r&&(0,_.jsx)("div",{className:"B__w-full lg:B__w-[100%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:x||"",isImg:!0},className:"B__w-full",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(m),src:B,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[calc(100dvh-64px)]"})})})]})})};l(84494);let eT=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"".concat(L().section," B__mt-[40px]"),children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{style:{textAlign:"center"},className:"text text-h3",children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:40,rowGap:20,marginTop:20,padding:"0 20px"},children:r.map((e,t)=>(0,_.jsx)("div",{style:{padding:20,width:300},children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t,style:{top:5,right:10}},children:[(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:20},children:(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),width:250,height:300,borderRadius:10},className:"bgImg",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:3},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]}})})}),(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:2},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("h4",{style:{textAlign:"center"},className:"text",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"text-p",style:{textAlign:"center",fontSize:"1rem"},children:(0,D.ZP)(e.designation||"")})]})]})},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},eL=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsx)("div",{children:(0,_.jsx)("div",{className:L().team_var_1_outer,style:{marginTop:"6.5rem"},children:(0,_.jsxs)("div",{className:L().mainContainer,children:[(0,_.jsx)("div",{style:{fontFamily:"Cormorant Garamond",marginBottom:40},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(L().section_title),style:{textAlign:"center"},children:(0,D.ZP)(n||"")})})}),(0,_.jsx)("div",{className:L().container,style:{display:"flex",flexWrap:"wrap",justifyContent:"center",paddingBottom:0},children:r.map((e,t)=>(0,_.jsxs)("div",{style:{position:"relative"},children:[(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),width:320,height:350},className:"bgImg",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},type:a,deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:"20px"}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]}})}),(0,_.jsx)("div",{className:L().infoCard,style:{textAlign:"left",padding:"10px"},children:(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("h4",{className:"text",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"text-p",style:{fontSize:"1rem",color:"#707070"},children:(0,D.ZP)(e.designation||"")})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})})},eS=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:L().team_var_1_outer,style:{marginTop:"6.5rem"},children:[(0,_.jsx)("div",{style:{textAlign:"center",fontFamily:"Cormorant Garamond"},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(L().section_title),children:(0,D.ZP)(n||"")})})}),(0,_.jsx)("div",{className:L().team_var_1_container,style:{backgroundColor:"#fff"},children:(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:50},children:r.map((e,t)=>(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},type:a,deleteBtn:{deleteType:"item",itemIndex:t,style:{padding:"20px"}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),width:250,height:250,borderRadius:"50%"},className:"bgImg"})})}),(0,_.jsx)("div",{style:{padding:"20px"},children:(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("h4",{className:"text ".concat(L().textContainer),children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"text-p ".concat(L().textContainer),style:{fontSize:"1rem",color:"#707070"},children:(0,D.ZP)(e.designation||"")})]})})]},t))})})]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},eD=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"".concat(L().section," B__mt-[40px]"),children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{style:{textAlign:"center"},className:"text text-h3",children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:40,rowGap:20,marginTop:20,padding:"0 20px"},children:r.map((e,t)=>(0,_.jsxs)("div",{style:{padding:20,width:300},children:[(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:20},children:(0,_.jsx)(S.Z,{slot:o,sectionId:l,sectionLocation:i,style:{zIndex:"unset"},type:a,deleteBtn:{deleteType:"item",itemIndex:t,style:{top:5,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),width:250,height:300},className:"bgImg"})})}),(0,_.jsx)("div",{children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("h4",{className:"text",style:{marginBottom:0},children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"text-p",style:{fontSize:"1rem"},children:(0,D.ZP)(e.designation||"")}),(0,_.jsx)("p",{className:"text-p",style:{fontSize:"1rem",lineHeight:1.3}})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var eF=l(91598),eE=l.n(eF);let eA=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{style:{marginTop:80},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(L().heading),children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",flexWrap:"wrap"},className:"".concat(eE().container),children:r.map((e,t)=>(0,_.jsx)("div",{style:{backgroundColor:"#fff",maxWidth:400,padding:"60px 40px"},className:"".concat(eE().itemContaier),children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t},children:[(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:40},children:(0,_.jsx)(e_.fkU,{size:20})}),(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"}]},children:[(0,_.jsx)("h4",{style:{textAlign:"center"},className:"text",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"text-p",style:{marginTop:10,textAlign:"center",fontSize:"1.2rem"},children:(0,D.ZP)(e.testimonial||"")})]})]})},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var eH=l(59371),ez=l.n(eH);let eM=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{style:{backgroundColor:"#f9f9f9",padding:"60px 0",marginTop:"40px"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",flexWrap:"wrap",margin:"90px auto 20px",rowGap:90,maxWidth:1200},className:"".concat(ez().container),children:r.map((e,t)=>(0,_.jsxs)("div",{style:{padding:"30px 40px",position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between"},className:"".concat(ez().itemContainer),children:[(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t},style:{height:void 0,zIndex:2},children:[(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:40},children:(0,_.jsx)(c.EbF,{size:40})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"}]},children:(0,_.jsx)("p",{className:"text-p",style:{marginTop:10,textAlign:"center",fontSize:"1.2rem",color:"unset"},children:(0,D.ZP)(e.testimonial||"")})})]}),(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:10},children:[(0,_.jsx)("div",{style:{height:1,backgroundColor:"#666666",width:200,marginBottom:10}}),(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("p",{className:"text-p",style:{textAlign:"center",fontSize:"1rem",marginBottom:0,color:"unset"},children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"text-p",style:{textAlign:"center",fontSize:"1rem",marginBottom:0,color:"unset"},children:(0,D.ZP)(e.designation||"")})]})]})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var eU=l(65495),eV=l.n(eU);let eR=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{style:{position:"relative",marginTop:"40px"},children:[(0,_.jsxs)("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex"},children:[(0,_.jsx)("div",{style:{display:"flex",flex:3,backgroundColor:"#fff"}}),(0,_.jsx)("div",{style:{display:"flex",flex:2,background:"#f9f9f9"}})]}),(0,_.jsx)("div",{style:{padding:"40px 0"},children:(0,_.jsxs)("div",{style:{maxWidth:1200,margin:"0 auto"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(L().heading),children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",marginTop:40,rowGap:40},className:"".concat(eV().container),children:r.map((e,t)=>(0,_.jsx)("div",{style:{padding:"30px 60px"},className:"".concat(eV().itemContainer),children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t,style:{top:-30,right:-40}},children:[(0,_.jsx)("div",{style:{position:"absolute",top:-3,left:-40},children:(0,_.jsx)(c.EbF,{size:30})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"}]},children:(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[(0,_.jsx)("div",{children:(0,_.jsx)("p",{className:"text-p",style:{fontSize:"1.2rem",color:"unset"},children:(0,D.ZP)(e.testimonial||"")})}),(0,_.jsx)("div",{style:{marginTop:40},children:(0,_.jsx)("p",{className:"text-p",style:{fontSize:"1rem",marginBottom:0,color:"unset",lineHeight:1,fontWeight:"bold"},children:(0,D.ZP)(e.name||"")})})]})})]})},t))})]})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var eW=l(96940),eK=l.n(eW);let eq=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{style:{padding:"40px 25px",backgroundColor:"#f9f9f9",marginTop:"40px"},children:[(0,_.jsxs)("div",{style:{maxWidth:1e3,margin:"0 auto"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(L().heading," ").concat(eK().heading),children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:40,marginBottom:40,rowGap:40,columnGap:40},className:"".concat(eK().container),children:r.map((e,t)=>(0,_.jsx)("div",{style:{padding:"30px 20px",position:"relative",width:450,maxWidth:"100%",backgroundColor:"#fff",boxShadow:"3px 3px #eaeaea"},className:"".concat(eK().itemContainer),children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"}]},children:(0,_.jsxs)("div",{style:{display:"flex",height:"100%",justifyContent:"space-between",flexDirection:"column"},children:[(0,_.jsx)("div",{children:(0,_.jsx)("p",{className:"text-p ".concat(eK().testimonialTxt),style:{fontSize:"1.2rem",color:"unset",textAlign:"center"},children:(0,D.ZP)(e.testimonial||"")})}),(0,_.jsxs)("div",{style:{marginTop:30},children:[(0,_.jsx)("p",{className:"text-p",style:{fontSize:"1rem",marginBottom:0,color:"unset",lineHeight:1,fontWeight:"bold",textAlign:"center"},children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"text-p",style:{fontSize:"0.9rem",marginTop:5,color:"unset",textAlign:"center"},children:(0,D.ZP)(e.designation||"")})]})]})})})},t))})]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var eO=l(77585),eG=l.n(eO);let e$=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{style:{padding:"40px 25px",backgroundColor:"#f9f9f9",marginTop:"40px"},children:[(0,_.jsxs)("div",{style:{maxWidth:1e3,margin:"0 auto"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(L().heading),children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:40,marginBottom:40,rowGap:40,columnGap:40},className:"".concat(eG().container),children:r.map((e,t)=>(0,_.jsx)("div",{style:{padding:"30px",position:"relative",width:450,maxWidth:"100%",backgroundColor:"#fff",borderRadius:"10%",border:"0.5px solid #d6d6d6"},className:"".concat(eG().itemContainer),children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:(0,_.jsxs)("div",{style:{display:"flex",height:"100%",justifyContent:"space-between",flexDirection:"column"},children:[(0,_.jsx)("div",{children:(0,_.jsx)("p",{className:"text-p",style:{fontSize:"1.2rem",color:"unset"},children:(0,D.ZP)(e.testimonial||"")})}),(0,_.jsx)("div",{style:{marginTop:20},children:(0,_.jsx)("div",{style:{display:"flex",columnGap:20,alignItems:"center"},children:(0,_.jsxs)("div",{children:[(0,_.jsx)("p",{className:"text-p",style:{fontSize:"1rem",marginBottom:0,color:"unset",lineHeight:1,fontWeight:"bold"},children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"text-p",style:{fontSize:"0.9rem",marginTop:5,color:"unset"},children:(0,D.ZP)(e.designation||"")})]})})})]})})})},t))})]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var eY=l(55041),eJ=l.n(eY);let eQ=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"".concat(L().section," testimonials"),style:{backgroundColor:"#fdfdfd",zIndex:1,marginTop:40},children:[(0,_.jsxs)("div",{className:L().container,children:[(0,_.jsx)("div",{className:"".concat(L().container," ").concat(L().pt0," ").concat(L().pb5),children:(0,_.jsx)("div",{style:{margin:"10px 0px"},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(L().heading),children:(0,D.ZP)(n||"")})})})}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap"},children:r.map((e,t)=>(0,_.jsx)("div",{className:"".concat(L().column," ").concat(L().testimonial_column),"data-aos":"fade-up","data-aos-delay":100,children:(0,_.jsxs)("div",{className:"".concat(L().testimonial_card," h-100 text-center ").concat(eJ().card),children:[(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"}]},children:[(0,_.jsx)("h2",{className:L().card_heading,children:(0,D.ZP)(e.name||"")}),(0,_.jsxs)("p",{className:"".concat(L().testimonial_description," ").concat(L().mt4),style:{color:"#000"},children:["“",(0,D.ZP)(e.testimonial||""),"”"]})]}),(0,_.jsx)("p",{}),(0,_.jsx)("p",{})]})},t))})]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},eX=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{items:n}=s;return(0,_.jsxs)("div",{style:{padding:"0 20px",maxWidth:800,margin:"80px auto 0"},children:[n.map((e,t)=>(0,_.jsx)("div",{children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"heading",placeholder:"Heading",type:"texteditor",value:e.heading,regenerateBtn:!0,field_label:"Heading",key:"blockProps.items[".concat(t,"].heading")},{name:"subheading",placeholder:"Subheading",type:"texteditor",value:e.subheading,field_label:"Subheading",key:"blockProps.items[".concat(t,"].subheading")},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,field_label:"Description",key:"blockProps.items[".concat(t,"].description")}]},children:[(0,_.jsx)("h3",{style:{textAlign:"center"},className:"text text-h3",children:(0,D.ZP)(e.heading||"")}),(0,_.jsx)("h4",{style:{textAlign:"center"},className:"text",children:(0,D.ZP)(e.subheading||"")}),(0,_.jsx)("p",{className:"text-p",style:{marginTop:32,textAlign:"center"},children:(0,D.ZP)(e.description||"")})]})},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},e0=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{items:n}=s;return(0,_.jsxs)("div",{className:"B__mt-[40px]",children:[n.map((e,t)=>(0,_.jsx)("div",{children:(0,_.jsx)("div",{style:{padding:"40px 20px"},children:(0,_.jsx)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"heading",placeholder:"Heading",type:"texteditor",value:e.heading,regenerateBtn:!0,field_label:"Heading",key:"blockProps.items[".concat(t,"].heading")},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,field_label:"Description",key:"blockProps.items[".concat(t,"].description")}]},children:(0,_.jsxs)("div",{style:{maxWidth:800,margin:"0 auto"},children:[(0,_.jsx)("h3",{style:{},className:"text text-h3",children:(0,D.ZP)(e.heading||"")}),(0,_.jsx)("p",{className:"text-p",style:{marginTop:16},children:(0,D.ZP)(e.description||"")})]})})})},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var e1=l(21811),e2=l.n(e1);let e5=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{items:n}=s;return(0,_.jsxs)("div",{style:{padding:"20px 40px",maxWidth:1200,margin:"40px auto",marginTop:"80px"},children:[n.map((e,t)=>(0,_.jsx)("div",{children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"heading",placeholder:"Heading",type:"texteditor",value:e.heading,regenerateBtn:!0,field_label:"Heading",key:"blockProps.items[".concat(t,"].heading")},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,field_label:"Description",key:"blockProps.items[".concat(t,"].description")}]},children:(0,_.jsxs)("div",{style:{columnGap:40},className:"".concat(e2().container),children:[(0,_.jsx)("div",{style:{flex:1},children:(0,_.jsx)("h3",{className:"text text-h3",children:(0,D.ZP)(e.heading||"")})}),(0,_.jsx)("div",{style:{flex:1},children:(0,_.jsx)("p",{className:"text-p",children:(0,D.ZP)(e.description||"")})})]})})},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var e3=l(40827),e4=l(83099),e6=l.n(e4);let e9=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"B__py-8 lg:B__py-14 B__mt-[40px]",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{style:{textAlign:"center"},className:"text text-h3 ",children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{style:{marginTop:40},children:(0,_.jsx)(e3.Z,{breakpointCols:{default:4,1100:3,700:2,500:1},className:"".concat(e6().grid," B__flex B__w-auto"),columnClassName:"".concat(e6().grid_column," B__bg-clip-padding B__pl-7"),children:r.map((e,t)=>(0,_.jsx)("div",{style:{width:"100%",height:"auto"},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},type:a,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"auto"})})},t))})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var e8=l(42338);let e7=e=>{var t,l,o,a;let{id:s,sectionLocation:n,slot:d,viewMode:c,blockProps:B,websiteId:x}=e,{title:m,description:p,email:u,phone:h,form:g,location:y,location_label:b,email_label:f,phone_label:j,thanks_message:k}=B,[w,N]=(0,i.useState)(!1),{websiteData:P}=(0,i.useContext)(r.o)||{},I=e=>{"preview"===c||"edit"===c?N(!0):e8.Z.contactUs({...e,website_id:x}).then(e=>{var t;N(!0),v.Am.success(null===(t=e.data)||void 0===t?void 0:t.msg,{position:v.Am.POSITION.TOP_RIGHT})}).catch(t=>{var l,_;N(!1),v.Am.error(null===(l=t.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg,{position:v.Am.POSITION.TOP_RIGHT}),e={email:"",name:"",message:""}})};return(0,_.jsx)("div",{className:"".concat(L().section," contacts !B__pb-8 xl:!B__pb-10 B__mt-[40px]"),style:{color:"#000000",backgroundColor:"#f8f8f8"},children:(0,_.jsxs)("div",{className:L().container,children:[(0,_.jsxs)(S.Z,{sectionId:s,sectionLocation:n,slot:d,type:c,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:m||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:p||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("div",{children:(0,_.jsx)("div",{style:{position:"relative"},className:L().editHoverContainer,children:(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(m||"Contact Us")})})}),(0,_.jsx)("p",{className:L().contacts_description,style:{},children:(0,D.ZP)(p||"Have a question, need assistance? We're just a message away!")})]}),(0,_.jsxs)("div",{className:L().contacts_main,children:[(0,_.jsx)("div",{style:{display:"flex",flex:1,flexDirection:"column",position:"relative"},className:L().editHoverContainer,children:(0,_.jsxs)(S.Z,{sectionId:s,sectionLocation:n,slot:d,type:c,editBtn:{icon:!0,fields:[{name:"location",placeholder:"Location",type:"texteditor",value:y||"",key:"blockProps.location",field_label:"Location"},{name:"location_label",placeholder:"Location label",type:"texteditor",value:b||"",key:"blockProps.location_label",field_label:"Location label"},{name:"email_label",placeholder:"Email Label",type:"texteditor",value:f||"",key:"blockProps.email_label",field_label:"Email Label"},{name:"email",placeholder:"Email",type:"texteditor",value:u||"",key:"blockProps.email",field_label:"Email"},{name:"phone_label",placeholder:"Phone Label",type:"texteditor",value:j||"",key:"blockProps.phone_label",field_label:"Phone label"},{name:"phone",placeholder:"Phone",type:"texteditor",value:h||"",key:"blockProps.phone",field_label:"Phone"}]},children:[(0,_.jsxs)("div",{style:{},children:[(0,_.jsx)("h2",{className:L().contacts_item,dangerouslySetInnerHTML:{__html:b||"Location"}}),(0,_.jsx)("p",{className:L().contacts_info,children:y?(0,D.ZP)(y||""):"".concat((0,D.ZP)((null==P?void 0:null===(t=P.user_location)||void 0===t?void 0:t.user_city)||"New York"),", ").concat((0,D.ZP)((null==P?void 0:null===(l=P.user_location)||void 0===l?void 0:l.user_region)||"US"),", ").concat((0,D.ZP)((null==P?void 0:null===(o=P.user_location)||void 0===o?void 0:o.user_zip)||"10001"))})]}),(0,_.jsxs)("div",{style:{},children:[(0,_.jsx)("h2",{className:L().contacts_item,dangerouslySetInnerHTML:{__html:f||"Email"}}),(0,_.jsx)("p",{className:L().contacts_info,children:(0,D.ZP)(u||(null==P?void 0:null===(a=P.user_location)||void 0===a?void 0:a.user_email)||"user@email.com")})]}),(0,_.jsxs)("div",{style:{},children:[(0,_.jsx)("h2",{className:L().contacts_item,dangerouslySetInnerHTML:{__html:j||"Call"}}),(0,_.jsx)("p",{className:L().contacts_info,children:(0,D.ZP)(h||"+1 (123)-456-7890")})]})]})}),(0,_.jsx)("div",{style:{flex:1},children:w?(0,_.jsx)("p",{style:{textAlign:"center"},children:(0,D.ZP)(k||"Thank you. We will get in touch with you soon.")}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(ek.J9,{initialValues:{name:"",email:"",message:""},validationSchema:ew.Ry().shape({name:ew.Z_().required("Required"),email:ew.Z_().required("Required").email("Please enter a valid email"),message:ew.Z_().required("Required").max(500,"Message cannot exceed 500 characters")}),onSubmit:I,children:e=>{var t;let{values:l,errors:i,handleChange:o,handleSubmit:a}=e;return(0,_.jsxs)("form",{onSubmit:a,style:{margin:"0 auto"},children:[(0,_.jsxs)(S.Z,{sectionId:s,sectionLocation:n,slot:d,type:c,editBtn:{icon:!0,fields:[{name:"name_label",placeholder:"Name label",type:"texteditor",value:(null==g?void 0:g.name_label)||"",key:"blockProps.form.name_label",field_label:"Name label"},{name:"email_label",placeholder:"Email label",type:"texteditor",value:(null==g?void 0:g.email_label)||"",key:"blockProps.form.email_label",field_label:"Email label"},{name:"messages_label",placeholder:"Message label",type:"texteditor",value:(null==g?void 0:g.messages_label)||"",key:"blockProps.form.messages_label",field_label:"Message label"}]},children:[(0,_.jsxs)("div",{style:{marginBottom:"1rem",boxSizing:"border-box"},children:[(0,_.jsx)("input",{type:"text",className:L().contacts_input,name:"name",onChange:o,value:l.name,placeholder:(null==g?void 0:g.name_label)||"Your Name *"}),i.name?(0,_.jsx)("p",{style:{color:"red",marginTop:"0"},children:i.name}):null]}),(0,_.jsxs)("div",{style:{marginBottom:"1rem"},children:[(0,_.jsx)("input",{type:"text",className:L().contacts_input,name:"email",onChange:o,value:l.email,style:{height:"40px"},placeholder:(null==g?void 0:g.email_label)||"Your Email *"}),i.email?(0,_.jsx)("p",{style:{color:"red",marginTop:"0"},children:i.email}):null]}),(0,_.jsxs)("div",{style:{marginBottom:"1rem"},children:[(0,_.jsx)("textarea",{name:"message",className:L().contacts_input,cols:30,rows:5,onChange:o,value:l.message,placeholder:null===(t=(0,D.ZP)((null==g?void 0:g.messages_label)||"Your Message *"))||void 0===t?void 0:t.toString()}),i.message?(0,_.jsx)("p",{style:{color:"red",marginTop:"0"},children:i.message}):null]})]}),(0,_.jsx)("div",{className:L().form_group,style:{textAlign:"center"},children:(0,_.jsx)("input",{type:"submit",value:"Send",className:L().button,style:{margin:"0 auto"}})})]})}})})})]})]})})};var te=l(54720),tt=l.n(te);let tl=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{img:s,img_keywords:n}=a;return(0,_.jsxs)("div",{style:{position:"relative",display:"flex",justifyContent:"center"},className:"",children:[(0,_.jsx)("div",{className:"".concat(tt().imgContainer),style:{backgroundImage:"url(".concat(s,")")}}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,className:"!B__absolute B__top-1/2 B__left-1/2 B__-translate-x-1/2 B__-translate-y-1/2",style:{zIndex:"10"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:n||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]}})]})},t_=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n}=a;return(0,_.jsxs)("div",{style:{paddingTop:"80px"},children:[(0,_.jsx)(S.Z,{type:o,sectionId:t,sectionLocation:l,slot:i,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{style:{textAlign:"center"},className:"text text-h3",children:(0,D.ZP)(s||"")})}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:40,rowGap:20,marginTop:20,padding:"0 20px"},children:n.map((e,a)=>(0,_.jsx)("div",{style:{padding:20,width:300},className:"border",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(a,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{style:{textAlign:"left"},className:"text",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("p",{className:"text-p",style:{marginTop:10},children:(0,D.ZP)(e.description||"")})]})},a))}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})};var ti=l(37201);let to=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,options:n}=e,{embed:d}=s,{setEditContentFields:c,setShowEditContentModal:B,setEditSectionMetaData:x}=(0,i.useContext)(r.o)||{},m=()=>{null==c||c([{name:"embed",placeholder:"Add Embed code for youtube video",type:"textarea",value:d||"",key:"blockProps.embed",field_label:"Add Embed code for youtube video",children:(0,_.jsx)("span",{className:"B__text-sm B__text-[#5959ff] B__cursor-pointer",onClick:()=>{window&&window.open("https://support.google.com/youtube/answer/171780?hl=en","_blank")},children:"View guide here"})},{name:"align",type:"select",placeholder:"Align Content",dropDownList:["left","right","center"],value:(null==n?void 0:n.align)||"center",key:"options.align",field_label:"Align Content"}]),null==B||B(!0),null==x||x({sectionId:t,slot:o,editBaseData:"website"===l})};return(0,_.jsxs)("div",{style:{position:"relative"},className:"B__w-auto B__h-auto B__py-5 lg:B__py-8 B__mt-4",children:[d||"live"===a?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{flexDirection:"column",justifyContent:"start",height:"100px"},editBtn:{fields:[{name:"embed",placeholder:"Add Embed code for youtube video",type:"textarea",value:d||"",key:"blockProps.embed",field_label:"Add Embed code for youtube video",children:(0,_.jsx)("span",{className:"B__text-sm B__text-[#5959ff] B__cursor-pointer",onClick:()=>{window&&window.open("https://support.google.com/youtube/answer/171780?hl=en","_blank")},children:"View guide here"})},{name:"align",type:"select",placeholder:"Align Content",dropDownList:["left","right","center"],value:(null==n?void 0:n.align)||"center",key:"options.align",field_label:"Align Content"}]}}):(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,_.jsx)(ti.Z,{title:"Add Video",style:{margin:"80px 10px"},onClick:m})}),d?(0,_.jsx)("div",{className:"".concat((null==n?void 0:n.align)==="left"?"me-auto ":(null==n?void 0:n.align)==="right"?"ms-auto":"m-auto"),style:{width:"fit-content"},children:(e=>{let t=(0,D.ZP)(e,{replace:e=>{if("script"===e.type){let t=!!e.attribs.src,l=document.createElement("script");t?l.src=e.attribs.src:l.innerHTML=e.children[0].data,document.head.append(l)}}});return t})(d||"")}):null]})},ta=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,options:n}=e,{googleId:d}=s,{setEditContentFields:c,setShowEditContentModal:B,setEditSectionMetaData:x}=(0,i.useContext)(r.o)||{},m=()=>{null==c||c([{name:"googleId",placeholder:"Google Analytics id",type:"input",value:d||"",key:"blockProps.googleId",field_label:"Google Analytics id"}]),null==B||B(!0),null==x||x({sectionId:t,slot:o,editBaseData:"website"===l})};return(0,_.jsx)("div",{style:{position:"relative"},className:"B__w-auto B__h-auto B__py-5 lg:B__py-8 B__mt-4",children:d||"live"===a?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{flexDirection:"column",justifyContent:"start",height:"70px"},editBtn:{fields:[{name:"googleId",placeholder:"Google Analytics id",type:"input",value:d||"",key:"blockProps.googleId",field_label:"Google Analytics id"}]}}):(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,_.jsx)(ti.Z,{title:"Add Google Analytics Code",style:{},onClick:m})})})},ts="https://s3.amazonaws.com/".concat("media-prod.butternut.ai","/about_us_variations"),tn={variant_1:"".concat(ts,"/230e0648-9d53-4240-b8e1-6b44234be30b.jpg"),variant_2:"".concat(ts,"/fc80358d-cc42-41f7-8ac2-820ed01508c2.jpg"),variant_3:"".concat(ts,"/d961f17c-067b-46e9-84ea-76b758528f27.jpg"),variant_4:"".concat(ts,"/16d3af4a-2ccc-4caf-ae1a-2c551e360cc5.jpg"),variant_5:"".concat(ts,"/524b6e52-8957-43a7-be38-dc08d5dfd283.jpg"),variant_6:"".concat(ts,"/05e0571d-b3a7-4a8b-8797-9833294ba9d3.jpg"),variant_7:"".concat(ts,"/56731214-af8f-4e28-a1dd-11992c78107a.jpg"),variant_8:"".concat(ts,"/476364a9-735a-46ab-9dd1-7b34d8777fa5.jpg"),variant_9:"".concat(ts,"/1acab033-2749-465f-9e45-8bef32d2cb23.jpg"),variant_10:"".concat(ts,"/f2349e0c-9cc8-4fd1-a834-c2bbeb8ae384.jpg"),variant_11:"".concat(ts,"/d206b5d9-9fb7-4b94-88dd-9bd3af49b60e.jpg"),variant_12:"".concat(ts,"/230e0648-9d53-4240-b8e1-6b44234be30b.jpg"),variant_13:"".concat(ts,"/b8280e35-eb81-445c-b69a-cd44e7be13c0.jpg"),variant_14:"".concat(ts,"/1c5699dc-fb23-4da6-82eb-3e2257426c30.jpg"),variant_15:"".concat(ts,"/ee177766-ce2c-41fc-accf-cfd5c89ac8f0.jpg"),variant_16:"".concat(ts,"/d961f17c-067b-46e9-84ea-76b758528f27.jpg"),variant_17:"".concat(ts,"/0f4cb6e5-054d-4441-a607-115e127425dc.jpg"),variant_18:"".concat(ts,"/a6d9a28e-5d86-4875-832b-442fdbbfd747.jpg"),variant_19:"".concat(ts,"/d80f8c40-ed20-45eb-aa1a-cf0003039b62.jpg"),variant_20:"".concat(ts,"/26349e3e-9d96-40a2-a201-c4db2d7f1cf4.jpg"),variant_21:"".concat(ts,"/93283adf-8513-498c-9649-32a4fad9c587.jpg"),variant_22:"".concat(ts,"/9d24c2c1-bc39-45ea-8ae0-edc9edfc6ee5.jpg"),variant_23:"".concat(ts,"/c2698b38-40a7-4265-887e-9cce883ab7b1.jpg"),variant_24:"".concat(ts,"/7d55bc8a-98a8-4142-aa47-14c509ebb640.jpg"),variant_25:"".concat(ts,"/dfa28372-eaff-400e-948d-89350f0eeee5.jpg"),variant_26:"".concat(ts,"/ee9f8314-7cec-438f-ab50-0335837f232d.jpg"),variant_27:"".concat(ts,"/2165b89d-8ba3-4944-a480-ff62f881955b.jpg"),variant_28:"".concat(ts,"/2165b89d-8ba3-4944-a480-ff62f881955b.jpg"),variant_29:"".concat(ts,"/47cad692-132b-4c57-9ef6-edf276a70fbd.jpg"),variant_30:"".concat(ts,"/6cbf7ed8-b1f2-4d31-ba2e-fb1817bac6a0.jpg")},tr=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,regenBackGroundBtnRef:n}=e,{img:d,title:c,aboutUs:B,img_keywords:x,selectedVariation:m}=s,{updateSectionData:p}=(0,i.useContext)(r.o)||{};(0,i.useEffect)(()=>((null==n?void 0:n.current)||!n||(n.current={regenerate:()=>{u(tn,!0)}}),()=>{(null==n?void 0:n.current)&&(n.current=null)}),[]);let u=function(e){let _=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!d&&!m||_){let _=Object.keys(e),i=Math.floor(Math.random()*_.length),a=e[_[i]];return null==p||p({"blockProps.selectedVariation":_[i]},t,"website"===l,o),a}},v=u(tn);return(0,_.jsxs)("div",{className:"".concat(L().section," ").concat(L().section_spacing," goals"),style:{background:"url(".concat(null!=d&&d.startsWith("https://s3.amazonaws.com")?"url(".concat(d,")"):m?tn[m]||v:v||"",")"),backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",zIndex:1,marginTop:"40px"},children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{zIndex:"10",height:"100px",position:"absolute",top:"0px"},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]}}),(0,_.jsx)("div",{className:L().container,children:(0,_.jsx)("div",{style:{backgroundColor:"#fff",padding:50,borderRadius:5,marginTop:"2rem",position:"relative"},className:"".concat(L().editHoverContainer),children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:c||"",key:"blockProps.title",field_label:"Title"},{name:"aboutUs",placeholder:"About Us",type:"texteditor",value:B||"",key:"blockProps.aboutUs",field_label:"About Us"}]},children:[(0,_.jsx)("h3",{className:L().heading,children:(0,D.ZP)(c||"What we stand for")}),(0,_.jsx)("p",{className:L().aboutus_body,style:{marginBottom:0},children:(0,D.ZP)(B||"")})]})})})]})};var td=l(63764),tc=l(4298),tB=l.n(tc),tx=l(76396),tm=l(48842);let tp={edit:'(Note : To edit content or an design you need to specifically tell chatbot where and what to update, for an example if its multiple card layout and you need to update title of first card, then tell chatbot specifically that : "Update title of first card with [updated_text]")',upload:'(Note : To update images you need to uplaod images from clip icon down there, then tell chatbot specifically that which image you need to update, for an example if its multiple card layout and you need to update images of first two cards, then tell chatbot specifically that : "Update images of first two cards")'},tu=e=>{var t,l,o,a,B,x,m,p,u,h,f,j,k,N,P,I,Z,T;let{blockProps:L,id:S,viewMode:D,websiteId:F,sectionLocation:E,slot:A}=e,{html:H="",css:z="",javascript:U="",prevCode:V}=L,[R,W]=(0,i.useState)({html:H,css:z,javascript:U,prevCode:V}),[K,q]=(0,i.useState)({html:H,css:z,javascript:U,prevCode:V}),[O,G]=(0,i.useState)(1),[$,Y]=(0,i.useState)(!1),[J,Q]=(0,i.useState)("live"!==D&&!(null==K?void 0:K.html)&&!(null==K?void 0:K.css)&&!(null==K?void 0:K.javascript)),[X,ee]=(0,i.useState)(!1),[et,el]=(0,i.useState)({askAi:""}),[ei,eo]=(0,i.useState)({}),[ea,es]=(0,i.useState)(!1),[en,er]=(0,i.useState)({show:!1,msg:"",success:!0}),[ed,ec]=(0,i.useState)(!1),[eB,ex]=(0,i.useState)([]),[em,ep]=(0,i.useState)([]),[eu,ev]=(0,i.useState)(""),eh=(0,i.useRef)(null),eg=e=>()=>{ex(t=>t.filter((t,l)=>l!==e)),ep(t=>t.filter((t,l)=>l!==e))};(0,n.useRouter)(),(0,i.useEffect)(()=>{Y(!0)},[]);let ey=e=>{eo(t=>({...t,[e.target.name]:""})),el(t=>({...t,[e.target.name]:e.target.value}))},eb=e=>t=>{W(l=>({...l,[e]:t||""}))};(0,i.useEffect)(()=>{if(document){let e=document.getElementById("custom-script-".concat(S,"-").concat(O-1));e&&e.remove()}},[O]);let{updateSectionData:ef,pageId:ej,websiteData:ek,addPrompt:ew,uploadImage:eN}=(0,i.useContext)(r.o)||{},eP=async()=>{await (null==ef?void 0:ef({"blockProps.html":null==R?void 0:R.html,"blockProps.css":null==R?void 0:R.css,"blockProps.javascript":null==R?void 0:R.javascript},S,"website"===E,A)),er({show:!0,msg:"Code saved successfully !",success:!0}),setTimeout(()=>{er({show:!1,msg:"",success:!0})},4e3)},eI=()=>{q(R),setTimeout(()=>{G(e=>e+1)},1e3)},eC=()=>{eZ("Regenerate",!0)},eZ=async(e,t)=>{try{eD(t=>[...t,{msg:e}]),el(e=>({...e,askAi:""})),es(!0),null==ew||ew(S,e);let l=(null==eB?void 0:eB.length)?await eT(eB):[],{data:_}=await tm.Z.post("/v2/generate-code",{website_id:F,page_id:ej,section_id:S,prompt:e,existing_code:R,urls:l,regenerate:t});(null==_?void 0:_.updated_code)&&(q(e=>({...e,prevCode:[{html:null==e?void 0:e.html,css:null==e?void 0:e.css,javascript:e.javascript}],...null==_?void 0:_.updated_code})),W(e=>({...e,prevCode:[{html:null==e?void 0:e.html,css:null==e?void 0:e.css,javascript:e.javascript}],...null==_?void 0:_.updated_code})),setTimeout(()=>{G(e=>e+1)},1e3)),ev(""),ex([]),ep([]),es(!1)}catch(e){var l,_;es(!1),v.Am.error((null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg)||"Unable to generate code"),console.log("Error executing code",e)}},eT=e=>{let t=e.map(e=>new Promise(async(t,l)=>{try{let l=await (null==eN?void 0:eN(e));t(l)}catch(e){l(e)}}));return Promise.all(t)},eL=async()=>{let{data:e}=await tm.Z.post("/v2/undo-last-generation",{website_id:F,page_id:ej,section_id:S});if(e){var t,l;(null==K?void 0:null===(t=K.prevCode)||void 0===t?void 0:t.length)&&q(e=>{var t,l,_,i,o;return{...e,html:(null==e?void 0:null===(t=e.prevCode)||void 0===t?void 0:t[0].html)||"",css:(null==e?void 0:null===(l=e.prevCode)||void 0===l?void 0:null===(_=l[0])||void 0===_?void 0:_.css)||"",javascript:(null==e?void 0:null===(i=e.prevCode)||void 0===i?void 0:null===(o=i[0])||void 0===o?void 0:o.javascript)||"",prevCode:[]}}),(null==R?void 0:null===(l=R.prevCode)||void 0===l?void 0:l.length)&&W(e=>{var t,l,_,i,o;return{...e,html:(null==e?void 0:null===(t=e.prevCode)||void 0===t?void 0:t[0].html)||"",css:(null==e?void 0:null===(l=e.prevCode)||void 0===l?void 0:null===(_=l[0])||void 0===_?void 0:_.css)||"",javascript:(null==e?void 0:null===(i=e.prevCode)||void 0===i?void 0:null===(o=i[0])||void 0===o?void 0:o.javascript)||"",prevCode:[]}})}},[eS,eD]=(0,i.useState)((null==ek?void 0:null===(t=ek.prompts)||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:null===(o=l.pages)||void 0===o?void 0:o.reduce((e,t)=>{var l;let _=null==t?void 0:null===(l=t.sections)||void 0===l?void 0:l.find(e=>e.section_id===S);return _&&(e=_.prompts),e},[]))||[]),eF=(0,i.useMemo)(()=>{var e,t,l;return(0,y.pi)((null==ek?void 0:null===(e=ek.website_config)||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:null===(l=t.subscribed_at)||void 0===l?void 0:l.$date)||new Date,"months")},[ek]),eE=(0,i.useMemo)(()=>{var e,t,l,_,i,o,a,s,n,r,d,c,B,x,m,p,u;return(null==ek?void 0:null===(e=ek.website_config)||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.status)==="active"&&(null==ek?void 0:null===(l=ek.website_config)||void 0===l?void 0:l.length)?(null==ek?void 0:null===(_=ek.license_details)||void 0===_?void 0:null===(i=_[0])||void 0===i?void 0:i.tier)&&(null===g._x||void 0===g._x?void 0:null===(o=g._x.tier)||void 0===o?void 0:o[null==ek?void 0:null===(a=ek.license_details)||void 0===a?void 0:null===(s=a[0])||void 0===s?void 0:s.tier])?(null===g._x||void 0===g._x?void 0:null===(B=g._x.tier)||void 0===B?void 0:B[null==ek?void 0:null===(x=ek.license_details)||void 0===x?void 0:null===(m=x[0])||void 0===m?void 0:m.tier])*eF:(null==ek?void 0:null===(n=ek.website_config)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.plan)&&(null===g._x||void 0===g._x?void 0:g._x[null==ek?void 0:null===(d=ek.website_config)||void 0===d?void 0:null===(c=d[0])||void 0===c?void 0:c.plan])?(null===g._x||void 0===g._x?void 0:g._x[null==ek?void 0:null===(p=ek.website_config)||void 0===p?void 0:null===(u=p[0])||void 0===u?void 0:u.plan])*eF:void 0:null===g._x||void 0===g._x?void 0:g._x.free},[ek,eF]),eA=(0,i.useRef)(null);return((0,i.useEffect)(()=>{if(window){let e=(0,y.q6)(JSON.stringify({website_id:F})),t=async(t,l)=>{await tm.Z.post("/v2/custom-code-save-data",{token:e,data:t,elementName:l})};window.saveDataV1=t}},[]),(0,i.useEffect)(()=>{eA.current&&(eA.current.scrollTop=eA.current.scrollHeight)},[eS,J]),$)?(0,_.jsxs)("div",{className:"code-editor-container B__my-[80px] B__px-5",children:[(0,_.jsxs)("div",{className:"B__relative B__w-full B__py-4 lg:B__p-8",children:["live"!==D&&!(null==K?void 0:K.html)&&!(null==K?void 0:K.css)&&!(null==K?void 0:K.javascript)&&(0,_.jsx)("div",{className:"B__w-full B__p-5 B__border B__border-[color:var(--color-primary)] B__border-dashed B__rounded-2xl B__h-[500px] B__flex B__flex-col B__justify-center B__items-center",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-5 B__max-w-[400px] B__text-primary",children:[(0,_.jsx)(w(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/custom-code-website.png",alt:"",width:90,height:90}),(0,_.jsx)("div",{className:"B__text-base B__font-medium ",children:"Tell “Ask AI” in a brief and our AI Bot will create a complete section of the website as per your requirement."})]})}),(0,_.jsx)("div",{id:"user-content",dangerouslySetInnerHTML:{__html:"<style>".concat(null==K?void 0:K.css,"</style>").concat(null==K?void 0:K.html)}}),(0,_.jsx)(tB(),{id:"custom-script-".concat(S,"-").concat(O),strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:(null==K?void 0:K.javascript)||""}},O),"live"!==D&&(0,_.jsxs)("div",{className:"B__rounded-lg B__p-2 B__absolute B__z-30 B__right-5 B__bottom-3 B__font-[Lato] ".concat(J?"md:B__w-[375px]":""),children:[J&&(0,_.jsxs)("div",{className:"B__transition-all B__duration-300 B__border B__[#e1e1e1] B__rounded-xl B__bg-white",style:{boxShadow:"0px 25px 60px 0px #00000014"},children:[(0,_.jsxs)("div",{className:"B__bg-[#5959ff1a] B__text-[#131332] B__px-5 B__py-3.5 B__flex B__gap-4 B__justify-between B__items-center B__rounded-t-xl",children:[(0,_.jsxs)("div",{className:"B__text-lg lg:B__text-xl B__font-bold B__flex B__gap-3 B__items-end",children:[(0,_.jsx)("span",{className:"B__leading-[1]",children:"AI Assist"}),eE&&(0,_.jsxs)("span",{className:"B__text-xs B__font-normal B__leading-[1] ".concat(null!=ek&&null!==(a=ek.prompts)&&void 0!==a&&null!==(B=a[0])&&void 0!==B&&B.count&&(null==ek?void 0:null===(x=ek.prompts)||void 0===x?void 0:null===(m=x[0])||void 0===m?void 0:m.count)>=eE?"B__text-red-500":""),children:["(Credits left : ",eE-((null==ek?void 0:null===(p=ek.prompts)||void 0===p?void 0:null===(u=p[0])||void 0===u?void 0:u.count)||0),"/",eE,")"]})]}),(0,_.jsxs)("div",{className:"B__flex B__gap-3 B__items-center",children:[(0,_.jsx)(e_.dGA,{className:"B__cursor-pointer B__text-[#131332]",onClick:()=>{Q(!1)}}),(0,_.jsx)(C.nfZ,{className:"B__cursor-pointer",onClick:()=>{Q(!1)}})]})]}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__px-3 B__mt-5",children:[(0,_.jsx)("div",{ref:eA,className:"B__h-[350px] B__overflow-y-auto B__flex B__flex-col B__items-end B__gap-2 B__pb-6 hidescrollbar",children:eS.map((e,t)=>(0,_.jsx)("div",{className:"B__left-auto B__max-w-[80%]  B__bg-[#e9ecef] B__px-3 B__py-2 B__rounded-md B__break-words",children:e.msg},t))}),(null==eS?void 0:eS.length)||(null==em?void 0:em.length)?(0,_.jsx)(_.Fragment,{children:ea?(0,_.jsx)("div",{className:"B__text-sm B__font-semibold B__animate-pulse B__text-left B__mb-2 B__left-auto B__max-w-[80%]  B__bg-[#e9ecef] B__px-3 B__py-2 B__rounded-md B__break-words B__w-fit",children:"Generating..."}):(0,_.jsxs)(_.Fragment,{children:[(null==K?void 0:null===(h=K.prevCode)||void 0===h?void 0:h.length)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-1 B__mb-2",children:[(0,_.jsx)("div",{className:"B__left-auto B__max-w-[80%]  B__bg-[#e9ecef] B__px-5 B__py-2 B__rounded-md B__break-words B__w-fit",children:"Changes done"}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1",children:[(0,_.jsxs)("button",{className:"B__flex B__gap-1 B__items-center B__text-xs B__font-bold B__bg-[#5959FF1a] B__text-[#5959FF] B__rounded-md B__px-1 B__py-0.5 B__w-fit",onClick:eL,children:[(0,_.jsx)(C.rb$,{})," Undo"]}),(0,_.jsxs)("button",{className:"B__flex B__gap-1 B__items-center B__text-xs B__font-bold B__bg-[#5959FF1a] B__text-[#5959FF] B__rounded-md B__px-1 B__py-0.5 B__w-fit",onClick:eC,children:[(0,_.jsx)(d.la_,{})," Regenerate"]}),(0,_.jsxs)("button",{className:"B__flex B__gap-1 B__items-center B__text-xs B__font-bold B__bg-[#5959FF1a] B__text-[#5959FF] B__rounded-md B__px-1 B__py-0.5 B__w-fit",onClick:()=>{ev(e=>"edit"===e?"":"edit")},children:[(0,_.jsx)(d.zmo,{})," Edit"]}),(0,_.jsxs)("button",{className:"B__flex B__gap-1 B__items-center B__text-xs B__font-bold B__bg-[#5959FF1a] B__text-[#5959FF] B__rounded-md B__px-1 B__py-0.5 B__w-fit",onClick:()=>{ev(e=>"upload"===e?"":"upload")},children:[(0,_.jsx)(b.Yjd,{})," Update Images"]})]})]}):(0,_.jsx)("div",{className:"B__flex B__flex-col B__mb-2",children:(0,_.jsx)("div",{className:"B__left-auto B__max-w-[80%]  B__bg-[#e9ecef] B__px-3 B__py-2 B__rounded-md B__break-words B__w-fit",children:"Changes reverted"})}),eu&&(0,_.jsx)("p",{className:"B__text-sm B__text-slate-600 B__mb-1",children:"edit"===eu?null==tp?void 0:tp.edit:"upload"===eu?null==tp?void 0:tp.upload:""}),(null==em?void 0:em.length)?(0,_.jsx)("div",{className:"B__flex B__items-center B__gap-2 B__px-2 B__py-1 B__mb-1 B__overflow-x-auto B__w-full",children:null==em?void 0:em.map((e,t)=>(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:e,className:"B__h-8 B__w-12 B__rounded-md",alt:"uploaded-image"}),(0,_.jsx)("div",{className:"B__absolute B__top-0 B__right-0 B__bg-white B__rounded-full B__cursor-pointer",onClick:eg(t),children:(0,_.jsx)(c.qFC,{})})]},t))}):(0,_.jsx)(_.Fragment,{})]})}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsxs)("div",{className:"B__w-full md:B__min-w-[300px] B__px-3 B__pb-3 B__border-t B__border-[#e1e1e1]",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-between B__gap-2 B__items-center B__mt-3",children:[(0,_.jsx)("textarea",{rows:2,placeholder:"Brief AI Bot about the section..",value:null==et?void 0:et.askAi,onChange:ey,name:"askAi",className:"B__w-full B__outline-none B__border-0 !B__shadow-none B__rounded-lg B__px-1.5 B__pr-20 B__py-0 custom-scrollbar-thiner "}),((null==ek?void 0:null===(f=ek.website_config)||void 0===f?void 0:null===(j=f[0])||void 0===j?void 0:j.status)!=="active"||(null==ek?void 0:null===(k=ek.license_details)||void 0===k?void 0:null===(N=k[0])||void 0===N?void 0:N.tier))&&eE&&null!=ek&&null!==(P=ek.prompts)&&void 0!==P&&null!==(I=P[0])&&void 0!==I&&I.count&&(null==ek?void 0:null===(Z=ek.prompts)||void 0===Z?void 0:null===(T=Z[0])||void 0===T?void 0:T.count)>=eE?(0,_.jsx)("button",{className:"B__text-white B__px-6 B__py-2 B__rounded-lg B__text-base B__font-medium disabled:B__cursor-not-allowed B__whitespace-nowrap B__bg-butternut-button",disabled:ea,onClick:()=>{ec(!0)},children:"Upgrade to Pro"}):(0,_.jsxs)("div",{className:"B__flex B__items-center B__absolute B__right-7",children:[(0,_.jsx)("button",{className:"B__text-[#5959FF] B__text-2xl B__rounded-full B__p-2",onClick:()=>{(null==eh?void 0:eh.current)&&eh.current.click()},children:(0,_.jsx)(M.qzI,{})}),(0,_.jsx)("button",{className:"B__bg-[#5959FF1a] B__text-[#5959FF] B__text-2xl B__rounded-full B__p-2",onClick:()=>{(null==et?void 0:et.askAi)?eZ(null==et?void 0:et.askAi):eo(e=>({...e,askAi:"Please enter your prompt."}))},children:(0,_.jsx)(d.bWr,{})})]})]}),ei.askAi&&(0,_.jsx)("span",{className:"B__text-red-500 B__text-sm B__px-1.5",children:ei.askAi})]})]}),(0,_.jsxs)("div",{className:"B__flex B__gap-2.5 B__justify-end",children:[(0,_.jsx)("button",{className:"B__text-lg lg:B__text-xl B__font-bold B__w-auto B__px-4 B__py-3 B__text- B__rounded-lg B__flex B__items-center B__justify-between B__gap-5 B__cursor-pointer B__border B__border-[#e1e1e1] B__text-[#5959ff] B__bg-white",onClick:()=>ee(e=>!e),style:{boxShadow:"0px 18.82px 45.18px 0px #00000014"},children:(0,_.jsx)(c.mV1,{className:"B__text-2xl"})}),(0,_.jsx)("button",{className:"B__text-lg lg:B__text-xl B__font-bold B__w-auto B__px-4 B__py-3 B__text- B__rounded-lg B__flex B__items-center B__justify-between B__gap-5 B__cursor-pointer B__border B__border-[#e1e1e1] B__text-[#5959ff] B__bg-white",onClick:()=>Q(e=>!e),style:{boxShadow:"0px 18.82px 45.18px 0px #00000014"},children:(0,_.jsx)("span",{className:"B__flex B__items-center B__gap-2",children:"AI"})})]})]})]}),"live"!==D&&X&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-end B__justify-end B__gap-2 B__mb-5",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-end B__items-cener B__gap-5",children:[(0,_.jsxs)("button",{className:"B__border-[#5959ff] B__text-[#5959ff] B__border B__px-8 B__py-2 B__text-base B__font-semibold B__rounded-md B__flex B__gap-2 B__items-center",onClick:eI,children:[(0,_.jsx)(e_.Gzj,{className:"B__text-lg"}),"Execute"]}),(0,_.jsx)("button",{className:"B__bg-[#42425b] B__text-white B__px-8 B__py-2 B__text-base B__font-semibold B__rounded-md",onClick:()=>{ee(!1)},children:"Close"}),(0,_.jsx)("button",{className:"B__bg-butternut-button B__text-white B__px-8 B__py-2 B__text-base B__font-semibold B__rounded-md",onClick:eP,children:"Save"})]}),(0,_.jsx)("span",{className:"B__text-sm B__font-semibold B__transition-all B__ease-in-out ".concat((null==en?void 0:en.success)?"B__text-[#5959ff]":"B__text-red-400"," ").concat((null==en?void 0:en.show)?"B__visible":"B__invisible"),children:null==en?void 0:en.msg})]}),(0,_.jsxs)("div",{className:"code-editor B__grid B__grid-cols-3 B__gap-3 B__pb-5",children:[(0,_.jsxs)("div",{className:"B__rounded-lg B__relative B__bg-[#1e1e1e] B__text-white B__pt-14 B__pb-3",children:[(0,_.jsx)("h3",{className:"B__font-bold B__font-[Lato] B__text-sm B__absolute B__left-6 B__top-4 B__bg-[#42425b] B__rounded-md B__px-3 B__py-1 B__m-0",children:"HTML"}),(0,_.jsx)(td.ZP,{language:"html",theme:"vs-dark",value:null==R?void 0:R.html,onChange:eb("html"),options:{minimap:{enabled:!1}},className:"B__h-[450px]"})]}),(0,_.jsxs)("div",{className:"B__rounded-lg B__relative B__bg-[#1e1e1e] B__text-white B__pt-14 B__pb-3",children:[(0,_.jsx)("h3",{className:"B__font-bold B__font-[Lato] B__text-sm B__absolute B__left-6 B__top-4 B__bg-[#42425b] B__rounded-md B__px-3 B__py-1 B__m-0",children:"CSS"}),(0,_.jsx)(td.ZP,{language:"css",theme:"vs-dark",value:null==R?void 0:R.css,onChange:eb("css"),options:{minimap:{enabled:!1}},className:"B__h-[450px]"})]}),(0,_.jsxs)("div",{className:"B__rounded-lg B__relative B__bg-[#1e1e1e] B__text-white B__pt-14 B__pb-3",children:[(0,_.jsx)("h3",{className:"B__font-bold B__font-[Lato] B__text-sm B__absolute B__left-6 B__top-4 B__bg-[#42425b] B__rounded-md B__px-3 B__py-1 B__m-0",children:"JavaScript"}),(0,_.jsx)(td.ZP,{language:"javascript",theme:"vs-dark",value:null==R?void 0:R.javascript,onChange:eb("javascript"),options:{minimap:{enabled:!1}},className:"B__h-[450px]"})]})]})]}),(0,_.jsx)(s.Z,{show:ed,handleClose:()=>ec(!1),mode:"login",websiteId:F}),(0,_.jsx)("input",{name:"file-upload",ref:eh,type:"file",className:"B__invisible B__max-w-[1px] B__mx-auto B__flex B__items-center",accept:".jpg, .jpeg, .png,",onChange:e=>{let t=e.target.files[0],l=t.type;if(l&&["/jpg","/jpeg","/png","/svg"].some(e=>l.endsWith(e))){let e=new FileReader;e.onload=()=>{let t=e.result;ep(e=>[...e,t])},ex(e=>[...e,t]),e.readAsDataURL(t)}else e.target.value=null,v.Am.error("Please select a valid image file (JPEG,JPG,PNG) .",{position:v.Am.POSITION.TOP_CENTER})}})]}):(0,_.jsx)(tx.Z,{})};var tv=l(20891);let th=()=>(0,_.jsxs)("div",{className:"B__px-3 B__py-2 B__rounded-lg B__bg-[#e6e7e2] B__w-fit B__pt-4 B__relative chat-bot",children:[(0,_.jsx)("div",{className:"B__absolute B__-bottom-1.5 B__-left-1 B__w-2 B__h-2 B__bg-[#e6e7e2] B__rounded-full"}),(0,_.jsx)("div",{className:"B__absolute B__-bottom-2.5 B__-left-2 B__w-1 B__h-1 B__bg-[#e6e7e2] B__rounded-full"}),(0,_.jsxs)("div",{className:"typing-loader",children:[(0,_.jsx)("div",{className:"dot"}),(0,_.jsx)("div",{className:"dot"}),(0,_.jsx)("div",{className:"dot"})]})]});var tg=l(69482);let ty=e=>{var t,l,o,a,s,n;let{blockProps:c,id:B,viewMode:x,websiteId:m,sectionLocation:p,slot:u}=e,{questions:v,logo:h,title:g,description:y}=c,[b,f]=(0,i.useState)(!1),[j,k]=(0,i.useState)(!1),[w,N]=(0,i.useState)([]),[P,I]=(0,i.useState)(""),[C,Z]=(0,i.useState)(0),T=(0,i.useRef)(null),[L,S]=(0,i.useState)(null),D=(0,i.useRef)(null),{websiteData:F}=(0,i.useContext)(r.o)||{};(0,i.useEffect)(()=>{T.current&&(T.current.scrollTop=T.current.scrollHeight)},[w,L]);let E=()=>{f(!b)},A=async e=>{if(!e&&!P.trim())return;let t={text:e||P,type:"user"};if(N(e=>[...e,t]),I(""),C>=10){N(e=>[...e,{text:"You have reached the limit of free prompts. Please schedule a support session.",type:"bot"}]);return}try{k(!0);let{data:t}=await (0,tv.AA)({website_id:m,section_id:B,prompt:e||P});k(!1),z(t.response)}catch(e){N(e=>[...e,{text:"Error fetching response.",type:"bot"}])}Z(e=>e+1)},H=e=>{"Enter"===e.key&&A()},z=e=>{let t=0,l=()=>{S(e.slice(0,t+1)),++t<e.length?D.current=setTimeout(l,10):(N(t=>[...t,{text:e,type:"bot"}]),S(null),clearTimeout(D.current))};l()};return(0,_.jsxs)("div",{className:"B__fixed B__right-5 B__z-[99999] ".concat((null==F?void 0:null===(t=F.layout)||void 0===t?void 0:null===(l=t.blockProps)||void 0===l?void 0:null===(o=l.whatsapp_button)||void 0===o?void 0:o.active)?"B__bottom-24":"B__bottom-5"),role:"complementary","aria-label":"Chatbot",style:{fontFamily:"'Mulish', sans-serif"},children:[(0,_.jsx)("button",{className:"B__bg-[#4c4cff] B__border-none B__rounded-full B__w-14 B__h-14 B__flex B__justify-center B__items-center B__text-white B__text-2xl B__cursor-pointer",onClick:E,"aria-label":"Open chatbot",style:{boxShadow:"0 4px 8px rgba(0, 0, 0, 0.2)"},children:(0,_.jsx)("span",{id:"chatbotIcon67890",children:b?(0,_.jsx)(d.lTq,{className:"B__text-2xl"}):(0,_.jsx)("svg",{id:"chatbotIconOpen67890",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"30",height:"30",fill:"#ffffff",children:(0,_.jsx)("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"})})})}),b&&(0,_.jsxs)("div",{className:"B__flex B__flex-col B__fixed  B__right-[20px] B__w-[95%] B__h-[530px] B__bg-white B__rounded-2xl B__overflow-hidden B__border B__border-[#ccc] md:B__w-[400px] ".concat((null==F?void 0:null===(a=F.layout)||void 0===a?void 0:null===(s=a.blockProps)||void 0===s?void 0:null===(n=s.whatsapp_button)||void 0===n?void 0:n.active)?"B__bottom-[160px]":"B__bottom-[90px]"),id:"chatbotWindow67890",style:{boxShadow:"0 4px 8px rgba(0, 0, 0, 0.2)"},children:[(0,_.jsxs)("div",{className:"B__bg-[#f8f9fa] B__px-5 B__py-3.5 B__text-center B__font-bold B__border-b B__border-[#ccc] B__flex B__items-center B__gap-2",role:"banner",children:[(0,_.jsx)("img",{src:h||"/favicon.png",alt:"Chatbot Logo",className:"B__w-8 B__h-8"}),"AI Assistant"]}),(0,_.jsxs)("div",{className:"B__px-5 B__py-3.5 B__h-[400px] B__overflow-auto B__text-sm B__text-[#212529]",ref:T,role:"log","aria-live":"polite",children:[0===w.length&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__text-center B__mb-5",id:"chatbotWelcome67890",children:[(0,_.jsx)("img",{src:h||"/favicon.png",alt:"AI",width:"50",height:"50",className:"B__mx-auto B__w-8 B__h-8"}),(0,_.jsx)("h2",{className:"B__my-2.5 B__text-base B__font-bold",children:g||"AI Assistant"}),(0,_.jsx)("p",{className:"B__m-0 ",children:y||"Type a message to begin the chat"})]}),(0,_.jsx)("div",{className:"B__mb-2.5 B__flex B__flex-col B__gap-2.5",id:"chatbotPromptContainer67890",children:null==v?void 0:v.map((e,t)=>(0,_.jsx)("button",{className:"B__p-2.5 B__rounded-md B__text-[#455a64] B__border B__border-[#455a64] B__text-sm B__text-left hover:B__text-black hover:B__border-black",onClick:()=>A(e),style:{boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",transition:"background-color 0.3s ease"},children:e},t))})]}),w.map((e,t)=>(0,_.jsxs)("div",{className:"B__mb-2.5 B__rounded-md B__p-2.5 B__break-words B__max-w-[80%] B__flex B__flex-col B__gap-1.5 B__items-start  ".concat("user"===e.type?"B__bg-[#4c4cff] B__text-white B__ml-auto":"B__text-[#212529] B__bg-[#f8f9fa]"),children:[(0,_.jsxs)("div",{className:"B__flex B__justify-start B__items-center",children:["user"===e.type?(0,_.jsx)(d.Vyx,{className:"B__mr-2.5 B__w-6 B__h-6"}):(0,_.jsx)("img",{className:"B__mr-2.5 B__w-6 B__h-6",src:"/favicon.png",alt:"Chatbot"}),(0,_.jsx)("strong",{children:"user"===e.type?"You:":"Chatbot:"})]}),(0,_.jsx)("div",{className:"B__inline-block",children:(0,_.jsx)(tg.U,{children:e.text})})]},t)),L&&(0,_.jsxs)("div",{className:"B__mb-2.5 B__rounded-md B__p-2.5 B__break-words B__max-w-[80%] B__flex B__flex-col B__gap-1.5 B__items-start  B__text-[#212529] B__bg-[#f8f9fa]",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-start B__items-center",children:[(0,_.jsx)("img",{className:"B__mr-2.5 B__w-6 B__h-6",src:"/favicon.png",alt:"Chatbot"}),(0,_.jsx)("strong",{children:"Chatbot:"})]}),(0,_.jsx)("div",{className:"B__inline-block",children:(0,_.jsx)(tg.U,{children:L})})]}),j&&(0,_.jsx)("div",{className:"B__mt-2.5",children:(0,_.jsx)(th,{})})]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__p-2.5 B__border-t B__border-[#ccc] B__bg-[#f8f9fa] B__mt-auto B__gap-3",children:[(0,_.jsx)("input",{type:"text",className:"B__flex-1 B__p-2.5 B__pr-[50px] B__border-none B__outline-none B__rounded-md B__bg-[#f8f9fa]",value:P,onChange:e=>I(e.target.value),onKeyDown:H,placeholder:"Type here to chat","aria-label":"Chat input"}),(0,_.jsx)("button",{className:"B__border-none B__rounded-md B__w-[40px] B__h-[35px] B__flex B__justify-center B__items-center B__cursor-pointer B__absolute B__right-0",onClick:()=>{A()},"aria-label":"Send message",children:(0,_.jsx)(d.D6S,{className:"B__text-[#3a3a3a] B__text-xl"})})]})]})]})},tb=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d,components:c}=n;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__gap-5 lg:B__gap-8 B__w-full B__p-3.5 lg:B__p-5 xl:B__p-6 2xl:B__p-[1.9rem] hover:B__bg-card-surface hover:B__border-transparent B__border B__border-primary-light B__flex-col lg:B__flex-row lg:even:B__flex-row-reverse B__rounded-primary",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[54%] xl:B__w-[52%]",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:320,width:700,style:{objectFit:"cover"},className:"B__w-full B__h-full B__max-h-[125px] lg:B__max-h-[184px] xl:B__max-h-[250px] 2xl:B__max-h-[320px] B__rounded-primary"})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[46%] xl:B__w-[48%] B__text-center lg:B__text-left",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var tf=l(57781);let tj=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n,gridSize:r=3,cardBg:d=""}=e,{title:c,description:B="",items:x,components:m}=n;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:c||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(c||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary B__text-center B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[600px]",children:(0,D.ZP)(B||"")})}),(0,_.jsx)("div",{className:(0,tf.W)({gridSize:r,className:"B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]"}),children:x.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__p-3.5 lg:B__p-5 xl:B__p-6 2xl:B__p-[1.9rem] B__border B__border-primary-light B__rounded-primary B__flex B__flex-col B__gap-3 lg:B__gap-4 xl:B__gap-5 B__bg-card-surface",style:d?{backgroundColor:d}:{},children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].description"),itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("div",{className:"B__bg-primary B__text-white B__font-secondary B__font-medium B__rounded-primary B__w-10 B__h-10 B__text-base B__flex B__items-center B__justify-center",children:t+1}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-base lg:B__text-lg 2xl:B__text-xl B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},tk=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n,gridSize:r=3}=e,{title:d,items:c,components:B}=n;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:d||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(d||"")})}),(0,_.jsx)("div",{className:(0,tf.W)({gridSize:r,className:"B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]"}),children:c.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__gap-5 lg:B__gap-9 xl:B__gap-14 2xl:B__gap-16",children:[(0,_.jsx)("div",{className:"B__w-full",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:320,width:500,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__object-cover B__object-center B__h-[200px] lg:B__h-[220px] xl:B__h-[290px] 2xl:B__h-[380px] B__rounded-primary"})})}),(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-lg lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__mb-2",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},tw=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n,shaded:r=!0,reverse:d=!1,hideImage:c=!1,listStyle:B="default"}=e,{title:x,items:m,img:p,components:u}=n;return(0,_.jsx)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"".concat(r?"B__bg-secondary":""," B__p-10 lg:B__p-12 xl:B__px-14 2xl:B__p-16"),children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:x||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(x||"")})}),(0,_.jsxs)("div",{className:"B__grid B__grid-cols-1 lg:B__grid-cols-2 B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20",children:[(0,_.jsx)("div",{className:"B__order-1 lg:B__order-2 ".concat(d?"B__order-2 lg:B__order-1":""),children:!c&&(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(x),src:p,height:500,width:600,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__object-cover B__object-center B__h-[250px] lg:B__h-[350px] xl:B__h-[400px] 2xl:B__h-[500px] B__rounded-primary"})})}),(0,_.jsx)("div",{className:"B__flex B__flex-col B__items-start B__justify-center B__gap-5 lg:B__gap-7 xl:B__gap-8 2xl:B__gap-10 ".concat(d?"B__order-2":"B__order-1 "),children:m.map((e,t)=>(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__items-start B__justify-start B__gap-2 lg:B__gap-4",children:["default"===B&&(0,_.jsx)("div",{className:"B__bg-primary B__text-white B__font-secondary B__font-semibold B__rounded-primary B__w-8 B__h-8 lg:B__w-10 lg:B__h-10 B__text-base B__flex B__items-center B__justify-center",children:t+1}),(0,_.jsxs)("div",{className:"B__text-primary B__font-secondary B__font-semibold B__rounded-primary B__text-base B__flex B__items-center B__justify-center B__pt-2",children:["numbers"===B&&(0,_.jsx)(_.Fragment,{children:t+1}),"bullets"===B&&(0,_.jsx)(_.Fragment,{children:"•"})]}),(0,_.jsxs)(S.Z,{className:"!B__w-[90%]",sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-lg lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-1.5 lg:B__mt-2 xl:B__mt-2.5",children:(0,D.ZP)(e.description||"")})]})]},t))})]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},tN=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,border:s=!0,center:n=!0,hideCTA:r=!1,blockProps:d}=e,{title:c,items:B,description:x,components:m}=d;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"B__p-10 lg:B__p-12 xl:B__px-14 2xl:B__p-16",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:c||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(n?"B__text-center":"B__text-left"," B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words ").concat(n?"B__max-w-[500px":""),style:{lineHeight:1.1},children:(0,D.ZP)(c||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:x||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary ".concat(n?"B__text-center":"B__text-left"," B__mx-auto B__text-lg B__break-words B__mt-4 ").concat(n?"B__max-w-[600px]":""),children:(0,D.ZP)(x||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center ".concat(n?"B__justify-center":"B__justify-start"," B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20"),children:(0,_.jsx)("div",{className:"B__flex B__flex-col B__items-start B__justify-center B__gap-5 lg:B__gap-7 xl:B__gap-8 2xl:B__gap-10 B__w-full md:B__w-[90%] lg:B__w-[70%] xl:B__w-[60%] 2xl:B__w-[50%]",children:B.map((e,t)=>{var n;return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__items-center B__justify-start B__gap-2 lg:B__gap-4 B__p-4 2xl:B__p-5 ".concat(s?"B__border":""," B__border-primary-light B__bg-card-surface B__rounded-primary"),children:[(0,_.jsx)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset",width:"auto"},editBtn:{icon:!0,fields:[{name:"icon",placeholder:"Icon",type:"file",isIcon:!0,value:"",key:"blockProps.items[".concat(t,"].icon"),field_label:"Icon"}]},children:e.icon?(0,_.jsx)("img",{src:e.icon,alt:(0,J.s9)(e.title),className:"B__w-full B__h-auto B__max-w-[50px]"}):(0,_.jsx)("div",{className:"B__bg-primary B__text-white B__font-secondary B__font-semibold B__rounded-primary B__w-8 B__h-8 lg:B__w-10 lg:B__h-10 B__text-base B__flex B__items-center B__justify-center",children:t+1})}),(0,_.jsxs)(S.Z,{className:"!B__w-[90%]",sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-lg lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal",children:(0,D.ZP)(e.description||"")})]}),!r&&(0,_.jsx)(K,{components:null===(n=e.components)||void 0===n?void 0:n.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]},t)})})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==d?void 0:null===(t=d.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})})},tP=()=>(0,_.jsx)("svg",{width:"35",height:"35",viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_.jsx)("path",{d:"M25.6667 9.33341V25.6667M17.5001 15.4584V25.6667M9.33341 21.5834V25.6667M5.25008 33.8334H29.7501C32.0052 33.8334 33.8334 32.0052 33.8334 29.7501V5.25008C33.8334 2.99492 32.0052 1.16675 29.7501 1.16675H5.25008C2.99492 1.16675 1.16675 2.99492 1.16675 5.25008V29.7501C1.16675 32.0052 2.99492 33.8334 5.25008 33.8334Z",stroke:"#A1A1AA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),tI=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n,hideIcon:r=!1}=e,{title:d,items:c,components:B}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"B__p-10 lg:B__p-12 xl:B__px-14 2xl:B__p-16",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:d||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(d||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20",children:(0,_.jsx)("div",{className:"B__gap-4 lg:B__gap-5 2xl:B__gap-7 B__w-full B__columns-1 lg:B__columns-2",children:c.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__items-start B__justify-start B__gap-8 lg:B__gap-10 xl:B__gap-14 2xl:B__gap-16 B__p-4 lg:B__p-5 xl:B__p-6 2xl:B__p-8 B__border B__border-primary-light B__bg-card-surface B__rounded-primary B__mb-5 B__break-inside-avoid-column",children:[!r&&(0,_.jsx)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},editBtn:{btntext:"Edit icon",fields:[{name:"icon",placeholder:"Icon",type:"file",isIcon:!0,value:"",key:"blockProps.items[".concat(t,"].icon"),field_label:"Icon"}]},children:e.icon?(0,_.jsx)("img",{src:e.icon,alt:(0,J.s9)(e.title),className:"B__w-full B__h-auto B__max-w-[50px]"}):(0,_.jsx)(tP,{})}),(0,_.jsxs)(S.Z,{className:"!B__w-[90%]",sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-3xl B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3.5 xl:B__mt-5 2xl:B__mt-6",children:(0,D.ZP)(e.description||"")}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-start B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})})},tC=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,components:d}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20",children:(0,_.jsx)("div",{className:"B__w-full B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3",children:r.map((e,a)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center",children:[(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__items-start B__justify-start B__gap-5 lg:B__gap-7 xl:B__gap-8 2xl:B__gap-10 B__p-4 lg:B__p-5 xl:B__p-6 2xl:B__p-8 B__bg-card-surface B__mt-5",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,className:"!B__flex-1 B__px-5",style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:320,width:500,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__object-cover B__object-center B__h-[150px] lg:B__h-[180px] xl:B__h-[220px] 2xl:B__h-[250px] B__rounded-primary"})}),(0,_.jsxs)(S.Z,{className:"!B__flex-1",sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(a,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-3xl B__break-words B__text-main B__text-center",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3.5 xl:B__mt-5 2xl:B__mt-6 B__text-center",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:" B__mx-auto",wrapperClassName:"B__relative B__flex B__justify-center B__items-center B__mx-auto",sectionId:t,parentKey:"blockProps.items[".concat(a,"].components"),viewMode:o})]},a),(0,_.jsx)("div",{className:"B__w-[1px] B__invisible B__border-r B__border-primary-light B__h-[70%] B__my-auto ".concat((a+1)%2==1&&(a+1)%3!=0?"md:!B__visible":(a+1)%3!=0?"lg:!B__visible":(a+1)%2==1?"md:!B__visible lg:!B__invisible":"")})]},a)})})}),(0,_.jsx)(K,{components:null==d?void 0:d.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:o}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})})},tZ=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d,components:c}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-medium B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20",children:(0,_.jsx)("div",{className:"B__w-full B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__gap-3 lg:B__gap-4 xl:B__gap-5 2xl:B__gap-7",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__items-start B__justify-start B__gap-7 lg:B__gap-9 xl:B__gap-12 2xl:B__gap-14 B__p-5 lg:B__p-8 xl:B__p-10 2xl:B__p-12 B__bg-card-surface B__mt-5 B__rounded-primary ",style:{boxShadow:"0px 42.44px 61.30px 0px #00000014"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,className:"!B__h-auto",style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:320,width:500,style:{objectFit:"cover"},className:"B__w-full B__object-cover B__object-center B__h-[170px] lg:B__h-[200px] xl:B__h-[220px] 2xl:B__h-[260px] B__rounded-primary"})}),(0,_.jsxs)(S.Z,{className:"",sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-bold B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-3xl B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3.5 xl:B__mt-5 2xl:B__mt-6",children:(0,D.ZP)(e.description||"")}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})})},tT=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,components:d}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20",children:(0,_.jsx)("div",{className:"B__w-full B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__gap-5 lg:B__gap-7 xl:B__gap-9 2xl:B__gap-12",children:r.map((e,a)=>{var s;return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__items-start B__justify-start B__gap-5 lg:B__gap-7 xl:B__gap-9 2xl:B__gap-10 B__bg-card-surface B__mt-5 B__rounded-primary",style:{boxShadow:"0px 42.44px 61.30px 0px #00000014"},children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,className:"!B__h-auto",style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:320,width:500,style:{objectFit:"cover"},className:"B__w-full B__object-cover B__object-center B__h-[200px] lg:B__h-[250px] xl:B__h-[300px] 2xl:B__h-[350px] B__rounded-primary"})}),(0,_.jsxs)(S.Z,{className:"B__px-6 lg:B__px-9 xl:B__px-12 2xl:B__px-14 B__pb-5 lg:B__pb-8 xl:B__pb-10 2xl:B__pb-12",sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(a,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-3xl B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3.5 xl:B__mt-5 2xl:B__mt-6",children:(0,D.ZP)(e.description||"")}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4 B__mb-0",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:t,parentKey:"blockProps.items[".concat(a,"].components"),viewMode:o})]})]},a)})})}),(0,_.jsx)(K,{components:null==d?void 0:d.filter(e=>"cta-button"===e.slot),className:"B__my-5 B__mt-10",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:o}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})})},tL=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,components:d}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"lg:B__w-[75%] xl:B__w-[60%] B__mx-auto",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20",children:(0,_.jsx)("div",{className:"B__w-full B__grid B__grid-cols-1 md:B__grid-cols-2 B__gap-3 lg:B__gap-4 xl:B__gap-5 2xl:B__gap-7",children:r.map((e,a)=>{var s;return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__items-start B__justify-start B__gap-5 lg:B__gap-7 xl:B__gap-8 2xl:B__gap-10 B__p-3 lg:B__p-4 xl:B__p-5 2xl:B__p-7 B__bg-card-surface B__shadow-primary-color B__mt-5 B__rounded-primary ".concat((a+1)%3==2?"md:B__row-span-2":""),children:[(0,_.jsx)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{btntext:"Edit icon",fields:[{name:"icon",placeholder:"Icon",type:"file",isIcon:!0,value:"",key:"blockProps.items[".concat(a,"].icon"),field_label:"Icon"}]},children:e.icon?(0,_.jsx)("img",{src:e.icon,alt:(0,J.s9)(e.title),className:"B__w-full B__h-auto B__max-w-[50px]"}):(0,_.jsx)(tP,{})}),(0,_.jsxs)(S.Z,{className:"",sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(a,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-3xl B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3.5 xl:B__mt-5 2xl:B__mt-6",children:(0,D.ZP)(e.description||"")}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4 B__mb-0",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:t,parentKey:"blockProps.items[".concat(a,"].components"),viewMode:o})]})]},a)})})}),(0,_.jsx)(K,{components:null==d?void 0:d.filter(e=>"cta-button"===e.slot),className:"B__my-5 B__mt-10",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:o}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})})},tS=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n,shaded:r=!0,reverse:d=!1,hideImage:c=!1,listStyle:B="default"}=e,{title:x,items:m,img:p,components:u}=n;return(0,_.jsx)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"".concat(r?"B__bg-secondary":""," B__p-5 lg:B__p-12 xl:B__px-14 2xl:B__p-16"),children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:x||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"".concat(c?"B__text-left":"B__text-center B__mx-auto"," B__text-primary B__font-bold B__font-primary B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words  B__max-w-[500px]"),style:{lineHeight:1.1},children:(0,D.ZP)(x||"")})}),(0,_.jsxs)("div",{className:"B__grid B__grid-cols-1 ".concat(c?"lg:B__grid-cols-1":"lg:B__grid-cols-2"," B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20"),children:[!c&&(0,_.jsx)("div",{className:"B__order-1 lg:B__order-2 ".concat(d?"B__order-2 lg:B__order-1":""),children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(x),src:p,height:500,width:600,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__object-cover B__object-center B__h-[250px] lg:B__h-[350px] xl:B__h-[400px] 2xl:B__h-[500px] B__rounded-primary"})})}),(0,_.jsx)("div",{className:"B__flex B__flex-col B__items-start B__justify-center B__gap-5 lg:B__gap-7 xl:B__gap-8 2xl:B__gap-10 B__px-0 ".concat(d?"B__order-2":"B__order-1 "),children:m.map((e,t)=>(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__items-start B__justify-start B__gap-2 lg:B__gap-2",children:[(0,_.jsxs)("div",{className:"B__text-primary B__font-secondary B__font-semibold B__rounded-primary B__text-base B__flex B__items-center B__justify-center B__pt-2",children:["numbers"===B&&(0,_.jsx)(_.Fragment,{children:t+1}),"bullets"===B&&(0,_.jsx)(_.Fragment,{children:"•"})]}),(0,_.jsx)(S.Z,{className:"!B__w-[90%]",sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-1.5 lg:B__mt-2 xl:B__mt-2.5",children:(0,D.ZP)(e.description||"")})})]},t))})]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},tD=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n,gridSize:r=3,cardBg:d=""}=e,{title:c,description:B="",items:x,components:m}=n;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:c||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(c||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary B__text-center B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[600px]",children:(0,D.ZP)(B||"")})}),(0,_.jsx)("div",{className:(0,tf.W)({gridSize:r,className:"B__mx-auto B__items-center B__justify-between B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] !B__max-w-4xl B__w-full"}),children:x.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__p-3.5 lg:B__p-5 xl:B__p-6 2xl:B__p-[1.9rem] B__rounded-primary B__flex B__flex-row B__gap-3 lg:B__gap-4 xl:B__gap-5 B__bg-card-surface",style:d?{backgroundColor:d}:{},children:[(0,_.jsx)("div",{className:"B__bg-primary B__text-white B__font-secondary B__font-medium B__rounded-primary !B__w-10 !B__h-10 B__min-w-[40px] B__text-base B__flex B__items-center B__justify-center B__mt-2",children:t+1}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-center",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].description"),itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-lg lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-base lg:B__text-lg 2xl:B__text-xl B__font-normal B__flex-grow",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},tF=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,description:n,img:r,title_keywords:d,img_keywords:c,description_keywords:B,components:x}=a;return(0,_.jsx)("div",{className:"",style:{background:"linear-gradient(180deg, var(--background-color-primary-light) 0%, #ffffff00 100%)"},children:(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",columnGap:50,boxSizing:"border-box"},className:"max-width-mobile-fullscreen custom-container-max-width B__mx-auto B__my-auto B__relative B__p-0 lg:B__py-[60px] xl:B__py-[80px] 2xl:B__py-[130px] global_css",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[36%] xl:B__w-[35%] 2xl:B__w-[38%] B__absolute lg:B__relative B__py-0 B__px-[25px] md:B__px-0 B__text-white md:B__text-inherit ",children:(0,_.jsxs)("div",{className:"B__hidden lg:B__block",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:3},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:d||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:s}]},children:(0,_.jsx)("h1",{className:"B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl lg:B__pr-10",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:2},type:o,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:B||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:n,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(K,{components:null==x?void 0:x.filter(e=>"cta-button"===e.slot),className:"B__mt-4 B__mb-8",wrapperClassName:"B__relative B__mx-auto B__flex B__justify-center md:B__justify-start B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:o})]})}),(0,_.jsx)("div",{className:"B__flex-1 B__w-full lg:B__w-[64%] xl:B__w-[65%] 2xl:B__w-[62%] B__h-[250px] md:B__h-[300px] lg:B__h-[340px] xl:B__h-[460px] 2xl:B__h-[590px]",children:(0,_.jsx)("div",{style:{backgroundImage:"url(".concat(r,")"),height:"100%",width:"100%",backgroundSize:"cover",backgroundPosition:"center",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"bgImg B__min-w-[60%] lg:B__rounded-primary",children:(0,_.jsx)("div",{style:{height:"100%",borderRadius:"inherit"},className:"B__bg-[#00000070] lg:B__bg-inherit",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:r,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img",aspectRatio:16/9}]}})})})})]})})},tE=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,title_keywords:n,tag:r="",components:d}=a;return(0,_.jsx)("div",{className:"B__bg-nav",children:(0,_.jsx)("div",{style:{boxSizing:"border-box"},className:"B__flex B__justify-center B__items-center max-width-mobile-fullscreen custom-container-max-width B__mx-auto B__my-auto B__relative B__py-[60px] xl:B__py-[80px] 2xl:B__py-[130px] global_css lg:B__min-h-[60vh]",children:(0,_.jsx)("div",{className:"B__w-full lg:B__w-[70%] xl:B__w-[60%] 2xl:B__[55%] B__relative B__py-0 B__px-[25px] md:B__px-0 md:B__text-inherit B__mx-auto",children:(0,_.jsxs)("div",{className:"B__block",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:2},type:o,regenrateBtn:{updateType:"key",key:"blockProps.tag",keywords:r||"",isImg:!1},editBtn:{fields:[{name:"tag",placeholder:"Tag",type:"texteditor",value:r,field_label:"Tag",key:"blockProps.tag"}]},children:(0,_.jsx)("div",{className:"B__text-center B__font-secondary B__text-nav B__font-normal B__text-xs lg:B__text-sm xl:B__text-base",children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:3},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:n||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:s}]},children:(0,_.jsx)("h1",{className:"B__text-center B__mt-3 xl:B__mt-5 B__font-bold B__font-primary B__text-nav B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl lg:B__pr-10",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(K,{components:null==d?void 0:d.filter(e=>"cta-button"===e.slot),className:"B__mt-4 ",sectionId:t,parentKey:"blockProps.components",wrapperClassName:"B__relative B__mx-auto B__flex B__justify-center B__items-center",viewMode:o})]})})})})},tA=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a,showGradientBackground:s}=e,{title:n,title_keywords:r,img:d,img_keywords:c,tag:B="",components:x}=a;return(0,_.jsxs)("div",{className:"B__relative",style:{backgroundImage:"url(".concat(d,")"),backgroundSize:"cover",backgroundPosition:"center center",width:"100%"},children:[(0,_.jsx)("div",{className:"B__absolute B__inset-0 B__z-10",style:{background:s?"linear-gradient(90deg, rgb(193 193 193) 24.41%, rgba(255, 255, 255, 0) 100%)":""}}),(0,_.jsxs)("div",{style:{},className:"custom-container-max-width B__mx-auto B__my-auto B__relative B__py-[60px] xl:B__py-[80px] 2xl:B__py-[130px] global_css B__z-20",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[70%] xl:B__w-[60%] 2xl:B__[55%] B__py-0 B__px-[25px] md:B__px-0 md:B__text-inherit B__mx-auto lg:B__mx-0",children:(0,_.jsxs)("div",{className:"B__block",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:2},type:o,regenrateBtn:{updateType:"key",key:"blockProps.tag",keywords:B||"",isImg:!1},editBtn:{fields:[{name:"tag",placeholder:"Tag",type:"texteditor",value:B,field_label:"Tag",key:"blockProps.tag"}]},children:(0,_.jsx)("div",{className:"B__text-left B__font-secondary B__text-head B__font-normal B__text-xs lg:B__text-sm xl:B__text-base",children:(0,D.ZP)(B||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:3},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:r||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("h1",{className:"B__text-left B__mt-3 xl:B__mt-5 B__font-bold B__font-primary B__text-head B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl lg:B__pr-10",children:(0,D.ZP)(n||"")})})]})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:"100px",position:"absolute",bottom:"0",width:"100%"},alwaysShow:!0,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:d,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img",aspectRatio:16/9}]}}),(0,_.jsx)(K,{components:null==x?void 0:x.filter(e=>"cta-button"===e.slot),className:"B__mt-4 B__mb-8",wrapperClassName:"B__relative B__mx-auto B__flex B__justify-center md:B__justify-start B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:o})]})]})},tH=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s}=e,{title:n,title_keywords:c,tag:B="",img:x,img_keywords:m,showTitle:p=!0,deletedBlock:u=!1,components:v}=s,{updateSectionData:h}=(0,i.useContext)(r.o)||{};return(0,_.jsxs)("div",{className:"B__relative B__h-[calc(100vh-124px)] B__min-h-[500px] global_css",children:[(0,_.jsxs)("div",{className:"B__absolute B__top-0 B__left-0 B__h-full B__w-full B__z-0",children:[(0,_.jsx)("img",{src:x,alt:(0,J.s9)(n),style:{height:"100%",width:"100%",objectFit:"cover"}}),(0,_.jsx)("div",{className:"B__absolute B__inset-0 B__bg-secondary-lighter"})]}),(0,_.jsx)("div",{style:{width:"100%"},children:(0,_.jsx)("div",{className:"B__absolute B__left-1/2 B__top-1/2 B__-translate-x-1/2 B__-translate-y-1/2 B__min-w-[300px] md:B__min-w-[420px] B__max-w-[90%] md:B__max-w-[75%] lg:B__max-w-[50%]",children:!u&&("live"!==a||p)?(0,_.jsxs)("div",{className:"B__p-10 B__flex B__flex-col B__items-center B__px-8 lg:B__px-9 xl:B__px-12 2xl:B__px-14 B__py-7 lg:B__py-10 xl:B__py-12 2xl:B__py-14 B__rounded-primary B__relative B__bg-surface-80",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.tag",keywords:B||"",isImg:!1},editBtn:{fields:[{name:"tag",placeholder:"Tag",type:"texteditor",value:B,field_label:"Tag",key:"blockProps.tag"}]},children:(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center",children:(0,_.jsx)("div",{children:(0,D.ZP)(B||"")})})}),"live"!==a||p?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},hideBtn:{key:"blockProps.showTitle",value:p},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("h1",{className:"B__mt-4 xl:B__mt-5 B__text-center B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl  ".concat(p?"":"B__opacity-75"),children:(0,D.ZP)(n||"")})}):(0,_.jsx)(_.Fragment,{}),"live"!==a?(0,_.jsx)("div",{className:"B__absolute B__top-2 B__right-3 B__p-2 B__cursor-pointer",onClick:()=>{null==h||h({"blockProps.deletedBlock":!u},t,"website"===l,o)},children:(0,_.jsx)(d.ZkW,{size:30,className:"B__text-butternut-orange"})}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(K,{components:null==v?void 0:v.filter(e=>"cta-button"===e.slot),className:"B__mt-4",sectionId:t,parentKey:"blockProps.components",viewMode:a})]}):(0,_.jsx)(_.Fragment,{})})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,alwaysShow:!0,style:{position:"absolute",zIndex:10,bottom:100,height:"auto"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:m||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:x,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img",aspectRatio:16/9}]}})]})},tz=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s}=e,{title:n,title_keywords:c,tag:B="",img:x,img_keywords:m,showTitle:p=!0,deletedBlock:u=!1,components:v}=s,{updateSectionData:h}=(0,i.useContext)(r.o)||{};return(0,_.jsxs)("div",{className:"B__relative B__h-[calc(80vh-124px)] lg:B__h-[calc(100vh-124px)] B__min-h-[500px] global_css",children:[(0,_.jsxs)("div",{className:"B__absolute B__top-0 B__left-0 B__h-full B__w-full B__z-0",children:[(0,_.jsx)("img",{src:x,alt:(0,J.s9)(n),style:{height:"100%",width:"100%",objectFit:"cover"}}),(0,_.jsx)("div",{className:"B__absolute B__inset-0 B__bg-secondary-lighter"})]}),(0,_.jsxs)("div",{style:{width:"100%"},children:[(0,_.jsxs)("div",{className:"B__absolute B__bottom-[10%] B__min-w-[300px] md:B__min-w-[420px] B__max-w-[90%] md:B__max-w-[75%] lg:B__max-w-[50%]",children:[!u&&("live"!==a||p)?(0,_.jsxs)("div",{className:"B__p-10 B__flex B__flex-col B__items-center B__px-8 lg:B__px-9 xl:B__px-12 2xl:B__px-14 B__py-7 lg:B__py-10 xl:B__py-12 2xl:B__py-14 B__rounded-r-primary B__bg-surface B__relative",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.tag",keywords:B||"",isImg:!1},editBtn:{fields:[{name:"tag",placeholder:"Tag",type:"texteditor",value:B,field_label:"Tag",key:"blockProps.tag"}]},children:(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-left",children:(0,_.jsx)("div",{children:(0,D.ZP)(B||"")})})}),"live"!==a||p?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},hideBtn:{key:"blockProps.showTitle",value:p},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("h1",{className:"B__mt-4 xl:B__mt-5 B__text-left B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl ".concat(p?"":"B__opacity-75"),children:(0,D.ZP)(n||"")})}):(0,_.jsx)(_.Fragment,{}),"live"!==a?(0,_.jsx)("div",{className:"B__absolute B__top-2 B__right-3 B__p-2 B__cursor-pointer",onClick:()=>{null==h||h({"blockProps.deletedBlock":!u},t,"website"===l,o)},children:(0,_.jsx)(d.ZkW,{size:30,className:"B__text-butternut-orange"})}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(K,{components:null==v?void 0:v.filter(e=>"cta-button"===e.slot),className:"B__mt-4 B__mb-8",wrapperClassName:"B__relative B__mx-auto B__flex B__justify-center md:B__justify-start B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:a})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{style:{height:100}})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,alwaysShow:!0,style:{position:"absolute",zIndex:10,bottom:100,height:"auto"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:m||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:x,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img",aspectRatio:16/9}]}})]})]})},tM=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsx)("div",{className:"B__bg-shade-dark",children:(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width section-vertical-padding global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-2 lg:B__grid-cols-4 B__mt-6 lg:B__mt-8 xl:B__mt-[3.7rem] B__gap-3.5 lg:B__gap-7",children:r.map((e,t)=>(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-start B__gap-5 lg:B__gap-8 B__flex-col B__bg-card-surface B__rounded-primary",children:(0,_.jsx)("div",{className:"B__p-4 lg:B__p-8 B__w-full B__h-full B__bg-secondary B__rounded-primary B__flex B__items-center B__justify-start B__flex-col B__gap-5 lg:B__gap-8",children:(0,_.jsx)("div",{className:"B__w-full B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t},style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"feature",placeholder:"Feature",type:"texteditor",value:e.feature,key:"blockProps.items[".concat(t,"].feature"),field_label:"Feature"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-secondary B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-[2rem] B__break-words B__text-center B__text-main-light",style:{lineHeight:1.1,letterSpacing:"-1.223px"},children:(0,D.ZP)(e.feature||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-center B__font-normal B__mt-1.5 xl:B__mt-2 2xl:B__mt-2.5 B__text-base 2xl:B__text-lg B__break-words",children:(0,D.ZP)(e.description||"")})]})})})},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},tU=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,title_keywords:d}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width section-vertical-padding xl:B__px-8",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__mx-auto B__mt-6 lg:B__mt-10 xl:B__mt-[3.7rem] B__gap-x-[15px] B__gap-y-[30px]",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-start B__gap-5 lg:B__gap-8 B__p-4 lg:B__p-8 B__py-6 lg:B__py-3 xl:B__py-6 B__flex-col B__bg-card-surface lg:B__bg-card-surface B__rounded-primary",children:(0,_.jsx)("div",{className:"B__w-full B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,deleteBtn:{deleteType:"item",itemIndex:a},style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"stats",placeholder:"Stats",type:"texteditor",value:e.stats,key:"blockProps.items[".concat(a,"].stats"),field_label:"Stats"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-secondary B__font-medium B__text-xl lg:B__text-2xl xl:B__text-3xl 2xl:B__text-4xl B__text-center B__break-words B__text-main-light",style:{lineHeight:1.1,letterSpacing:"-1.423px"},children:(0,D.ZP)(e.stats||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__font-normal B__mt-3 B__text-center lg:B__px-8  B__text-base 2xl:B__text-lg B__break-words",children:(0,D.ZP)(e.description||"")})]})})},a))}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},tV=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,title_keywords:d}=s;return(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width section-vertical-padding",children:[(0,_.jsxs)("div",{className:"lg:B__flex lg:B__flex-row B__items-center B__justify-between B__gap-4 lg:B__gap-8",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[25%]",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center lg:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-xl lg:B__text-2xl xl:B__text-3xl 2xl:B__text-4xl B__relative B__break-words B__px-3 lg:B__px-0 B__mb-0 B__max-w-[85%] lg:B__mx-0",children:(0,D.ZP)(n||"")})})}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-[72%] B__grid B__grid-cols-2 lg:B__grid-cols-4 B__mx-auto B__mt-6 lg:B__mt-10 xl:B__mt-[3.7rem] B__gap-4",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-start B__gap-5 lg:B__gap-8 B__py-3 lg:B__py-5 xl:B__py-7 B__flex-col B__rounded-primary",children:(0,_.jsx)("div",{className:"B__w-full B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,deleteBtn:{deleteType:"item",itemIndex:a},style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"stats",placeholder:"Stats",type:"texteditor",value:e.stats,key:"blockProps.items[".concat(a,"].stats"),field_label:"Stats"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-secondary B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-[2rem] B__text-center B__break-words B__text-main-light",style:{lineHeight:1.1,letterSpacing:"-1.423px"},children:(0,D.ZP)(e.stats||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__font-normal B__mt-3 B__text-center B__px-2 xl:B__px-4 B__text-base 2xl:B__text-lg B__break-words",children:(0,D.ZP)(e.description||"")})]})})},a))})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},tR=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,title_keywords:d}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width section-vertical-padding",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-2 lg:B__grid-cols-4 B__mx-auto B__mt-6 lg:B__mt-10 xl:B__mt-[3.7rem] B__gap-4",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-start B__gap-5 lg:B__gap-8 B__py-6 lg:B__py-3 xl:B__py-7 B__flex-col B__bg-surface B__rounded-primary",children:(0,_.jsx)("div",{className:"B__w-full B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,deleteBtn:{deleteType:"item",itemIndex:a},style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"stats",placeholder:"Stats",type:"texteditor",value:e.stats,key:"blockProps.items[".concat(a,"].stats"),field_label:"Stats"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-secondary B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-[2rem] B__text-center B__break-words B__text-main-light",style:{lineHeight:1.1,letterSpacing:"-1.423px"},children:(0,D.ZP)(e.stats||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__font-normal B__mt-3 B__text-center B__px-4 lg:B__px-8 B__text-base 2xl:B__text-lg B__break-words B__mb-0",children:(0,D.ZP)(e.description||"")})]})})},a))}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},tW=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,title_keywords:d}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width section-vertical-padding global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-2 lg:B__grid-cols-4 B__mx-auto B__mt-6 lg:B__mt-10 xl:B__mt-[3.7rem] B__gap-x-[15px] B__gap-y-[30px]",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-start B__gap-5 lg:B__gap-8 B__flex-col B__bg-card-surface B__rounded-primary",children:(0,_.jsx)("div",{className:"B__w-full B__h-full B__py-6 lg:B__py-8 xl:B__py-10 B__bg-secondary B__rounded-primary B__flex B__flex-col B__items-center B__justify-start",children:(0,_.jsx)("div",{className:"B__w-full B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,deleteBtn:{deleteType:"item",itemIndex:a},style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"stats",placeholder:"Stats",type:"texteditor",value:e.stats,key:"blockProps.items[".concat(a,"].stats"),field_label:"Stats"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-secondary B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-[2rem] B__text-center B__break-words B__text-main-light",style:{lineHeight:1.1,letterSpacing:"-1.423px"},children:(0,D.ZP)(e.stats||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__font-normal B__mt-3 B__text-center B__px-4 lg:B__px-8 B__text-base 2xl:B__text-lg B__break-words",children:(0,D.ZP)(e.description||"")})]})})})},a))}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},tK=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,description:d="",title_keywords:c}=s;return(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width section-vertical-padding ",children:[(0,_.jsxs)("div",{className:"lg:B__flex B__flex-col lg:B__flex-row B__items-center B__justify-between B__gap-4 lg:B__gap-8",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%]",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center lg:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-0 B__mb-0 B__max-w-[80%] lg:B__mx-0",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary B__text-center lg:B__text-left B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[600px]",children:(0,D.ZP)(d||"")})})]}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-1/2 B__grid B__grid-cols-2 B__mx-auto B__mt-6 lg:B__mt-10 xl:B__mt-[3.7rem] B__gap-4",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-start B__gap-5 lg:B__gap-8 B__flex-col B__bg-secondary B__rounded-primary",children:(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-start B__gap-5 lg:B__gap-8 B__py-6 lg:B__py-8 xl:B__py-10 B__flex-col B__bg-card-surface B__rounded-primary B__w-full B__h-full",children:(0,_.jsx)("div",{className:"B__w-full B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,deleteBtn:{deleteType:"item",itemIndex:a},style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"stats",placeholder:"Stats",type:"texteditor",value:e.stats,key:"blockProps.items[".concat(a,"].stats"),field_label:"Stats"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-secondary B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-[2rem] B__text-center B__break-words B__text-main-light",style:{lineHeight:1.1,letterSpacing:"-1.423px"},children:(0,D.ZP)(e.stats||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__font-normal B__mt-3 B__text-center B__px-4 lg:B__px-8 B__text-base 2xl:B__text-lg B__break-words",children:(0,D.ZP)(e.description||"")})]})})})},a))})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},tq=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r,description:d="",title_keywords:c}=s;return(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width section-vertical-padding ",children:[(0,_.jsxs)("div",{className:"lg:B__flex B__flex-col lg:B__flex-row B__items-center B__justify-between B__gap-4 lg:B__gap-8 global_css",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%]",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center lg:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-0 B__mb-0 B__max-w-[80%] lg:B__mx-0",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary B__text-center lg:B__text-left B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[600px]",children:(0,D.ZP)(d||"")})})]}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-1/2 B__grid B__grid-cols-2 B__mx-auto B__mt-6 lg:B__mt-10 xl:B__mt-[3.7rem] B__gap-4",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-start B__gap-5 lg:B__gap-8 B__py-6 lg:B__py-8 xl:B__py-10 B__flex-col B__rounded-primary",children:(0,_.jsx)("div",{className:"B__w-full B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,deleteBtn:{deleteType:"item",itemIndex:a},style:{height:void 0,zIndex:"unset"},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"stats",placeholder:"Stats",type:"texteditor",value:e.stats,key:"blockProps.items[".concat(a,"].stats"),field_label:"Stats"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-secondary B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-[2rem] B__text-center B__break-words B__text-main-light",style:{lineHeight:1.1,letterSpacing:"-1.423px"},children:(0,D.ZP)(e.stats||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__font-normal B__mt-3 B__text-center B__px-4 lg:B__px-8 B__text-base 2xl:B__text-lg B__break-words",children:(0,D.ZP)(e.description||"")})]})})},a))})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},tO=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n}=a;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)(e3.Z,{breakpointCols:{default:4,1100:3,700:2,500:1},className:"B__flex B__w-auto B__mx-auto",columnClassName:"B__bg-clip-padding B__pl-4 lg:B__pl-5 xl:B__pl-6 2xl:B__pl-7",children:n.map((e,a)=>(0,_.jsx)("div",{className:"B__pb-4 lg:B__pb-5 xl:B__pb-6 2xl:B__pb-7 B__rounded-primary",style:{width:"100%",height:"auto"},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"auto",className:"B__rounded-primary"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},tG={layout2:["tall","wide","","tall","",""],layout3:["big","tall","tall","big"],layout4:["big","","","wide"],layout5:["tall"],layout6:["huge","","","",""],layout7:["huge","","big","","",""],layout8:["huge","big","big"],layout9:["big","big","big","big"]},t$=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,description:r=""}=a,d=tG.layout2;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__mt-4 B__max-w-[600px] B__mx-auto",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)("div",{className:"custom-grid-wrapper",children:n.map((e,a)=>(0,_.jsx)("div",{className:"".concat(d[a%d.length]," B__rounded-primary B__flex B__justify-center B__items-center B__w-full B__h-full"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"100%",className:"B__rounded-primary B__object-cover B__object-center B__w-full B__h-full"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},tY=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,description:r=""}=a,d=tG.layout3;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__mt-4 B__max-w-[600px] B__mx-auto",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)("div",{className:"custom-grid-wrapper-4",children:n.map((e,a)=>(0,_.jsx)("div",{className:"".concat(d[a%d.length]," B__rounded-primary B__flex B__justify-center B__items-center B__w-full B__h-full"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"100%",className:"B__rounded-primary B__object-cover B__object-center B__w-full B__h-full"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},tJ=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,description:r=""}=a,d=tG.layout4;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__mt-4 B__max-w-[600px] B__mx-auto",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)("div",{className:"custom-grid-wrapper-4",children:n.map((e,a)=>(0,_.jsx)("div",{className:"".concat(d[a%d.length]," B__rounded-primary B__flex B__justify-center B__items-center B__w-full B__h-full"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"100%",className:"B__rounded-primary B__object-cover B__object-center B__w-full B__h-full"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},tQ=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,description:r=""}=a,d=tG.layout5;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__mt-4 B__max-w-[600px] B__mx-auto",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)("div",{className:"custom-grid-wrapper-4",children:n.map((e,a)=>(0,_.jsx)("div",{className:"".concat(d[a%d.length]," B__rounded-primary B__flex B__justify-center B__items-center B__w-full B__h-full"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"100%",className:"B__rounded-primary B__object-cover B__object-center B__w-full B__h-full"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},tX=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,description:r=""}=a,d=tG.layout6;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__mt-4 B__max-w-[600px] B__mx-auto",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)("div",{className:"custom-grid-wrapper-4",children:n.map((e,a)=>(0,_.jsx)("div",{className:"".concat(d[a%d.length]," B__rounded-primary B__flex B__justify-center B__items-center B__w-full B__h-full"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"100%",className:"B__rounded-primary B__object-cover B__object-center B__w-full B__h-full"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},t0=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,description:r=""}=a,d=tG.layout7;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__mt-4 B__max-w-[600px] B__mx-auto",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)("div",{className:"custom-grid-wrapper-4",children:n.map((e,a)=>(0,_.jsx)("div",{className:"".concat(d[a%d.length]," B__rounded-primary B__flex B__justify-center B__items-center B__w-full B__h-full"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"100%",className:"B__rounded-primary B__object-cover B__object-center B__w-full B__h-full"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},t1=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,description:r=""}=a,d=tG.layout8;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__mt-4 B__max-w-[600px] B__mx-auto",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)("div",{className:"custom-grid-wrapper-4 grid-200",children:n.map((e,a)=>(0,_.jsx)("div",{className:"".concat(d[a%d.length]," B__rounded-primary B__flex B__justify-center B__items-center B__w-full B__h-full"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"100%",className:"B__rounded-primary B__object-cover B__object-center B__w-full B__h-full"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},t2=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n,description:r=""}=a,d=tG.layout9;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__mt-4 B__max-w-[600px] B__mx-auto",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)("div",{className:"custom-grid-wrapper-4 grid-200",children:n.map((e,a)=>(0,_.jsx)("div",{className:"".concat(d[a%d.length]," B__rounded-primary B__flex B__justify-center B__items-center B__w-full B__h-full"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,alt:"",width:"100%",height:"100%",className:"B__rounded-primary B__object-cover B__object-center B__w-full B__h-full"})})},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},t5=e=>{var t;let{id:l,sectionLocation:o,slot:a,viewMode:s,blockProps:n}=e,{title:r,items:d}=n,[c,B]=(0,i.useState)([]),x=e=>{B(t=>{let l=JSON.parse(JSON.stringify(t)),_=l.findIndex(t=>t===e);return _>-1?l.splice(_,1):l.push(e),l})};return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto global_css custom-container-max-width",children:[(0,_.jsxs)("div",{className:"faq",style:{color:"#000"},children:[(0,_.jsx)("div",{className:"",children:(0,_.jsx)(S.Z,{type:s,sectionId:l,sectionLocation:o,slot:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",field_label:"Title",key:"blockProps.title"}]},children:(0,_.jsx)("div",{children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-semibold B__font-primary B__mx-auto  B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words lg:B__max-w-[80%]",children:(0,D.ZP)(r||"")})})})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:d.map((e,t)=>{let i=c.includes(t);return(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,style:{height:void 0},editBtn:{style:{zIndex:1},fields:[{name:"question",placeholder:"Question",type:"texteditor",value:e.question,field_label:"Question",key:"blockProps.items[".concat(t,"].question")},{name:"answer",placeholder:"Answer",type:"texteditor",value:e.answer,field_label:"Answer",key:"blockProps.items[".concat(t,"].answer")}]},deleteBtn:{deleteType:"item",itemIndex:t,style:{top:0,right:40}},children:(0,_.jsx)("div",{className:"B__bg-card-surface B__rounded-lg B__mb-4 lg:B__mb-7 B__font-secondary",children:(0,_.jsxs)("div",{className:"B__py-3 xl:B__py-4 B__px-5 xl:B__px-6 B__bg-secondary B__rounded-lg B__font-secondary ".concat(i?"B__py-5 xl:B__py-7":""),children:[(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center",style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsxs)("div",{className:"B__inline-flex B__gap-1 B__text-primary B__font-secondary B__font-normal B__text-base lg:B__text-lg xl:B__text-xl B__w-5/6 B__cursor-pointer B__mb-2",onClick:()=>{x(t)},children:[(0,_.jsxs)("span",{children:[t+1,"."]})," ",(0,D.ZP)(e.question||"")]}),(0,_.jsx)("button",{style:{backgroundColor:"transparent",border:"none",zIndex:1},className:"B__text-primary",onClick:()=>{x(t)},children:i?(0,_.jsx)(M.E0f,{className:"B__text-primary"}):(0,_.jsx)(M.IAR,{})})]}),i&&(0,_.jsx)("div",{className:"B__text-primary B__font-secondary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__ml-5 B__mr-6 B__transition-[height]",children:(0,D.ZP)(e.answer||"")})]})})},t)})})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:s})]})]})},t3=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s,gridSize:n=2,align:r="center",hideSNo:d=!1}=e,{title:c,description:B,items:x}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto global_css custom-container-max-width",children:[(0,_.jsxs)("div",{className:"faq B__flex B__flex-col B__justify-center B__items-center 2xl:B__max-w-[1400px] 2xl:B__mx-auto",style:{color:"#000"},children:[(0,_.jsx)("div",{className:"B__w-full",children:(0,_.jsxs)(S.Z,{type:a,sectionId:l,sectionLocation:i,slot:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:c||"",field_label:"Title",key:"blockProps.title"},{name:"description",placeholder:"Description",type:"texteditor",value:B||"",field_label:"Description",key:"blockProps.description"}]},children:[(0,_.jsx)("h3",{className:"".concat("center"===r?"B__text-center":"B__text-left"," B__text-primary B__font-semibold B__font-primary B__mx-auto  B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words ").concat("center"===r?"lg:B__max-w-[80%]":""),children:(0,D.ZP)(c||"")}),B&&(0,_.jsx)("div",{className:"B__w-[100%] B__flex ".concat("center"===r?"B__justify-center  B__text-center":"B__justify-start"," B__mt-5"),children:(0,_.jsx)("p",{className:"B__w-[65%] B__text-md",children:(0,D.ZP)(B||"")})})]})}),(0,_.jsx)("div",{className:(0,tf.W)({gridSize:n,className:"B__gap-x-8 B__mt-5 lg:B__mt-10 xl:B__mt-12 2xl:B__mt-14"}),children:x.map((e,t)=>(0,_.jsx)("div",{className:"B__col-span-1",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0},editBtn:{style:{zIndex:1},fields:[{name:"question",placeholder:"Question",type:"texteditor",value:e.question,regenerateBtn:!0,field_label:"Question",key:"blockProps.items[".concat(t,"].question")},{name:"answer",placeholder:"Answer",type:"texteditor",value:e.answer,field_label:"Answer",key:"blockProps.items[".concat(t,"].answer")}]},deleteBtn:{deleteType:"item",itemIndex:t,style:{top:4,right:0}},children:(0,_.jsxs)("div",{className:"B__flex B__flex-wrap B__py-3 xl:B__py-4 B__font-secondary",children:[(0,_.jsxs)("div",{className:"B__inline-flex B__gap-1 B__text-primary B__font-secondary B__font-medium B__text-base lg:B__text-lg xl:B__text-xl B__w-5/6 B__cursor-pointer",children:[(0,_.jsx)("span",{children:d?"":"".concat(t+1,".")})," ",(0,D.ZP)(e.question||"")]}),!!e.answer&&(0,_.jsx)("div",{className:"B__whitespace-break-spaces B__text-[#52525B] B__font-secondary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__transition-[height] B__pt-5 B__pb-3",children:(0,D.ZP)(e.answer||"")})]})},t)},t))})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})]})},t4=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto global_css custom-container-max-width",children:[(0,_.jsxs)("div",{className:"faq",style:{color:"#000"},children:[(0,_.jsx)("div",{className:"",children:(0,_.jsx)(S.Z,{type:a,sectionId:l,sectionLocation:i,slot:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",field_label:"Title",key:"blockProps.title"}]},children:(0,_.jsx)("div",{children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-medium B__font-primary B__mx-auto  B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words lg:B__max-w-[80%]",children:(0,D.ZP)(n||"")})})})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:r.map((e,t)=>(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0},editBtn:{style:{zIndex:1},fields:[{name:"question",placeholder:"Question",type:"texteditor",value:e.question,field_label:"Question",key:"blockProps.items[".concat(t,"].question")},{name:"answer",placeholder:"Answer",type:"texteditor",value:e.answer,field_label:"Answer",key:"blockProps.items[".concat(t,"].answer")}]},deleteBtn:{deleteType:"item",itemIndex:t,style:{top:0,right:0}},children:(0,_.jsxs)("div",{className:"B__py-3 xl:B__py-4 B__mb-3 lg:B__mb-3 B__font-secondary",style:{borderBottom:t+1!==r.length?"1px solid #E5E7EB":""},children:[(0,_.jsxs)("div",{className:"B__inline-flex B__gap-1 B__text-primary B__font-secondary B__font-semibold B__text-base lg:B__text-lg xl:B__text-xl B__w-5/6 B__cursor-pointer",children:[(0,_.jsxs)("span",{children:[t+1,"."]})," ",(0,D.ZP)(e.question||"")]}),(0,_.jsx)("div",{className:"B__text-[#52525B] B__font-secondary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__transition-[height] B__pt-5 B__pb-3",children:(0,D.ZP)(e.answer||"")})]})},t))})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})]})},t6=e=>{var t;let{id:l,sectionLocation:o,slot:a,viewMode:s,blockProps:n}=e,{title:r,description:d,items:c}=n,[B,x]=(0,i.useState)([]),m=e=>{x(t=>{let l=JSON.parse(JSON.stringify(t)),_=l.findIndex(t=>t===e);return _>-1?l.splice(_,1):l.push(e),l})};return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto global_css custom-container-max-width",children:[(0,_.jsxs)("div",{className:"faq",style:{color:"#000"},children:[(0,_.jsx)("div",{className:"",children:(0,_.jsxs)(S.Z,{type:s,sectionId:l,sectionLocation:o,slot:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",field_label:"Title",key:"blockProps.title"},{name:"description",placeholder:"Description",type:"texteditor",value:d||"",field_label:"Description",key:"blockProps.description"}]},children:[(0,_.jsx)("div",{children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-semibold B__font-primary B__mx-auto  B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words lg:B__max-w-[80%]",children:(0,D.ZP)(r||"")})}),d&&(0,_.jsx)("div",{className:"B__w-[100%] B__flex B__justify-center B__text-center B__mt-5",children:(0,_.jsx)("p",{className:"B__w-[65%] B__text-md",children:(0,D.ZP)(d||"")})})]})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:c.map((e,t)=>{let i=B.includes(t);return(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,style:{height:void 0},editBtn:{style:{zIndex:1},fields:[{name:"question",placeholder:"Question",type:"texteditor",value:e.question,field_label:"Question",key:"blockProps.items[".concat(t,"].question")},{name:"answer",placeholder:"Answer",type:"texteditor",value:e.answer,field_label:"Answer",key:"blockProps.items[".concat(t,"].answer")}]},deleteBtn:{deleteType:"item",itemIndex:t,style:{top:6,right:35}},children:(0,_.jsx)("div",{className:"B__bg-card-surface B__rounded-lg B__mb-4 lg:B__mb-7 B__font-secondary",children:(0,_.jsxs)("div",{className:"B__py-3 xl:B__py-4 B__px-5 xl:B__px-6 B__bg-secondary B__rounded-lg B__font-secondary ".concat(i?"B__py-5 xl:B__py-7":""),children:[(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center",style:{display:"flex",justifyContent:"space-between"},children:[(0,_.jsxs)("div",{className:"B__inline-flex B__gap-1 B__text-primary B__font-secondary B__font-normal B__text-base lg:B__text-lg xl:B__text-xl B__w-5/6 B__cursor-pointer",onClick:()=>{m(t)},children:[(0,_.jsxs)("span",{children:[t+1,"."]})," ",(0,D.ZP)(e.question||"")]}),(0,_.jsx)("button",{style:{backgroundColor:"transparent",border:"none",zIndex:1},className:"B__text-primary",onClick:()=>{m(t)},children:i?(0,_.jsx)(M.Wuz,{}):(0,_.jsx)(M.B8K,{})})]}),i&&(0,_.jsx)("div",{className:"B__text-primary B__font-secondary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__ml-5 B__mr-6 B__transition-[height] B__mt-2",children:(0,D.ZP)(e.answer||"")})]})})},t)})})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:s})]})]})},t9=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 lg:B__grid-cols-2 B__gap-[30px] lg:B__gap-[40px] 2xl:B__gap-[50px] B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:r.map((e,t)=>(0,_.jsx)("div",{className:"B__bg-card-surface B__font-main B__rounded-primary",children:(0,_.jsx)("div",{className:"B__bg-secondary B__p-7 lg:B__p-11 B__font-main B__rounded-primary",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__justify-between B__h-full",children:[(0,_.jsx)("div",{className:"B__font-secondary B__font-normal B__text-base lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl B__break-words B__text-main",children:(0,D.ZP)(e.testimonial||"")}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-start B__gap-3 B__mt-4 lg:B__mt-7",children:[(0,_.jsx)("div",{className:"B__text-primary B__font-medium B__text-base lg:B__text-xl B__font-secondary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__text-secondary B__font-medium B__text-base lg:B__text-xl",children:(0,D.ZP)(e.designation||"")})]})]})})})},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},t8=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,title_keywords:r,description:d="",description_keywords:c,items:B}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__flex B__flex-col B__justify-center B__items-center B__gap-y-8",children:[(0,_.jsxs)("div",{className:"B__w-[65%] md:B__w-[55%] B__flex B__flex-col B__gapy-4",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:r||"",isImg:!1},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d,regenerateBtn:!0,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"B__mt-2 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center",children:(0,D.ZP)(d||"")})})]}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 custom-container-max-width B__mx-auto",children:B.map((e,t)=>(0,_.jsx)("div",{className:"B__p-8 B__flex B__flex-col B__border B__border-gray-200  B__justify-between B__min-h-[280px] B__gap-y-6 B__rounded-primary B__text-primary B__flex-1",children:(0,_.jsxs)(S.Z,{className:"B__flex B__flex-col B__justify-between B__gap-y-6",sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.items",keywords:e.keywords||"",isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("span",{children:(0,D.ZP)(e.testimonial)}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-1",children:[(0,_.jsx)("span",{className:"B__font-medium B__text-md",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("span",{className:"B__text-sm",children:(0,D.ZP)(e.designation||"")})]})]},t)},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},t7=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,title_keywords:r,tag:d="",tag_keywords:c,items:B}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__flex B__flex-col B__justify-center B__items-center B__gap-y-8",children:[(0,_.jsxs)("div",{className:"B__w-[70%] md:B__w-[65%] B__flex B__flex-col B__gap-y-2",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.tag",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"tag",placeholder:"Tag",type:"texteditor",value:d,regenerateBtn:!0,field_label:"Tag",key:"blockProps.tag"}]},children:(0,_.jsx)("div",{className:"B__mt-2 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-sm md:B__text-md xl:B__text-base B__text-center",children:(0,D.ZP)(d||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:r||"",isImg:!1},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})})]}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 custom-container-max-width B__mx-auto B__gap-8",children:B.map((e,t)=>(0,_.jsx)("div",{className:"B__w-full B__p-8 B__border B__border-gray-100 B__shadow-xl B__bg-surface B__text-primary B__flex B__flex-col B__justify-between B__min-h-[200px] lg:B__min-h-[280px] B__gap-y-6 B__rounded-primary",children:(0,_.jsxs)(S.Z,{className:"B__flex B__flex-col B__justify-between B__gap-y-6",sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-y-4",children:[(0,_.jsx)("div",{className:"B__flex B__gap-1",children:[,,,,,].fill(0).map((e,t)=>(0,_.jsx)(M.kRm,{color:"gold"},t))}),(0,_.jsx)("span",{className:"B__text-[15px] B__break-words",children:(0,D.ZP)(e.testimonial||"")})]}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-1",children:[(0,_.jsx)("span",{className:"B__font-medium B__text-md",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("span",{className:"B__text-sm",children:(0,D.ZP)(e.designation||"")})]})]},t)},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},le=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,title_keywords:r,description:d="",description_keywords:c,items:B}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__flex B__flex-col B__justify-center B__items-center B__gap-y-8",children:[(0,_.jsxs)("div",{className:"B__w-[60%] md:B__w-[50%] B__flex B__flex-col B__gap-y-2",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:r||"",isImg:!1},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d,regenerateBtn:!0,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"B__mt-2 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-sm md:B__text-md xl:B__text-base B__text-center",children:(0,D.ZP)(d||"")})})]}),(0,_.jsxs)("div",{className:"B__w-full custom-container-max-width B__mx-auto",children:[(0,_.jsx)("div",{className:"B__w-full B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__gap-x-14 B__gap-8",children:B.map((e,t)=>(0,_.jsx)("div",{className:"B__grid-cols-1 B__flex B__flex-col B__justify-between B__gap-y-6",children:(0,_.jsxs)(S.Z,{className:"B__flex B__flex-col B__justify-between B__gap-y-4",sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("div",{className:"B__text-[15px] B__bg-card-surface B__rounded-2xl B__text-primary",children:(0,_.jsx)("div",{className:"B__p-6 B__bg-secondary B__rounded-2xl",children:(0,_.jsx)("span",{children:(0,D.ZP)(e.testimonial||"")})})}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-1 B__text-primary",children:[(0,_.jsx)("span",{className:"B__font-medium B__text-sm sm:B__text-md",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("span",{className:"B__text-xs sm:B__text-sm",children:(0,D.ZP)(e.designation||"")})]})]},t)},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})]})},lt=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,title_keywords:r,items:d}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__flex B__flex-col B__justify-center B__items-center B__gap-y-4 md:B__gap-y-8",children:[(0,_.jsx)("div",{className:"B__w-[65%] md:B__w-[55%] B__flex B__flex-col B__gapy-4",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:r||"",isImg:!1},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__w-full custom-container-max-width B__mx-auto B__gap-9 B__gap-y-11 lg:B__gap-12 lg:B__gap-y-14 xl:B__gap-14 xl:B__gap-y-16",children:d.map((e,t)=>(0,_.jsx)("div",{className:"B__flex B__flex-col B__justify-between B__gap-y-4 md:B__gap-y-6 B__flex-1 B__text-primary",children:(0,_.jsxs)(S.Z,{className:"B__flex B__flex-col B__justify-between B__gap-y-4 md:B__gap-y-6",sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.items",keywords:e.keywords||"",isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("span",{className:"B__font-semibold B__text-md",children:(0,D.ZP)(e.testimonial||"")}),e.quotes?(0,_.jsx)("span",{className:"B__text-[#5A5A5A] B__text-sm",children:(0,D.ZP)(e.quotes||"")}):"",(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-1",children:[(0,_.jsx)("span",{className:"B__font-medium B__text-md",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("span",{className:"B__text-sm",children:(0,D.ZP)(e.designation||"")})]})]},t)},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})};var ll=l(2261);l(76268),l(84940);var l_=l(94135);let li=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,title_keywords:r,description:d="",description_keywords:c,items:B}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__flex B__flex-col B__justify-center B__items-center",style:{"--swiper-theme-color":"var(--background-color-nav)","--swiper-pagination-bullet-inactive-color":"var(--color-primary)"},children:[(0,_.jsx)("div",{className:"B__w-[60%] md:B__w-[50%] B__flex B__flex-col B__gap-y-2",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:r||"",isImg:!1},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})})}),(0,_.jsx)("div",{className:"B__w-full custom-container-max-width B__mx-auto",children:(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)(ll.tq,{spaceBetween:50,slidesPerView:1,pagination:{clickable:!0},modules:[l_.tl,l_.pt],freeMode:!0,loop:!0,autoplay:{delay:3e3,disableOnInteraction:"live"!==a},speed:6e3,children:B.map((e,t)=>(0,_.jsx)(ll.o5,{children:(0,_.jsx)("div",{className:"B__flex B__flex-col B__justify-between B__gap-y-6 B__mx-auto lg:B__max-w-[50%] B__py-9 lg:B__pb-10 xl:B__pb-14 B__text-primary",children:(0,_.jsxs)(S.Z,{className:"B__flex B__flex-col B__justify-between B__gap-y-4",sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("div",{className:"B__text-[15px] B__p-6  B__text-center B__font-main B__font-semibold B__text-base lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl",children:(0,_.jsx)("span",{children:(0,D.ZP)(e.testimonial||"")})}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-1",children:[(0,_.jsx)("span",{className:"B__font-medium B__text-sm sm:B__text-md B__text-center",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("span",{className:"B__text-xs sm:B__text-sm B__text-center",children:(0,D.ZP)(e.designation||"")})]})]},t)},t)},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})]})};l(72048);let lo=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e,{title:n,title_keywords:r,description:d="",description_keywords:c,items:B}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__flex B__flex-col B__justify-center B__items-center B__gap-y-5 B__bg-shade",style:{"--swiper-pagination-bottom":"auto","--swiper-pagination-top":"0","--swiper-theme-color":"var(--background-color-nav)","--swiper-pagination-bullet-inactive-color":"var(--color-primary)"},children:[(0,_.jsx)("div",{className:"B__w-[60%] md:B__w-[50%] B__flex B__flex-col B__gap-y-2",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:r||"",isImg:!1},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})})}),(0,_.jsx)("div",{className:"B__max-w-[100%]",children:(0,_.jsxs)("div",{className:"B__w-full B__bg-surface",children:[(0,_.jsx)(ll.tq,{effect:"fade",spaceBetween:50,slidesPerView:1,pagination:{clickable:!0},modules:[l_.xW,l_.tl,l_.pt],loop:!0,autoplay:{delay:6e3,disableOnInteraction:"live"!==a},speed:500,children:B.map((e,t)=>(0,_.jsxs)(ll.o5,{children:[(0,_.jsx)("div",{className:"custom-container-max-width B__mx-auto B__bg-surface",children:(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__gap-6 md:B__-bottom-14 B__relative",children:[(0,_.jsx)(S.Z,{className:"!B__w-auto lg:!B__w-[40%]",sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},deleteBtn:{deleteType:"item",itemIndex:t},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"testimonial",placeholder:"Testimonial",type:"texteditor",value:e.testimonial,key:"blockProps.items[".concat(t,"].testimonial"),field_label:"Testimonial"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:(0,_.jsx)("div",{className:"B__hidden md:B__block B__text-[15px] B__text-center B__font-main B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-3xl B__text-primary",children:(0,_.jsx)("span",{children:(0,D.ZP)(e.testimonial||"")})})},t),(0,_.jsx)("div",{className:"B__hidden md:B__block B__w-full lg:B__w-[38%] xl:B__w-[38%] B__relative",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img||"https://images.unsplash.com/photo-1423666639041-f56000c27a9a?q=80&w=2074&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[400px] 2xl:B__h-[450px] B__rounded-primary"})})})]},t)}),(0,_.jsx)("div",{className:" B__bg-primary",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-1 custom-container-max-width B__mx-auto B__py-8 lg:B__py-10 xl:B__py-12 B__text-white",children:[(0,_.jsx)("div",{className:"md:B__hidden B__text-[15px] B__text-center B__font-main B__font-medium B__text-base lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl",children:(0,_.jsx)("span",{children:(0,D.ZP)(e.testimonial||"")})}),(0,_.jsx)("span",{className:"B__font-medium B__text-sm lg:B__text-base xl:B__text-lg B__text-center md:B__text-left",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("span",{className:"B__text-xs sm:B__text-sm B__text-center md:B__text-left",children:(0,D.ZP)(e.designation||"")})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==s?void 0:null===(t=s.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})]})},la=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n}=a;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__px-3 lg:B__px-6 B__mb-0",children:(0,D.ZP)(s||"")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__gap-4 lg:B__gap-5 xl:B__gap-7 B__gap-y-7 lg:B__gap-y-8 xl:B__gap-y-10 B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:n.map((e,a)=>(0,_.jsxs)("div",{className:"B__mb-3 B__w-full B__h-full B__flex B__flex-col",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",height:""},deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:10,right:10}},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{src:e.img,className:"B__object-cover B__object-center B__w-full B__h-[280px] lg:B__h-[300px] xl:B__h-[350px] 2xl:B__h-[400px] B__rounded-primary ".concat((null==e?void 0:e.redirectUrl)?"B__underline B__cursor-pointer":""),alt:(0,J.s9)(e.title),onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")}})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:""},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{style:{},fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(a,"].title"),field_label:"Title"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:(null==e?void 0:e.redirectUrl)||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:(0,_.jsx)("div",{className:"B__font-main B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-3xl B__break-words B__mt-2 lg:B__mt-4 B__text-center B__text-main ".concat((null==e?void 0:e.redirectUrl)?"B__underline B__cursor-pointer":""),style:{lineHeight:1.1},onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)(e.title||"")})})]},a))}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},ls=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,items:n}=a,r=["https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-1.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-2.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-3.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-4.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-5.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-6.jpg"];return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{style:{textAlign:"center"},className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(s||"")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__gap-4 lg:B__gap-8 2xl:B__gap-10 B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:n.map((e,a)=>(0,_.jsx)("div",{className:"",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",alignItems:"center",display:"flex"},className:"B__max-h-[150px] lg:B__max-h-[170] xl:B__max-h-[180px] 2xl:B__max-h-[200px]",deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:-20,right:10}},regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{alt:(0,J.s9)(e.img),src:(null==e?void 0:e.img)||r[a%r.length],className:"B__h-auto B__w-auto B__mx-auto B__my-auto B__max-h-[100%] B__max-w-[100%] B__object-contain B__object-center"})})},a))}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},ln=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,description:n,items:r}=a,d=["https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-1.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-2.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-3.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-4.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-5.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-6.jpg"];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__flex B__gap-4 B__flex-col B__justify-center B__items-center section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h2",{style:{textAlign:"center"},className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(s||"")})}),(0,_.jsx)("div",{className:"B__flex B__justify-center B__items-center B__flex-wrap B__gap-4 lg:B__gap-6 B__mt-4 lg:B__mt-8 xl:B__mt-9 2xl:B__mt-[3.5rem]",children:r.map((e,a)=>(0,_.jsx)("div",{className:" ".concat(a%7>=3?"B__w-[28%] md:B__w-[27%]":"B__w-[28%] md:B__w-[22%]"," B__h-[100px]"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",alignItems:"center",display:"flex"},className:"B__max-h-[150px] lg:B__max-h-[170] xl:B__max-h-[180px] 2xl:B__max-h-[200px]",deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:-20,right:10}},regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{alt:(0,J.s9)(e.img),src:(null==e?void 0:e.img)||d[a%d.length],className:"B__h-auto B__w-auto B__mx-auto B__my-auto B__max-h-[100%] B__max-w-[100%] B__object-contain B__object-center"})})},a))})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{zIndex:"10"},addItemBtn:{key:"blockProps.items"}})]})},lr=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{description:s,title:n,items:r}=a,d=["https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-1.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-2.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-3.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-4.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-5.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-6.jpg"];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__flex B__gap-4 B__flex-col md:B__flex-row B__items-center section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%]",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h2",{className:"B__text-center B__text-primary md:B__text-left B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem]  B__relative B__break-words md:B__max-w-[80%] md:B__ml-0 ",style:{lineHeight:1.1},children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{className:"!B__w-fit",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:s||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h1",{className:"B__text-center md:B__text-left  B__text-secondary B__font-normal B__text-xl B__break-words B__w-fit md:B__max-w-[80%] md:B__ml-0",children:(0,D.ZP)(s||"1000+ Big brands trust us")})})]}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-2 md:B__grid-cols-3 lg:B__grid-cols-5 B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__mt-4 lg:B__mt-8 xl:B__mt-9 2xl:B__mt-[3.5rem] B__w-full lg:B__w-[60%]",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__col-span-1 B__h-[100px]",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",alignItems:"center",display:"flex"},className:"B__max-h-[150px] lg:B__max-h-[170] xl:B__max-h-[180px] 2xl:B__max-h-[200px]",deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:-20,right:10}},regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{alt:(0,J.s9)(e.img),src:(null==e?void 0:e.img)||d[a%d.length],className:"B__h-auto B__w-auto B__mx-auto B__my-auto B__max-h-[100%] B__max-w-[100%] B__object-contain B__object-center"})})},a))})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{zIndex:"10"},addItemBtn:{key:"blockProps.items"}})]})},ld=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,description:n,items:r}=a,d=["https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-1.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-2.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-3.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-4.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-5.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-6.jpg"];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__flex B__gap-4 B__flex-col B__justify-center B__items-center section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h2",{style:{lineHeight:1.1},className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words lg:B__max-w-[80%]",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"!B__w-fit",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:n||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__font-secondary B__text-center B__text-lg B__break-words B__w-fit lg:B__max-w-[80%] B__mx-auto",children:(0,D.ZP)(n||"1000+ Big brands trust us")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-2 md:B__grid-cols-3 lg:B__grid-cols-6 B__gap-4 lg:B__gap-6 B__mt-4 lg:B__mt-8 xl:B__mt-8 2xl:B__mt-[3.25rem]",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__col-span-1 B__h-[100px]",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",alignItems:"center",display:"flex"},className:"B__max-h-[150px] lg:B__max-h-[170] xl:B__max-h-[180px] 2xl:B__max-h-[200px]",deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:-20,right:10}},regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{alt:(0,J.s9)(e.img),src:(null==e?void 0:e.img)||d[a%d.length],className:"B__h-auto B__w-auto B__mx-auto B__my-auto B__max-h-[100%] B__max-w-[100%]  B__object-contain B__object-center"})})},a))})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{zIndex:"10"},addItemBtn:{key:"blockProps.items"}})]})},lc=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,description:n,items:r}=a,d=["https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-1.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-2.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-3.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-4.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-5.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-6.jpg"];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 B__gap-4 B__px-10 md:B__px-0 section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsxs)("div",{className:"B__col-span-1 B__flex B__flex-col B__justify-center B__items-center",children:[(0,_.jsx)(S.Z,{className:"!B__h-fit",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h2",{className:"B__font-bold B__text-primary B__font-primary B__mx-auto B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__text-center md:B__text-left md:B__ml-0 md:B__max-w-[80%]",style:{lineHeight:1.1},children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"!B__h-fit",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:n||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__text-lg B__break-words B__w-fit B__mx-auto B__text-center md:B__text-left md:B__ml-0 md:B__max-w-[80%]",children:(0,D.ZP)(n||"1000+ Big brands trust us")})})]}),(0,_.jsx)("div",{className:"B__col-span-1 B__flex B__justify-center B__items-center B__flex-wrap B__gap-4 lg:B__gap-6 B__mt-4  B__mx-auto",children:r.map((e,a)=>(0,_.jsx)("div",{className:"".concat(a%5>=2?"B__w-[45%] md:B__w-[30%]":"B__w-[45%] md:B__w-[45%]"," B__h-[100px]"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",alignItems:"center",display:"flex"},className:"B__max-h-[150px] lg:B__max-h-[170] xl:B__max-h-[180px] 2xl:B__max-h-[200px]",deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:-20,right:10}},regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{alt:(0,J.s9)(e.img),src:(null==e?void 0:e.img)||d[a%d.length],className:"B__h-auto B__w-auto B__mx-auto B__my-auto B__max-h-[100%] B__max-w-[100%] B__object-contain B__object-center"})})},a))})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{zIndex:"10"},addItemBtn:{key:"blockProps.items"}})]})},lB=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,description:n,items:r}=a,d=["https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-1.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-2.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-3.jpg","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-4.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-5.png","https://s3.amazonaws.com/media-prod.butternut.ai/static-images/company-6.jpg"];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__flex-col lg:B__flex-row B__gap-4 B__px-10 md:B__px-0 section-vertical-padding B__mx-auto custom-container-max-width global_css lg:B__gap-7 xl:B__gap-10",children:[(0,_.jsxs)("div",{className:"B__col-span-1 B__flex B__flex-col B__justify-center B__items-center B__w-full lg:B__w-[40%]",children:[(0,_.jsx)(S.Z,{className:"!B__h-fit",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h2",{className:"B__font-bold B__text-primary B__font-primary B__mx-auto B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__text-center lg:B__text-left lg:B__ml-0 lg:B__max-w-[90%]",style:{lineHeight:1.1},children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{className:"!B__h-fit",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:n||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-normal B__text-lg B__break-words B__w-fit B__mx-auto B__text-center lg:B__text-left lg:B__ml-0 lg:B__max-w-[90%]",children:(0,D.ZP)(n||"1000+ Big brands trust us")})})]}),(0,_.jsx)("div",{className:"B__col-span-1 B__flex B__justify-center B__items-center B__flex-wrap B__gap-4 lg:B__gap-6 B__mt-4 B__mx-auto B__w-full lg:B__w-[60%]",children:r.map((e,a)=>(0,_.jsx)("div",{className:"B__w-[45%] lg:B__w-[23%] ".concat(a%6==3?"B__ml-0 lg:B__ml-[40px] xl:B__ml-[80px]":""," B__h-[100px]"),children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",alignItems:"center",display:"flex"},className:"B__max-h-[150px] lg:B__max-h-[170] xl:B__max-h-[180px] 2xl:B__max-h-[200px]",deleteBtn:{deleteType:"item",itemIndex:a,icon:!0,style:{top:-20,right:10}},regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},type:o,children:(0,_.jsx)("img",{alt:(0,J.s9)(e.img),src:(null==e?void 0:e.img)||d[a%d.length],className:"B__h-auto B__w-auto B__mx-auto B__my-auto B__max-h-[100%] B__max-w-[100%] B__object-contain B__object-center"})})},a))})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{zIndex:"10"},addItemBtn:{key:"blockProps.items"}})]})},lx=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,quote:n,designation:r,name:d,keywords:c,showClientInfo:B=!0}=a;return(0,_.jsx)("div",{className:"section-vertical-padding custom-container-max-width global_css B__mx-auto",children:(0,_.jsxs)("div",{className:"B__py-8 lg:B__py-16 B__w-full B__px-6 lg:B__px-12 xl:B__px-24 B__rounded-primary",style:{background:"linear-gradient(99deg, #F8F8F8 -57.57%, var(--background-color-secondary) 129.27%)"},children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"Clients Feedback",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__font-secondary B__text-primary B__font-medium B__text-xl lg:B__text-2xl xl:B__text-3xl 2xl:B__text-[2rem] B__text-center B__break-words B__pb-4 lg:B__pb-6",style:{lineHeight:1.1},children:(0,D.ZP)(s||"Clients Feedback")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.quote",keywords:c||""},editBtn:{fields:[{name:"quote",placeholder:"Quote",type:"texteditor",value:n||"",key:"blockProps.quote",field_label:"Quote"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-light B__font-secondary B__mx-auto B__text-base lg:B__text-lg xl:B__text-[1.2rem] 2xl:B__text-[1.5rem] B__relative B__pb-5 lg:B__pb-8 B__break-words",style:{lineHeight:1.45},children:(0,D.ZP)(n||"")})}),"live"!==o||B?(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"name",placeholder:"Name",type:"texteditor",value:d||"",key:"blockProps.name",field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:r||"",key:"blockProps.designation",field_label:"Designation"}]},hideBtn:{key:"blockProps.showClientInfo",value:B},children:[(0,_.jsx)("div",{className:"B__text-center B__text-base xl:B__text-lg B__text-primary B__font-primary B__font-bold ".concat(B?"":"B__opacity-70"),children:d}),(0,_.jsx)("div",{className:"B__text-center B__text-base xl:B__text-lg B__text-secondary B__font-primary B__font-medium ".concat(B?"":"B__opacity-70"),children:r})]}):(0,_.jsx)(_.Fragment,{})]})})},lm=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{quote:s,keywords:n}=a;return(0,_.jsx)("div",{className:"section-vertical-padding custom-container-max-width global_css B__mx-auto",children:(0,_.jsx)("div",{className:"B__py-8 lg:B__py-16 B__w-full B__px-6 lg:B__px-12 xl:B__px-24 B__rounded-primary",style:{background:"linear-gradient(99deg, #F8F8F8 -57.57%, var(--background-color-secondary) 129.27%)"},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.quote",keywords:n||""},editBtn:{fields:[{name:"quote",placeholder:"Quote",type:"texteditor",value:s||"",key:"blockProps.quote",field_label:"Quote"}]},children:(0,_.jsxs)("h3",{className:"B__text-center B__text-primary B__font-light B__font-secondary B__mx-auto B__text-base lg:B__text-lg xl:B__text-[1.2rem] 2xl:B__text-[1.5rem] B__relative B__break-words",style:{lineHeight:1.45},children:["“",(0,D.ZP)(s||""),"”"]})})})})},lp=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,description:n,showDescription:r=!0,showTitle:d=!0}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__relative global_css section-vertical-padding",children:[(0,_.jsx)("div",{className:"B__absolute B__inset-0",children:(0,_.jsx)("div",{className:"B__bg- B__h-full B__w-full B__absolute B__inset-0"})}),(0,_.jsx)("div",{className:"B__relative B__mx-auto custom-container-max-width B__bg-white B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20  B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:["live"!==o||d?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},hideBtn:{key:"blockProps.showTitle",value:d},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words ".concat(d?"":"B__opacity-75"),children:(0,D.ZP)(s||"")})}):(0,_.jsx)(_.Fragment,{}),"live"!==o||r?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.vision",keywords:"",isImg:!1},hideBtn:{key:"blockProps.showDescription",value:r},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:n||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words ".concat(r?"":"B__opacity-75"),children:(0,D.ZP)(n||"")})}):(0,_.jsx)(_.Fragment,{})]})})]})})},lu=e=>{var t;let{id:l,sectionLocation:o,slot:a,viewMode:s,blockProps:n,websiteId:c}=e,{title:B,description:x,email:m,phone:p,form:u,thanks_message:h,showEmail:g=!0,showLocation:y=!0,showPhone:b=!0}=n,[f,j]=(0,i.useState)(!1),{websiteData:k}=(0,i.useContext)(r.o)||{},w=e=>{"preview"===s||"edit"===s?j(!0):e8.Z.contactUs({...e,website_id:c}).then(e=>{var t;j(!0),v.Am.success(null===(t=e.data)||void 0===t?void 0:t.msg,{position:v.Am.POSITION.TOP_RIGHT})}).catch(t=>{var l,_;j(!1),v.Am.error(null===(l=t.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg,{position:v.Am.POSITION.TOP_RIGHT}),e={email:"",name:"",message:""}})};return(0,_.jsx)("div",{className:"section-vertical-padding global_css",children:(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width B__flex B__flex-col lg:B__flex-row B__items-center B__justify-between B__gap-10 lg:B__gap-8",children:[(0,_.jsxs)("div",{className:"B__flex-1",children:[(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:B||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:x||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center lg:B__text-left B__text-primary B__font-semibold B__font-primary B__mx-auto B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl B__relative lg:B__pr-10 B__break-words",children:(0,D.ZP)(B||"Contact Us")}),(0,_.jsx)("div",{className:"B__text-center lg:B__text-left B__text-xs lg:B__text-sm xl:B__text-base B__font-secondary B__font-normal B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__text-primary",children:(0,D.ZP)(x||"Have a question, need assistance? We're just a message away!")})]}),(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem]",children:(0,_.jsxs)("div",{className:"B__flex B__flex-wrap B__items-center B__justify-center lg:B__justify-start B__gap-2.5 B__text-base xl:B__text-xl  B__font-secondary B__font-medium B__text-primary",children:["live"!==s||g?(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:m||"",key:"blockProps.email",field_label:"Email"}]},hideBtn:{key:"blockProps.showEmail",value:g},children:(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__bg-surface B__px-1.5 B__pr-4 lg:B__pr-5 B__py-1.5 B__rounded-full ".concat(g?"":"B__opacity-75"," B__cursor-pointer"),onClick:()=>{if(window){var e;window.open("mailto:".concat(m||(null==k?void 0:null===(e=k.user_location)||void 0===e?void 0:e.user_email)))}},children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__bg-shade B__font-medium B__text-lg lg:B__text-2xl",children:(0,_.jsx)(d.hoL,{className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__m-0",children:(0,D.ZP)(m||(null==k?void 0:null===(t=k.user_location)||void 0===t?void 0:t.user_email)||"user@email.com")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==s||b?(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"phone",placeholder:"Phone",type:"input",value:p||"",key:"blockProps.phone",field_label:"Phone"}]},hideBtn:{key:"blockProps.showPhone",value:b},children:(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__bg-surface B__px-1.5 B__pr-4 lg:B__pr-5 B__py-1.5 B__rounded-full ".concat(b?"":"B__opacity-75","  B__cursor-pointer"),onClick:()=>{window&&window.open("tel:".concat(p))},children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__bg-shade B__font-medium B__text-lg lg:B__text-2xl",children:(0,_.jsx)(M.SPk,{className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"",children:(0,D.ZP)(p||"+1 (123)-456-7890")})]})}):(0,_.jsx)(_.Fragment,{})]})})]}),(0,_.jsx)("div",{className:"B__flex-1 B__w-full B__font-secondary B__rounded-primary B__shadow-primary-color",children:(0,_.jsx)("div",{style:{flex:1},children:f?(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,D.ZP)(h||"Thank you. We will get in touch with you soon.")}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(ek.J9,{initialValues:{name:"",email:"",message:""},validationSchema:ew.Ry().shape({name:ew.Z_().required("Required"),email:ew.Z_().required("Required").email("Please enter a valid email"),message:ew.Z_().required("Required").max(500,"Message cannot exceed 500 characters")}),onSubmit:w,children:e=>{let{values:t,errors:i,handleChange:n,handleSubmit:r}=e;return(0,_.jsxs)("form",{onSubmit:r,style:{margin:"0 auto",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__p-4 lg:B__p-7 B__font-primary B__w-full B__rounded-primary B__bg-surface B__shadow-primary-color",children:[(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"name_label",placeholder:"Name label",type:"input",value:(null==u?void 0:u.name_label)||"",key:"blockProps.form.name_label",field_label:"Name label"},{name:"email_label",placeholder:"Email label",type:"input",value:(null==u?void 0:u.email_label)||"",key:"blockProps.form.email_label",field_label:"Email label"},{name:"messages_label",placeholder:"Message label",type:"input",value:(null==u?void 0:u.messages_label)||"",key:"blockProps.form.messages_label",field_label:"Message label"}]},children:[(0,_.jsxs)("div",{className:"B__mb-4 lg:B__mb-7 B__text-lg",children:[(0,_.jsx)("label",{htmlFor:"name",className:"B__mb-2 B__font-secondary B__text-xs lg:B__text-sm xl:B__text-base B__text-primary",children:(0,D.ZP)((null==u?void 0:u.name_label)||"Your name")}),(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"name",onChange:n,value:t.name,placeholder:"Your name *"}),i.name?(0,_.jsx)("p",{style:{color:"red",marginTop:"0"},children:i.name}):null]}),(0,_.jsxs)("div",{className:"B__mb-4 lg:B__mb-7 B__text-lg",children:[(0,_.jsx)("label",{htmlFor:"name",className:"B__mb-2 B__font-secondary B__text-xs lg:B__text-sm xl:B__text-base B__text-primary",children:(0,D.ZP)((null==u?void 0:u.email_label)||"Your email")}),(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"email",onChange:n,value:t.email,style:{height:"40px"},placeholder:"Your email *"}),i.email?(0,_.jsx)("p",{style:{color:"red",marginTop:"0"},children:i.email}):null]}),(0,_.jsxs)("div",{className:"B__mb-4 lg:B__mb-7 B__text-lg",children:[(0,_.jsx)("label",{htmlFor:"name",className:"B__mb-2 B__font-secondary B__text-xs lg:B__text-sm xl:B__text-base B__text-primary",children:(0,D.ZP)((null==u?void 0:u.messages_label)||"Your message")}),(0,_.jsx)("textarea",{name:"message",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),cols:30,rows:5,onChange:n,value:t.message,placeholder:"Your message *"}),i.message?(0,_.jsx)("p",{style:{color:"red",marginTop:"0"},children:i.message}):null]})]}),(0,_.jsx)("div",{className:"B__rounded-primary",children:(0,_.jsxs)("button",{type:"submit",className:"B__flex B__gap-2 B__items-center B__py-1.5 B__px-4 lg:B__px-7 xl:B__px-9 2xl:B__px-10 B__bg-button-primary B__text-button-primary B__font-medium B__text-base xl:B__text-lg 2xl:B__text-xl B__font-secondary B__rounded-primary",children:[(0,_.jsx)("span",{children:"Send"}),(0,_.jsx)(M.poN,{className:"B__text-base"})]})})]})}})})})})]})})},lv=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,websiteId:n}=e,{title:d,title_keywords:c,description:B,description_keywords:x,form:m,thanks_message:p,img:u="https://images.unsplash.com/photo-1423666639041-f56000c27a9a?q=80&w=2074&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",img_keywords:h}=s,[g,y]=(0,i.useState)(!1),{websiteData:b}=(0,i.useContext)(r.o)||{},f=e=>{"preview"===a||"edit"===a?y(!0):(e.website_id=n,e8.Z.contactUs(e).then(e=>{var t;y(!0),v.Am.success(null===(t=e.data)||void 0===t?void 0:t.msg,{position:v.Am.POSITION.TOP_RIGHT})}).catch(t=>{var l,_;y(!1),v.Am.error(null===(l=t.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg,{position:v.Am.POSITION.TOP_RIGHT}),e={email:"",name:"",message:"",phone:""}}))};return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__flex B__mx-auto custom-container-max-width global_css ",children:[(0,_.jsx)("div",{className:"B__w-full md:B__w-1/2  B__flex B__justify-center lg:B__justify-start section-vertical-padding",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-2 B__w-[90%] md:B__w-[80%] lg:B__w-[75%]",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-3",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:d||"",key:"blockProps.title",field_label:"Title"}]},regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},children:(0,_.jsx)("h3",{className:"B__text-primary B__font-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__text-center lg:B__text-left",style:{lineHeight:1.1},children:(0,D.ZP)(d||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B||"",key:"blockProps.description",field_label:"Description"}]},regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},children:(0,_.jsx)("div",{className:"B__text-sm md:B__text-md xl:B__text-lg B__font-secondary B__text-primary B__font-normal B__break-words B__text-center lg:B__text-left",children:(0,D.ZP)(B||"")})})]}),(0,_.jsx)("div",{children:g?(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,D.ZP)(p||"Thank you. We will get in touch with you soon.")}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"name_label",placeholder:"Name label",type:"input",value:(null==m?void 0:m.name_label)||"",key:"blockProps.form.name_label",field_label:"Name label"},{name:"email_label",placeholder:"Email label",type:"input",value:(null==m?void 0:m.email_label)||"",key:"blockProps.form.email_label",field_label:"Email label"},{name:"phone_label",placeholder:"Phone label",type:"input",value:(null==m?void 0:m.phone_label)||"",key:"blockProps.form.phone_label",field_label:"Phone label"},{name:"messages_label",placeholder:"Message label",type:"input",value:(null==m?void 0:m.messages_label)||"",key:"blockProps.form.messages_label",field_label:"Message label"},{name:"button_label",placeholder:"Button label",type:"input",value:(null==m?void 0:m.button_label)||"",key:"blockProps.form.button_label",field_label:"Button label"}]},children:(0,_.jsx)(ek.J9,{initialValues:{name:"",email:"",message:"",phone:""},validationSchema:ew.Ry().shape({name:ew.Z_().required("Required"),email:ew.Z_().required("Required").email("Please enter a valid email"),phone:ew.Z_().required("Required").matches(/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,"Phone number is not valid"),message:ew.Z_().required("Required").max(500,"Message cannot exceed 500 characters")}),onSubmit:f,children:e=>{let{values:t,errors:l,handleChange:i,handleSubmit:o}=e;return(0,_.jsxs)("form",{onSubmit:o,style:{margin:"0 auto"},className:"B__font-primary B__w-full B__rounded-primary",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-4 xl:B__gap-6",children:[(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"name",onChange:i,value:t.name,placeholder:"".concat(m.name_label||"Name","*")}),l.name?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.name}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"email",onChange:i,value:t.email,placeholder:"".concat(m.email_label||"Email","*")}),l.email?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.email}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"phone",onChange:i,value:t.phone,placeholder:"".concat(m.phone_label||"Phone","*")}),l.phone?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.phone}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("textarea",{name:"message",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),cols:30,rows:4,onChange:i,value:t.message,placeholder:"".concat(m.messages_label||"Message","*")}),l.message?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.message}):null]})]}),(0,_.jsx)("div",{className:"B__mt-3 xl:B__mt-5",children:(0,_.jsx)("button",{type:"submit",className:"B__w-full B__text-center !B__p-3 B__flex B__justify-center B__gap-2 B__items-center B__bg-button-primary B__text-button-primary B__font-medium B__text-base  B__font-secondary B__rounded-md",children:m.button_label||"Join Us"})})]})}})})})})]})}),(0,_.jsx)("div",{className:"B__w-1/2 B__hidden md:B__flex B__flex-auto section-vertical-padding",children:u&&(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:h||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:u,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img"}]},style:{height:"100%"},children:(0,_.jsx)("img",{src:u,alt:(0,J.s9)(d),style:{objectFit:"cover",height:"100%",width:"100%"},className:"B__rounded-primary"})})})]})})},lh=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,websiteId:n}=e,{title:r,title_keywords:c,description:B,description_keywords:x,greeting:m="",greeting_keywords:p="",greeting_message:u="",greeting_message_keywords:h="",email:g="",email_keywords:y="",phone:b="",phone_keywords:f="",location:j="",location_keywords:k="",form:w,thanks_message:N,showEmail:P=!0,showPhone:I=!0,showLocation:C=!0}=s,[Z,T]=(0,i.useState)(!1),F=e=>{"preview"===a||"edit"===a?T(!0):(e.website_id=n,e8.Z.contactUs(e).then(e=>{var t;T(!0),v.Am.success(null===(t=e.data)||void 0===t?void 0:t.msg,{position:v.Am.POSITION.TOP_RIGHT})}).catch(t=>{var l,_;T(!1),v.Am.error(null===(l=t.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg,{position:v.Am.POSITION.TOP_RIGHT}),e={email:"",name:"",message:"",phone:""}}))};return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"B__flex B__flex-col-reverse md:B__flex-row B__bg-secondary md:B__bg-surface global_css",children:[(0,_.jsx)("div",{className:"B__w-full md:B__w-1/2  B__flex B__justify-center md:B__justify-end section-vertical-padding md:B__bg-shade",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-2 custom-container-max-width B__w-full md:B__pr-14 lg:B__pr-20 xl:B__pr-32 2xl:B__pr-40 md:B__text-center",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-3",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"greeting",placeholder:"Greeting",type:"texteditor",value:m||"",key:"blockProps.greeting",field_label:"Greeting"}]},regenrateBtn:{updateType:"key",key:"blockProps.greeting",keywords:p||"",isImg:!1},children:(0,_.jsx)("h3",{className:"B__font-primary B__text-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__text-center lg:B__text-left",style:{lineHeight:1.1},children:(0,D.ZP)(m||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"greeting_message",placeholder:"Gretings Message",type:"texteditor",value:u||"",key:"blockProps.greeting_message",field_label:"Gretings Message"}]},regenrateBtn:{updateType:"key",key:"blockProps.greeting_message",keywords:h||"",isImg:!1},children:(0,_.jsx)("div",{className:"B__text-sm md:B__text-md B__mb-2 xl:B__text-lg B__font-secondary B__text-primary B__font-normal B__break-words B__text-center lg:B__text-left",children:(0,D.ZP)(u||"")})})]}),(0,_.jsx)("div",{children:Z?(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,D.ZP)(N||"Thank you. We will get in touch with you soon.")}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"name_label",placeholder:"Name label",type:"input",value:(null==w?void 0:w.name_label)||"",key:"blockProps.form.name_label",field_label:"Name label"},{name:"email_label",placeholder:"Email label",type:"input",value:(null==w?void 0:w.email_label)||"",key:"blockProps.form.email_label",field_label:"Email label"},{name:"phone_label",placeholder:"Phone label",type:"input",value:(null==w?void 0:w.phone_label)||"",key:"blockProps.form.phone_label",field_label:"Phone label"},{name:"messages_label",placeholder:"Message label",type:"input",value:(null==w?void 0:w.messages_label)||"",key:"blockProps.form.messages_label",field_label:"Message label"},{name:"button_label",placeholder:"Button label",type:"input",value:(null==w?void 0:w.button_label)||"",key:"blockProps.form.button_label",field_label:"Button label"}]},children:(0,_.jsx)(ek.J9,{initialValues:{name:"",email:"",message:"",phone:""},validationSchema:ew.Ry().shape({name:ew.Z_().required("Required"),email:ew.Z_().required("Required").email("Please enter a valid email"),phone:ew.Z_().required("Required").matches(/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,"Phone number is not valid"),message:ew.Z_().required("Required").max(500,"Message cannot exceed 500 characters")}),onSubmit:F,children:e=>{let{values:t,errors:l,handleChange:i,handleSubmit:o}=e;return(0,_.jsxs)("form",{onSubmit:o,style:{margin:"0 auto"},className:"B__font-primary B__w-full B__rounded-primary",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-4 xl:B__gap-6",children:[(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"name",onChange:i,value:t.name,placeholder:"".concat(w.name_label||"Name","*")}),l.name?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.name}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"email",onChange:i,value:t.email,placeholder:"".concat(w.email_label||"Email","*")}),l.email?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.email}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"phone",onChange:i,value:t.phone,placeholder:"".concat(w.phone_label||"Phone","*")}),l.phone?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.phone}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("textarea",{name:"message",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),cols:30,rows:4,onChange:i,value:t.message,placeholder:"".concat(w.messages_label||"Message","*")}),l.message?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.message}):null]})]}),(0,_.jsx)("div",{className:"B__mt-3 xl:B__mt-5",children:(0,_.jsx)("button",{type:"submit",className:"B__w-full B__text-center !B__p-3 B__flex B__justify-center B__gap-2 B__items-center B__bg-button-primary B__text-button-primary B__font-medium B__text-base  B__font-secondary B__rounded-md",children:w.button_label||"Join Us"})})]})}})})})})]})}),(0,_.jsx)("div",{className:"B__w-full md:B__w-1/2 B__flex B__justify-center md:B__justify-start B__flex-auto B__items-center section-vertical-padding",children:(0,_.jsxs)("div",{className:"custom-container-max-width B__w-full md:B__pl-14 lg:B__pl-20 xl:B__pl-32 2xl:B__pl-40 B__flex B__flex-col B__justify-center lg:B__justify-start B__items-center lg:B__items-start md:B__gap-8",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},children:(0,_.jsx)("h3",{className:"B__font-primary B__text-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__text-center lg:B__text-left",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B||"",key:"blockProps.description",field_label:"Description"}]},regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},children:(0,_.jsx)("div",{className:"B__text-sm md:B__text-md xl:B__text-lg B__font-secondary B__text-primary B__font-normal B__break-words B__text-center lg:B__text-left",children:(0,D.ZP)(B||"")})})]}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__w-full B__gap-4",children:["live"!==a||P?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:g||"",key:"blockProps.email",field_label:"Email"}]},hideBtn:{key:"blockProps.showEmail",value:P},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__justify-center lg:B__justify-start B__items-center ".concat(P?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("mailto:".concat(g))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.ixJ,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(g||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||C?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"location",placeholder:"Location",type:"texteditor",value:j||"",key:"blockProps.location",field_label:"Location"}]},hideBtn:{key:"blockProps.showLocation",value:C},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center B__justify-center lg:B__justify-start ".concat(C?"":"B__opacity-70"),children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.vcr,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__whitespace-break-spaces B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(j||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||I?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"phone",placeholder:"Phone",type:"input",value:b||"",key:"blockProps.phone",field_label:"Phone"}]},hideBtn:{key:"blockProps.showPhone",value:I},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center B__justify-center lg:B__justify-start ".concat(I?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("tel:".concat(b))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.IXo,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(b||"")})]})}):(0,_.jsx)(_.Fragment,{})]})]})})]})})},lg=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,websiteId:n}=e,{title:r="",title_keywords:c="",description:B="",email:x="",email_keywords:m="",showEmail:p=!0,phone:u="",phone_keywords:h="",showPhone:g=!0,location:y="",location_keywords:b="",showLocation:f=!0,form:j,thanks_message:k}=s,[w,N]=(0,i.useState)(!1),P=e=>{"preview"===a||"edit"===a?N(!0):(e.website_id=n,e8.Z.contactUs(e).then(e=>{var t;N(!0),v.Am.success(null===(t=e.data)||void 0===t?void 0:t.msg,{position:v.Am.POSITION.TOP_RIGHT})}).catch(t=>{var l,_;N(!1),v.Am.error(null===(l=t.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg,{position:v.Am.POSITION.TOP_RIGHT}),e={email:"",first_name:"",last_name:"",message:"",phone:""}}))};return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"B__flex  B__justify-center B__items-center",children:(0,_.jsx)("div",{className:"B__w-[75%] lg:B__w-[65%] xl:B__w-[60%] B__flex B__justify-center section-vertical-padding",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-2 B__text-center xl:B__min-w-[500px] 2xl:B__min-w-[600px]",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-3",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},children:(0,_.jsx)("h3",{className:"B__font-primary B__text-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words lg:B__max-w-[80%] B__mx-auto",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B||"",key:"blockProps.description",field_label:"Description"}]},regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:"",isImg:!1},children:(0,_.jsx)("div",{className:"B__text-sm md:B__text-md xl:B__text-lg B__font-secondary B__text-primary B__font-normal B__break-words lg:B__max-w-[80%] B__mx-auto",children:(0,D.ZP)(B||"")})})]}),(0,_.jsx)("div",{children:w?(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,D.ZP)(k||"Thank you. We will get in touch with you soon.")}):(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-10",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{height:"fit-content"},type:a,editBtn:{icon:!0,fields:[{name:"first_name_label",placeholder:"First Name label",type:"input",value:(null==j?void 0:j.first_name_label)||"",key:"blockProps.form.first_name_label",field_label:"First Name label"},{name:"last_name_label",placeholder:"Last Name label",type:"input",value:(null==j?void 0:j.last_name_label)||"",key:"blockProps.form.last_name_label",field_label:"Last Name label"},{name:"email_label",placeholder:"Email label",type:"input",value:(null==j?void 0:j.email_label)||"",key:"blockProps.form.email_label",field_label:"Email label"},{name:"messages_label",placeholder:"Message label",type:"input",value:(null==j?void 0:j.messages_label)||"",key:"blockProps.form.messages_label",field_label:"Message label"},{name:"button_label",placeholder:"Button label",type:"input",value:(null==j?void 0:j.button_label)||"",key:"blockProps.form.button_label",field_label:"Button label"}]},children:(0,_.jsx)(ek.J9,{initialValues:{first_name:"",last_name:"",email:"",message:""},validationSchema:ew.Ry().shape({first_name:ew.Z_().required("Required"),last_name:ew.Z_().required("Required"),email:ew.Z_().required("Required").email("Please enter a valid email"),message:ew.Z_().required("Required").max(500,"Message cannot exceed 500 characters")}),onSubmit:P,children:e=>{let{values:t,errors:l,handleChange:i,handleSubmit:o}=e;return(0,_.jsxs)("form",{onSubmit:o,style:{margin:"0 auto"},className:"B__font-primary B__w-full B__rounded-primary",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-4 xl:B__gap-6",children:[(0,_.jsxs)("div",{className:"B__flex B__gap-x-5",children:[(0,_.jsxs)("div",{className:"B__w-1/2  B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md"),name:"first_name",onChange:i,value:t.first_name,placeholder:"".concat(j.first_name_label||"First Name","*")}),l.first_name?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.first_name}):null]}),(0,_.jsxs)("div",{className:"B__w-1/2 B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md"),name:"last_name",onChange:i,value:t.last_name,placeholder:"".concat(j.last_name_label||"Last Name","*")}),l.last_name?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.last_name}):null]})]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md"),name:"email",onChange:i,value:t.email,placeholder:"".concat(j.email_label||"Email","*")}),l.email?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.email}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("textarea",{name:"message",className:"".concat(L().contacts_input," B__rounded-md"),cols:30,rows:4,onChange:i,value:t.message,placeholder:"".concat(j.messages_label||"Message","*")}),l.message?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.message}):null]})]}),(0,_.jsx)("div",{className:"B__mt-3 xl:B__mt-5",children:(0,_.jsx)("button",{type:"submit",className:"B__w-full B__text-center !B__p-3 B__flex B__justify-center B__gap-2 B__items-center B__bg-button-primary B__text-button-primary B__font-medium B__text-base  B__font-secondary B__rounded-md",children:j.button_label||"Join Us"})})]})}})}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-center B__w-full B__gap-5",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col md:B__flex-row B__gap-x-10 B__gap-5 B__w-full B__justify-center B__items-center",children:["live"!==a||p?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{width:"auto"},editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:x||"",key:"blockProps.email",field_label:"Email"}]},hideBtn:{key:"blockProps.showEmail",value:p},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center ".concat(p?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("mailto:".concat(x))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.ixJ,{fontSize:20,className:" B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-primary B__text-sm md:B__text-md lg:B__text-lg",children:(0,D.ZP)(x||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||f?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{width:"auto"},editBtn:{icon:!0,fields:[{name:"location",placeholder:"Location",type:"texteditor",value:y||"",key:"blockProps.location",field_label:"Location"}]},hideBtn:{key:"blockProps.showLocation",value:f},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center ".concat(f?"":"B__opacity-70"),children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.vcr,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-primary B__whitespace-break-spaces B__text-sm md:B__text-md lg:B__text-lg",children:(0,D.ZP)(y||"")})]})}):(0,_.jsx)(_.Fragment,{})]}),"live"!==a||g?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{width:"auto"},editBtn:{icon:!0,fields:[{name:"phone",placeholder:"Phone",type:"input",value:u||"",key:"blockProps.phone",field_label:"Phone"}]},hideBtn:{key:"blockProps.showPhone",value:g},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center B__justify-center ".concat(g?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("tel:".concat(u))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.IXo,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-primary B__text-sm md:B__text-md lg:B__text-lg",children:(0,D.ZP)(u||"")})]})}):(0,_.jsx)(_.Fragment,{})]})]})})]})})})})},ly=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,websiteId:n}=e,{title:r,title_keywords:c="",description:B,description_keywords:x="",email:m="",showEmail:p=!0,email_keywords:u="",phone:h="",showPhone:g=!0,phone_keywords:y="",location:b="",location_keywords:f="",showLocation:j=!0,form:k,thanks_message:w}=s,[N,P]=(0,i.useState)(!1),I=e=>{"preview"===a||"edit"===a?P(!0):(e.website_id=n,e8.Z.contactUs(e).then(e=>{var t;P(!0),v.Am.success(null===(t=e.data)||void 0===t?void 0:t.msg,{position:v.Am.POSITION.TOP_RIGHT})}).catch(t=>{var l,_;P(!1),v.Am.error(null===(l=t.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg,{position:v.Am.POSITION.TOP_RIGHT}),e={email:"",name:"",message:"",phone:""}}))};return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col section-vertical-padding B__gap-6 md:B__flex-row B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)("div",{className:"B__w-full md:B__w-1/2  B__flex B__justify-center lg:B__justify-start",children:(0,_.jsxs)("div",{className:"B__w-[75%] md:B__w-[85%] lg:B__w-[85%] xl:B__w-[85%] B__max-w-[700px] B__flex B__flex-col md:B__gap-8 md:B__max-w-none",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},children:(0,_.jsx)("h3",{className:"B__text-primary B__font-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B||"",key:"blockProps.description",field_label:"Description"}]},regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},children:(0,_.jsx)("div",{className:"B__text-sm md:B__text-md xl:B__text-lg B__font-secondary B__text-primary B__font-normal B__break-words",children:(0,D.ZP)(B||"")})})]}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__w-full B__gap-4",children:["live"!==a||p?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:m||"",key:"blockProps.email",field_label:"Email"}]},hideBtn:{key:"blockProps.showEmail",value:p},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center ".concat(p?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("mailto:".concat(m))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.ixJ,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(m||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||j?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"location",placeholder:"Location",type:"texteditor",value:b||"",key:"blockProps.location",field_label:"Location"}]},hideBtn:{key:"blockProps.showLocation",value:j},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center ".concat(j?"":"B__opacity-70"),children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.vcr,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__whitespace-break-spaces B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(b||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||g?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"phone",placeholder:"Phone",type:"input",value:h||"",key:"blockProps.phone",field_label:"Phone"}]},hideBtn:{key:"blockProps.showPhone",value:g},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center ".concat(g?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("tel:".concat(h))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.IXo,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(h||"")})]})}):(0,_.jsx)(_.Fragment,{})]})]})}),(0,_.jsx)("div",{className:"md:B__w-1/2 B__flex B__justify-center md:B__justify-end",children:(0,_.jsx)("div",{className:"B__flex B__flex-col B__gap-2 B__w-[75%] md:B__w-[85%] lg:B__w-[85%] xl:B__w-[85%] B__max-w-[700px]",children:N?(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,D.ZP)(w||"Thank you. We will get in touch with you soon.")}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{height:"fit-content"},type:a,editBtn:{icon:!0,fields:[{name:"first_name_label",placeholder:"First Name label",type:"input",value:(null==k?void 0:k.first_name_label)||"",key:"blockProps.form.first_name_label",field_label:"First Name label"},{name:"last_name_label",placeholder:"Last Name label",type:"input",value:(null==k?void 0:k.last_name_label)||"",key:"blockProps.form.last_name_label",field_label:"Last Name label"},{name:"email_label",placeholder:"Email label",type:"input",value:(null==k?void 0:k.email_label)||"",key:"blockProps.form.email_label",field_label:"Email label"},{name:"messages_label",placeholder:"Message label",type:"input",value:(null==k?void 0:k.messages_label)||"",key:"blockProps.form.messages_label",field_label:"Message label"},{name:"button_label",placeholder:"Button label",type:"input",value:(null==k?void 0:k.button_label)||"",key:"blockProps.form.button_label",field_label:"Button label"}]},children:(0,_.jsx)(ek.J9,{initialValues:{first_name:"",last_name:"",email:"",message:""},validationSchema:ew.Ry().shape({first_name:ew.Z_().required("Required"),last_name:ew.Z_().required("Required"),email:ew.Z_().required("Required").email("Please enter a valid email"),message:ew.Z_().required("Required").max(500,"Message cannot exceed 500 characters")}),onSubmit:I,children:e=>{let{values:t,errors:l,handleChange:i,handleSubmit:o}=e;return(0,_.jsxs)("form",{onSubmit:o,style:{margin:"0 auto"},className:"B__font-primary B__w-full B__rounded-primary",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-4 xl:B__gap-6",children:[(0,_.jsxs)("div",{className:"B__flex B__gap-x-5",children:[(0,_.jsxs)("div",{className:"B__w-1/2  B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"first_name",onChange:i,value:t.first_name,placeholder:"".concat(k.first_name_label||"First Name","*")}),l.first_name?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.first_name}):null]}),(0,_.jsxs)("div",{className:"B__w-1/2 B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"last_name",onChange:i,value:t.last_name,placeholder:"".concat(k.last_name_label||"Last Name","*")}),l.last_name?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.last_name}):null]})]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),name:"email",onChange:i,value:t.email,placeholder:"".concat(k.email_label||"Email","*")}),l.email?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.email}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("textarea",{name:"message",className:"".concat(L().contacts_input," B__rounded-md B__bg-surface !B__border-[color:var(--color-primary)]"),cols:30,rows:4,onChange:i,value:t.message,placeholder:"".concat(k.messages_label||"Message","*")}),l.message?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.message}):null]})]}),(0,_.jsx)("div",{className:"B__mt-3 xl:B__mt-5",children:(0,_.jsx)("button",{type:"submit",className:"B__w-full B__border B__border-[color:var(--color-primary)] B__text-center !B__p-3 B__flex B__justify-center B__gap-2 B__items-center B__text-primary B__font-medium B__text-base  B__font-secondary B__rounded-md",children:k.button_label||"Join Us"})})]})}})})})})})]})})},lb=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,websiteId:n}=e,{title:r,title_keywords:c="",description:B,description_keywords:x="",email:m="",email_keywords:p="",showEmail:u=!0,phone:h="",phone_keywords:g="",showPhone:y=!0,location:b="",location_keywords:f="",showLocation:j=!0,form:k,thanks_message:w,greeting:N="",greeting_keywords:P=""}=s,[I,C]=(0,i.useState)(!1),Z=e=>{"preview"===a||"edit"===a?C(!0):(e.website_id=n,e8.Z.contactUs(e).then(e=>{var t;C(!0),v.Am.success(null===(t=e.data)||void 0===t?void 0:t.msg,{position:v.Am.POSITION.TOP_RIGHT})}).catch(t=>{var l,_;C(!1),v.Am.error(null===(l=t.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg,{position:v.Am.POSITION.TOP_RIGHT}),e={email:"",name:"",message:"",phone:""}}))};return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col section-vertical-padding B__gap-12 md:B__flex-row custom-container-max-width B__w-full B__mx-auto",children:[(0,_.jsx)("div",{className:"B__w-[95%] md:B__w-1/2  B__flex B__justify-center lg:B__justify-start B__items-center",children:(0,_.jsxs)("div",{className:"B__w-full md:B__w-[75%] B__flex B__flex-col md:B__gap-8",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-3",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},children:(0,_.jsx)("h3",{className:"B__font-primary B__text-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__text-center lg:B__text-left",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B||"",key:"blockProps.description",field_label:"Description"}]},regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},children:(0,_.jsx)("div",{className:"B__text-sm md:B__text-md xl:B__text-lg B__font-secondary B__text-primary B__font-normal B__break-words B__text-center lg:B__text-left",children:(0,D.ZP)(B||"")})})]}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__w-full B__gap-4",children:["live"!==a||u?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,className:"!B__w-auto",slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:m||"",key:"blockProps.email",field_label:"Email"}]},hideBtn:{key:"blockProps.showEmail",value:u},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__justify-center lg:B__justify-start B__items-center ".concat(u?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("mailto:".concat(m))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.ixJ,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(m||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||j?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"location",placeholder:"Location",type:"texteditor",value:b||"",key:"blockProps.location",field_label:"Location"}]},hideBtn:{key:"blockProps.showLocation",value:j},className:"!B__w-auto",children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center  B__justify-center lg:B__justify-start ".concat(j?"":"B__opacity-70"),children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.vcr,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__whitespace-break-spaces B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(b||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||y?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},className:"!B__w-auto",editBtn:{icon:!0,fields:[{name:"phone",placeholder:"Phone",type:"input",value:h||"",key:"blockProps.phone",field_label:"Phone"}]},hideBtn:{key:"blockProps.showPhone",value:y},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center  B__justify-center lg:B__justify-start ".concat(y?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("tel:".concat(h))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.IXo,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(h||"")})]})}):(0,_.jsx)(_.Fragment,{})]})]})}),(0,_.jsx)("div",{className:"md:B__w-1/2 B__flex B__justify-center md:B__justify-end",children:(0,_.jsx)("div",{className:"B__w-full B__flex B__justify-center B__items-center B__bg-surface B__py-12 md:B__py-20 B__rounded-primary",children:(0,_.jsx)("div",{className:"B__flex B__flex-col B__gap-2 B__w-[85%] lg:B__w-[80%]",children:I?(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,D.ZP)(w||"Thank you. We will get in touch with you soon.")}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"greeting",placeholder:"Greeting",type:"texteditor",value:N||"",key:"blockProps.greeting",field_label:"Greeting"}]},regenrateBtn:{updateType:"key",key:"blockProps.greeting",keywords:P||"",isImg:!1},children:(0,_.jsx)("div",{className:"B__flex B__flex-col B__gap-3 B__mb-3",children:(0,_.jsx)("h3",{className:"B__text-primary B__font-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(N||"")})})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{height:"fit-content"},type:a,editBtn:{icon:!0,fields:[{name:"first_name_label",placeholder:"First Name label",type:"input",value:(null==k?void 0:k.first_name_label)||"",key:"blockProps.form.first_name_label",field_label:"First Name label"},{name:"last_name_label",placeholder:"Last Name label",type:"input",value:(null==k?void 0:k.last_name_label)||"",key:"blockProps.form.last_name_label",field_label:"Last Name label"},{name:"email_label",placeholder:"Email label",type:"input",value:(null==k?void 0:k.email_label)||"",key:"blockProps.form.email_label",field_label:"Email label"},{name:"messages_label",placeholder:"Message label",type:"input",value:(null==k?void 0:k.messages_label)||"",key:"blockProps.form.messages_label",field_label:"Message label"},{name:"button_label",placeholder:"Button label",type:"input",value:(null==k?void 0:k.button_label)||"",key:"blockProps.form.button_label",field_label:"Button label"}]},children:(0,_.jsx)(ek.J9,{initialValues:{first_name:"",last_name:"",email:"",message:""},validationSchema:ew.Ry().shape({first_name:ew.Z_().required("Required"),last_name:ew.Z_().required("Required"),email:ew.Z_().required("Required").email("Please enter a valid email"),message:ew.Z_().required("Required").max(500,"Message cannot exceed 500 characters")}),onSubmit:Z,children:e=>{let{values:t,errors:l,handleChange:i,handleSubmit:o}=e;return(0,_.jsxs)("form",{onSubmit:o,style:{margin:"0 auto"},className:"B__font-primary B__w-full B__rounded-primary",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-4 xl:B__gap-6",children:[(0,_.jsxs)("div",{className:"B__flex B__col sm: B__gap-x-5",children:[(0,_.jsxs)("div",{className:"B__w-full sm:B__w-1/2 B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md"),name:"first_name",onChange:i,value:t.first_name,placeholder:"".concat(k.first_name_label||"First Name","*")}),l.first_name?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.first_name}):null]}),(0,_.jsxs)("div",{className:"B__w-full sm:B__w-1/2 B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md"),name:"last_name",onChange:i,value:t.last_name,placeholder:"".concat(k.last_name_label||"Last Name","*")}),l.last_name?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.last_name}):null]})]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md"),name:"email",onChange:i,value:t.email,placeholder:"".concat(k.email_label||"Email","*")}),l.email?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.email}):null]}),(0,_.jsxs)("div",{className:"B__text-lg",children:[(0,_.jsx)("textarea",{name:"message",className:"".concat(L().contacts_input," B__rounded-md"),cols:30,rows:4,onChange:i,value:t.message,placeholder:"".concat(k.messages_label||"Message","*")}),l.message?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:l.message}):null]})]}),(0,_.jsx)("div",{className:"B__mt-3 xl:B__mt-5",children:(0,_.jsx)("button",{type:"submit",className:"B__w-full B__text-button-primary B__bg-button-primary B__border B__border-[color:var(--background-color-primary)] B__text-center !B__p-3 B__flex B__justify-center B__gap-2 B__items-center B__font-medium B__text-base  B__font-secondary B__rounded-md",children:k.button_label||"Join Us"})})]})}})})]})})})})]})})},lf=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a,websiteId:s}=e,{title:n,title_keywords:r,description:c,description_keywords:B,email:x="",email_keywords:m="",emailLabel:p="",showEmail:u=!0,showPhone:v=!0,showLocation:h=!0,phone:g="",phoneLabel:y="",phone_keywords:b="",location:f="",location_keywords:j="",locationLabel:k=""}=a;return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"B__flex  B__justify-center B__items-center md:B__text-center section-vertical-padding global_css",children:(0,_.jsxs)("div",{className:"B__flex custom-container-max-width B__w-full B__flex-col  md:B__justify-center B__gap-8",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start md:B__items-center B__gap-y-6",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:r||"",isImg:!1},children:(0,_.jsx)("h3",{className:"B__font-primary B__text-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__text-center",style:{lineHeight:1.1},children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:B||"",isImg:!1},children:(0,_.jsx)("div",{className:"B__text-sm md:B__text-md xl:B__text-lg B__font-secondary B__text-primary B__font-normal B__break-words B__text-center",children:(0,D.ZP)(c||"")})})]}),(0,_.jsxs)("div",{className:"B__flex B__flex-col md:B__flex-row B__justify-between B__w-full B__gap-y-8 B__gap-x-10 B__font-secondary",children:["live"!==o||u?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"emailLabel",placeholder:"Email Label",type:"texteditor",value:p||"",key:"blockProps.emailLabel",field_label:"Email Label"},{name:"email",placeholder:"Email",type:"input",value:x||"",key:"blockProps.email",field_label:"Email"}]},hideBtn:{key:"blockProps.showEmail",value:u},children:(0,_.jsxs)("div",{className:"B__flex B__flex-row md:B__flex-col B__gap-3 B__items-center B__justify-center ".concat(u?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("mailto:".concat(x))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.ixJ,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-medium B__text-lg B__text-primary",children:(0,D.ZP)(p||"Email")}),(0,_.jsx)("span",{className:" B__text-sm md:B__text-md lg:B__text- B__text-primary",children:(0,D.ZP)(x||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==o||h?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"locationLabel",placeholder:"Location Label",type:"texteditor",value:k||"",key:"blockProps.locationLabel",field_label:"Location Label"},{name:"location",placeholder:"Location",type:"texteditor",value:f||"",key:"blockProps.location",field_label:"Location"}]},hideBtn:{key:"blockProps.showLocation",value:h},children:(0,_.jsxs)("div",{className:"B__flex  B__flex-row md:B__flex-col B__gap-3 B__flex-wrap B__items-center B__justify-center ".concat(h?"":"B__opacity-70"),children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.vcr,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-medium B__text-lg B__text-primary",children:(0,D.ZP)(k||"Address")}),(0,_.jsx)("span",{className:"B__whitespace-break-spaces B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(f||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==o||v?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"phoneLabel",placeholder:"Phone Label",type:"texteditor",value:y||"",key:"blockProps.phoneLabel",field_label:"Phone Label"},{name:"phone",placeholder:"Phone",type:"input",value:g||"",key:"blockProps.phone",field_label:"Phone"}]},hideBtn:{key:"blockProps.showPhone",value:v},children:(0,_.jsxs)("div",{className:"B__flex  B__flex-row md:B__flex-col B__gap-3 B__items-center B__justify-center ".concat(v?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("tel:".concat(g))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.IXo,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-medium B__text-lg B__text-primary",children:(0,D.ZP)(y||"Phone")}),(0,_.jsx)("span",{className:" B__text-sm md:B__text-md lg:B__text-lg B__text-primary",children:(0,D.ZP)(g||"")})]})}):(0,_.jsx)(_.Fragment,{})]})]})})})},lj=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,websiteId:n}=e,{title:r="",title_keywords:c="",description:B="",email:x="",email_keywords:m="",showEmail:p=!0,phone:u="",phone_keywords:h="",showPhone:g=!0,location:y="",location_keywords:b="",showLocation:f=!0,form:j,thanks_message:k}=s,[w,N]=(0,i.useState)(!1),P=e=>{if("preview"===a||"edit"===a)N(!0);else{let t={};Object.keys(e).forEach(l=>{let _="".concat(l,"_label");_ in j&&(t[j[_]]=e[l])}),t.website_id=n,e8.Z.contactUsCustom(t).then(e=>{var t;N(!0),v.Am.success(null===(t=e.data)||void 0===t?void 0:t.msg,{position:v.Am.POSITION.TOP_RIGHT})}).catch(t=>{var l,_;N(!1),v.Am.error(null===(l=t.response)||void 0===l?void 0:null===(_=l.data)||void 0===_?void 0:_.msg,{position:v.Am.POSITION.TOP_RIGHT}),e={email:"",first_name:"",last_name:"",message:"",phone:""}})}},I=Array(9).fill(1).map((e,t)=>({name:"field".concat(t+1,"_label"),placeholder:"field".concat(t+1," label"),type:"input",value:(null==j?void 0:j["field".concat(t+1,"_label")])||"",key:"blockProps.form.field".concat(t+1,"_label"),field_label:"field".concat(t+1," label")}));return I.push(...[{name:"dropdown_label",placeholder:"dropdown label",type:"input",value:(null==j?void 0:j.dropdown_label)||"",key:"blockProps.form.dropdown_label",field_label:"dropdown_label"},...[,,,,].fill(1).map((e,t)=>({name:"option".concat(t+1,"_label"),placeholder:"option".concat(t+1," label"),type:"input",value:(null==j?void 0:j["option".concat(t+1,"_label")])||"",key:"blockProps.form.option".concat(t+1,"_label"),field_label:"option".concat(t+1," label")}))]),(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"B__flex  B__justify-center B__items-center",children:(0,_.jsx)("div",{className:"B__w-[75%] lg:B__w-[65%] xl:B__w-[60%] B__flex B__justify-center section-vertical-padding",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-2 B__text-center xl:B__min-w-[500px] 2xl:B__min-w-[600px]",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-3",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},children:(0,_.jsx)("h3",{className:"B__font-primary B__text-primary B__font-semibold B__text-2xl lg:B__text-3xl xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words lg:B__max-w-[80%] B__mx-auto",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{height:"fit"},editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B||"",key:"blockProps.description",field_label:"Description"}]},regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:"",isImg:!1},children:(0,_.jsx)("div",{className:"B__text-sm md:B__text-md xl:B__text-lg B__font-secondary B__text-primary B__font-normal B__break-words lg:B__max-w-[80%] B__mx-auto",children:(0,D.ZP)(B||"")})})]}),(0,_.jsx)("div",{children:w?(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,D.ZP)(k||"Thank you. We will get in touch with you soon.")}):(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-10 B__mt-4",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{height:"fit-content"},type:a,editBtn:{icon:!0,fields:I},children:(0,_.jsx)(ek.J9,{initialValues:{},onSubmit:P,children:e=>{var t;let{values:l,errors:i,handleChange:o,handleSubmit:a}=e;return(0,_.jsxs)("form",{onSubmit:a,style:{margin:"0 auto"},className:"B__font-primary B__w-full B__rounded-primary",children:[(0,_.jsxs)("div",{className:"B__grid B__grid-cols-1 lg:B__grid-cols-2 B__gap-3 B__gap-x-5",children:[null===(t=Array(9).fill(1))||void 0===t?void 0:t.map((e,t)=>(0,_.jsxs)("div",{className:"B__w-full B__text-lg B__flex B__flex-col B__items-start",children:[(0,_.jsx)("label",{className:"B__text-left B__font-medium B__mr-auto B__mb-1.5 B__text-sm lg:B__text-base",children:"".concat(j["field".concat(t+1,"_label")]||"field".concat(t+1))}),(0,_.jsx)("input",{type:"text",className:"".concat(L().contacts_input," B__rounded-md !B__py-2 !B__border-gray-400 !B__text-primary !B__text-sm lg:!B__text-base"),name:"field".concat(t+1),onChange:o,value:l["field".concat(t+1)],placeholder:""}),(null==i?void 0:i["field".concat(t+1)])?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:null==i?void 0:i["field".concat(t+1)]}):null]},t)),(0,_.jsxs)("div",{className:"B__w-full B__text-lg B__flex B__flex-col B__items-start",children:[(0,_.jsx)("label",{className:"B__text-left B__font-medium B__mr-auto B__mb-1.5 B__text-sm lg:B__text-base",children:"".concat(j.dropdown_label||"dropdown")}),(0,_.jsxs)("select",{className:"".concat(L().contacts_input," B__rounded-md !B__py-[9.5px] !B__border-gray-400 !B__text-primary !B__text-sm lg:!B__text-base"),name:"dropdown",onChange:o,value:l.dropdown,placeholder:"",children:[(0,_.jsx)("option",{value:l.option1_label,children:"".concat(j.option1_label||"option1 label")}),(0,_.jsx)("option",{value:l.option2_label,children:"".concat(j.option2_label||"option2 label")}),(0,_.jsx)("option",{value:l.option3_label,children:"".concat(j.option3_label||"option3 label")}),(0,_.jsx)("option",{value:l.option4_label,children:"".concat(j.option4_label||"option4 label")})]}),(null==i?void 0:i.dropdown)?(0,_.jsx)("p",{style:{color:"red",margin:"0"},children:null==i?void 0:i.dropdown}):null]})]}),(0,_.jsx)("div",{className:"B__mt-3 xl:B__mt-5",children:(0,_.jsx)("button",{type:"submit",className:"B__w-full B__text-center !B__p-3 B__flex B__justify-center B__gap-2 B__items-center B__bg-primary B__text-white B__text-primary B__font-medium B__text-base  B__font-secondary B__rounded-md",children:j.button_label||"Join Us"})})]})}})}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-center B__w-full B__gap-5",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col md:B__flex-row B__gap-x-10 B__gap-5 B__w-full B__justify-center B__items-center",children:["live"!==a||p?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{width:"auto"},editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:x||"",key:"blockProps.email",field_label:"Email"}]},hideBtn:{key:"blockProps.showEmail",value:p},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center ".concat(p?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("mailto:".concat(x))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.ixJ,{fontSize:20,className:" B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-sm md:B__text-md lg:B__text-lg",children:(0,D.ZP)(x||"")})]})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||f?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{width:"auto"},editBtn:{icon:!0,fields:[{name:"location",placeholder:"Location",type:"texteditor",value:y||"",key:"blockProps.location",field_label:"Location"}]},hideBtn:{key:"blockProps.showLocation",value:f},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center ".concat(f?"":"B__opacity-70"),children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.vcr,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__whitespace-break-spaces B__text-sm md:B__text-md lg:B__text-lg",children:(0,D.ZP)(y||"")})]})}):(0,_.jsx)(_.Fragment,{})]}),"live"!==a||g?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,style:{width:"auto"},editBtn:{icon:!0,fields:[{name:"phone",placeholder:"Phone",type:"input",value:u||"",key:"blockProps.phone",field_label:"Phone"}]},hideBtn:{key:"blockProps.showPhone",value:g},children:(0,_.jsxs)("div",{className:"B__flex B__gap-x-3 B__items-center B__justify-center ".concat(g?"":"B__opacity-70"," B__cursor-pointer"),onClick:()=>{window&&window.open("tel:".concat(u))},children:[(0,_.jsx)("div",{className:"h-5 w-5",children:(0,_.jsx)(d.IXo,{fontSize:20,className:"B__text-[color:var(--background-color-primary)]"})}),(0,_.jsx)("span",{className:"B__font-secondary B__text-sm md:B__text-md lg:B__text-lg",children:(0,D.ZP)(u||"")})]})}):(0,_.jsx)(_.Fragment,{})]})]})})]})})})})},lk=e=>{var t;let{id:l,sectionLocation:o,slot:s,viewMode:n,blockProps:c}=e,{title:B,img:x="https://images.unsplash.com/photo-1542435503-956c469947f6?q=80&w=2874&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",title_keywords:m,embed:p,calendly:u,email:v,phone:h,calenderType:g="calendly"}=c,{setEditContentFields:y,setShowEditContentModal:b,setEditSectionMetaData:f,websiteData:j}=(0,i.useContext)(r.o)||{},k=()=>{null==y||y([{name:"calendly",placeholder:"Calendly data-url",type:"textarea",value:u||"",regenerateBtn:!0,field_label:"Calendly data-url",key:"blockProps.calendly",children:(0,_.jsx)("span",{className:"B__text-sm B__text-[#5959ff] B__cursor-pointer",onClick:()=>{window&&window.open(" https://help.calendly.com/hc/en-us/articles/223193448-Sharing-your-scheduling-link","_blank")},children:"How to find calendly link?"})},{name:"calenderType",placeholder:"Selected Calender Type",type:"input",value:"calendly",regenerateBtn:!0,field_label:"Selected Calender Type",key:"blockProps.calenderType",disabled:!0}]),null==b||b(!0),null==f||f({sectionId:l,slot:s,editBaseData:"website"===o})},w=()=>{null==y||y([{name:"embed",placeholder:"Add your calender integration",type:"textarea",value:p||"",regenerateBtn:!0,field_label:"Add your calender integration",key:"blockProps.embed"},{name:"calenderType",placeholder:"Selected Calender Type",type:"input",value:"custom",regenerateBtn:!0,field_label:"Selected Calender Type",key:"blockProps.calenderType",disabled:!0}]),null==b||b(!0),null==f||f({sectionId:l,slot:s,editBaseData:"website"===o})};return(0,_.jsxs)("div",{className:"",style:{background:"linear-gradient(180deg, var(--background-color-primary-light) 0%, #ffffff00 100%)"},children:[(0,_.jsx)(a(),{children:(0,_.jsx)("script",{type:"text/javascript",src:"https://assets.calendly.com/assets/external/widget.js",async:!0})}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__flex-col custom-container-max-width B__mx-auto B__my-auto B__relative section-vertical-padding global_css",children:[(0,_.jsxs)("div",{className:"B__w-full B__px-[25px] md:B__px-0 B__text-inherit ".concat(p||u?"B__mb-4":""),children:[(0,_.jsx)("div",{className:"",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:s,style:{zIndex:3},type:n,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:m||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:B},{name:"email",placeholder:"Email",type:"input",value:v||"",key:"blockProps.email",field_label:"Email"},{name:"phone",placeholder:"Phone",type:"input",value:h||"",key:"blockProps.phone",field_label:"Phone"}]},children:(0,_.jsx)("h1",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(B||"")})})}),(v||h)&&(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem]",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:s,type:n,editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:v||"",key:"blockProps.email",field_label:"Email"},{name:"phone",placeholder:"Phone",type:"input",value:h||"",key:"blockProps.phone",field_label:"Phone"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-wrap B__items-center B__justify-center B__gap-2.5 B__text-base xl:B__text-lg 2xl:B__text-xl  B__font-secondary B__font-normal B__text-main",children:[v&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__bg-surface B__px-1.5 B__pr-4 lg:B__pr-5 B__py-1.5 B__rounded-full",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__bg-secondary B__font-normal B__text-lg lg:B__text-2xl",children:(0,_.jsx)(d.hoL,{})}),(0,_.jsx)("span",{className:"B__m-0",children:(0,D.ZP)(v||(null==j?void 0:null===(t=j.user_location)||void 0===t?void 0:t.user_email)||"user@email.com")})]}),h&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__bg-surface B__px-1.5 B__pr-4 lg:B__pr-5 B__py-1.5 B__rounded-full",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__bg-secondary B__font-normal B__text-lg lg:B__text-2xl",children:(0,_.jsx)(M.SPk,{})}),(0,_.jsx)("span",{className:"",children:(0,D.ZP)(h||"+1 (123)-456-7890")})]})]})})})]}),(0,_.jsxs)("div",{className:"B__w-full B__relative",children:["live"!==n&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__gap-4 B__absolute B__inset-0 B__z-30",children:[(0,_.jsx)(ti.Z,{title:"calendly"===g&&u?"Edit Calendly url":"Add Calendly url",onClick:k}),(0,_.jsx)(ti.Z,{title:"custom"===g&&p?"Edit custom integration code":"Add custom integration code",onClick:w})]}),"calendly"===g&&u||"custom"===g&&p?(0,_.jsx)(_.Fragment,{children:"calendly"===g&&u?(0,_.jsxs)("div",{className:"B__mx-auto B__h-full hidescrollbar",children:[(0,_.jsx)("div",{className:"calendly-inline-widget B__mx-auto B__rounded-primary","data-url":(0,D.ZP)(u||""),style:{minWidth:320,height:700}}),(0,_.jsx)(tB(),{type:"text/javascript",src:"https://assets.calendly.com/assets/external/widget.js",async:!0})]}):(0,_.jsx)("div",{className:"B__rounded-primary",children:(e=>{let t=(0,D.ZP)(e,{replace:e=>{if("script"===e.type){let t=!!e.attribs.src,l=document.createElement("script");t?l.src=e.attribs.src:l.innerHTML=e.children[0].data,document.head.append(l)}}});return t})(p||"")})}):(0,_.jsx)("div",{className:"B__flex-1 B__w-full B__max-w-4xl 2xl:B__max-w-5xl B__mx-auto B__min-h-[250px] B__h-[250px] lg:B__h-[400px] 2xl:B__h-[450px] B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__rounded-primary",style:{boxShadow:"0px 42.44px 61.30px 0px #00000014"},children:(0,_.jsx)("img",{className:"B__w-full B__object-center B__object-cover B__h-full B__max-h-[450px] lg:B__max-h-[550px] 2xl:B__max-h-[650px] B__rounded-primary",src:x,alt:""})})]})]})]})},lw=e=>{var t;let{id:l,sectionLocation:o,slot:s,viewMode:n,blockProps:c}=e,{title:B,description:x="",img:m="https://images.unsplash.com/photo-1542435503-956c469947f6?q=80&w=2874&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",title_keywords:p,embed:u,calendly:v,email:h,phone:g,calenderType:y="calendly"}=c,{setEditContentFields:b,setShowEditContentModal:f,setEditSectionMetaData:j,websiteData:k}=(0,i.useContext)(r.o)||{},w=()=>{null==b||b([{name:"calendly",placeholder:"Calendly data-url",type:"textarea",value:v||"",regenerateBtn:!0,field_label:"Calendly data-url",key:"blockProps.calendly",children:(0,_.jsx)("span",{className:"B__text-sm B__text-[#5959ff] B__cursor-pointer",onClick:()=>{window&&window.open(" https://help.calendly.com/hc/en-us/articles/223193448-Sharing-your-scheduling-link","_blank")},children:"How to find calendly link?"})},{name:"calenderType",placeholder:"Selected Calender Type",type:"input",value:"calendly",regenerateBtn:!0,field_label:"Selected Calender Type",key:"blockProps.calenderType",disabled:!0}]),null==f||f(!0),null==j||j({sectionId:l,slot:s,editBaseData:"website"===o})},N=()=>{null==b||b([{name:"embed",placeholder:"Add your calender integration",type:"textarea",value:u||"",regenerateBtn:!0,field_label:"Add your calender integration",key:"blockProps.embed"},{name:"calenderType",placeholder:"Selected Calender Type",type:"input",value:"custom",regenerateBtn:!0,field_label:"Selected Calender Type",key:"blockProps.calenderType",disabled:!0}]),null==f||f(!0),null==j||j({sectionId:l,slot:s,editBaseData:"website"===o})};return(0,_.jsxs)("div",{className:"",style:{background:"linear-gradient(180deg, var(--background-color-primary-light) 0%, #ffffff00 100%)"},children:[(0,_.jsx)(a(),{children:(0,_.jsx)("script",{type:"text/javascript",src:"https://assets.calendly.com/assets/external/widget.js",async:!0})}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__flex-col lg:B__flex-row custom-container-max-width B__mx-auto B__my-auto B__relative section-vertical-padding global_css B__gap-10 xl:B__gap-14",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[36%] xl:B__w-[32%] 2xl:B__w-[35%] B__px-[25px] md:B__px-0 B__text-inherit ".concat(u||v?"B__mb-4 lg:B__mb-0":""),children:[(0,_.jsx)("div",{className:"",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:o,slot:s,style:{zIndex:3},type:n,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:p||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:B},{name:"description",placeholder:"Description",type:"texteditor",value:x,field_label:"Description",key:"blockProps.description"},{name:"email",placeholder:"Email",type:"input",value:h||"",key:"blockProps.email",field_label:"Email"},{name:"phone",placeholder:"Phone",type:"input",value:g||"",key:"blockProps.phone",field_label:"Phone"}]},children:[(0,_.jsx)("h1",{className:"B__text-center lg:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(B||"")}),(0,_.jsx)("p",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center lg:B__text-left",children:(0,D.ZP)(x||"")})]})}),(h||g)&&(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem]",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:s,type:n,editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:h||"",key:"blockProps.email",field_label:"Email"},{name:"phone",placeholder:"Phone",type:"input",value:g||"",key:"blockProps.phone",field_label:"Phone"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-wrap B__items-center B__justify-center lg:B__justify-start B__gap-2.5 B__text-base xl:B__text-lg 2xl:B__text-xl  B__font-secondary B__font-normal B__text-main",children:[h&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__bg-surface B__px-1.5 B__pr-4 lg:B__pr-5 B__py-1.5 B__rounded-full",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__bg-secondary B__font-normal B__text-lg lg:B__text-2xl",children:(0,_.jsx)(d.hoL,{})}),(0,_.jsx)("span",{className:"B__m-0",children:(0,D.ZP)(h||(null==k?void 0:null===(t=k.user_location)||void 0===t?void 0:t.user_email)||"user@email.com")})]}),g&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__bg-surface B__px-1.5 B__pr-4 lg:B__pr-5 B__py-1.5 B__rounded-full",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__bg-secondary B__font-normal B__text-lg lg:B__text-2xl",children:(0,_.jsx)(M.SPk,{})}),(0,_.jsx)("span",{className:"",children:(0,D.ZP)(g||"+1 (123)-456-7890")})]})]})})})]}),(0,_.jsxs)("div",{className:"B__flex-1 B__w-full lg:B__w-[64%] xl:B__w-[65%] 2xl:B__w-[62%] B__relative",children:["live"!==n&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__gap-4 B__absolute B__inset-0 B__z-30",children:[(0,_.jsx)(ti.Z,{title:"calendly"===y&&v?"Edit Calendly url":"Add Calendly url",onClick:w}),(0,_.jsx)(ti.Z,{title:"custom"===y&&u?"Edit custom integration code":"Add custom integration code",onClick:N})]}),"calendly"===y&&v||"custom"===y&&u?(0,_.jsx)(_.Fragment,{children:"calendly"===y&&v?(0,_.jsxs)("div",{className:"B__mx-auto B__h-full hidescrollbar",children:[(0,_.jsx)("div",{className:"calendly-inline-widget B__mx-auto B__rounded-primary","data-url":(0,D.ZP)(v||""),style:{minWidth:320,height:700}}),(0,_.jsx)(tB(),{type:"text/javascript",src:"https://assets.calendly.com/assets/external/widget.js",async:!0})]}):(0,_.jsx)("div",{className:"B__rounded-primary",children:(e=>{let t=(0,D.ZP)(e,{replace:e=>{if("script"===e.type){let t=!!e.attribs.src,l=document.createElement("script");t?l.src=e.attribs.src:l.innerHTML=e.children[0].data,document.head.append(l)}}});return t})(u||"")})}):(0,_.jsx)("div",{className:"B__flex-1 B__w-full B__max-w-4xl 2xl:B__max-w-5xl B__mx-auto B__min-h-[250px] B__h-[250px] lg:B__h-[400px] 2xl:B__h-[450px] B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__rounded-primary",style:{boxShadow:"0px 42.44px 61.30px 0px #00000014"},children:(0,_.jsx)("img",{className:"B__w-full B__object-center B__object-cover B__h-full B__max-h-[450px] lg:B__max-h-[550px] 2xl:B__max-h-[650px] B__rounded-primary",src:m,alt:""})})]})]})]})},lN=e=>{var t;let{id:l,sectionLocation:o,slot:s,viewMode:n,blockProps:c}=e,{title:B,description:x="",img:m="https://images.unsplash.com/photo-1542435503-956c469947f6?q=80&w=2874&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",title_keywords:p,embed:u,calendly:v,email:h,phone:g,calenderType:y="calendly"}=c,{setEditContentFields:b,setShowEditContentModal:f,setEditSectionMetaData:j,websiteData:k}=(0,i.useContext)(r.o)||{},w=()=>{null==b||b([{name:"calendly",placeholder:"Calendly data-url",type:"textarea",value:v||"",regenerateBtn:!0,field_label:"Calendly data-url",key:"blockProps.calendly",children:(0,_.jsx)("span",{className:"B__text-sm B__text-[#5959ff] B__cursor-pointer",onClick:()=>{window&&window.open(" https://help.calendly.com/hc/en-us/articles/223193448-Sharing-your-scheduling-link","_blank")},children:"How to find calendly link?"})},{name:"calenderType",placeholder:"Selected Calender Type",type:"input",value:"calendly",regenerateBtn:!0,field_label:"Selected Calender Type",key:"blockProps.calenderType",disabled:!0}]),null==f||f(!0),null==j||j({sectionId:l,slot:s,editBaseData:"website"===o})},N=()=>{null==b||b([{name:"embed",placeholder:"Add your calender integration",type:"textarea",value:u||"",regenerateBtn:!0,field_label:"Add your calender integration",key:"blockProps.embed"},{name:"calenderType",placeholder:"Selected Calender Type",type:"input",value:"custom",regenerateBtn:!0,field_label:"Selected Calender Type",key:"blockProps.calenderType",disabled:!0}]),null==f||f(!0),null==j||j({sectionId:l,slot:s,editBaseData:"website"===o})};return(0,_.jsxs)("div",{className:"",style:{background:"linear-gradient(180deg, var(--background-color-primary-light) 0%, #ffffff00 100%)"},children:[(0,_.jsx)(a(),{children:(0,_.jsx)("script",{type:"text/javascript",src:"https://assets.calendly.com/assets/external/widget.js",async:!0})}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__flex-col lg:B__flex-row-reverse custom-container-max-width B__mx-auto B__my-auto B__relative section-vertical-padding global_css B__gap-10 xl:B__gap-14",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[36%] xl:B__w-[32%] 2xl:B__w-[35%] B__px-[25px] md:B__px-0 B__text-inherit ".concat(u||v?"B__mb-4 lg:B__mb-0":""),children:[(0,_.jsx)("div",{className:"",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:o,slot:s,style:{zIndex:3},type:n,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:p||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:B},{name:"description",placeholder:"Description",type:"texteditor",value:x,field_label:"Description",key:"blockProps.description"},{name:"email",placeholder:"Email",type:"input",value:h||"",key:"blockProps.email",field_label:"Email"},{name:"phone",placeholder:"Phone",type:"input",value:g||"",key:"blockProps.phone",field_label:"Phone"}]},children:[(0,_.jsx)("h1",{className:"B__text-center lg:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(B||"")}),(0,_.jsx)("p",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center lg:B__text-left",children:(0,D.ZP)(x||"")})]})}),(h||g)&&(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem]",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:s,type:n,editBtn:{icon:!0,fields:[{name:"email",placeholder:"Email",type:"input",value:h||"",key:"blockProps.email",field_label:"Email"},{name:"phone",placeholder:"Phone",type:"input",value:g||"",key:"blockProps.phone",field_label:"Phone"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-wrap B__items-center B__justify-center lg:B__justify-start B__gap-2.5 B__text-base xl:B__text-lg 2xl:B__text-xl  B__font-secondary B__font-normal B__text-main",children:[h&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__bg-surface B__px-1.5 B__pr-4 lg:B__pr-5 B__py-1.5 B__rounded-full",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__bg-secondary B__font-normal B__text-lg lg:B__text-2xl",children:(0,_.jsx)(d.hoL,{})}),(0,_.jsx)("span",{className:"B__m-0",children:(0,D.ZP)(h||(null==k?void 0:null===(t=k.user_location)||void 0===t?void 0:t.user_email)||"user@email.com")})]}),g&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 B__bg-surface B__px-1.5 B__pr-4 lg:B__pr-5 B__py-1.5 B__rounded-full",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__bg-secondary B__font-normal B__text-lg lg:B__text-2xl",children:(0,_.jsx)(M.SPk,{})}),(0,_.jsx)("span",{className:"",children:(0,D.ZP)(g||"+1 (123)-456-7890")})]})]})})})]}),(0,_.jsxs)("div",{className:"B__flex-1 B__w-full lg:B__w-[64%] xl:B__w-[65%] 2xl:B__w-[62%] B__relative",children:["live"!==n&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__gap-4 B__absolute B__inset-0 B__z-30",children:[(0,_.jsx)(ti.Z,{title:"calendly"===y&&v?"Edit Calendly url":"Add Calendly url",onClick:w}),(0,_.jsx)(ti.Z,{title:"custom"===y&&u?"Edit custom integration code":"Add custom integration code",onClick:N})]}),"calendly"===y&&v||"custom"===y&&u?(0,_.jsx)(_.Fragment,{children:"calendly"===y&&v?(0,_.jsxs)("div",{className:"B__mx-auto B__h-full hidescrollbar",children:[(0,_.jsx)("div",{className:"calendly-inline-widget B__mx-auto B__rounded-primary","data-url":(0,D.ZP)(v||""),style:{minWidth:320,height:700}}),(0,_.jsx)(tB(),{type:"text/javascript",src:"https://assets.calendly.com/assets/external/widget.js",async:!0})]}):(0,_.jsx)("div",{className:"B__rounded-primary",children:(e=>{let t=(0,D.ZP)(e,{replace:e=>{if("script"===e.type){let t=!!e.attribs.src,l=document.createElement("script");t?l.src=e.attribs.src:l.innerHTML=e.children[0].data,document.head.append(l)}}});return t})(u||"")})}):(0,_.jsx)("div",{className:"B__flex-1 B__w-full B__max-w-4xl 2xl:B__max-w-5xl B__mx-auto B__min-h-[250px] B__h-[250px] lg:B__h-[400px] 2xl:B__h-[450px] B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__rounded-primary",style:{boxShadow:"0px 42.44px 61.30px 0px #00000014"},children:(0,_.jsx)("img",{className:"B__w-full B__object-center B__object-cover B__h-full B__max-h-[450px] lg:B__max-h-[550px] 2xl:B__max-h-[650px] B__rounded-primary",src:m,alt:""})})]})]})]})},lP=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,img:r,journey:d,img_keywords:c}=s;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("div",{className:"B__my-8 lg:B__my-10 xl:B__my-12 2xl:B__my-[3.7rem] B__h-[12rem] md:B__h-[18rem] xl:B__h-[26rem] 2xl:B__h-[30rem] B__w-full B__rounded-primary",style:{backgroundImage:"url(".concat(r,")"),backgroundPosition:"center center",backgroundSize:"cover"}})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"journey",placeholder:"Jpurney",type:"texteditor",value:d||"",key:"blockProps.journey",field_label:"Journey"}]},children:(0,_.jsx)("div",{className:"B__text-center B__text-primary B__font-normal B__font-secondary B__mx-auto B__text-base lg:B__text-xl B__relative B__break-words",children:(0,D.ZP)(d||"")})})]})},lI=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,img:r,journey:d,img_keywords:c}=s;return(0,_.jsxs)("div",{className:"B__bg-secondary B__relative",children:[(0,_.jsx)("div",{className:"B__absolute B__bottom-0 B__w-full B__h-[120px] lg:B__h-[150px] xl:B__h-[180px] 2xl:B__h-[220px] B__bg-surface B__z-10"}),(0,_.jsxs)("div",{className:"B__relative section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"journey",placeholder:"Journey",type:"texteditor",value:d||"",key:"blockProps.journey",field_label:"Journey"}]},children:(0,_.jsx)("div",{className:"B__mt-4 lg:B__mt-7 B__text-center B__text-primary B__font-normal B__font-secondary B__mx-auto B__text-base lg:B__text-xl B__relative B__break-words md:B__max-w-[90%] xl:B__max-w-[700px]",children:(0,D.ZP)(d||"")})}),(0,_.jsx)("div",{className:"B__my-8 lg:B__my-10 xl:B__my-12 2xl:B__my-[3.7rem] B__h-[14rem] md:B__h-[18rem] xl:B__h-[24rem] 2xl:B__h-[26rem] B__w-full"}),(0,_.jsx)(S.Z,{className:"!B__absolute !B__z-20 !B__w-full !B__h-auto !B__bottom-14 lg:!B__bottom-20 xl:!B__bottom-24 2xl:!B__bottom-28",sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("div",{className:"B__h-[14rem] md:B__h-[20rem] xl:B__h-[28rem] 2xl:B__h-[32rem] B__w-full B__rounded-primary",style:{backgroundImage:"url(".concat(r,")"),backgroundPosition:"center center",backgroundSize:"cover"}})})]})]})},lC=e=>{var t;let{id:l,sectionLocation:o,slot:a,viewMode:s,active:n,blockProps:r}=e,{title:d,img:c,journey:B,img_keywords:x}=r,m=(0,i.useRef)(null);return(0,_.jsxs)("div",{className:"B__relative section-vertical-padding B__mx-auto custom-container-max-width global_css",style:{"--section-height":((null==m?void 0:null===(t=m.current)||void 0===t?void 0:t.clientHeight)||10)/2+"px"},children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.img",keywords:x||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("div",{className:"B__my-6 lg:B__my-10 xl:B__my-12 2xl:B__my-[3.7rem] B__h-[15rem] md:B__h-[23rem] xl:B__h-[30rem] 2xl:B__h-[35rem] B__w-full B__rounded-primary",style:{backgroundImage:"url(".concat(c,")"),backgroundPosition:"center center",backgroundSize:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"}})}),(0,_.jsx)("div",{className:"B__relative B__w-full !B__h-auto lg:!B__h-[var(--section-height)]",children:(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[75%] B__mx-auto B__p-6 B__px-10 lg:B__p-9 lg:B__px-14 xl:B__p-12 xl:B__px-20 2xl:B__px-24 B__bg-secondary-dark B__text-white B__rounded-primary lg:B__absolute lg:B__bottom-0 lg:B__left-1/2 lg:B__-translate-x-1/2 B__z-10",ref:m,children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:d||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-white B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(d||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"journey",placeholder:"Journey",type:"texteditor",value:B||"",key:"blockProps.journey",field_label:"Journey"}]},children:(0,_.jsx)("div",{className:"B__mt-4 lg:B__mt-8 B__text-center B__text-white B__font-normal B__font-secondary B__mx-auto B__text-base lg:B__text-xl B__relative B__break-words",children:(0,D.ZP)(B||"")})})]})})]})},lZ=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,img:r,journey:d,img_keywords:c}=s;return(0,_.jsxs)("div",{className:"B__relative section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,className:"!B__w-full ",buttonsWrapperClasses:"lg:!B__w-[50%] ",slot:i,type:o,style:{zIndex:"40"},regenrateBtn:{icon:!0,updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{icon:!0,fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("div",{className:"B__w-full B__my-8 lg:B__my-10 xl:B__my-12 2xl:B__my-[3.7rem] B__h-[15rem] md:B__h-[28rem] xl:B__h-[34rem] 2xl:B__h-[37rem] B__rounded-primary",style:{backgroundImage:"url(".concat(r,")"),backgroundPosition:"center center",backgroundSize:"cover"}})}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-4 B__items-center lg:B__items-start !B__w-full lg:!B__w-[40%] lg:B__absolute B__bg-nav B__p-8 lg:B__p-10 xl:B__p-14 2xl:B__p-16 lg:B__right-[10%] lg:B__top-1/2 lg:B__-translate-y-1/2 B__rounded-primary B__z-40",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,className:"",slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center lg:B__text-left B__text-nav B__font-bold B__font-primary B__mx-auto lg:B__mx-0 B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"journey",placeholder:"Journey",type:"texteditor",value:d||"",key:"blockProps.journey",field_label:"Journey"}]},children:(0,_.jsx)("div",{className:"B__text-center lg:B__text-left B__text-nav B__font-normal B__font-secondary B__mx-auto B__text-base lg:B__text-xl B__relative B__break-words",children:(0,D.ZP)(d||"")})})]})]})},lT=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-7 lg:B__gap-10 xl:B__gap-12 2xl:B__gap-[3.7rem]",children:d.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__w-full hover:B__border-transparent B__flex-col B__gap-7 lg:B__gap-0 lg:B__flex-row lg:odd:B__flex-row-reverse",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[50%]",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img,height:500,width:600,style:{objectFit:"cover"},className:"B__w-full B__h-full B__max-h-[250px] lg:B__max-h-[400px] xl:B__B__max-h-[500px] 2xl:B__max-h-[600px] B__rounded-primary"})})}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-[50%] B__text-center lg:B__text-left ".concat(t%2?"lg:B__pl-14 xl:B__pl-16 2xl:B__pl-[4.5rem]":"lg:B__pr-14 xl:B__pr-16 2xl:B__pr-[4.5rem]"),children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"message",placeholder:"Message",type:"texteditor",value:e.message,key:"blockProps.items[".concat(t,"].message"),field_label:"Message"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base xl:B__text-lg B__font-normal B__mt-3 lg:B__mt-5 xl:B__mt-6",children:(0,D.ZP)(e.message||"")})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},lL=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,description:d="",items:c}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:2},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("p",{className:"B__text-center B__mt-4 xl:B__mt-5 B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base",children:(0,D.ZP)(d||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-7 lg:B__gap-10 xl:B__gap-12 2xl:B__gap-[3.7rem]",children:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-end B__justify-center B__w-full  hover:B__border-transparent B__flex-col B__gap-7 lg:B__gap-0 lg:B__flex-row",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[50%]",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img,height:500,width:600,style:{objectFit:"cover"},className:"B__w-full B__h-[200px] lg:B__h-[250px] xl:B__h-[350px] 2xl:B__h-[450px] B__rounded-primary"})})}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-[50%] B__text-center lg:B__text-left lg:B__pl-14 xl:B__pl-16 2xl:B__pl-[4.5rem]",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"message",placeholder:"Message",type:"texteditor",value:e.message,key:"blockProps.items[".concat(t,"].message"),field_label:"Message"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base xl:B__text-lg B__font-normal B__mt-3 lg:B__mt-5 xl:B__mt-6",children:(0,D.ZP)(e.message||"")})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},lS=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,description:d="",items:c}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto B__max-w-[85%] md:B__max-w-[70%] lg:B__max-w-[70%] xl:B__max-w-[60%] 2xl:B__max-w-[60%] global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:2},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("p",{className:"B__text-center B__mt-4 xl:B__mt-5 B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base",children:(0,D.ZP)(d||"")})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 lg:B__grid-cols-2 B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-4 lg:B__gap-8",children:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-center B__w-full hover:B__border-transparent B__gap-3 lg:B__gap-5",children:[(0,_.jsx)("div",{className:"B__w-full",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img,height:500,width:600,style:{objectFit:"cover"},className:"B__w-full B__h-[200px] lg:B__h-[250px] xl:B__h-[300px] 2xl:B__h-[400px] B__rounded-primary"})})}),(0,_.jsx)("div",{className:"B__w-full B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"message",placeholder:"Message",type:"texteditor",value:e.message,key:"blockProps.items[".concat(t,"].message"),field_label:"Message"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("p",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base xl:B__text-lg B__font-normal B__mt-3 lg:B__mt-5 xl:B__mt-6",children:(0,D.ZP)(e.message||"")})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},lD=e=>{let t=(0,i.useCallback)(()=>{var t,l;return{width:(null===(t=e.current)||void 0===t?void 0:t.offsetWidth)||0,height:(null===(l=e.current)||void 0===l?void 0:l.offsetHeight)||0}},[e]),[l,_]=(0,i.useState)({width:0,height:0});return(0,i.useEffect)(()=>{var l;let i,o;let a=()=>{_(t())};if(e.current&&_(t()),e.current&&(null===(l=e.current)||void 0===l?void 0:l.offsetWidth)===0){_(t());let l=setInterval(()=>{var o;(null===(o=e.current)||void 0===o?void 0:o.offsetWidth)&&(_(t()),clearInterval(l),clearTimeout(i))},100),i=setTimeout(()=>{clearInterval(l),clearTimeout(i)},5e3)}return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),clearTimeout(o),clearInterval(i)}},[e,null==e?void 0:e.current,t]),l},lF=e=>{let{viewMode:t,sectionLocation:l,id:o,index:a,slot:s,founder:n}=e,r=(0,i.useRef)(null),d=(0,i.useRef)(null),{height:c}=lD(r),{height:B}=lD(d);return(0,_.jsxs)("div",{className:"B__flex B__items-stretch B__justify-center B__w-full hover:B__border-transparent B__flex-col B__gap-3 lg:B__gap-0 lg:B__flex-row even:lg:B__flex-row-reverse B__relative",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[50%]",ref:d,style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:o,sectionLocation:l,slot:s,type:t,style:{zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==n?void 0:n.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(n.name),src:n.img,height:500,width:600,style:{objectFit:"cover"},className:"B__w-full B__h-[250px] lg:B__h-[350px] xl:B__h-[400px] 2xl:B__h-[450px] B__rounded-primary B__relative lg:B__top-1/2 lg:B__-translate-y-1/2"})})}),(0,_.jsxs)("div",{className:"B__w-full B__h-full lg:B__w-[50%] B__text-center lg:B__text-left B__relative",children:[(0,_.jsx)("div",{className:"B__h-[250px] lg:B__h-[350px] xl:B__h-[400px] 2xl:B__h-[450px] B__w-full B__hidden lg:B__block B__invisible",style:{height:(c>B?c:B)||0}}),(0,_.jsx)("div",{className:"lg:B__absolute B__w-full B__top-1/2 lg:B__-translate-y-1/2 B__z-10 B__bg-surface B__p-8 lg:B__p-10 xl:B__p-14 2xl:B__p-20 ".concat(a%2==1?"B__-right-[25%]":"B__-left-[25%]"),ref:r,children:(0,_.jsxs)(S.Z,{sectionId:o,sectionLocation:l,slot:s,type:t,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==n?void 0:n.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:n.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"message",placeholder:"Message",type:"texteditor",value:n.message,key:"blockProps.items[".concat(a,"].message"),field_label:"Message"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-primary",children:(0,D.ZP)(n.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base xl:B__text-lg B__font-normal B__mt-3 lg:B__mt-5 xl:B__mt-6",children:(0,D.ZP)(n.message||"")})]})})]})]},a)},lE=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,description:d="",items:c}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,style:{zIndex:2},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("p",{className:"B__text-center B__mt-4 xl:B__mt-5 B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base",children:(0,D.ZP)(d||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-8 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-5 lg:B__gap-8 xl:B__gap-12 2xl:B__gap-16",children:c.map((e,t)=>(0,_.jsx)(lF,{index:t,founder:e,id:l,sectionLocation:i,slot:o,viewMode:a},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},lA=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:" B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__grid B__grid-cols-1 lg:B__grid-cols-2 B__gap-7 xl:B__gap-8 2xl:B__gap-10",children:d.map((e,t)=>(0,_.jsxs)("div",{className:"B__relative B__flex B__items-center B__justify-center B__w-full B__flex-col B__p-4 B__rounded-primary B__border ".concat(0===t?"B__overflow-hidden B__bg-secondary B__border-transparent B__col-span-1 lg:B__col-span-2 lg:B__py-[4.5rem] 2xl:B__py-24 lg:B__px-32 2xl:B__px-48":"B__bg-secondary B__border-transparent lg:B__border-primary lg:B__bg-card-surface  lg:B__py-16 2xl:B__py-20 lg:B__px-10 2xl:B__px-12"),children:[(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"mission",placeholder:"Mission",type:"texteditor",value:e.mission,key:"blockProps.items[".concat(t,"].mission"),field_label:"Mission"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-semibold B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-center B__text-main",children:(0,D.ZP)(e.mission||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-base B__font-normal B__mt-4 lg:B__mt-5 B__text-center",children:(0,D.ZP)(e.description||"")})]}),0===t&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__absolute B__bottom-0 B__right-0 B__translate-x-[240px] B__translate-y-[240px] B__rounded-full B__bg-[#d0d1d6] B__h-[420px] B__w-[420px]",children:(0,_.jsx)("div",{className:"B__bg-secondary B__rounded-full B__absolute B__w-[300px] B__left-1/2 B__top-1/2 B__-translate-x-1/2 B__-translate-y-1/2 B__h-[300px]"})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},lH=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,vision:d,img:c,img_keywords:B}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"B__relative section-vertical-padding B__mx-auto custom-container-max-width global_css",children:(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"10",height:"100px",position:"absolute"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},className:"B__rounded-primary",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]}}),(0,_.jsxs)("div",{className:"B__absolute B__inset-0 ",children:[(0,_.jsx)("div",{className:"B__bg-[#00000030] B__backdrop-blur-lg B__h-full B__w-full B__absolute B__inset-0 B__rounded-primary"}),(0,_.jsx)("img",{src:c,alt:(0,J.s9)(r),className:"B__w-full B__h-full B__object-cover B__object-center B__rounded-primary"})]}),(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-16 xl:B__py-24 2xl:B__py-28 B__px-4 md:B__px-6 lg:B__px-52 xl:B__px-60 2xl:B__px-96 ",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-white B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.vision",keywords:"",isImg:!1},editBtn:{fields:[{name:"vision",placeholder:"Vision",type:"texteditor",value:d||"",key:"blockProps.vision",field_label:"Vision"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center B__text-white B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(d||"")})}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})]})})})},lz=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,vision:d,img:c,img_keywords:B}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"B__relative global_css B__my-10 lg:B__my-[65px] xl:B__my-[80px] 2xl:B__my-[100px] B__bg-secondary B__flex B__items-center",children:(0,_.jsxs)("div",{className:"B__bg-card-surface B__flex B__items-center",children:[(0,_.jsx)("div",{className:"B__hidden md:B__block B__w-[50%] B__h-full",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"10"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("img",{src:c,alt:(0,J.s9)(r),className:"B__w-full B__h-full B__object-cover B__object-center B__max-h-[350px] lg:B__max-h-[420px] xl:B__max-h-[450px]"})})}),(0,_.jsx)("div",{className:"B__relative B__w-[80%] lg:B__w-[50%] B__mx-auto custom-container-max-width  B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20 B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center md:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.vision",keywords:"",isImg:!1},editBtn:{fields:[{name:"vision",placeholder:"Vision",type:"texteditor",value:d||"",key:"blockProps.vision",field_label:"Vision"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center md:B__text-left B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(d||"")})}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})]})})})},lM=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,vision:d,img:c,img_keywords:B,title_keywords:x}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"B__relative global_css B__my-10 lg:B__my-[65px] xl:B__my-[80px] 2xl:B__my-[100px] B__bg-secondary B__flex B__items-center",children:(0,_.jsxs)("div",{className:"B__bg-card-surface B__flex B__items-center",children:[(0,_.jsx)("div",{className:"B__relative B__w-[80%] lg:B__w-[50%] B__mx-auto custom-container-max-width B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20 B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:x||"",isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center md:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.vision",keywords:"",isImg:!1},editBtn:{fields:[{name:"vision",placeholder:"Vision",type:"texteditor",value:d||"",key:"blockProps.vision",field_label:"Vision"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center md:B__text-left B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(d||"")})})]})}),(0,_.jsxs)("div",{className:"B__hidden md:B__block B__w-[50%] B__h-full",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"10"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("img",{src:c,alt:(0,J.s9)(r),className:"B__w-full B__h-full B__object-cover B__object-center B__max-h-[350px] lg:B__max-h-[420px] xl:B__max-h-[450px]"})}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})]})})})},lU=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,vision:d,img:c,img_keywords:B}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__relative global_css section-vertical-padding",children:[(0,_.jsx)("div",{className:"B__absolute B__inset-0",children:(0,_.jsx)("div",{className:"B__bg- B__h-full B__w-full B__absolute B__inset-0"})}),(0,_.jsx)("div",{className:"B__relative B__mx-auto custom-container-max-width B__bg-secondary B__rounded-primary",children:(0,_.jsx)("div",{className:"B__bg-card-surface B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20 B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.vision",keywords:"",isImg:!1},editBtn:{fields:[{name:"vision",placeholder:"Vision",type:"texteditor",value:d||"",key:"blockProps.vision",field_label:"Vision"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(d||"")})}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})})]})})},lV=e=>{var t;let{id:l,sectionLocation:o,slot:a,viewMode:s,active:n,blockProps:d}=e,{embed:c,img:B="https://unsplash.com/photos/blue-green-and-yellow-world-map-l68Z6eF2peA"}=d,{websiteData:x}=(0,i.useContext)(r.o)||{},m=null==x?void 0:null===(t=x.user_location)||void 0===t?void 0:t.user_zip,p=m?'<iframe class="slideanim" style="border:0; width: 100%; height: 500px;" src="https://www.google.com/maps/embed/v1/place?key='.concat("AIzaSyAcF-dvTm5FXwxGKAJs3TiQh51Vvx-bFjI","&q=").concat(m,'" frameborder="0" allowfullscreen></iframe>'):void 0;return(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"B__relative section-vertical-padding md:B__max-w-[80%] B__mx-auto custom-container-max-width",children:c||p?(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,style:{zIndex:"10"},editBtn:{fields:[{name:"embed",placeholder:"Insert your integration code here",type:"textarea",value:c||"",regenerateBtn:!0,field_label:"Embedded code",key:"blockProps.embed"}]},children:(0,_.jsx)("div",{className:"B__w-full B__max-h-[400px] xl:B__max-h-[550px] 2xl:B__max-h-[620px] B__overflow-hidden B__rounded-primary",children:(e=>{let t=(0,D.ZP)(e,{replace:e=>{if("script"===e.type){let t=!!e.attribs.src,l=document.createElement("script");t?l.src=e.attribs.src:l.innerHTML=e.children[0].data,document.head.append(l)}}});return t})(c||p||"")})}):(0,_.jsx)("div",{className:"B__relative",children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:o,slot:a,type:s,style:{zIndex:"10"},editBtn:{fields:[{name:"embed",placeholder:"Insert your integration code here",type:"textarea",value:c||"",field_label:"Embedded code",key:"blockProps.embed"}]},children:(0,_.jsx)("div",{className:"B__w-full 2xl:B__h-[620px]",children:(0,_.jsx)(w(),{alt:"map",src:B,height:1440,width:620,style:{objectFit:"cover"},className:"B__w-full B__h-full B__max-h-[200px] md:B__max-h-[300px] lg:B__max-h-[400px] xl:B__max-h-[550px] 2xl:B__max-h-[620px] B__object-cover B__object-center B__rounded-primary"})})})})})})},lR=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-4 lg:B__gap-6 xl:B__gap-7 2xl:B__gap-9 B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3",children:d.map((e,t)=>(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__gap-3 lg:B__gap-4 xl:B__gap-5 2xl:B__gap-6",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset",height:""},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img,height:500,width:500,style:{objectFit:"cover"},className:"B__w-full B__h-[260px] lg:B__h-[300px] xl:B__h-[340px] 2xl:B__h-[400px] B__rounded-primary"})}),(0,_.jsx)("div",{className:"B__w-2/3 B__mx-auto B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"},{name:"linkedInUrl",placeholder:"LinkedIn Url",type:"input",value:e.linkedInUrl||"",key:"blockProps.items[".concat(t,"].linkedInUrl"),field_label:"LinkedIn Url"},{name:"linkedInTitle",placeholder:"LinkedIn Title",type:"input",value:e.linkedInTitle||"",key:"blockProps.items[".concat(t,"].linkedInTitle"),field_label:"LinkedIn Title"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-center B__mb-2 xl:B__mb-2.5 B__font-bold B__text-xl lg:B__text-[1.4rem] xl:B__text-[1.65rem] B__break-words B__text-main",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-sm xl:B__text-base B__font-normal B__text-center",children:(0,D.ZP)(e.designation||"")}),(null==e?void 0:e.linkedInUrl)?(0,_.jsxs)("div",{className:"B__text-blue-500 B__text-xs lg:B__text-base B__flex B__items-center B__justify-center B__gap-2 B__break-words B__px-4 B__mt-2.5 B__cursor-pointer",onClick:()=>{(null==e?void 0:e.linkedInUrl)&&window.open(e.linkedInUrl,"_blank")},children:[(0,_.jsx)("span",{className:"B__text-xl B__my-auto lg:B__text-[1.7rem]",children:(0,_.jsx)(e_.ltd,{})}),(0,_.jsx)("span",{children:(null==e?void 0:e.linkedInTitle)?null==e?void 0:e.linkedInTitle:"Vist my profile"})]}):(0,_.jsx)(_.Fragment,{})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},lW=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,description:d="",items:c}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary B__text-center B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[600px]",children:(0,D.ZP)(d||"")})}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-4 lg:B__gap-6 xl:B__gap-7 2xl:B__gap-9 B__grid B__grid-cols-2 lg:B__grid-cols-4",children:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__gap-3 lg:B__gap-4 xl:B__gap-5 2xl:B__gap-6",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset",height:""},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img,height:300,width:300,style:{objectFit:"cover"},className:"B__mx-auto B__w-[140px] lg:B__w-[160px] xl:B__w-[180px] 2xl:B__w-[200px] B__h-[140px] lg:B__h-[160px] xl:B__h-[180px] 2xl:B__h-[200px] B__rounded-full"})}),(0,_.jsx)("div",{className:"B__w-[80%] B__mx-auto B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-center B__mb-2 xl:B__mb-2.5 B__font-bold B__text-xl lg:B__text-[1.4rem] xl:B__text-[1.65rem] B__break-words B__text-main",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-sm xl:B__text-base B__font-normal B__text-center",children:(0,D.ZP)(e.designation||"")}),(null==e?void 0:e.linkedInUrl)?(0,_.jsxs)("div",{className:"B__text-blue-500 B__text-xs lg:B__text-base B__flex B__items-center B__justify-center B__gap-2 B__break-words B__px-4 B__mt-2.5 B__cursor-pointer",onClick:()=>{(null==e?void 0:e.linkedInUrl)&&window.open(e.linkedInUrl,"_blank")},children:[(0,_.jsx)("span",{className:"B__text-xl B__my-auto lg:B__text-[1.7rem]",children:(0,_.jsx)(e_.ltd,{})}),(0,_.jsx)("span",{children:(null==e?void 0:e.linkedInTitle)?null==e?void 0:e.linkedInTitle:"Vist my profile"})]}):(0,_.jsx)(_.Fragment,{})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},lK=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,description:d="",items:c}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__flex B__flex-col lg:B__flex-row B__items-start B__justify-between B__gap-4 lg:B__gap-8",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[25%] lg:B__mt-28",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center lg:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto lg:B__mx-0 lg:B__mr-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[80%]",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary B__text-center lg:B__text-left lg:B__mx-0 lg:B__mr-auto B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[80%]",children:(0,D.ZP)(d||"")})})]}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[72%] B__mx-auto ",children:[(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-4 lg:B__gap-6 xl:B__gap-7 2xl:B__gap-9 B__grid B__grid-cols-2 xl:B__grid-cols-4",children:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__w-full B__h-full B__flex B__flex-col B__gap-3 lg:B__gap-4 xl:B__gap-5 2xl:B__gap-6",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset",height:""},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img,height:300,width:300,style:{objectFit:"cover"},className:"B__mx-auto B__w-[140px] lg:B__w-[160px] xl:B__w-[180px] 2xl:B__w-[200px] B__h-[140px] lg:B__h-[160px] xl:B__h-[180px] 2xl:B__h-[200px] B__rounded-primary"})}),(0,_.jsx)("div",{className:"B__w-[80%] B__mx-auto B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-center B__mb-2 xl:B__mb-2.5 B__font-medium B__text-lg lg:B__text-xl xl:B__text-2xl B__break-words B__text-main",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-sm xl:B__text-base B__font-normal B__text-center",children:(0,D.ZP)(e.designation||"")}),(null==e?void 0:e.linkedInUrl)?(0,_.jsxs)("div",{className:"B__text-blue-500 B__text-xs lg:B__text-base B__flex B__items-center B__justify-center B__gap-2 B__break-words B__px-4 B__mt-2.5 B__cursor-pointer",onClick:()=>{(null==e?void 0:e.linkedInUrl)&&window.open(e.linkedInUrl,"_blank")},children:[(0,_.jsx)("span",{className:"B__text-xl B__my-auto lg:B__text-[1.7rem]",children:(0,_.jsx)(e_.ltd,{})}),(0,_.jsx)("span",{children:(null==e?void 0:e.linkedInTitle)?null==e?void 0:e.linkedInTitle:"Vist my profile"})]}):(0,_.jsx)(_.Fragment,{})]})})]},t))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})]})})},lq=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,description:d="",items:c}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__flex B__flex-col lg:B__flex-row B__items-center B__justify-between B__gap-4 lg:B__gap-8",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%]",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center lg:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto lg:B__mx-0 lg:B__mr-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[80%]",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:d||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary B__text-center lg:B__text-left lg:B__mx-0 lg:B__mr-auto B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[80%]",children:(0,D.ZP)(d||"")})})]}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[55%] B__mx-auto ",children:[(0,_.jsxs)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-4 lg:B__gap-6 xl:B__gap-7 2xl:B__gap-9 B__columns-2",children:[(0,_.jsx)("div",{className:" B__h-[100px]"}),c.map((e,t)=>(0,_.jsxs)("div",{className:"B__relative B__w-full B__h-full B__flex B__flex-col B__gap-3 lg:B__gap-4 xl:B__gap-5 2xl:B__gap-6 B__break-inside-avoid-column B__group/teamcard B__my-4 lg:B__my-6 xl:B__my-7 2xl:B__my-9",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset",height:""},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img,height:300,width:300,style:{objectFit:"cover"},className:"B__mx-auto B__w-full B__h-[250px] lg:B__h-[300px] xl:B__h-[350px] 2xl:B__h-[400px] B__rounded-primary"})}),(0,_.jsx)("div",{className:"B__absolute B__bottom-0 B__z-10  B__flex  B__left-0 B__right-0 B__rounded-primary B__bg-[#ffffffa4]",children:(0,_.jsxs)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,className:"B__mt-auto B__px-5 B__p-2 B__bg-[#00000042] B__rounded-primary",style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(t,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(t,"].designation"),field_label:"Designation"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-center B__mb-1 xl:B__mb-1.5 B__font-bold B__text-xl lg:B__text-[1.4rem] xl:B__text-[1.65rem] B__break-words B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm xl:B__text-base B__font-normal B__text-center",style:{lineHeight:1.2},children:(0,D.ZP)(e.designation||"")}),(null==e?void 0:e.linkedInUrl)?(0,_.jsxs)("div",{className:"B__text-blue-500 B__text-xs lg:B__text-base B__flex B__items-center B__justify-center B__gap-2 B__break-words B__px-4 B__mt-2.5 B__cursor-pointer",onClick:()=>{(null==e?void 0:e.linkedInUrl)&&window.open(e.linkedInUrl,"_blank")},children:[(0,_.jsx)("span",{className:"B__text-xl B__my-auto lg:B__text-[1.7rem]",children:(0,_.jsx)(e_.ltd,{})}),(0,_.jsx)("span",{children:(null==e?void 0:e.linkedInTitle)?null==e?void 0:e.linkedInTitle:"Vist my profile"})]}):(0,_.jsx)(_.Fragment,{})]})})]},t))]}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})]})})},lO=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,description:r,items:d}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{className:"",sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r||"",key:"blockProps.description",field_label:"Description"}]},children:(0,_.jsx)("h3",{className:"B__text-secondary B__font-secondary B__text-center  B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[80%]",children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)(e3.Z,{breakpointCols:{default:3,1100:3,992:2,500:1},className:"B__flex B__w-auto",columnClassName:"B__pl-5 lg:B__pl-8 xl:B__pl-10",children:d.map((e,a)=>(0,_.jsxs)("div",{className:"B__w-full B__flex B__flex-col B__gap-3 lg:B__gap-4 xl:B__gap-5 2xl:B__gap-6 B__break-inside-avoid-column B__mb-7 lg:B__mb-9 xl:B__mb-12 ".concat(1===a?"lg:B__pt-[100px]":""),children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{zIndex:"unset",height:""},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.name),src:e.img,height:500,width:500,style:{objectFit:"cover"},className:"B__w-full B__h-[230px] lg:B__h-[250px] xl:B__h-[300px] 2xl:B__h-[350px] B__rounded-primary"})}),(0,_.jsx)("div",{className:"B__text-center lg:B__text-left",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"designation",placeholder:"Designation",type:"texteditor",value:e.designation,key:"blockProps.items[".concat(a,"].designation"),field_label:"Designation"},{name:"linkedInUrl",placeholder:"LinkedIn Url",type:"input",value:e.linkedInUrl||"",key:"blockProps.items[".concat(a,"].linkedInUrl"),field_label:"LinkedIn Url"},{name:"linkedInTitle",placeholder:"LinkedIn Title",type:"input",value:e.linkedInTitle||"",key:"blockProps.items[".concat(a,"].linkedInTitle"),field_label:"LinkedIn Title"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-center lg:B__text-left B__mb-2 xl:B__mb-2.5 B__font-bold B__text-xl lg:B__text-[1.4rem] xl:B__text-[1.65rem] B__break-words B__text-main",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-sm xl:B__text-base B__font-normal B__text-center lg:B__text-left",children:(0,D.ZP)(e.designation||"")}),(null==e?void 0:e.linkedInUrl)?(0,_.jsxs)("div",{className:"B__text-blue-500 B__text-xs lg:B__text-base B__flex B__items-center B__justify-center B__gap-2 B__break-words B__px-4 B__mt-2.5 B__cursor-pointer",onClick:()=>{(null==e?void 0:e.linkedInUrl)&&window.open(e.linkedInUrl,"_blank")},children:[(0,_.jsx)("span",{className:"B__text-xl B__my-auto lg:B__text-[1.7rem]",children:(0,_.jsx)(e_.ltd,{})}),(0,_.jsx)("span",{children:(null==e?void 0:e.linkedInTitle)?null==e?void 0:e.linkedInTitle:"Vist my profile"})]}):(0,_.jsx)(_.Fragment,{})]})})]},a))})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},lG=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-10 lg:B__gap-8 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-3",children:B.map((e,a)=>{var r,c;return(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__h-full B__flex B__flex-col B__p-[1.85rem] lg:B__py-11  hover:B__bg-secondary B__group/pricingplan hover_box_shadow B__border B__border-[#00000042] B__rounded-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-center B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price||"")}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-secondary group-hover/pricingplan:B__bg-primary B__text-primary group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary",onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]}),(0,_.jsx)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"}]},children:(0,_.jsxs)("div",{className:"B__w-full B__mt-12",children:[null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]})})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},l$=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-6 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-3",children:B.map((e,a)=>{var r,c;return(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__h-full B__flex B__flex-col B__p-[1.85rem] lg:B__py-11 B__bg-card-surface B__group/pricingplan hover_box_shadow B__rounded-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-center B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price)}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]})]}),(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"includesLabel",placeholder:"What's included Label",type:"texteditor",value:e.includesLabel||"What’s included",key:"blockProps.items[".concat(a,"].includesLabel"),field_label:"What's included Label"},{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"Get Started Now",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsxs)("div",{className:"B__w-full B__mt-6 lg:B__mt-8",children:[(0,_.jsx)("p",{className:"B__font-main B__text-primary B__font-bold B__text-base lg:B__text-lg !B__mb-5",children:(0,D.ZP)((null==e?void 0:e.includesLabel)||"What’s included")}),null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-primary group-hover/pricingplan:B__bg-primary B__text-white group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary",onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},lY=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-10 lg:B__gap-8 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-3",children:B.map((e,a)=>{var r,c;return(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__h-full B__flex B__flex-col B__p-[1.85rem] lg:B__py-11 hover:B__bg-secondary B__group/pricingplan hover_box_shadow B__border B__border-[color:var(--color-main-light)] B__rounded-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-center B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price||"")}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]})]}),(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"includesLabel",placeholder:"What's included Label",type:"texteditor",value:e.includesLabel||"What’s included",key:"blockProps.items[".concat(a,"].includesLabel"),field_label:"What's included Label"},{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"Get Started Now",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsxs)("div",{className:"B__w-full B__mt-6 lg:B__mt-8",children:[(0,_.jsx)("p",{className:"B__font-main B__text-primary B__font-bold B__text-base lg:B__text-lg !B__mb-5",children:(0,D.ZP)((null==e?void 0:e.includesLabel)||"What’s included")}),null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-primary group-hover/pricingplan:B__bg-primary B__text-white group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary",onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},lJ=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-10 lg:B__gap-6 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-3",children:B.map((e,a)=>{var r,c;return(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__flex B__flex-col B__p-7 lg:B__py-11 hover:B__bg-secondary B__group/pricingplan hover_box_shadow B__border B__border-[color:var(--color-main-light)] B__rounded-primary ".concat(a%2==1?"xl:B__py-20":"lg:B__py-11 B__my-auto"),children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-center B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price||"")}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]})]}),(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"includesLabel",placeholder:"What's included Label",type:"texteditor",value:e.includesLabel||"What’s included",key:"blockProps.items[".concat(a,"].includesLabel"),field_label:"What's included Label"},{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"Get Started Now",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsxs)("div",{className:"B__w-full B__mt-6 lg:B__mt-8",children:[(0,_.jsx)("p",{className:"B__font-main B__text-primary B__font-bold B__text-base lg:B__text-lg !B__mb-5",children:(0,D.ZP)((null==e?void 0:e.includesLabel)||"What’s included")}),null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-primary group-hover/pricingplan:B__bg-primary B__text-white group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary",onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},lQ=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-10 lg:B__gap-6 lg:B__gap-x-0 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-3",children:B.map((e,a)=>{var r,c;return(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__flex B__flex-col B__p-7 lg:B__py-11 hover:B__bg-secondary B__group/pricingplan hover_box_shadow B__border B__border-[color:var(--color-main-light)] B__rounded-primary ".concat(a%2==1?"xl:B__py-20":"lg:B__py-11 B__my-auto"),children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-center B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price||"")}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]})]}),(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"includesLabel",placeholder:"What's included Label",type:"texteditor",value:e.includesLabel||"What’s included",key:"blockProps.items[".concat(a,"].includesLabel"),field_label:"What's included Label"},{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"Get Started Now",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsxs)("div",{className:"B__w-full B__mt-6 lg:B__mt-8",children:[(0,_.jsx)("p",{className:"B__font-main B__text-primary B__font-bold B__text-base lg:B__text-lg !B__mb-5",children:(0,D.ZP)((null==e?void 0:e.includesLabel)||"What’s included")}),null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-primary group-hover/pricingplan:B__bg-primary B__text-white group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary",onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},lX=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-10 lg:B__gap-8 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-3",children:B.map((e,a)=>{var r,c;return(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__h-full B__flex B__flex-col B__p-[1.85rem] lg:B__py-11 hover:B__bg-card-surface B__group/pricingplan hover_box_shadow B__rounded-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-center B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price||"")}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]})]}),(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"includesLabel",placeholder:"What's included Label",type:"texteditor",value:e.includesLabel||"What’s included",key:"blockProps.items[".concat(a,"].includesLabel"),field_label:"What's included Label"},{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"Get Started Now",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsxs)("div",{className:"B__w-full B__mt-6 lg:B__mt-8",children:[(0,_.jsx)("p",{className:"B__font-main B__text-primary B__font-bold B__text-base lg:B__text-lg !B__mb-5",children:(0,D.ZP)((null==e?void 0:e.includesLabel)||"What’s included")}),null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-primary group-hover/pricingplan:B__bg-primary B__text-white group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary",onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},l0=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-10 lg:B__gap-8 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-3",children:B.map((e,a)=>{var r,c;return(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__h-full B__flex B__flex-col B__p-[1.85rem] lg:B__py-11 B__bg-[#e4e4e74d] B__group/pricingplan hover_box_shadow B__rounded-primary ".concat(a%2==1?"B__bg-[#e4e4e7] xl:B__col-span-2":""),children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-center B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price||"")}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]})]}),(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"includesLabel",placeholder:"What's included Label",type:"texteditor",value:e.includesLabel||"What’s included",key:"blockProps.items[".concat(a,"].includesLabel"),field_label:"What's included Label"},{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"Get Started Now",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsx)("p",{className:"B__font-main B__text-primary B__font-bold B__text-base B__mt-6 lg:B__mt-8 lg:B__text-lg !B__mb-5",children:(0,D.ZP)((null==e?void 0:e.includesLabel)||"What’s included")}),(0,_.jsxs)("div",{className:"B__w-full B__grid B__grid-cols-1 ".concat(a%2==1?"xl:B__grid-cols-2":""),children:[null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-primary group-hover/pricingplan:B__bg-primary B__text-white group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary ".concat(a%2==1?"xl:B__w-1/2 B__ml-auto":""),onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},l1=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-7 lg:B__gap-6 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-2 B__max-w-[850px]",children:B.map((e,a)=>{var r,c;return(0,_.jsx)("div",{className:"B__bg-secondary B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__h-full",children:(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__h-full B__flex B__flex-col B__p-9 lg:B__p-11 lg:B__py-11 B__bg-card-surface B__group/pricingplan hover_box_shadow B__rounded-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-end B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price)}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]})]}),(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"includesLabel",placeholder:"What's included Label",type:"texteditor",value:e.includesLabel||"What’s included",key:"blockProps.items[".concat(a,"].includesLabel"),field_label:"What's included Label"},{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"Get Started Now",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsxs)("div",{className:"B__w-full B__mt-6 lg:B__mt-8",children:[(0,_.jsx)("p",{className:"B__font-main B__text-primary B__font-bold B__text-base lg:B__text-lg !B__mb-5",children:(0,D.ZP)((null==e?void 0:e.includesLabel)||"What’s included")}),null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-primary group-hover/pricingplan:B__bg-primary B__text-white group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary",onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]})]})},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})},l2=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,s=e=>{var t;let l;let _=null===(t=null==e?void 0:e.replaceAll("</br>",""))||void 0===t?void 0:t.replaceAll("<br>",""),i=/<p>(.*?)<\/p>/g,o=[];for(;null!==(l=i.exec(_));){let e=l[1].trim();""!==e&&o.push(e)}return o},n=e=>{let t=e.map(e=>"<p>".concat(e,"</p>")).join("");return t},{title:r,description:c,items:B}=a;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:c||"",key:"blockProps.description",field_label:"Description"}]},children:[(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")}),(0,_.jsx)("div",{className:"B__text-base lg:B__text-lg B__font-secondary B__text-primary B__font-normal B__mt-3 lg:B__mt-5 B__text-center B__break-words lg:B__px-8",children:(0,D.ZP)(c||"")})]}),(0,_.jsx)("div",{className:"B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-10 lg:B__gap-8 B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-2 B__max-w-[800px]",children:B.map((e,a)=>{var r,c;return(0,_.jsxs)("div",{className:"B__w-full B__max-w-[400px] B__mx-auto lg:B__max-w-none B__h-full B__flex B__flex-col B__p-9 lg:B__p-11 lg:B__py-11 hover:B__bg-secondary B__group/pricingplan hover_box_shadow B__border B__border-[color:var(--color-main-light)] B__rounded-primary",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{height:void 0,zIndex:"unset",display:"flex",flexDirection:"column"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"name",placeholder:"Name",type:"texteditor",value:e.name,key:"blockProps.items[".concat(a,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:e.price||"",key:"blockProps.items[".concat(a,"].price"),field_label:"Price"},{name:"validity",placeholder:"Month",type:"input",value:e.validity||"",key:"blockProps.items[".concat(a,"].validity"),field_label:"Time Period"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__text-2xl lg:B__text-[1.65rem] B__break-words B__mb-2 B__font-bold B__text-primary",children:(0,D.ZP)(e.name||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__mt-2 lg:B__mt-3 group-hover/pricingplan:B__text-primary",children:(0,D.ZP)(e.description||"")}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-secondary B__text-xs lg:B__text-base xl:B__text-lg B__font-normal B__flex B__items-end B__gap-2 roup-hover-[pricingcard]:B__text-primary B__mt-5 lg:B__mt-6 ",children:[(0,_.jsx)("span",{className:"B__text-3xl lg:B__text-4xl xl:B__text-5xl 2xl:B__text-6xl B__font-semibold B__text-primary",children:(0,D.ZP)(e.price||"")}),(0,_.jsx)("span",{children:e.validity||""!==e.validity?(0,_.jsxs)(_.Fragment,{children:["/",(0,D.ZP)(e.validity||"Month")]}):""})]})]}),(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},editBtn:{icon:!0,fields:[{name:"includesLabel",placeholder:"What's included Label",type:"texteditor",value:e.includesLabel||"What’s included",key:"blockProps.items[".concat(a,"].includesLabel"),field_label:"What's included Label"},{name:"updatedIncludes",placeholder:"List down what is included in this plan",type:"texteditor",value:e.updatedIncludes||n(e.includes||[]),key:"blockProps.items[".concat(a,"].updatedIncludes"),field_label:"Plan Included features"},{name:"updatedExcludes",placeholder:"List down what is excluded in this plan",type:"texteditor",value:e.updatedExcludes||n(e.excludes||[]),key:"blockProps.items[".concat(a,"].updatedExcludes"),field_label:"Plan Excluded features"},{name:"buttonText",placeholder:"Button Text",type:"texteditor",value:e.buttonText||"Get Started Now",key:"blockProps.items[".concat(a,"].buttonText"),field_label:"Button Text"},{name:"redirectUrl",placeholder:"Redirect Url",type:"input",value:e.redirectUrl||"",key:"blockProps.items[".concat(a,"].redirectUrl"),field_label:"Redirect Url"}]},children:[(0,_.jsxs)("div",{className:"B__w-full B__mt-6 lg:B__mt-8",children:[(0,_.jsx)("p",{className:"B__font-main B__text-primary B__font-bold B__text-base lg:B__text-lg !B__mb-5",children:(0,D.ZP)((null==e?void 0:e.includesLabel)||"What’s included")}),null===(r=(null==e?void 0:e.updatedIncludes)?s(null==e?void 0:e.updatedIncludes):null==e?void 0:e.includes)||void 0===r?void 0:r.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface",children:(0,_.jsx)(d.HhX,{})}),(0,_.jsx)("span",{children:(0,D.ZP)(e||"")})]},t)),null===(c=(null==e?void 0:e.updatedExcludes)?s(null==e?void 0:e.updatedExcludes):null==e?void 0:e.excludes)||void 0===c?void 0:c.map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-5 B__mb-3.5",children:[(0,_.jsx)("span",{className:"B__p-2 B__rounded-full B__text-lg B__bg-secondary group-hover/pricingplan:B__bg-card-surface ",children:(0,_.jsx)(d.lUB,{})}),(0,_.jsx)("span",{className:"B__text-[#A0ABBB]",children:(0,D.ZP)(e||"")})]},t))]}),(0,_.jsx)("div",{className:"B__mt-7 B__bg-primary group-hover/pricingplan:B__bg-primary B__text-white group-hover/pricingplan:B__text-white B__cursor-pointer B__text-center B__py-3 lg:B__py-3.5 B__rounded-primary",onClick:()=>{(null==e?void 0:e.redirectUrl)&&window.open(e.redirectUrl,"_blank")},children:(0,D.ZP)((null==e?void 0:e.buttonText)||"Get Started Now")})]})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})})};var l5=l(76520);let l3=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:d,privacyContent:c,keywords:B}=s,x=e=>{let t=e.map(e=>'<p><span class="ql-size-large">'.concat((null==e?void 0:e.title)||"","</span></p><p>").concat((null==e?void 0:e.description)||"","</p></br>")).join("");return t},m="privacyPolicycontents",{regenerateData:p,setEditContentFields:u,setShowEditContentModal:v,setEditSectionMetaData:h,regenInProgressEl:g,updateSectionData:y}=(0,i.useContext)(r.o)||{},b=async()=>{await (null==p?void 0:p("key",t,"blockProps.items",void 0,!1,B||"",m,"website"===l,o)),await (null==y?void 0:y({"blockProps.privacyContent":""},t,"website"===l,o))},f=async e=>{await (null==p?void 0:p("key",t,"blockProps.items",void 0,!1,e||"",m,"website"===l,o)),await (null==y?void 0:y({"blockProps.privacyContent":""},t,"website"===l,o))},j=()=>{null==u||u([{name:"privacyContent",placeholder:"Privacy Policy Content",type:"texteditor",value:c||x(d||[])||"",key:"blockProps.privacyContent",field_label:"Privacy Policy Content"}]),null==v||v(!0),null==h||h({sectionId:t,slot:o,editBaseData:"website"===l})},k=null!=g&&!!g.find(e=>e.key===m&&e.sectionId===t);return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-3xl xl:B__text-5xl 2xl:B__text-6xl B__relative B__break-words B__mb-4 lg:B__mb-5 xl:B__mb-7",children:(0,D.ZP)(n||"Privacy Policy")})}),(0,_.jsx)("div",{className:"B__w-[150px] lg:B__w-[200px] B__border-t B__border-black B__h-[1px] B__mx-auto"}),(0,_.jsxs)("div",{className:"B__px-5 B__font-secondary B__mt-12 lg:B__mt-16 xl:B__mt-20 2xl:B__mt-28 B__mb-14 lg:B__mb-20 xl:B__mb-24 2xl:B__mb-28",children:["live"!==a&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__gap-4",children:[(0,_.jsx)(l5.Fw,{style:{width:"fit-content"},onClick:b,onAddKeywordHandler:f,keywords:B,isImg:!1}),(0,_.jsx)(ti.Z,{title:"Edit",onClick:j})]}),(0,_.jsx)("div",{className:"".concat(k?"blur":""),children:(0,D.ZP)(c||x(d||[])||"")})]})]})},l4=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s}=e,{title:n,items:d,tncContent:c,keywords:B}=s,x=e=>{let t=e.map(e=>'<p><span class="ql-size-large">'.concat((null==e?void 0:e.title)||"","</span></p><p>").concat((null==e?void 0:e.description)||"","</p></br>")).join("");return t},m="tncContent",{regenerateData:p,setEditContentFields:u,setShowEditContentModal:v,setEditSectionMetaData:h,regenInProgressEl:g,updateSectionData:y}=(0,i.useContext)(r.o)||{},b=async()=>{await (null==p?void 0:p("key",t,"blockProps.items",void 0,!1,B||"",m,"website"===l,o)),await (null==y?void 0:y({"blockProps.tncContent":""},t,"website"===l,o))},f=async e=>{await (null==p?void 0:p("key",t,"blockProps.items",void 0,!1,e||"",m,"website"===l,o)),await (null==y?void 0:y({"blockProps.tncContent":""},t,"website"===l,o))},j=()=>{null==u||u([{name:"tncContent",placeholder:"Terms & Conditions Content",type:"texteditor",value:c||x(d||[])||"",key:"blockProps.tncContent",field_label:"Terms & Conditions Content"}]),null==v||v(!0),null==h||h({sectionId:t,slot:o,editBaseData:"website"===l})},k=null!=g&&!!g.find(e=>e.key===m&&e.sectionId===t);return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__text-primary",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-3xl xl:B__text-5xl 2xl:B__text-6xl B__relative B__break-words B__mb-4 lg:B__mb-5 xl:B__mb-7",children:(0,D.ZP)(n||"Terms & Conditions")})}),(0,_.jsx)("div",{className:"B__w-[150px] lg:B__w-[200px] B__border-t B__border-black B__h-[1px] B__mx-auto"}),(0,_.jsxs)("div",{className:"B__px-5 B__font-secondary B__mt-12 lg:B__mt-16 xl:B__mt-20 2xl:B__mt-28 B__mb-14 lg:B__mb-20 xl:B__mb-24 2xl:B__mb-28",children:["live"!==a&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__gap-4",children:[(0,_.jsx)(l5.Fw,{style:{width:"fit-content"},onClick:b,onAddKeywordHandler:f,keywords:B,isImg:!1}),(0,_.jsx)(ti.Z,{title:"Edit",onClick:j})]}),(0,_.jsx)("div",{className:"".concat(k?"blur":""),children:(0,D.ZP)(c||x(d||[]))})]})]})},l6=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,showThemeBackground:n}=e,{title:c,description:B,img:x,mobile_img:m,title_keywords:p,img_keywords:u,description_keywords:v,showTitle:h=!0,showDescription:g=!0,deletedBlock:y=!1,components:b}=s,{updateSectionData:f}=(0,i.useContext)(r.o)||{};return(0,_.jsxs)("div",{className:"B__relative B__h-[calc(100vh-70px)] B__min-h-[500px] global_css",children:[(0,_.jsxs)("div",{className:"B__absolute B__top-0 B__left-0 B__h-full B__w-full B__z-0",children:[(0,_.jsx)("img",{className:"B__hidden md:B__block",src:x,alt:(0,J.s9)(c),style:{height:"100%",width:"100%",objectFit:"cover"}}),(0,_.jsx)("img",{className:"md:B__hidden",src:m||x,alt:(0,J.s9)(c),style:{height:"100%",width:"100%",objectFit:"cover"}}),n&&(0,_.jsx)("div",{className:"B__absolute B__inset-0 B__bg-secondary-lighter"})]}),(0,_.jsx)("div",{style:{width:"100%"},children:(0,_.jsxs)("div",{className:"B__absolute B__left-1/2 B__top-1/2 B__-translate-x-1/2 B__-translate-y-1/2 B__min-w-[300px] md:B__min-w-[420px] B__max-w-[90%] md:B__max-w-[75%] lg:B__max-w-[50%]",children:[!y&&("live"!==a||g||h)?(0,_.jsxs)("div",{className:"B__p-10 B__flex B__flex-col B__items-center B__px-8 lg:B__px-9 xl:B__px-12 2xl:B__px-14 B__py-7 lg:B__py-10 xl:B__py-12 2xl:B__py-14 B__rounded-primary B__relative B__bg-surface-80 B__group/banner-block",children:["live"!==a||h?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:p||"",isImg:!1},hideBtn:{key:"blockProps.showTitle",value:h},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:c}]},children:(0,_.jsx)("h1",{className:"B__text-center B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl ".concat(h?"":"B__opacity-75"),children:(0,D.ZP)(c||"")})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||g?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:v||"",isImg:!1},hideBtn:{key:"blockProps.showDescription",value:g},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:B,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center  ".concat(g?"":"B__opacity-75"),children:(0,_.jsx)("div",{children:(0,D.ZP)(B||"")})})}):(0,_.jsx)(_.Fragment,{}),"live"!==a?(0,_.jsx)("div",{className:"B__absolute B__top-2 B__right-3 B__p-2 B__cursor-pointer B__invisible group-hover/banner-block:B__visible",onClick:()=>{null==f||f({"blockProps.deletedBlock":!y},t,"website"===l,o)},children:(0,_.jsx)(d.ZkW,{size:30,className:"B__text-butternut-orange"})}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(K,{components:null==b?void 0:b.filter(e=>"cta-button"===e.slot),className:"B__mt-4",sectionId:t,parentKey:"blockProps.components",viewMode:a})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:u||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:x,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img"}]}})]})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,alwaysShow:!0,style:{position:"absolute",zIndex:10,bottom:100,height:"auto"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:u||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:x,editBaseData:!0,field_label:"Upload your image sad",key:"blockProps.img",aspectRatio:16/9},{name:"mobile_img",placeholder:"Upload your mobile image",type:"file",value:m,editBaseData:!0,field_label:"Upload your mobile image",key:"blockProps.mobile_img",aspectRatio:9/16}]}})]})},l9=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,description:n,img:r,mobile_img:d,title_keywords:c,img_keywords:B,description_keywords:x,components:m}=a;return(0,_.jsx)("div",{className:"B__relative B__flex B__justify-center  B__py-8 md:B__py-12 lg:B__py-20 xl:B__py-24 B__min-h-[500px]",style:{background:"linear-gradient(180deg, var(--background-color-primary-light) 0%, #ffffff00 100%)"},children:(0,_.jsxs)("div",{className:"B__grid  B__grid-cols-1 md:B__grid-cols-2 B__h-full max-width-mobile-90 custom-container-max-width B__mx-auto B__w-full B__pt-[40px]",children:[(0,_.jsx)("div",{className:"B__col-span-1 B__flex B__flex-col B__items-center B__justify-center",children:(0,_.jsxs)("div",{className:"md:B__max-w-[80%] md:B__mr-auto",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",height:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:c||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:s}]},children:(0,_.jsx)("h1",{className:"B__text-center md:B__text-left B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",height:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:x||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:n,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"B__text-center md:B__text-left B__mt-4 B__mb-7 lg:B__mb-0 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base  B__break-words",children:(0,_.jsx)("div",{children:(0,D.ZP)(n||"")})})}),(0,_.jsx)(K,{components:null==m?void 0:m.filter(e=>"cta-button"===e.slot),className:"B__mt-4 B__mb-8",wrapperClassName:"B__relative B__mx-auto B__flex B__justify-center md:B__justify-start B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:o})]})}),(0,_.jsx)("div",{className:"B__col-span-1 h-full B__flex B__items-center B__justify-center md:B__justify-start lg:B__pl-[10%] ",children:(0,_.jsx)("div",{className:"B__w-full B__h-min-[400px] B__h-[450px] md:B__h-[500px] lg:B__h-[550px] 2xl:B__h-[650px] B__rounded-primary",style:{boxShadow:"0px 42.44px 61.30px 0px #00000014"},children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:r,editBaseData:!0,field_label:"Upload your image sad",key:"blockProps.img",aspectRatio:16/9},{name:"mobile_img",placeholder:"Upload your mobile image",type:"file",value:d,editBaseData:!0,field_label:"Upload your mobile image",key:"blockProps.mobile_img",aspectRatio:9/16}]},children:[(0,_.jsx)("img",{src:r,alt:(0,J.s9)(s),style:{height:"100%",width:"100%",objectFit:"cover"},className:"B__hidden md:B__block B__rounded-primary B__object-cover B__object-center"}),(0,_.jsx)("img",{src:d||r,alt:(0,J.s9)(s),style:{height:"100%",width:"100%",objectFit:"cover"},className:"md:B__hidden B__rounded-primary B__object-cover B__object-center"})]})})})]})})},l8=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s}=e,{title:n,description:c,img:B,mobile_img:x,title_keywords:m,img_keywords:p,description_keywords:u,showTitle:v=!0,showDescription:h=!0,deletedBlock:g=!1,components:y}=s,{updateSectionData:b}=(0,i.useContext)(r.o)||{};return(0,_.jsxs)("div",{className:"B__relative B__h-[calc(100vh-70px)] B__min-h-[500px] global_css",children:[(0,_.jsxs)("div",{className:"B__absolute B__top-0 B__left-0 B__h-full B__w-full B__z-0",children:[(0,_.jsx)("img",{className:"B__hidden md:B__block",src:B,alt:(0,J.s9)(n),style:{height:"100%",width:"100%",objectFit:"cover"}}),(0,_.jsx)("img",{className:"md:B__hidden",src:x||B,alt:(0,J.s9)(n),style:{height:"100%",width:"100%",objectFit:"cover"}}),(0,_.jsx)("div",{className:"B__absolute B__inset-0 B__bg-secondary-lighter"})]}),(0,_.jsx)("div",{style:{width:"100%"},children:(0,_.jsxs)("div",{className:"B__absolute B__left-1/2 B__top-1/2 B__-translate-x-1/2 B__-translate-y-1/2 B__min-w-[300px] md:B__min-w-[420px] B__max-w-[90%] md:B__max-w-[75%] lg:B__max-w-[50%]",children:[!g&&("live"!==a||h||v)?(0,_.jsxs)("div",{className:"B__p-10 B__flex B__flex-col B__items-center B__px-8 lg:B__px-9 xl:B__px-12 2xl:B__px-14 B__py-7 lg:B__py-10 xl:B__py-12 2xl:B__py-14 B__rounded-primary B__relative B__bg-surface-80 B__group/banner-block",children:["live"!==a||v?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:m||"",isImg:!1},hideBtn:{key:"blockProps.showTitle",value:v},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("h1",{className:"B__text-center B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl ".concat(v?"":"B__opacity-75"),children:(0,D.ZP)(n||"")})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||h?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:u||"",isImg:!1},hideBtn:{key:"blockProps.showDescription",value:h},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:c,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center  ".concat(h?"":"B__opacity-75"),children:(0,_.jsx)("div",{children:(0,D.ZP)(c||"")})})}):(0,_.jsx)(_.Fragment,{}),"live"!==a?(0,_.jsx)("div",{className:"B__absolute B__top-2 B__right-3 B__p-2 B__cursor-pointer B__invisible group-hover/banner-block:B__visible",onClick:()=>{null==b||b({"blockProps.deletedBlock":!g},t,"website"===l,o)},children:(0,_.jsx)(d.ZkW,{size:30,className:"B__text-butternut-orange"})}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(K,{components:null==y?void 0:y.filter(e=>"cta-button"===e.slot),className:"B__mt-4",sectionId:t,parentKey:"blockProps.components",viewMode:a})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:p||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:B,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img",aspectRatio:16/9}]}})]})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,type:a,alwaysShow:!0,style:{position:"absolute",zIndex:10,bottom:100,height:"auto"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:p||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:B,editBaseData:!0,field_label:"Upload your image sad",key:"blockProps.img"},{name:"mobile_img",placeholder:"Upload your mobile image",type:"file",value:x,editBaseData:!0,field_label:"Upload your mobile image",key:"blockProps.mobile_img",aspectRatio:9/16}]}})]})},l7=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,title_keywords:n,description:r,description_keywords:d,img:c,mobile_img:B,img_keywords:x,components:m}=a;return(0,_.jsx)("div",{className:"B__relative B__py-8 md:B__py-12 lg:B__py-20 xl:B__py-24",style:{background:"linear-gradient(180deg, var(--background-color-primary-light) 0%, #ffffff00 100%)"},children:(0,_.jsxs)("div",{className:"B__flex B__flex-col md:B__grid B__grid-cols-2 B__h-full B__mx-auto custom-container-max-width B__pt-[70px]",children:[(0,_.jsx)("div",{className:"B__col-span-1 B__flex B__flex-col B__items-center B__justify-center",children:(0,_.jsxs)("div",{className:"lg:B__w-[80%] B__mr-auto B__pt-16 md:B__pt-0",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",height:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:n||"",isImg:!1},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:s}]},children:(0,_.jsx)("h1",{className:"B__text-center md:B__text-left B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl B__pr-4",children:(0,D.ZP)(s||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,style:{zIndex:"unset",height:"unset"},type:o,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:d||"",isImg:!1},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:r,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"md:B__text-left B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center B__pr-4",children:(0,_.jsx)("div",{children:(0,D.ZP)(r||"")})})}),(0,_.jsx)(K,{components:null==m?void 0:m.filter(e=>"cta-button"===e.slot),className:"B__mt-4 B__mb-8",wrapperClassName:"B__relative B__mx-auto B__flex B__justify-center md:B__justify-start B__items-center",sectionId:t,parentKey:"blockProps.components",viewMode:o})]})}),(0,_.jsx)("div",{className:"B__col-span-1 md:B__mt-0 B__flex B__flex-auto B__items-center B__justify-center md:B__justify-start lg:B__pl-[10%] B__pb-10 md:B__pb-0",children:(0,_.jsx)("div",{className:"B__relative B__flex B__justify-center B__items-center B__h-min-[400px] B__h-[450px] md:B__h-[500px] lg:B__h-[550px] 2xl:B__h-[650px] B__w-full B__bg-shade-dark B__rounded-primary",children:(0,_.jsx)("div",{className:"B__h-[90%] B__shadow-lg B__rounded-primary B__w-[90%]",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:x||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:c,editBaseData:!0,field_label:"Upload your image sad",key:"blockProps.img",aspectRatio:16/9},{name:"mobile_img",placeholder:"Upload your mobile image",type:"file",value:B,editBaseData:!0,field_label:"Upload your mobile image",key:"blockProps.mobile_img",aspectRatio:9/16}]},children:[(0,_.jsx)("img",{src:c,alt:(0,J.s9)(s),style:{height:"100%",width:"100%",objectFit:"cover"},className:"B__hidden md:B__block B__rounded-primary B__object-cover B__object-center"}),(0,_.jsx)("img",{src:B||c,alt:(0,J.s9)(s),style:{height:"100%",width:"100%",objectFit:"cover"},className:"md:B__hidden B__rounded-primary B__object-cover B__object-center"})]})})})})]})})},_e=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s}=e,{title:n,description:c,img:B,mobile_img:x,title_keywords:m,img_keywords:p,description_keywords:u,tag:v="",tag_keywords:h,showTitle:g=!0,showDescription:y=!0,deletedBlock:b=!1,components:f}=s,{updateSectionData:j}=(0,i.useContext)(r.o)||{};return(0,_.jsxs)("div",{className:"B__relative B__h-[calc(100vh-70px)] B__min-h-[500px] global_css",style:{background:"linear-gradient(180deg, var(--background-color-primary-light) 0%, #ffffff00 100%)"},children:[(0,_.jsxs)("div",{className:"B__absolute B__top-0 B__left-0 B__h-full B__w-full B__z-0",children:[(0,_.jsx)("img",{className:"B__hidden md:B__block",src:B,alt:(0,J.s9)(n),style:{height:"100%",width:"100%",objectFit:"cover"}}),(0,_.jsx)("img",{className:"md:B__hidden",src:x||B,alt:(0,J.s9)(n),style:{height:"100%",width:"100%",objectFit:"cover"}}),(0,_.jsx)("div",{className:"B__absolute B__inset-0 B__bg-secondary-lighter"})]}),(0,_.jsxs)("div",{className:"B__relative B__h-full B__flex B__items-center B__justify-center B__min-w-[300px] md:B__min-w-[420px]",children:[!b&&("live"!==a||y||g)?(0,_.jsxs)("div",{className:"B__z-[1] B__p-10 B__flex B__flex-col B__items-center B__px-8 lg:B__px-9 xl:B__px-12 2xl:B__px-14 B__py-7 lg:B__py-10 xl:B__py-12 2xl:B__py-14 B__max-w-[90%] md:B__max-w-[75%] lg:B__max-w-[50%] B__rounded-primary B__relative B__bg-surface-80 B__group/banner-block",children:["live"!==a||g?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:m||"",isImg:!1},hideBtn:{key:"blockProps.showTitle",value:g},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("h1",{className:"B__text-center B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl ".concat(g?"":"B__opacity-75"),children:(0,D.ZP)(n||"")})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||y?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:u||"",isImg:!1},hideBtn:{key:"blockProps.showDescription",value:y},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:c,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center ".concat(y?"":"B__opacity-75"),children:(0,_.jsx)("div",{children:(0,D.ZP)(c||"")})})}):(0,_.jsx)(_.Fragment,{}),"live"!==a?(0,_.jsx)("div",{className:"B__absolute B__top-2 B__right-3 B__p-2 B__cursor-pointer B__invisible group-hover/banner-block:B__visible",onClick:()=>{null==j||j({"blockProps.deletedBlock":!b},t,"website"===l,o)},children:(0,_.jsx)(d.ZkW,{size:30,className:"B__text-butternut-orange"})}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(K,{components:null==f?void 0:f.filter(e=>"cta-button"===e.slot),className:"B__mt-4",sectionId:t,parentKey:"blockProps.components",viewMode:a})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(S.Z,{style:{position:"absolute",zIndex:10,bottom:100,height:"auto"},sectionId:t,sectionLocation:l,slot:o,type:a,alwaysShow:!0,regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:p||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:B,editBaseData:!0,field_label:"Upload your image",key:"blockProps.img",aspectRatio:16/9},{name:"mobile_img",placeholder:"Upload your mobile image",type:"file",value:x,editBaseData:!0,field_label:"Upload your mobile image",key:"blockProps.mobile_img",aspectRatio:9/16}]}})]})]})},_t=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s}=e,{title:n,description:c,img:B,title_keywords:x,img_keywords:m,description_keywords:p,tag:u="",tag_keywords:v,showTitle:h=!0,showDescription:g=!0,deletedBlock:y=!1,components:b}=s,{updateSectionData:f}=(0,i.useContext)(r.o)||{};return(0,_.jsx)("div",{className:"B__bg-cover B__bg-center B__bg-no-repeat B__relative B__h-[calc(100vh-70px)] B__min-h-[500px] global_css",style:{background:"linear-gradient(180deg, var(--background-color-primary-light) 0%, #ffffff00 100%)"},children:(0,_.jsx)("div",{className:"B__h-full B__flex B__items-center B__justify-center B__min-w-[300px] md:B__min-w-[420px]",children:!y&&("live"!==a||g||h)?(0,_.jsxs)("div",{className:"B__p-10 B__flex B__flex-col B__items-center B__px-8 lg:B__px-9 xl:B__px-12 2xl:B__px-14 B__py-7 lg:B__py-10 xl:B__py-12 2xl:B__py-14 B__max-w-[90%] md:B__max-w-[75%] lg:B__max-w-[50%] B__rounded-primary B__relative B__bg-surface-80 B__group/banner-block",children:["live"!==a||h?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:x||"",isImg:!1},hideBtn:{key:"blockProps.showTitle",value:h},editBtn:{fields:[{name:"headline",placeholder:"Headline",field_label:"Headline",key:"blockProps.title",type:"texteditor",value:n}]},children:(0,_.jsx)("h1",{className:"B__text-center B__font-bold B__font-primary B__text-primary B__break-words B__text-3xl B__text-[2rem] xl:B__text-4xl 2xl:B__text-5xl ".concat(h?"":"B__opacity-75"),style:{lineHeight:1.3},children:(0,D.ZP)(n||"")})}):(0,_.jsx)(_.Fragment,{}),"live"!==a||g?(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:o,style:{zIndex:"unset"},type:a,regenrateBtn:{updateType:"key",key:"blockProps.description",keywords:p||"",isImg:!1},hideBtn:{key:"blockProps.showDescription",value:g},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:c,field_label:"Description",key:"blockProps.description"}]},children:(0,_.jsx)("div",{className:"B__mt-4 xl:B__mt-5 2xl:B__mt-[1.9rem] B__font-secondary B__text-primary B__font-normal B__text-xs lg:B__text-sm xl:B__text-base B__text-center ".concat(g?"":"B__opacity-75"),children:(0,_.jsx)("div",{children:(0,D.ZP)(c||"")})})}):(0,_.jsx)(_.Fragment,{}),"live"!==a?(0,_.jsx)("div",{className:"B__absolute B__top-2 B__right-3 B__p-2 B__cursor-pointer B__invisible group-hover/banner-block:B__visible",onClick:()=>{null==f||f({"blockProps.deletedBlock":!y},t,"website"===l,o)},children:(0,_.jsx)(d.ZkW,{size:30,className:"B__text-butternut-orange"})}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)(K,{components:null==b?void 0:b.filter(e=>"cta-button"===e.slot),className:"B__mt-4",sectionId:t,parentKey:"blockProps.components",viewMode:a})]}):(0,_.jsx)(_.Fragment,{})})})},_l=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsx)("div",{className:"B__w-full B__bg-card-surface B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__bg-secondary B__flex B__items-center B__justify-center B__gap-5 lg:B__gap-8 xl:B__gap-10 2xl:B__gap-12  B__flex-col lg:B__flex-row lg:odd:B__flex-row-reverse B__rounded-primary B__p-4 lg:B__p-6 xl:B__p-[1.9rem] 2xl:B__p-9 B__w-full",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[54%] xl:B__w-[52%]",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[430px] 2xl:B__h-[480px] B__rounded-primary"})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[46%] xl:B__w-[48%] B__text-center lg:B__text-left",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]})},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},__=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__gap-5 lg:B__gap-8 B__w-full B__flex-col lg:B__flex-row lg:odd:B__flex-row-reverse B__rounded-primary",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[45%] xl:B__w-[45%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:[(0,_.jsx)("div",{className:"B__h-[80%] B__absolute B__z-0 B__w-full B__top-1/2 B__-translate-y-1/2 B__bg-secondary B__rounded-primary"}),(0,_.jsx)("div",{className:"B__h-[80%] B__absolute B__z-0 B__w-full B__top-1/2 B__-translate-y-1/2 B__bg-card-surface B__rounded-primary"}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"!B__w-[80%] B__mx-auto",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[430px] 2xl:B__h-[480px] B__rounded-primary"})})]}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%] xl:B__w-[40%] B__text-center lg:B__text-left",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},_i=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n,reverse:r=!1,imgClassName:d=""}=e,{title:c,items:B}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:c||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(c||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:B.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__gap-5 lg:B__gap-8 B__w-full B__flex-col lg:B__flex-row ".concat(r?"lg:even:B__flex-row-reverse":"lg:odd:B__flex-row-reverse"," B__rounded-primary"),children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[43%] xl:B__w-[43%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"B__w-full",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[450px] 2xl:B__h-[500px] B__rounded-primary ".concat(d)})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%] xl:B__w-[40%] B__text-center lg:B__text-left",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},_o=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__gap-5 lg:B__gap-8 B__w-full B__flex-col md:B__flex-row md:even:B__flex-row-reverse B__rounded-primary",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[43%] xl:B__w-[43%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"B__w-full B__bg-card-surface B__rounded-primary",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)("div",{className:"B__w-full B__p-8 lg:B__p-12 xl:B__p-14 2xl:B__p-16 B__bg-secondary B__rounded-primary",children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[450px] 2xl:B__h-[500px] B__rounded-primary"})})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%] xl:B__w-[40%] B__text-center lg:B__text-left",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},_a=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",style:{"--swiper-theme-color":"var(--background-color-nav)","--swiper-pagination-bullet-inactive-color":"var(--color-primary)"},children:(0,_.jsxs)("div",{className:"section-vertical-padding B__ml-auto B__max-w-full md:B__max-w-[95%] lg:B__max-w-[90%] xl:B__max-w-[85%] 2xl:B__max-w-[85%] global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem]",children:(0,_.jsx)(ll.tq,{spaceBetween:50,slidesPerView:1.2,pagination:{clickable:!0},className:"!B__p-10 lg:!B__pb-12 xl:!B__pb-14 2xl:!B__pb-16",modules:[l_.tl,l_.pt],freeMode:!0,loop:!0,autoplay:{delay:3e3,disableOnInteraction:"live"!==a},speed:6e3,children:d.map((e,t)=>{var s;return(0,_.jsx)(ll.o5,{children:(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__w-full B__flex-col md:B__flex-row md:even:B__flex-row-reverse B__rounded-primary B__bg-card-surface",style:{boxShadow:"0px 3.5px 30.9px 0px rgba(0, 0, 0, 0.25)"},children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[52%] xl:B__w-[52%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[450px] 2xl:B__h-[500px] B__rounded-primary"})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[48%] xl:B__w-[48%] B__text-center lg:B__text-left B__p-8 lg:B__p-12 xl:B__p-14",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)},t)})})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},_s=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__w-full B__flex-col md:B__flex-row md:even:B__flex-row-reverse B__rounded-primary B__bg-card-surface",style:{boxShadow:"0px 3.5px 35.9px 0px rgba(0, 0, 0, 0.30)"},children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[52%] xl:B__w-[52%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[450px] 2xl:B__h-[500px] B__rounded-primary"})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[48%] xl:B__w-[48%] B__text-center lg:B__text-left B__p-8 lg:B__p-12 xl:B__p-14",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},_n=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-stretch B__justify-between B__w-full B__flex-col md:B__flex-row md:even:B__flex-row-reverse B__rounded-primary B__bg-card-surface",style:{boxShadow:"0px 3.5px 35.9px 0px rgba(0, 0, 0, 0.30)"},children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[50%] xl:B__w-[55%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[450px] 2xl:B__h-[500px] B__rounded-primary"})})}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-[50%] xl:B__w-[45%] B__text-center lg:B__text-left B__p-5 lg:B__p-10 xl:B__p-12 2xl:B__p-14 B__rounded-primary B__flex B__items-center",children:(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},className:"B__bg-secondary B__px-8 B__py-3 md:B__py-5 lg:B__p-10 B__rounded-primary",deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__mt-auto B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",style:{lineHeight:1.1},children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},_r=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__gap-5 lg:B__gap-8 B__w-full B__flex-col lg:B__flex-row lg:odd:B__flex-row-reverse B__rounded-primary",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[43%] xl:B__w-[43%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:[(0,_.jsx)("div",{className:"B__h-[80%] B__w-[80%] B__absolute B__z-0 B__top-1/2 B__-translate-y-1/2 B__bg-secondary B__rounded-primary"}),(0,_.jsx)("div",{className:"B__h-[80%] B__w-[80%] B__absolute B__z-0 B__top-1/2 B__-translate-y-1/2 B__bg-card-surface B__rounded-primary"}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"!B__w-full md:!B__w-[90%] lg:!B__w-[80%]  ".concat(t%2==0?"B__ml-auto":"B__mr-auto"),uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover"},className:"B__w-full B__h-[280px] lg:B__h-[330px] xl:B__h-[430px] 2xl:B__h-[480px] B__rounded-primary"})})]}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%] xl:B__w-[40%] B__text-center lg:B__text-left",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},_d=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:r||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",style:{lineHeight:1.1},children:(0,D.ZP)(r||"")})}),(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__flex-col B__gap-[20px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-stretch B__justify-between B__w-full B__flex-col md:B__flex-row md:odd:B__flex-row-reverse ",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[50%] xl:B__w-[55%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[250px] md:B__h-[280] lg:B__h-[380px] xl:B__h-[500px] 2xl:B__h-[550px] B__rounded-primary"})})}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-[40%] xl:B__w-[42%] B__relative B__z-10 ",children:(0,_.jsx)("div",{className:"md:B__absolute B__z-10 md:B__h-[50%]  B__text-center lg:B__text-left B__px-8 xl:B__px-12 B__bg-surface B__top-1/2 md:B__-translate-y-1/2 B__flex B__items-center B__rounded-primary B__py-8 ".concat(t%2==0?"md:B__-right-[30%] lg:B__-right-[40%] xl:B__-right-[30%]":"md:B__-left-[30%] lg:B__-left-[40%] xl:B__-left-[30%]"," "),children:(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-primary",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})})})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},_c=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,aboutUs:r,img:d,img_keywords:c}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__relative global_css B__py-10 lg:B__py-[75px] xl:B__py-[100px] 2xl:B__py-[140px]",children:[(0,_.jsxs)("div",{className:"B__absolute B__inset-0",children:[(0,_.jsx)("div",{className:"B__bg-[#00000017] B__h-full B__w-full B__absolute B__inset-0"}),(0,_.jsx)("img",{src:d,alt:(0,J.s9)(n),className:"B__w-full B__h-full B__object-cover B__object-center"})]}),(0,_.jsxs)("div",{className:"B__relative B__mx-auto custom-container-max-width B__bg-white B__rounded-primary",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{zIndex:"10",height:"100px",position:"absolute",top:"-100px"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]}}),(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20  B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.aboutUs",keywords:"",isImg:!1},editBtn:{fields:[{name:"aboutUs",placeholder:"About Us",type:"texteditor",value:r||"",key:"blockProps.aboutUs",field_label:"About Us"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(r||"")})})]})]})]})})},_B=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,aboutUs:r,img:d,img_keywords:c}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__relative global_css B__my-10 lg:B__my-[65px] xl:B__my-[80px] 2xl:B__my-[100px] B__flex B__items-center B__bg-secondary",children:[(0,_.jsx)("div",{className:"B__hidden md:B__block B__w-[50%] B__h-full",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("img",{src:d,alt:(0,J.s9)(n),className:"B__w-full B__object-cover B__object-center B__h-[350px] lg:B__h-[420px] xl:B__h-[450px]"})})}),(0,_.jsx)("div",{className:"B__relative B__w-[80%] lg:B__w-[50%] B__mx-auto custom-container-max-width B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20  B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center md:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.aboutUs",keywords:"",isImg:!1},editBtn:{fields:[{name:"aboutUs",placeholder:"About Us",type:"texteditor",value:r||"",key:"blockProps.aboutUs",field_label:"About Us"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center md:B__text-left B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(r||"")})})]})})]})})},_x=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,aboutUs:r,img:d,img_keywords:c}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__relative global_css B__my-10 lg:B__my-[65px] xl:B__my-[80px] 2xl:B__my-[100px] B__flex B__items-center B__bg-secondary",children:[(0,_.jsx)("div",{className:"B__relative B__w-[80%] lg:B__w-[50%] B__mx-auto custom-container-max-width B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20  B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center md:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.aboutUs",keywords:"",isImg:!1},editBtn:{fields:[{name:"aboutUs",placeholder:"About Us",type:"texteditor",value:r||"",key:"blockProps.aboutUs",field_label:"About Us"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center md:B__text-left B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(r||"")})})]})}),(0,_.jsx)("div",{className:"B__hidden md:B__block B__w-[50%] B__h-full",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("img",{src:d,alt:(0,J.s9)(n),className:"B__w-full B__object-cover B__object-center B__h-[350px] lg:B__h-[420px] xl:B__h-[450px]"})})})]})})},_m=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,aboutUs:r,img:d,img_keywords:c}=s;return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__relative global_css B__py-10 lg:B__py-[75px] xl:B__py-[100px] 2xl:B__py-[140px]",children:[(0,_.jsx)("div",{className:"B__absolute B__inset-0",children:(0,_.jsx)("div",{className:"B__bg-shade B__h-full B__w-full B__absolute B__inset-0"})}),(0,_.jsx)("div",{className:"B__relative B__mx-auto custom-container-max-width B__bg-secondary B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20  B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.aboutUs",keywords:"",isImg:!1},editBtn:{fields:[{name:"aboutUs",placeholder:"About Us",type:"texteditor",value:r||"",key:"blockProps.aboutUs",field_label:"About Us"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(r||"")})})]})})]})})},_p=e=>{let{id:t,sectionLocation:l,slot:o,viewMode:a,blockProps:s,websiteId:n}=e,{title:d,emailPlaceholder:c="Enter your email",buttonText:B="Subscribe"}=s,{setEditContentFields:x,setEditSectionMetaData:m,setShowEditContentModal:p,websiteData:u}=(0,i.useContext)(r.o)||{},[v,h]=(0,i.useState)(!1),[g,y]=(0,i.useState)(""),b=e=>{"preview"===a||"edit"===a?h(!0):ej.Z.subscribe({email:e.email,websiteId:n}).then(()=>{h(!0)}).catch(e=>{var t,l;y((null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(l=t.data)||void 0===l?void 0:l.msg)==="already_subscribed"?"You are already subscribed":"Something went wrong")})};return(0,_.jsx)("div",{className:"custom-container-max-width B__mx-auto B__py-6 lg:B__py-7 xl:B__py-10 2xl:B__py-12",style:{},children:(0,_.jsx)("div",{className:"B__bg-[#f3f4f917] B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__w-[90%] md:B__w-[80%] lg:B__w-[55%] xl:B__w-1/2 B__py-12 lg:B__py-14 xl:B__py-16 2xl:B__py-20 B__mx-auto",children:[(0,_.jsxs)("div",{style:{position:"relative"},className:"".concat(L().editHoverContainer," B__mb-8 xl:B__mb-10 2xl:B__mb-12"),children:[(0,_.jsx)("h3",{className:"B__font-primary B__text-center B__break-words B__font-semibold B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.6rem] 2xl:B__leading-[3rem]",children:(0,D.ZP)(d||"Sign up for our newsletter now!")}),("preview"===a||"edit"===a)&&(0,_.jsx)("div",{className:L().editContainer,children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},icon:!0,className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{null==x||x([{name:"title",label:"Newsletter section title",placeholder:"Title",type:"texteditor",value:d,key:"blockProps.title",field_label:"Newsletter section title"},{name:"emailPlaceholder",label:"Email placeholder",placeholder:"Email placeholder",type:"input",value:c,key:"blockProps.emailPlaceholder",field_label:"Email placeholder"},{name:"buttonText",label:"Submit Button Text",placeholder:"Submit Button text",type:"input",value:B,key:"blockProps.buttonText",field_label:"Submit Button text"}]),null==p||p(!0),null==m||m({sectionId:t,editBaseData:"website"===l,slot:o})}})})]}),v||g?v?(0,_.jsx)("p",{style:{color:"white",textAlign:"center"},children:"Thank you for subscribing."}):(0,_.jsx)("p",{className:"error-message",style:{color:"white",textAlign:"center"},children:g}):(0,_.jsx)(ek.J9,{initialValues:{email:""},validationSchema:ew.Ry().shape({email:ew.Z_().required("Email is required").email("Please enter a valid email")}),onSubmit:b,children:e=>{let{values:t,errors:l,handleChange:i,handleSubmit:o}=e;return(0,_.jsxs)("form",{onSubmit:o,children:[(0,_.jsxs)("div",{className:"B__flex B__items-stretch B__gap-5 xl:B__gap-9 B__font-secondary",children:[(0,_.jsx)("input",{type:"email",placeholder:c,name:"email",onChange:i,value:t.email,style:{width:"100%",backgroundColor:"transparent",border:"1px solid rgba(255, 255, 255, 0.3)",height:"50px",fontSize:"16px",padding:"20px",boxSizing:"border-box"},className:"B__rounded-primary B__placeholder-[#ffffffa4]"}),(0,_.jsx)("input",{type:"submit",value:B,className:"B__font-semibold B__text-xs lg:B__text-sm 2xl:B__text-base B__py-3 xl:B__py-4 B__px-9 lg:B__px-10 xl:B__px-12 2xl:B__px-16 B__text-[color:var(--background-color-nav)] B__bg-[color:var(--color-nav)] B__rounded-primary B__whitespace-normal"})]}),l.email?(0,_.jsx)("p",{style:{color:"white"},children:l.email}):null]})}})]})})})};var _u=l(46442);let _v=()=>(0,_.jsxs)("svg",{width:"102",height:"32",viewBox:"0 0 102 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M35.6639 0H0.628906V32H35.6639V0ZM102 6H40V12H102V6ZM40 13H102V19H40V13ZM102 20H40V26H102V20Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.884 14.5386C22.9304 14.5386 23.7787 13.7465 23.7787 12.7693C23.7787 11.7921 22.9304 11 21.884 11C20.8376 11 19.9893 11.7921 19.9893 12.7693C19.9893 13.7465 20.8376 14.5386 21.884 14.5386ZM9 21L15.3474 15.0728L19.2316 18.6999L21.8842 16.2229L27 21H9Z",fill:"#CACACA"})]}),_h=()=>(0,_.jsxs)("svg",{width:"102",height:"32",viewBox:"0 0 102 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M66.3361 0H101.371V32H66.3361V0ZM0 6H62V12H0V6ZM62 13H0V19H62V13ZM0 20H62V26H0V20Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87.884 14.5386C88.9304 14.5386 89.7787 13.7465 89.7787 12.7693C89.7787 11.7921 88.9304 11 87.884 11C86.8376 11 85.9893 11.7921 85.9893 12.7693C85.9893 13.7465 86.8376 14.5386 87.884 14.5386ZM75 21L81.3474 15.0728L85.2316 18.6999L87.8842 16.2229L93 21H75Z",fill:"#CACACA"})]}),_g=()=>(0,_.jsxs)("svg",{width:"100",height:"35",viewBox:"0 0 100 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{d:"M0 15H38V21H0V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M62 15H100V21H62V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M0 22H38V28H0V22Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M62 22H100V28H62V22Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M0 29H38V35H0V29Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M62 29H100V35H62V29Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M0 0H100V10H0V0Z",fill:"#ECECEC"})]}),_y=()=>(0,_.jsxs)("svg",{width:"100",height:"35",viewBox:"0 0 100 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 15H27V21H0V15ZM37 15H64V21H37V15ZM100 15H73V21H100V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 22H27V28H0V22ZM37 22H64V28H37V22ZM100 22H73V28H100V22Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 29H27V35H0V29ZM37 29H64V35H37V29ZM100 29H73V35H100V29Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M0 0H100V10H0V0Z",fill:"#ECECEC"})]}),_b=()=>(0,_.jsxs)("svg",{width:"100",height:"35",viewBox:"0 0 100 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 15H0V21H22V15ZM48 15H26V21H48V15ZM52 15H74V21H52V15ZM100 15H78V21H100V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 22H0V28H22V22ZM48 22H26V28H48V22ZM52 22H74V28H52V22ZM100 22H78V28H100V22Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 29H0V35H22V29ZM48 29H26V35H48V29ZM52 29H74V35H52V29ZM100 29H78V35H100V29Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M0 0H100V10H0V0Z",fill:"#ECECEC"})]}),_f=()=>(0,_.jsxs)("svg",{width:"100",height:"35",viewBox:"0 0 100 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{d:"M12 15H50V21H12V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M12 22H50V28H12V22Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M12 29H50V35H12V29Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M6 18C6 16.3431 4.65685 15 3 15C1.34315 15 0 16.3431 0 18C0 19.6569 1.34315 21 3 21C4.65685 21 6 19.6569 6 18Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M6 25C6 23.3431 4.65685 22 3 22C1.34315 22 0 23.3431 0 25C0 26.6569 1.34315 28 3 28C4.65685 28 6 26.6569 6 25Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M6 32C6 30.3431 4.65685 29 3 29C1.34315 29 0 30.3431 0 32C0 33.6569 1.34315 35 3 35C4.65685 35 6 33.6569 6 32Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M0 0H100V10H0V0Z",fill:"#ECECEC"})]}),_j=()=>(0,_.jsxs)("svg",{width:"100",height:"37",viewBox:"0 0 100 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{x:"54",y:"12",width:"46",height:"25",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M80.884 22.5386C81.9304 22.5386 82.7787 21.7465 82.7787 20.7693C82.7787 19.7921 81.9304 19 80.884 19C79.8376 19 78.9893 19.7921 78.9893 20.7693C78.9893 21.7465 79.8376 22.5386 80.884 22.5386ZM68 29L74.3474 23.0728L78.2316 26.6999L80.8842 24.2229L86 29H68Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M12 15H50V21H12V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M12 22H50V28H12V22Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M12 29H50V35H12V29Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M6 18C6 16.3431 4.65685 15 3 15C1.34315 15 0 16.3431 0 18C0 19.6569 1.34315 21 3 21C4.65685 21 6 19.6569 6 18Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M6 25C6 23.3431 4.65685 22 3 22C1.34315 22 0 23.3431 0 25C0 26.6569 1.34315 28 3 28C4.65685 28 6 26.6569 6 25Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M6 32C6 30.3431 4.65685 29 3 29C1.34315 29 0 30.3431 0 32C0 33.6569 1.34315 35 3 35C4.65685 35 6 33.6569 6 32Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M0 0H100V10H0V0Z",fill:"#ECECEC"})]}),_k=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 0C2.68629 0 0 2.68629 0 6V58C0 61.3137 2.68629 64 6 64H44V0H6ZM110 22.8569H48V28.3426H110V22.8569ZM48 29.2565H110V34.7422H48V29.2565ZM110 35.658H48V41.1437H110V35.658Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27.458 29.9564C28.8532 29.9564 29.9843 28.8473 29.9843 27.4792C29.9843 26.111 28.8532 25.002 27.458 25.002C26.0627 25.002 24.9316 26.111 24.9316 27.4792C24.9316 28.8473 26.0627 29.9564 27.458 29.9564ZM10.2793 39.0018L18.7425 30.7031L23.9214 35.7814L27.4582 32.3133L34.2793 39.0018H10.2793Z",fill:"#CACACA"})]}),_w=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",transform:"matrix(-1 0 0 1 116 0)",fill:"#FAFAFA"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M110 0C113.314 0 116 2.68629 116 6V58C116 61.3137 113.314 64 110 64H72V0H110ZM6 22.8569H68V28.3426H6V22.8569ZM68 29.2565H6V34.7422H68V29.2565ZM6 35.658H68V41.1437H6V35.658Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99.1787 29.9544C100.574 29.9544 101.705 28.8454 101.705 27.4772C101.705 26.1091 100.574 25 99.1787 25C97.7834 25 96.6523 26.1091 96.6523 27.4772C96.6523 28.8454 97.7834 29.9544 99.1787 29.9544ZM82 38.9999L90.4632 30.7012L95.6421 35.7795L99.1789 32.3114L106 38.9999H82Z",fill:"#CACACA"})]}),_N=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",transform:"matrix(-1 0 0 1 116 0)",fill:"#FAFAFA"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M110 0C113.314 0 116 2.68629 116 6V30H0V6C0 2.68629 2.68629 0 6 0H110ZM27 38H89V43.4857H27V38ZM89 44.3984H27V49.8842H89V44.3984ZM27 50.8008H89V56.2865H27V50.8008Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63.1787 12.9541C64.5739 12.9541 65.705 11.8451 65.705 10.477C65.705 9.10901 64.5739 8 63.1787 8C61.7834 8 60.6523 9.10901 60.6523 10.477C60.6523 11.8451 61.7834 12.9541 63.1787 12.9541ZM46 22L54.4632 13.7019L59.6421 18.7799L63.1789 15.312L70 22H46Z",fill:"#CACACA"})]}),_P=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 0C2.68629 0 0 2.68629 0 6V58C0 61.3137 2.68629 64 6 64H44V0H6ZM110 22.8569H48V28.3426H110V22.8569ZM48 29.2565H110V34.7422H48V29.2565ZM110 35.658H48V41.1437H110V35.658Z",fill:"#ECECEC"}),(0,_.jsx)("path",{opacity:"0.1",d:"M8 15C8 12.7909 9.79086 11 12 11H32C34.2091 11 36 12.7909 36 15V49C36 51.2091 34.2091 53 32 53H12C9.79086 53 8 51.2091 8 49V15Z",fill:"#626262"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M25.884 30.5386C26.9304 30.5386 27.7787 29.7465 27.7787 28.7693C27.7787 27.7921 26.9304 27 25.884 27C24.8376 27 23.9893 27.7921 23.9893 28.7693C23.9893 29.7465 24.8376 30.5386 25.884 30.5386ZM13 36.9995L19.3474 31.0723L23.2316 34.6994L25.8842 32.2223L31 36.9995H13Z",fill:"#CACACA"})]}),_I=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",transform:"matrix(-1 0 0 1 116 0)",fill:"#FAFAFA"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M110 0C113.314 0 116 2.68629 116 6V58C116 61.3137 113.314 64 110 64H72V0H110ZM6 22.8569H68V28.3426H6V22.8569ZM68 29.2565H6V34.7422H68V29.2565ZM6 35.658H68V41.1437H6V35.658Z",fill:"#ECECEC"}),(0,_.jsx)("path",{opacity:"0.1",d:"M80 15C80 12.7909 81.7909 11 84 11H104C106.209 11 108 12.7909 108 15V49C108 51.2091 106.209 53 104 53H84C81.7909 53 80 51.2091 80 49V15Z",fill:"#626262"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M97.884 30.5386C98.9304 30.5386 99.7787 29.7465 99.7787 28.7693C99.7787 27.7921 98.9304 27 97.884 27C96.8376 27 95.9893 27.7921 95.9893 28.7693C95.9893 29.7465 96.8376 30.5386 97.884 30.5386ZM85 36.9995L91.3474 31.0723L95.2316 34.6994L97.8842 32.2223L103 36.9995H85Z",fill:"#CACACA"})]}),_C=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",transform:"matrix(-1 0 0 1 116 0)",fill:"#ECECEC"}),(0,_.jsx)("rect",{width:"62",height:"5",transform:"matrix(-1 0 0 1 89 23)",fill:"#D9D9D9"}),(0,_.jsx)("rect",{width:"62",height:"2",transform:"matrix(-1 0 0 1 89 33)",fill:"#D9D9D9"}),(0,_.jsx)("rect",{width:"62",height:"2",transform:"matrix(-1 0 0 1 89 41)",fill:"#D9D9D9"}),(0,_.jsx)("rect",{width:"62",height:"2",transform:"matrix(-1 0 0 1 89 37)",fill:"#D9D9D9"}),(0,_.jsx)("rect",{width:"62",height:"2",transform:"matrix(-1 0 0 1 89 45)",fill:"#D9D9D9"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M62.1787 29.9541C63.5739 29.9541 64.705 28.8451 64.705 27.477C64.705 26.109 63.5739 25 62.1787 25C60.7834 25 59.6523 26.109 59.6523 27.477C59.6523 28.8451 60.7834 29.9541 62.1787 29.9541ZM45 39L53.4632 30.7019L58.6421 35.7799L62.1789 32.312L69 39H45Z",fill:"#CACACA"})]}),_Z=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("path",{d:"M23.0811 15H55.0811V44.5262H23.0811V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M23.0811 47.3262H55.0811V52.7139H23.0811V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M23.0811 53.6133H55.0811V59.001H23.0811V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.9752 28.0564C42.9053 28.0564 43.6594 27.3451 43.6594 26.4677C43.6594 25.5902 42.9053 24.8789 41.9752 24.8789C41.045 24.8789 40.2909 25.5902 40.2909 26.4677C40.2909 27.3451 41.045 28.0564 41.9752 28.0564ZM30.5225 33.8575L36.1646 28.5352L39.6172 31.7921L41.9751 29.5679L46.5225 33.8575H30.5225Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M62.5918 15H94.5918V44.5262H62.5918V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M62.5918 47.3262H94.5918V52.7139H62.5918V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M62.5918 53.6133H94.5918V59.001H62.5918V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M81.4859 28.0564C82.416 28.0564 83.1701 27.3451 83.1701 26.4677C83.1701 25.5902 82.416 24.8789 81.4859 24.8789C80.5557 24.8789 79.8017 25.5902 79.8017 26.4677C79.8017 27.3451 80.5557 28.0564 81.4859 28.0564ZM70.0332 33.8575L75.6753 28.5352L79.1279 31.7921L81.4858 29.5679L86.0332 33.8575H70.0332Z",fill:"#CACACA"}),(0,_.jsx)("rect",{x:"23",y:"6",width:"72",height:"6",fill:"#D9D9D9"})]}),_T=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("path",{d:"M8 15H40V44.5262H8V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M8 47.3262H40V52.7139H8V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M8 53.6133H40V59.001H8V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.8941 28.0564C27.8243 28.0564 28.5783 27.3451 28.5783 26.4677C28.5783 25.5902 27.8243 24.8789 26.8941 24.8789C25.9639 24.8789 25.2099 25.5902 25.2099 26.4677C25.2099 27.3451 25.9639 28.0564 26.8941 28.0564ZM15.4414 33.8575L21.0835 28.5352L24.5361 31.7921L26.894 29.5679L31.4414 33.8575H15.4414Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M41.9189 15H73.9189V44.5262H41.9189V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M41.9189 47.3262H73.9189V52.7139H41.9189V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M41.9189 53.6133H73.9189V59.001H41.9189V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.813 28.0564C61.7432 28.0564 62.4972 27.3451 62.4972 26.4677C62.4972 25.5902 61.7432 24.8789 60.813 24.8789C59.8829 24.8789 59.1288 25.5902 59.1288 26.4677C59.1288 27.3451 59.8829 28.0564 60.813 28.0564ZM49.3604 33.8575L55.0024 28.5352L58.4551 31.7921L60.813 29.5679L65.3603 33.8575H49.3604Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M75.9189 15H107.919V44.5262H75.9189V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M75.9189 47.3262H107.919V52.7139H75.9189V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M75.9189 53.6133H107.919V59.001H75.9189V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M94.813 28.0564C95.7432 28.0564 96.4972 27.3451 96.4972 26.4677C96.4972 25.5902 95.7432 24.8789 94.813 24.8789C93.8829 24.8789 93.1288 25.5902 93.1288 26.4677C93.1288 27.3451 93.8829 28.0564 94.813 28.0564ZM83.3604 33.8575L89.0024 28.5352L92.4551 31.7921L94.813 29.5679L99.3603 33.8575H83.3604Z",fill:"#CACACA"}),(0,_.jsx)("rect",{x:"8",y:"6",width:"100",height:"6",fill:"#D9D9D9"})]}),_L=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("path",{d:"M3 15H29.8869V44.5262H3V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M3 47.3262H29.8869V52.7139H3V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M3 53.6133H29.8869V59.001H3V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.2744 27.7101C20.0883 27.7101 20.7481 27.0763 20.7481 26.2945C20.7481 25.5127 20.0883 24.8789 19.2744 24.8789C18.4605 24.8789 17.8008 25.5127 17.8008 26.2945C17.8008 27.0763 18.4605 27.7101 19.2744 27.7101ZM9.25293 32.879L14.1898 28.1367L17.2108 31.0387L19.274 29.0569L23.2529 32.879H9.25293Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M30.6592 15H57.546V44.5262H30.6592V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M30.6592 47.3262H57.546V52.7139H30.6592V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M30.6592 53.6133H57.546V59.001H30.6592V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M46.9327 27.7101C47.7465 27.7101 48.4063 27.0763 48.4063 26.2945C48.4063 25.5127 47.7465 24.8789 46.9327 24.8789C46.1188 24.8789 45.459 25.5127 45.459 26.2945C45.459 27.0763 46.1188 27.7101 46.9327 27.7101ZM36.9111 32.879L41.848 28.1367L44.869 31.0387L46.9322 29.0569L50.9111 32.879H36.9111Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M58.3867 15H85.2736V44.5262H58.3867V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M58.3867 47.3262H85.2736V52.7139H58.3867V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M58.3867 53.6133H85.2736V59.001H58.3867V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M74.6592 27.7101C75.4731 27.7101 76.1329 27.0763 76.1329 26.2945C76.1329 25.5127 75.4731 24.8789 74.6592 24.8789C73.8453 24.8789 73.1855 25.5127 73.1855 26.2945C73.1855 27.0763 73.8453 27.7101 74.6592 27.7101ZM64.6387 32.879L69.5755 28.1367L72.5966 31.0387L74.6597 29.0569L78.6387 32.879H64.6387Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M86.1133 15H113V44.5262H86.1133V15Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M86.1133 47.3262H113V52.7139H86.1133V47.3262Z",fill:"#ECECEC"}),(0,_.jsx)("path",{d:"M86.1133 53.6133H113V59.001H86.1133V53.6133Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M102.388 27.7101C103.202 27.7101 103.861 27.0763 103.861 26.2945C103.861 25.5127 103.202 24.8789 102.388 24.8789C101.574 24.8789 100.914 25.5127 100.914 26.2945C100.914 27.0763 101.574 27.7101 102.388 27.7101ZM92.3662 32.879L97.3031 28.1367L100.324 31.0387L102.387 29.0569L106.366 32.879H92.3662Z",fill:"#CACACA"}),(0,_.jsx)("rect",{x:"3",y:"6",width:"110",height:"6",fill:"#D9D9D9"})]}),_S=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("rect",{x:"3",y:"6",width:"110",height:"6",fill:"#D9D9D9"}),(0,_.jsx)("path",{d:"M3 25H35V55H3V25Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.8941 38.0564C22.8243 38.0564 23.5783 37.3451 23.5783 36.4677C23.5783 35.5902 22.8243 34.8789 21.8941 34.8789C20.9639 34.8789 20.2099 35.5902 20.2099 36.4677C20.2099 37.3451 20.9639 38.0564 21.8941 38.0564ZM10.4414 43.8575L16.0835 38.5352L19.5361 41.7921L21.894 39.5679L26.4414 43.8575H10.4414Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M37 25H79V55H37V25Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M61.4527 38.0564C62.3828 38.0564 63.1369 37.3451 63.1369 36.4677C63.1369 35.5902 62.3828 34.8789 61.4527 34.8789C60.5225 34.8789 59.7685 35.5902 59.7685 36.4677C59.7685 37.3451 60.5225 38.0564 61.4527 38.0564ZM50 43.8575L55.6421 38.5352L59.0947 41.7921L61.4526 39.5679L66 43.8575H50Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M81 25H113V55H81V25Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99.8941 38.0564C100.824 38.0564 101.578 37.3451 101.578 36.4677C101.578 35.5902 100.824 34.8789 99.8941 34.8789C98.9639 34.8789 98.2099 35.5902 98.2099 36.4677C98.2099 37.3451 98.9639 38.0564 99.8941 38.0564ZM88.4414 43.8575L94.0835 38.5352L97.5361 41.7921L99.894 39.5679L104.441 43.8575H88.4414Z",fill:"#CACACA"})]}),_D=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("path",{d:"M45.1006 30C45.1006 23.3726 50.4732 18 57.1006 18H57.9006C64.528 18 69.9006 23.3726 69.9006 30C69.9006 36.6274 64.528 42 57.9006 42H57.1006C50.4732 42 45.1006 36.6274 45.1006 30Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.2804 28.4463C61.0245 28.4463 61.6277 27.8773 61.6277 27.1753C61.6277 26.4734 61.0245 25.9043 60.2804 25.9043C59.5362 25.9043 58.933 26.4734 58.933 27.1753C58.933 27.8773 59.5362 28.4463 60.2804 28.4463ZM51.1182 33.0872L55.6318 28.8293L58.394 31.4349L60.2803 29.6555L63.9182 33.0872H51.1182Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M74.7002 30C74.7002 23.3726 80.0728 18 86.7002 18H87.5002C94.1276 18 99.5002 23.3726 99.5002 30C99.5002 36.6274 94.1276 42 87.5002 42H86.7002C80.0728 42 74.7002 36.6274 74.7002 30Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M89.8805 28.4463C90.6246 28.4463 91.2278 27.8773 91.2278 27.1753C91.2278 26.4734 90.6246 25.9043 89.8805 25.9043C89.1363 25.9043 88.5331 26.4734 88.5331 27.1753C88.5331 27.8773 89.1363 28.4463 89.8805 28.4463ZM80.7183 33.0872L85.2319 28.8293L87.9941 31.4349L89.8804 29.6555L93.5183 33.0872H80.7183Z",fill:"#CACACA"}),(0,_.jsx)("path",{d:"M15.5 30C15.5 23.3726 20.8726 18 27.5 18H28.3C34.9274 18 40.3 23.3726 40.3 30C40.3 36.6274 34.9274 42 28.3 42H27.5C20.8726 42 15.5 36.6274 15.5 30Z",fill:"#ECECEC"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.6808 28.4463C31.4249 28.4463 32.0281 27.8773 32.0281 27.1753C32.0281 26.4734 31.4249 25.9043 30.6808 25.9043C29.9366 25.9043 29.3334 26.4734 29.3334 27.1753C29.3334 27.8773 29.9366 28.4463 30.6808 28.4463ZM21.5186 33.0872L26.0322 28.8293L28.7943 31.4349L30.6807 29.6555L34.3186 33.0872H21.5186Z",fill:"#CACACA"}),(0,_.jsx)("rect",{x:"40",y:"6",width:"38",height:"6",fill:"#D9D9D9"}),(0,_.jsx)("rect",{x:"21",y:"45",width:"15",height:"5",fill:"#D9D9D9"}),(0,_.jsx)("rect",{x:"51",y:"45",width:"15",height:"5",fill:"#D9D9D9"}),(0,_.jsx)("rect",{x:"80",y:"45",width:"15",height:"5",fill:"#D9D9D9"})]}),_F=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("path",{d:"M8 18H40V53H8V18Z",fill:"#ECECEC"}),(0,_.jsx)("rect",{x:"12",y:"22",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"12",y:"35",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"12",y:"40",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"12",y:"45",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("path",{d:"M42 18H74V53H42V18Z",fill:"#ECECEC"}),(0,_.jsx)("rect",{x:"46",y:"22",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"46",y:"35",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"46",y:"40",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"46",y:"45",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("path",{d:"M76 18H108V53H76V18Z",fill:"#ECECEC"}),(0,_.jsx)("rect",{x:"80",y:"22",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"80",y:"35",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"80",y:"40",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"80",y:"45",width:"24",height:"4",fill:"#D0D0D0"}),(0,_.jsx)("rect",{x:"8",y:"6",width:"100",height:"6",fill:"#D9D9D9"})]}),_E=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("rect",{x:"8",y:"6",width:"100",height:"6",fill:"#D9D9D9"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 16H13.6667V21.6667H8V16ZM52 16H16V21.6667H52V16ZM52 24.5H16V27.3333H52V24.5ZM16 30.166H37.1034V32.9993H16V30.166Z",fill:"#D0D0D0"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M64 16H69.6667V21.6667H64V16ZM108 16H72V21.6667H108V16ZM108 24.5H72V27.3333H108V24.5ZM72 30.166H93.1034V32.9993H72V30.166Z",fill:"#D0D0D0"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 39H13.6667V44.6667H8V39ZM52 39H16V44.6667H52V39ZM52 47.5H16V50.3333H52V47.5ZM16 53.166H37.1034V55.9993H16V53.166Z",fill:"#D0D0D0"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M64 39H69.6667V44.6667H64V39ZM108 39H72V44.6667H108V39ZM108 47.5H72V50.3333H108V47.5ZM72 53.166H93.1034V55.9993H72V53.166Z",fill:"#D0D0D0"})]}),_A=()=>(0,_.jsxs)("svg",{width:"116",height:"64",viewBox:"0 0 116 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("rect",{width:"116",height:"64",rx:"6",fill:"#FAFAFA"}),(0,_.jsx)("rect",{x:"8",y:"6",width:"100",height:"6",fill:"#D9D9D9"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.8981 21.7639L12 19L11.1019 21.7639H8.19577L10.5469 23.4721L9.64886 26.2361L12 24.5279L14.3511 26.2361L13.4531 23.4721L15.8042 21.7639H12.8981ZM37 28H8V33.6667H37V28ZM37 36.5H8V39.3333H37V36.5ZM8 42.166H25V44.9993H8V42.166Z",fill:"#D9D9D9"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M47.8981 21.7639L47 19L46.1019 21.7639H43.1958L45.5469 23.4721L44.6489 26.2361L47 24.5279L49.3511 26.2361L48.4531 23.4721L50.8042 21.7639H47.8981ZM72 28H43V33.6667H72V28ZM72 36.5H43V39.3333H72V36.5ZM43 42.166H60V44.9993H43V42.166Z",fill:"#D9D9D9"}),(0,_.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M82.8981 21.7639L82 19L81.1019 21.7639H78.1958L80.5469 23.4721L79.6489 26.2361L82 24.5279L84.3511 26.2361L83.4531 23.4721L85.8042 21.7639H82.8981ZM107 28H78V33.6667H107V28ZM107 36.5H78V39.3333H107V36.5ZM78 42.166H95V44.9993H78V42.166Z",fill:"#D9D9D9"})]});var _H=l(79250);let _z=e=>{let{title:t,children:l,defaultOpen:o=!0}=e,[a,s]=(0,i.useState)(o);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__mt-4 lg:B__mt-6",children:(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__gap-3 B__border-b B__border-[#13133225] B__pb-3.5",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato]",children:t}),(0,_.jsx)("div",{className:"B__text-lg B__font-normal B__font-[Lato] B__cursor-pointer",onClick:()=>{s(!a)},children:a?(0,_.jsx)(b.ego,{}):(0,_.jsx)(b.OvN,{})})]})}),a&&l]})},_M=e=>{let{title:t,items:l,onSelect:o,onGenerate:a}=e,[s]=(0,_H.u)(),[n,r]=(0,i.useState)(""),[d,c]=(0,i.useState)(-1),B=e=>{null==o||o({type:l[e].type,dataType:"sections"}),c(t=>t===e?-1:e)},x=()=>{a({keywords:n,type:l[d].type,dataType:"sections"})};return(0,_.jsx)(_z,{title:t,children:(0,_.jsxs)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-4 B__mt-5 B__gap-4 B__gap-y-4",ref:s,children:[-1!==d&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(_U,{layout:l[d],index:d,selected:d==d,onSelect:()=>B(d)},d),(0,_.jsx)("div",{className:"md:B__col-span-3",children:(0,_.jsx)("textarea",{className:"B__w-full B__h-full B__border B__border-[#d8d8d8] B__rounded-2xl B__p-4 B__resize-none",placeholder:"Brief AI Bot about the  section...",value:n,onChange:e=>r(e.target.value)})}),(0,_.jsxs)("div",{className:"B__flex B__flex-row B__gap-3 B__col-start-3 B__col-span-2",children:[(0,_.jsx)("button",{className:"B__w-full B__h-10 B__bg-[#7E7E7E] B__text-white B__rounded-xl B__font-medium B__text-sm",onClick:()=>B(d),children:"Discard"}),(0,_.jsx)("button",{className:"B__w-full B__h-10 B__bg-butternut-orange B__text-white B__rounded-xl B__font-medium B__text-sm",onClick:x,children:"Generate"})]})]}),-1===d&&l.map((e,t)=>(0,_.jsx)(_U,{layout:e,index:t,selected:d===t,onSelect:()=>B(t)},t))]})})},_U=e=>{let{layout:t,selected:l,onSelect:i}=e;return(0,_.jsxs)("div",{className:"B__rounded-2xl B__py-6 B__px-6 B__flex B__flex-col B__items-center B__justify-start B__gap-5 B__border  B__relative B__cursor-pointer ".concat(l?"B__border-[#5959FF]":"B__border-[#d8d8d8]"),style:{boxShadow:"0px 25px 60px 0px #00000014"},onClick:i,children:[(0,_.jsx)("div",{className:"B__flex B__items-center B__gap-2",children:t.layoutImage}),(0,_.jsx)("div",{className:"B__font-medium B__text-sm B__text-[#131332] B__line-clamp-2",children:t.title})]})},_V=e=>{let{showModal:t,handleClose:l,handleGoBack:i}=e;return(0,_.jsx)(_.Fragment,{children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none B__text-black",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] lg:B__max-w-[500px] xl:B__max-w-[600px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsx)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7 B__border-b B__border-solid B__border-blueGray-200",children:(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold B__mb-0",children:"Website generation in Progress"})}),(0,_.jsxs)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto  B__p-5 B__px-7 B__font-[Lato]",children:[(0,_.jsx)("div",{className:"B__py-3 B__pb-6 B__text-center B__text-lg",children:"Please wait until all the sections and all the pages are generated. You can try other features meanwhile."}),(0,_.jsxs)("div",{className:"B__flex B__justify-end B__items-center B__gap-3 B__mt-3",children:[(0,_.jsx)("button",{className:"B__text-[#131332] B__border B__border-[#131332] B__text-sm B__font-bold B__px-5 B__py-2 B__rounded-md B__font-[Lato] ",onClick:l,children:"Close "}),(0,_.jsx)("button",{className:"B__text-white B__bg-butternut-button B__text-sm B__font-bold B__px-5 B__py-2 B__rounded-md B__font-[Lato]",onClick:i,children:"Go Back"})]})]})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-[#00000055]"})]}):null})},_R=e=>{let{showModal:t,handleClose:l,handleSave:o}=e,{websiteData:a}=(0,i.useContext)(r.o)||{},[s,n]=(0,i.useState)({}),[c,B]=(0,i.useState)(!1),[x,m]=(0,i.useState)(!1),[p,u]=(0,i.useState)({}),v=()=>{(null==s?void 0:s.section)&&((!(null==a?void 0:a.generatedPages)||!a.generatedHiddenPages)&&(null==h?void 0:h.includes(null==s?void 0:s.section))?m(!0):c||(null==s?void 0:s.section)!=="p_form"?(o(null==s?void 0:s.section,null==p?void 0:p.keywords),B(!1)):B(!0))},h=["p_form"],[g,y]=(0,i.useState)({sections:!0,visuals:!0,getInTouch:!0,analytics:!0}),f={sections:{title:"SECTIONS",sections:[{title:"Features",type:"h_features"},{title:"Services",type:"h_services"},{title:"Team",type:"p_team"},{title:"About Us",type:"h_aboutus"},{title:"Testimonials",type:"h_testimonials"},{title:"FAQs",type:"h_faq"},{title:"Clients",type:"p_clients"},{title:"Quotes",type:"p_quotes"},{title:"Pricing",type:"p_pricingplan"},{title:"Founders",type:"p_founders"},{title:"Statistics",type:"p_statistics"},{title:"Vision",type:"p_vision"},{title:"Mission",type:"p_missions"},{title:"What makes us different",type:"p_difference"},{title:"Journey",type:"p_journey"},{title:"Q&A",type:"p_faq"},{title:"Map",type:"p_map"},{title:"Menu",type:"p_menu"},{title:"Form",type:"p_form"},{title:"Review",type:"p_reviews"},{title:"Timeline",type:"p_timeline"},{title:"Blogs Preview",type:"p_blog"}]},visuals:{title:"VISUALS",sections:[{title:"Image",type:"imagesection"},{title:"Gallery",type:"p_gallery"},{title:"Portfolio",type:"p_portfolio"},{title:"Banner",type:"p_banner"},{title:"Youtube Video",type:"video"},{title:"Video",type:"video"}]},getInTouch:{title:"GET IN TOUCH",sections:[{title:"Contact Us Form",type:"p_contactus"},{title:"Book an Appointment",type:"p_bookanappointment"},{title:"Calendly",type:"p_bookanappointment"},{title:"Newsletter",type:"newsletter"}]},analytics:{title:"ANALYTICS & CODE",sections:[{title:"Google Analytics",type:"googleanalytics"},{title:"Embed Code",type:"embed"}]}},j=[{title:"Basic",items:[{title:"Image and Text",layoutImage:(0,_.jsx)(_v,{}),type:"p_layout_image_text"},{title:"Text and Image",layoutImage:(0,_.jsx)(_h,{}),type:"p_layout_text_image"},{title:"Two Column",layoutImage:(0,_.jsx)(_g,{}),type:"p_layout_two_column"},{title:"Three Column",layoutImage:(0,_.jsx)(_y,{}),type:"p_layout_three_column"},{title:"Four Column",layoutImage:(0,_.jsx)(_b,{}),type:"p_layout_four_column"},{title:"Title with Bullets",layoutImage:(0,_.jsx)(_f,{}),type:"p_layout_title_bullets"},{title:"Title with Bullets and Image",layoutImage:(0,_.jsx)(_j,{}),type:"p_layout_title_bullets_image"}]},{title:"Cards",items:[{title:"Accent Left",layoutImage:(0,_.jsx)(_k,{}),type:"p_layout_accent_left"},{title:"Accent Right",layoutImage:(0,_.jsx)(_w,{}),type:"p_layout_accent_right"},{title:"Accent Top",layoutImage:(0,_.jsx)(_N,{}),type:"p_layout_accent_top"},{title:"Accent Left (Fit)",layoutImage:(0,_.jsx)(_P,{}),type:"p_layout_accent_left_fit"},{title:"Accent Right (Fit)",layoutImage:(0,_.jsx)(_I,{}),type:"p_layout_accent_right_fit"},{title:"Accent Background",layoutImage:(0,_.jsx)(_C,{}),type:"p_layout_accent_background"}]},{title:"Photos",items:[{title:"2 Images column",layoutImage:(0,_.jsx)(_Z,{}),type:"p_layout_photos_two_column"},{title:"3 Images column",layoutImage:(0,_.jsx)(_T,{}),type:"p_layout_photos_three_column"},{title:"4 Images column",layoutImage:(0,_.jsx)(_L,{}),type:"p_layout_photos_four_column"},{title:"Image Gallery",layoutImage:(0,_.jsx)(_S,{}),type:"p_layout_photos_gallery"},{title:"Team Photos",layoutImage:(0,_.jsx)(_D,{}),type:"p_layout_photos_team"}]},{title:"Collection and Sequences",items:[{title:"Text Boxes",layoutImage:(0,_.jsx)(_F,{}),type:"p_layout_text_boxes"},{title:"Large Bullets List",layoutImage:(0,_.jsx)(_E,{}),type:"p_layout_large_bullets"},{title:"Icon with Text",layoutImage:(0,_.jsx)(_A,{}),type:"p_layout_icon_with_text"}]}];return(0,_.jsx)(_.Fragment,{children:x?(0,_.jsx)(_V,{showModal:x,handleGoBack:()=>{m(!1)},handleClose:()=>{l(),m(!1)}}):t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] md:B__w-[75%] lg:B__max-w-[666px]  2xl:B__max-w-[850px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded-xl B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none",children:[(0,_.jsx)("div",{className:"B__p-5 B__px-9",children:(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__pb-5 B__border-b B__border-solid B__border-blueGray-200",children:[(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold B__mb-0",children:"Add Section"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:l,children:(0,_.jsx)(d.FU5,{className:"B__text-2xl B__text-gray-600"})})]})}),(0,_.jsx)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto B__pb-3 B__font-[Lato] custom-scrollbar-thin",children:(0,_.jsx)("div",{className:"B__pb-5 B__text-center ",children:c?(0,_.jsxs)("form",{className:"B__px-9",children:[(0,_.jsx)(_u.Z,{name:"keywords",handleChange:e=>u(t=>({...t,keywords:e.target.value})),placeholder:(null==s?void 0:s.section)==="p_form"?"Describe the inputs of the form":"Describe the image you want here",type:"text",value:null==p?void 0:p.keywords}),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",columnGap:20}})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__px-9",children:[(0,_.jsxs)("div",{className:"B__rounded-lg B__bg-[#29981f14] B__p-6 B__mb-8 B__flex B__flex-col lg:B__flex-row B__gap-2 B__items-start lg:B__items-end B__justify-between",children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-start B__flex-col B__gap-1 B__text-left",children:[(0,_.jsx)("div",{className:"B__bg-[#f59e0b] B__text-white B__text-xs B__font-bold B__px-1.5 B__p-0.5 B__rounded-sm",children:"Try New"}),(0,_.jsx)("div",{className:"B__text-[#131332] B__text-xl lg:B__text-2xl B__font-bold B__mt-1",children:"Try Building with AI bot"}),(0,_.jsx)("div",{className:"B__text-[#131332] B__text-xs lg:B__text-[13px] B__font-semibold",children:"Add description of the section and AI will generate it for you"}),(0,_.jsx)("div",{className:"B__text-[#5959FF] B__text-xs lg:B__text-[13px] B__font-semibold B__py-0.5 B__underline"})]}),(0,_.jsx)("div",{className:"",children:(0,_.jsx)("button",{className:"B__text-white B__bg-butternut-button B__text-sm B__font-bold B__px-5 lg:B__px-7 B__py-1.5 B__rounded-lg B__font-[Lato] B__whitespace-nowrap",onClick:()=>{o("customcode")},children:"Let's Try"})})]}),Object.keys(f).map((e,t)=>(0,_.jsxs)("div",{className:"B__mt-4 lg:B__mt-6",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__gap-3 B__border-b B__border-[#13133225] B__pb-3.5",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato]",children:null==f?void 0:f[e].title}),(0,_.jsx)("div",{className:"B__text-lg B__font-normal B__font-[Lato] B__cursor-pointer",onClick:()=>{y(t=>({...t,[e]:!(null==t?void 0:t[e])}))},children:(null==g?void 0:g[e])?(0,_.jsx)(b.ego,{}):(0,_.jsx)(b.OvN,{})})]}),(0,_.jsx)("div",{className:"".concat((null==g?void 0:g[e])?"B__flex":"B__hidden"," B__justify-start B__gap-3 B__flex-wrap B__items-center B__py-4"),children:null==f?void 0:f[e].sections.map((t,l)=>(0,_.jsx)("button",{className:"B__px-3 B__py-2 B__rounded-lg B__text-sm B__cursor-pointer B__font-bold ".concat(s.section===t.type&&s.dataType===e?"B__bg-butternut-button B__text-white":"B__bg-[#5959FF1a] B__text-[#5959FF]"," "),onClick:()=>n({dataType:e,section:t.type}),children:t.title},l))})]},t))]}),(0,_.jsxs)("div",{className:"B__mt-9 B__px-9",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__text-left",children:"By Layout"}),j.map((e,t)=>(0,_.jsx)(_M,{...e,onSelect:e=>{n({dataType:e.dataType,section:e.type})},onGenerate:e=>{o(e.type,e.keywords)}},t))]})]})})}),(0,_.jsxs)("div",{className:"B__flex B__justify-end B__items-center B__gap-3 B__mt-3 B__pb-5 B__px-9",children:[(0,_.jsxs)("button",{className:"B__text-[#131332] B__border B__border-[#131332] B__text-base B__font-bold B__px-5 B__py-2 B__rounded-md B__font-[Lato] ",onClick:()=>{c?(B(!1),u({})):l()},children:["Close"," "]}),(0,_.jsx)("button",{className:"B__text-white B__bg-butternut-button B__text-base B__font-bold B__px-5 B__py-2 B__rounded-md B__font-[Lato] disabled:B__opacity-75",disabled:!(null==s?void 0:s.section),onClick:()=>{v()},children:"Generate"})]})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})};var _W=l(97816);let _K=()=>(0,_.jsxs)("div",{className:"B__absolute B__top-0 B__left-0 B__w-full B__bg-[#00000028] B__transition-opacity B__duration-150 B__delay-100 B__flex B__justify-center B__items-center B__h-full B__visible B__z-10",children:[(0,_.jsx)(tB(),{src:"https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"}),(0,_.jsxs)("div",{className:"B__bg-white B__rounded-md B__flex B__justify-center B__items-center B__flex-col",children:[(0,_.jsx)("lottie-player",{src:"/animation/lottie-loader.json",background:"transparent",speed:"1",style:{width:"150px",height:"150px",minWidth:"150px"},direction:"1",mode:"normal",autoplay:!0,loop:!0}),(0,_.jsx)("span",{className:"B__pb-4 B__py-2 B__px-6 B__font-semibold B__text-lg",children:"Generating content..."})]})]}),_q=e=>(0,_.jsxs)("div",{className:"B__relative B__cursor-pointer B__group/tooltip",children:[e.children,(0,_.jsxs)("div",{...e,className:"B__hidden group-hover/tooltip:B__block B__absolute B__z-10 B__px-8 B__py-1 B__bg-[#ededed] B__rounded-md B__ring-[0.5] B__ring-slate-100 B__text-gray-700 B__whitespace-nowrap B__normal-case ".concat((null==e?void 0:e.tooltipDirection)==="bottom-right"?"B__-bottom-9 B__left-0":(null==e?void 0:e.tooltipDirection)==="bottom-left"?"B__-bottom-9 B__right-0":(null==e?void 0:e.tooltipDirection)==="top-left"?"B__-top-9 B__right-0":"B__-top-9 B__left-0"),children:[e.text,(0,_.jsx)("div",{className:"B__bg-[#ededed] B__w-2.5 B__h-2.5 B__rotate-[45deg] B__absolute ".concat((null==e?void 0:e.tooltipDirection)==="bottom-right"?"B__-top-1 B__left-2":(null==e?void 0:e.tooltipDirection)==="bottom-left"?"B__-top-1 B__right-2":(null==e?void 0:e.tooltipDirection)==="top-left"?"B__-bottom-1 B__right-2":"B__-bottom-1 B__left-2")})]})]}),_O=e=>{let{children:t,section:l,viewMode:o,itemIndex:a=0,sections:s,slot:n,sectionLocation:c}=e,[B,x]=(0,i.useState)({addSection:!0,regenerate:!1,edit:!1,delete:!0,up:!0,down:!0,toggle:!0}),[m,p]=(0,i.useState)(!1),[u,v]=(0,i.useState)(!1),{deleteData:h,updateSectionData:g,dragSection:y,addSection:b,regenerateDesign:f}=(0,i.useContext)(r.o)||{};(0,i.useEffect)(()=>{x(e=>{var t,_,i;return{...e,up:a>0,addSection:"website"!==c&&(s.length<=1||a>0),regenerate:"newsletter_v1"===l.type||"aboutus_v1"===l.type,down:s.length-1>a&&!((null==l?void 0:null===(t=l.type)||void 0===t?void 0:t.startsWith("h_banner"))&&0===a),delete:!((null==l?void 0:null===(_=l.type)||void 0===_?void 0:_.startsWith("h_banner"))&&0===a),toggle:!((null==l?void 0:null===(i=l.type)||void 0===i?void 0:i.startsWith("h_banner"))&&0===a)}})},[a,l]);let j=(0,i.useCallback)(async()=>{await (null==h?void 0:h("section",l.id,void 0,"website"===c,n))},[h,l.id,c,n]),k=(0,i.useCallback)(async()=>{await (null==g?void 0:g({active:!l.active},l.id,"website"===c,n))},[g,l.id,c,n,l.active]),w=(0,i.useCallback)(async()=>{await (null==y?void 0:y(l.id,"up","website"===c,n))},[y,l.id,c,n]),N=(0,i.useCallback)(async()=>{await (null==y?void 0:y(l.id,"down","website"===c,n))},[y,l.id,c,n]),P=(0,i.useCallback)(async()=>{v(!0),await (null==f?void 0:f({section_id:l.id,type:"section",slot:n})),v(!1)},[f,l.id,n]),C=(0,i.useRef)(null);(0,i.useCallback)(async()=>{var e,t;null==C||null===(e=C.current)||void 0===e||null===(t=e.regenerate)||void 0===t||t.call(e)},[C]);let Z=i.Children.map(t,e=>i.isValidElement(e)?i.cloneElement(e,{regenBackGroundBtnRef:C}):e),T=(0,i.useMemo)(()=>{let e=[{children:(0,_.jsx)(d.Ffb,{className:"B__text-2xl B__text-butternut-orange"}),onClick:P}];return B.up&&e.push({children:(0,_.jsx)(M.HTv,{size:18}),onClick:w}),B.down&&e.push({children:(0,_.jsx)(M.CSs,{size:18}),onClick:N}),B.toggle&&e.push({children:l.active?(0,_.jsx)(M.rCC,{size:18}):(0,_.jsx)(M.I$m,{size:18}),onClick:k}),B.delete&&e.push({children:(0,_.jsx)(M.yvY,{size:18}),onClick:j}),e},[B.up,B.down,B.toggle,B.delete,P,w,N,l.active,k,j]),L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"top";return[{children:(0,_.jsx)(_q,{text:"Add Section",children:(0,_.jsx)(_W._7,{})}),onClick:()=>p(!0)},{children:(0,_.jsx)(_q,{text:"Build with AI",children:(0,_.jsx)(_W.J_,{})}),onClick:()=>{null==b||b("customcode","top"===e?a:a-1,"",void 0,"website"===c,n)}}]};return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__relative ".concat("footer_sections"!==n?a%2==0?"B__bg-shade-light":"B__bg-shade":""),id:l.id,children:[(0,_.jsx)(_R,{showModal:m,handleClose:()=>p(!1),handleSave:async(e,t)=>{p(!1),null==b||b(e,a,t,void 0,"website"===c,n)}}),"live"!==o?(0,_.jsxs)("div",{className:"B__relative B__group ".concat(0!==a?"B__pt-7 lg:B__pt-0":""," group-hover:B__visible"),children:[u&&(0,_.jsx)(_K,{}),(null==B?void 0:B.addSection)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"B__absolute B__w-full ".concat(s.length<=1?"B__hidden":"B__-top-4"," B__left-1/2 B__z-20 B__-translate-x-1/2 B__-translate-y-1/2 B__flex B__items-center B__justify-center B__my-3 B__invisible group-hover:B__visible"),children:[(0,_.jsx)("div",{className:"B__h-[2px] B__flex B__flex-1 B__items-center B__bg-butternut-orange"}),(0,_.jsx)(I.u,{buttons:L("top")}),(0,_.jsx)("div",{className:"B__h-[2px] B__flex B__flex-1 B__items-center B__bg-butternut-orange"})]}),(0,_.jsxs)("div",{className:"B__absolute B__w-full B__-bottom-2 B__left-1/2 B__z-20 B__-translate-x-1/2 B__translate-y-1/2 B__flex B__items-center B__justify-center B__my-3 B__invisible group-hover:B__visible",children:[(0,_.jsx)("div",{className:"B__h-[2px] B__flex B__flex-1 B__items-center B__bg-butternut-orange"}),(0,_.jsx)(I.u,{buttons:L("bottom")}),(0,_.jsx)("div",{className:"B__h-[2px] B__flex B__flex-1 B__items-center B__bg-butternut-orange"})]})]}):null,(0,_.jsx)("div",{className:"B__absolute B__top-6 lg:B__top-14 B__right-0 B__z-30 B__flex B__items-center B__justify-end B__px-5 B__gap-2 B__invisible group-hover:B__visible ".concat(0===a?"lg:B__top-20":""),children:(0,_.jsx)(I.u,{buttons:T})}),(0,_.jsx)("div",{className:"B__w-full B__h-full B__relative edit-mode ".concat(l.active?"B__opacity-100":"B__opacity-50"),children:Z})]}):(0,_.jsx)("div",{className:"B__w-full B__h-full B__relative live-mode ".concat(l.active?"B__opacity-100":"B__opacity-50"),children:Z})]})};var _G=l(5152),_$=l.n(_G),_Y=l(81323),_J=l(59429),_Q=l(47355),_X=l(2160);let _0=e=>{let{onPlaceSelect:t,defaultValue:l}=e,o=(0,_Y.Sx)(),a=(0,_Y.kY)("places"),[s,n]=(0,i.useState)(),[r,d]=(0,i.useState)(null),[c,B]=(0,i.useState)(null),[x,m]=(0,i.useState)([]),[p,u]=(0,i.useState)(null!=l?l:"");(0,i.useEffect)(()=>{if(a&&o)return d(new a.AutocompleteService),B(new a.PlacesService(o)),n(new a.AutocompleteSessionToken),()=>d(null)},[o,a]);let v=(0,i.useCallback)(async e=>{if(!r||!e){m([]);return}let t=await r.getPlacePredictions({input:e,sessionToken:s});m(t.predictions)},[r,s]),h=(0,i.useCallback)(e=>{var t;let l=null===(t=e.target)||void 0===t?void 0:t.value;u(l),v(l)},[v]),g=(0,i.useCallback)(e=>{if(!a)return;let l=e=>{var l;t(e),m([]),u(null!==(l=null==e?void 0:e.formatted_address)&&void 0!==l?l:""),n(new a.AutocompleteSessionToken)};null==c||c.getDetails({placeId:e,fields:["geometry","name","formatted_address"],sessionToken:s},l)},[t,a,c,s]);return(0,_.jsxs)("div",{className:"B__relative",style:{width:"100%"},children:[(0,_.jsx)("input",{value:p,onInput:h,placeholder:"Search for a place",className:"".concat(L().modal_input," disabled:B__opacity-70")}),x.length>0&&(0,_.jsx)("ul",{className:"B__list-none B__fixed B__bg-white B__rounded-md B__max-w-sm B__shadow-md B__px-0",children:x.map(e=>{let{place_id:t,description:l}=e;return(0,_.jsx)("li",{className:"B__my-2 B__border B__p-2 B__cursor-pointer",onClick:()=>g(t),children:l},t)})})]})},_1={title:"Get in touch",hour_of_operation_label:"Hours of operation: ",hour_of_operation:"",phone:"",address:{formattedAddress:"",location:{lat:0,lng:0}}},_2=e=>{var t,l;let{handleClose:o,handleSave:a,defaultState:s}=e,[n,r]=(0,i.useState)({..._1,...s}),d=e=>{r(t=>({...t,[e.target.name]:e.target.value}))},c=e=>{var t,l,_;e&&r(i=>{var o,a,s,n;return{...i,address:{formattedAddress:null!==(t=e.formatted_address)&&void 0!==t?t:"",location:{lat:null!==(l=null===(o=e.geometry)||void 0===o?void 0:null===(a=o.location)||void 0===a?void 0:a.lat())&&void 0!==l?l:0,lng:null!==(_=null===(s=e.geometry)||void 0===s?void 0:null===(n=s.location)||void 0===n?void 0:n.lng())&&void 0!==_?_:0}}}})},B=()=>{a(n)},x=e=>{r(t=>({...t,[e]:!(null==t?void 0:t[e])}))};return(0,_.jsx)(_Q.Z,{show:!0,handleSave:B,title:"Edit Address",handleClose:o,children:(0,_.jsxs)("div",{className:"B__grid B__grid-cols-1 B__gap-2",children:[(0,_.jsx)(_X.Z,{field:{field_label:"Title",name:"title",placeholder:"Enter Title",hideIconBtnKey:"title_hide",hideIconBtnValue:!(null==n?void 0:n.title_hide)},toggleIcons:x,values:n,handleChange:d})," ",(0,_.jsx)(_X.Z,{field:{field_label:"Hour of Operation Label",name:"hour_of_operation_label",placeholder:"Enter Hour of Operation label",hideIconBtnKey:"hour_of_operation_label_hide",hideIconBtnValue:!(null==n?void 0:n.hour_of_operation_label_hide)},toggleIcons:x,values:n,handleChange:d})," ",(0,_.jsx)(_X.Z,{field:{field_label:"Hour of Operation",name:"hour_of_operation",placeholder:"Enter Hour of Operation",hideIconBtnKey:"hour_of_operation_hide",hideIconBtnValue:!(null==n?void 0:n.hour_of_operation_hide)},toggleIcons:x,values:n,handleChange:d}),(0,_.jsx)(_X.Z,{field:{field_label:"Phone",name:"phone",placeholder:"Enter Phone",hideIconBtnKey:"phone_hide",hideIconBtnValue:!(null==n?void 0:n.phone_hide),toggleIcons:x},toggleIcons:x,values:n,handleChange:d}),(0,_.jsx)(_X.Z,{hideInput:!0,field:{field_label:"Address",name:"address",placeholder:"Enter Address",value:null===(t=n.address)||void 0===t?void 0:t.formattedAddress,type:"input",hideIconBtnKey:"address_hide",hideIconBtnValue:!(null==n?void 0:n.address_hide)},toggleIcons:x,values:n,children:(0,_.jsx)(_0,{onPlaceSelect:c,defaultValue:null===(l=n.address)||void 0===l?void 0:l.formattedAddress})})]})})},_5=(0,em.tv)({base:"B__group/get_in_touch B__max-w-full md:B__max-w-xl B__w-full B__py-6 B__px-8 B__bg-white/90 B__z-10 B__font-lato B__space-y-3",variants:{floating:{true:"B__absolute B__rounded-lg B__shadow-md B__left-0 md:B__left-8 B__bottom-8 B__scale-90 md:B__scale-100 ",false:""}}}),_3=e=>{var t,l;let{live:o,value:a,onChange:s,floating:n=!0}=e,[r,d]=(0,i.useState)(!1),c=e=>{s(e),d(!1)},{title:B="Get in touch",hour_of_operation_label:x="Hours of operation: "}=a;return(0,_.jsxs)(_.Fragment,{children:[r&&(0,_.jsx)(_2,{defaultState:a,handleClose:()=>d(!1),handleSave:c}),(!(null==a?void 0:a.address_hide)||!(null==a?void 0:a.hour_of_operation_hide)||!(null==a?void 0:a.hour_of_operation_label_hide)||!(null==a?void 0:a.phone_hide)||!(null==a?void 0:a.title_hide)||!o)&&(0,_.jsxs)("div",{className:_5({floating:n}),children:[(0,_.jsxs)("h2",{className:"B__text-2xl B__font-bold md:B__flex B__justify-between B__text-center md:B__text-left B__relative B__block",children:[!(null==a?void 0:a.title_hide)&&B,!o&&(0,_.jsx)("span",{className:"md:B__hidden group-hover/get_in_touch:B__inline-block B__absolute B__right-0",children:(0,_.jsx)(l5.mL,{className:"B__p-1 B__rounded-md B__bg-butternut-button",onClick:()=>d(e=>!e)})})]}),(0,_.jsxs)("div",{className:"B__space-y-3",children:[a.hour_of_operation&&(!(null==a?void 0:a.hour_of_operation_label_hide)||!(null==a?void 0:a.hour_of_operation_hide))&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-3",children:[(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[(0,_.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,_.jsx)("path",{d:"M12 6V12L16 14",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),(0,_.jsxs)("span",{className:"B__text-sm",children:[!(null==a?void 0:a.hour_of_operation_label_hide)&&x," ",!(null==a?void 0:a.hour_of_operation_hide)&&a.hour_of_operation]})]}),(null===(t=a.address)||void 0===t?void 0:t.formattedAddress)&&!(null==a?void 0:a.address_hide)&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-3",children:[(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 24 24",fill:"none",children:[(0,_.jsx)("path",{d:"M21 10C21 17 12 23 12 23C12 23 3 17 3 10C3 7.61305 3.94821 5.32387 5.63604 3.63604C7.32387 1.94821 9.61305 1 12 1C14.3869 1 16.6761 1.94821 18.364 3.63604C20.0518 5.32387 21 7.61305 21 10Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,_.jsx)("path",{d:"M12 13C13.6569 13 15 11.6569 15 10C15 8.34315 13.6569 7 12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),(0,_.jsx)("span",{className:"B__text-sm",children:null===(l=a.address)||void 0===l?void 0:l.formattedAddress})]}),a.phone&&!(null==a?void 0:a.phone_hide)&&(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-3",children:[(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,_.jsx)("path",{d:"M22.0014 16.9201V19.9201C22.0025 20.1986 21.9455 20.4743 21.8339 20.7294C21.7223 20.9846 21.5587 21.2137 21.3535 21.402C21.1483 21.5902 20.906 21.7336 20.6421 21.8228C20.3783 21.912 20.0988 21.9452 19.8214 21.9201C16.7442 21.5857 13.7884 20.5342 11.1914 18.8501C8.77523 17.3148 6.72673 15.2663 5.1914 12.8501C3.50138 10.2413 2.44964 7.27109 2.1214 4.1801C2.09641 3.90356 2.12927 3.62486 2.2179 3.36172C2.30652 3.09859 2.44897 2.85679 2.63616 2.65172C2.82336 2.44665 3.0512 2.28281 3.30519 2.17062C3.55917 2.05843 3.83374 2.00036 4.1114 2.0001H7.1114C7.5967 1.99532 8.06719 2.16718 8.43516 2.48363C8.80313 2.80008 9.04348 3.23954 9.1114 3.7201C9.23802 4.68016 9.47285 5.62282 9.8114 6.5301C9.94594 6.88802 9.97506 7.27701 9.8953 7.65098C9.81555 8.02494 9.63026 8.36821 9.3614 8.6401L8.0914 9.9101C9.51495 12.4136 11.5879 14.4865 14.0914 15.9101L15.3614 14.6401C15.6333 14.3712 15.9766 14.1859 16.3505 14.1062C16.7245 14.0264 17.1135 14.0556 17.4714 14.1901C18.3787 14.5286 19.3213 14.7635 20.2814 14.8901C20.7672 14.9586 21.2108 15.2033 21.5279 15.5776C21.8451 15.9519 22.0136 16.4297 22.0014 16.9201Z",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),(0,_.jsx)("span",{className:"B__text-sm",children:a.phone})]})]})]})]})};l(95247);let _4=e=>{let{place:t}=e,l=(0,_Y.Sx)();return(0,i.useEffect)(()=>{var e,_;l&&t&&(null===(e=t.geometry)||void 0===e?void 0:e.viewport)&&l.fitBounds(null===(_=t.geometry)||void 0===_?void 0:_.viewport)},[l,t]),null};var _6=i.memo(_4);let _9=e=>{let{isEditEnabled:t,onChange:l,pinCode:o,defaultCenter:a}=e,s=(0,_Y.lx)(),[n,r]=(0,i.useState)(!1),[d,c]=(0,i.useState)(a),B=(0,i.useRef)(),x=(0,i.useRef)(l);x.current=l;let[m,p]=(0,i.useState)(null);return((0,i.useEffect)(()=>{if(!s||!o)return r(!0);let e=new google.maps.Geocoder;e.geocode({address:o},(e,t)=>{if(t===google.maps.GeocoderStatus.OK&&(null==e?void 0:e.length)){var l;let t=e[0].geometry.location;c({lat:t.lat(),lng:t.lng()}),null===(l=x.current)||void 0===l||l.call(x,{location:{lat:t.lat(),lng:t.lng()},formattedAddress:e[0].formatted_address})}else console.error("Geocode failed: ".concat(t));r(!0)})},[s,o]),n)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(_Y.D5,{defaultZoom:14,gestureHandling:"greedy",disableDefaultUI:!1,defaultCenter:d,onClick:e=>{var l;t&&e.detail.latLng&&(c(e.detail.latLng),null===(l=x.current)||void 0===l||l.call(x,{location:e.detail.latLng},!0))}}),(0,_.jsx)(_Y.Jx,{position:d,ref:B}),t&&(0,_.jsx)(_Y.ZM,{position:_Y._D.TOP,children:(0,_.jsx)("div",{className:"autocomplete-control",children:(0,_.jsx)(_0,{onPlaceSelect:e=>{var t,l,_,i,o;p(e),null===(t=x.current)||void 0===t||t.call(x,{location:{lat:(null==e?void 0:null===(l=e.geometry)||void 0===l?void 0:null===(_=l.location)||void 0===_?void 0:_.lat())||0,lng:(null==e?void 0:null===(i=e.geometry)||void 0===i?void 0:null===(o=i.location)||void 0===o?void 0:o.lng())||0},formattedAddress:(null==e?void 0:e.formatted_address)||""})}})})}),(0,_.jsx)(_6,{place:m})]}):(0,_.jsx)(tx.Z,{})},_8=e=>{var t;let{viewMode:l,sectionLocation:o,id:a,slot:s,blockProps:n}=e,{websiteData:d,updateSectionData:c}=(0,i.useContext)(r.o)||{},B=e=>{null==c||c((0,_J.FX)({blockProps:e}),a,"website"===o,s)};return(0,_.jsx)(_Y.un,{apiKey:"AIzaSyAcF-dvTm5FXwxGKAJs3TiQh51Vvx-bFjI",children:(0,_.jsx)("div",{className:"B__group/mapv2 B__relative section-vertical-padding custom-container-max-width B__mx-auto ",children:(0,_.jsxs)("div",{className:"B__w-full md:B__h-[400px] xl:B__h-[550px] 2xl:B__h-[620px] B__overflow-hidden B__grid B__grid-cols-1 md:B__grid-cols-10 B__items-center B__bg-white B__gap-4 md:B__gap-0",children:[(0,_.jsx)("div",{className:"B__col-span-4 B__order-2 md:B__order-1",children:(0,_.jsx)(_3,{value:n,live:"live"===l,onChange:B,floating:!1})}),(0,_.jsx)("div",{className:"md:B__h-full B__w-full B__col-span-6 B__order-1 md:B__order-2 B__h-[400px]",children:(0,_.jsx)(_9,{pinCode:n.address.formattedAddress?void 0:null==d?void 0:null===(t=d.user_location)||void 0===t?void 0:t.user_zip,defaultCenter:n.address.location,onChange:e=>{B({...n,address:{...n.address,...e}})}},n.address.formattedAddress)})]})})})},_7=e=>{var t;let{viewMode:l,sectionLocation:o,id:a,slot:s,blockProps:n}=e,{websiteData:d,updateSectionData:c}=(0,i.useContext)(r.o)||{},B=e=>{null==c||c((0,_J.FX)({blockProps:e}),a,"website"===o,s)};return(0,_.jsx)(_Y.un,{apiKey:"AIzaSyAcF-dvTm5FXwxGKAJs3TiQh51Vvx-bFjI",children:(0,_.jsx)("div",{className:"B__group/mapv2 section-vertical-padding md:B__max-w-[80%] B__mx-auto custom-container-max-width",children:(0,_.jsxs)("div",{className:"B__w-full B__h-[400px] xl:B__h-[550px] 2xl:B__h-[620px] B__overflow-hidden B__rounded-primary B__relative",children:[(0,_.jsx)(_3,{value:n,live:"live"===l,onChange:B}),(0,_.jsx)(_9,{pinCode:n.address.formattedAddress?void 0:null==d?void 0:null===(t=d.user_location)||void 0===t?void 0:t.user_zip,defaultCenter:n.address.location,onChange:e=>{B({...n,address:{...n.address,...e}})}},n.address.formattedAddress)]})})})};(0,em.tv)({base:"B__mt-12 B__grid B__gap-5 B__max-w-lg B__mx-auto lg:B__grid-cols-4 lg:B__max-w-none",variants:{grid:{2:"md:B__grid-cols-2",3:"md:B__grid-cols-2 lg:B__grid-cols-3",4:"md:B__grid-cols-2 lg:B__grid-cols-4"}},defaultVariants:{grid:4}});let ie=e=>{let{reviews:t=[],sectionId:l,sectionLocation:i,viewMode:o,slot:a}=e;return(0,_.jsx)("div",{className:"B__mt-12 B__grid B__gap-7 B__max-w-lg B__mx-auto md:B__grid-cols-2 lg:B__grid-cols-3 xl:B__grid-cols-4 lg:B__max-w-none",children:t.map((e,t)=>(0,_.jsx)("div",{className:"B__flex B__flex-col B__rounded-lg B__shadow-lg B__overflow-hidden B__bg-white",children:(0,_.jsx)(io,{review:e,sectionId:l,index:t,viewMode:o,slot:a,sectionLocation:i})},t))})},it=e=>[2,5].includes(e)?2:1,il=e=>{switch(e){case 0:default:return 1;case 1:case 2:return 2;case 3:return 3;case 4:case 5:return 4}},i_=e=>[0,3].includes(e)?2:1,ii=e=>{let{reviews:t=[],sectionId:l,sectionLocation:i,viewMode:o,slot:a}=e,s=(0,y.F3)(t,6);return(0,_.jsxs)("div",{className:"md:B__mt-12 B__grid B__gap-5 B__max-w-lg B__mx-auto lg:B__max-w-none",children:[s.map((e,t)=>(0,_.jsx)("div",{className:"B__gap-5 B__max-w-lg B__mx-auto lg:B__grid-cols-4 lg:B__max-w-none B__grid-rows-[1fr_1fr] B__hidden md:B__grid",children:e.map((e,t)=>(0,_.jsx)("div",{className:"md:B__flex B__flex-col B__rounded-lg B__shadow-lg B__overflow-hidden B__bg-white",style:{gridRow:"".concat(it(t)," / span ").concat(i_(t)),gridColumnStart:il(t)},children:(0,_.jsx)(io,{review:e,sectionId:l,index:t,viewMode:o,slot:a,sectionLocation:i})},t))},t)),t.map((e,t)=>(0,_.jsx)("div",{className:"B__flex B__flex-col B__rounded-lg B__shadow-lg B__overflow-hidden md:B__hidden",children:(0,_.jsx)(io,{review:e,sectionId:l,index:t,viewMode:o,slot:a,sectionLocation:i})},t))]})},io=e=>{let{review:t,sectionId:l,sectionLocation:i,viewMode:o,slot:a,index:s}=e;return(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:a,type:o,deleteBtn:{itemIndex:s,deleteType:"item",itemKeyName:"items"},editBtn:{icon:!0,fields:[{name:"rating",placeholder:"Rating",type:"input",value:t.rating.toString()||"",key:"blockProps.items[".concat(s,"].rating"),field_label:"Rating"},{name:"title",placeholder:"Title",type:"input",value:t.title||"",key:"blockProps.items[".concat(s,"].title"),field_label:"Title"},{name:"Description",placeholder:"Description",type:"textarea",value:t.description||"",key:"blockProps.items[".concat(s,"].description"),field_label:"Description"}]},children:(0,_.jsx)("div",{className:"B__flex-1 B__px-6 B__py-6 B__flex B__flex-col B__justify-between",children:(0,_.jsxs)("div",{className:"B__flex B__flex-1 B__gap-[0.6rem] B__flex-col",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__fill-nav-scrolled",children:[(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"26",viewBox:"0 0 29 27",fill:"inherit",children:(0,_.jsx)("path",{d:"M14.5 0L17.7555 10.0193L28.2903 10.0193L19.7674 16.2115L23.0229 26.2307L14.5 20.0385L5.97711 26.2307L9.23257 16.2115L0.709681 10.0193L11.2445 10.0193L14.5 0Z",fill:"inherit",className:"B__fill-[#FDCC0D]"})}),(0,_.jsx)("span",{className:"B__ml-2 B__text-lg B__text-primary",children:t.rating})]}),(0,_.jsx)("p",{className:"B__text-xl B__font-semibold B__text-gray-900 B__font-primary",children:t.title}),(0,_.jsx)("p",{className:"B__text-sm B__text-primary",children:t.description})]})})})},ia=e=>{var t,l;let{id:i,sectionLocation:o,slot:a,viewMode:s,blockProps:n}=e;return(0,_.jsx)(S.Z,{sectionId:i,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"sectionType",placeholder:"Section Type",type:"input",value:null!==(t=n.sectionType)&&void 0!==t?t:"REVIEWS",key:"blockProps.sectionType",field_label:"Section Type"},{name:"title",placeholder:"Title",type:"input",value:n.title||"",key:"blockProps.title",field_label:"Title"},{name:"Sub Title",placeholder:"subTitle",type:"textarea",value:n.subTitle||"",key:"blockProps.subTitle",field_label:"Sub Title"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__mb-10",children:[(0,_.jsx)("h2",{className:"B__mb-6 B__text-lg lg:B__text-xl B__font-semibold B__text-primary B__tracking-wide B__uppercase B__max-w-lg",children:null!==(l=n.sectionType)&&void 0!==l?l:"REVIEWS"}),(0,_.jsx)("h3",{className:"B__text-left B__text-primary B__font-medium B__font-primary B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] !B__leading-tight B__relative B__break-words B__max-w-lg B__mb-4",children:(0,D.ZP)(n.title||"")}),(0,_.jsx)("p",{className:"B__text-base lg:B__text-xl B__text-primary B__max-w-lg",children:n.subTitle})]})})},is=e=>{var t;let{blockProps:l,id:i,sectionLocation:o,slot:a,viewMode:s}=e;return(0,_.jsxs)(eu,{className:"B__space-y-4",children:[(0,_.jsx)(ia,{blockProps:l,sectionLocation:o,id:i,viewMode:s,slot:a}),(0,_.jsx)(ie,{reviews:l.items,sectionId:i,slot:a,viewMode:s,sectionLocation:o}),(0,_.jsx)(S.Z,{sectionId:i,sectionLocation:o,slot:a,type:s,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==l?void 0:null===(t=l.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:i,parentKey:"blockProps.components",viewMode:s})]})},ir=e=>{var t;let{blockProps:l,id:i,slot:o,viewMode:a,sectionLocation:s}=e;return(0,_.jsxs)(eu,{className:"B__space-y-4",children:[(0,_.jsx)(ia,{blockProps:l,sectionLocation:s,id:i,viewMode:a,slot:o}),(0,_.jsx)(ii,{reviews:l.items,sectionId:i,slot:o,viewMode:a,sectionLocation:s}),l.items.length<=6&&(0,_.jsx)(S.Z,{sectionId:i,sectionLocation:s,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==l?void 0:null===(t=l.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:i,parentKey:"blockProps.components",viewMode:a})]})},id=e=>{let{sectionId:t,img:l,viewMode:i,index:o,sectionLocation:a,slot:s,title:n,keywords:r}=e;return(0,_.jsx)("div",{className:"B__relative B__mb-8",children:(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:a,slot:s,type:i,regenrateBtn:{key:"blockProps.menus[".concat(o,"].banner.img"),updateType:"item",keywords:r,isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Image",type:"file",value:null!=l?l:"",key:"blockProps.menus[".concat(o,"].banner.img"),aspectRatio:16/9,field_label:"Image"}]},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:null!=n?n:"",key:"blockProps.menus[".concat(o,"].banner.title"),field_label:"Title"}]},children:[(0,_.jsx)(w(),{src:(0,_J.jv)(l)?l:"https://plus.unsplash.com/premium_photo-1726001349395-bbb6fde714d8?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",alt:r,width:800,height:296,className:"B__w-full B__h-72 B__object-cover"}),(0,_.jsx)("div",{className:"custom-container-max-width B__mx-auto B__absolute B__inset-0 B__flex B__items-end",children:(0,_.jsx)("h3",{className:"B__text-primary B__text-4xl B__font-bold B__-translate-y-full B__font-primary",children:(0,D.ZP)(n||"")})})]})})},ic=e=>{var t;let{sectionId:l,menus:i,viewMode:o,sectionLocation:a,slot:s}=e;return(0,_.jsx)("div",{className:"B__grid B__grid-cols-2 md:B__grid-cols-4 B__gap-4 B__mb-8",children:i.map((e,i)=>(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:a,slot:s,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.banner.title||"Category Name",key:"blockProps.menus[".concat(i,"].banner.title"),field_label:"Title"}]},uploadBtn:{fields:[{name:"Image",type:"file",value:null!==(t=e.thumbnail.img)&&void 0!==t?t:"",key:"blockProps.menus[".concat(i,"].thumbnail.img"),placeholder:"Image"}]},children:(0,_.jsxs)("div",{className:"B__relative B__aspect-[7/9] B__rounded-lg B__overflow-hidden",children:[(0,_.jsx)(w(),{src:(0,_J.jv)(e.thumbnail.img)?e.thumbnail.img:"https://images.unsplash.com/photo-1706091843782-8629c9163299?q=80&w=3087&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",alt:e.thumbnail.keywords,layout:"fill",objectFit:"cover",className:"B__brightness-50"}),(0,_.jsx)("div",{className:"B__mb-10 B__absolute B__inset-0 B__flex B__flex-col B__items-center B__justify-end B__text-white",children:(0,_.jsx)("h3",{className:"B__text-lg lg:B__text-xl B__font-semibold B__mb-2 hover:B__underline B__p-2 B__text-center B__cursor-pointer",onClick:()=>{var t;null===(t=document.getElementById("".concat(e.banner.title.replaceAll(" ","-").toLowerCase())))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest"})},children:(0,D.ZP)(e.banner.title||"")})})]})},i))})},iB=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,blockProps:s}=e;return(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"sectionType",placeholder:"Section Type",type:"texteditor",value:null!==(t=s.sectionType)&&void 0!==t?t:"MENU",key:"blockProps.sectionType",field_label:"Section Type"},{name:"title",placeholder:"Title",type:"texteditor",value:s.title||"Our Menu",key:"blockProps.title",field_label:"Title"}]},children:(0,_.jsxs)("div",{className:"B__text-center B__mb-12 B__justify-center B__flex B__flex-col",children:[(0,_.jsx)("h2",{className:"B__mb-6 B__text-lg lg:B__text-xl B__font-semibold B__text-primary B__tracking-wide B__uppercase",children:s.sectionType?(0,D.ZP)(s.sectionType||""):"MENU"}),(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-medium B__font-primary B__text-2xl lg:B__text-[1.75rem] xl:B__text-5xl 2xl:B__text-[2.75rem] B__relative B__break-words B__mb-4 B__max-w-lg B__mx-auto",children:s.title?(0,D.ZP)(s.title||""):"Our Menu"})]})})},ix=e=>{var t,l,i;let{menuItems:o,banner:a,index:s,sectionLocation:n,sectionId:r,slot:d,viewMode:c}=e;return(0,_.jsxs)("div",{id:"#".concat(a.title.replaceAll(" ","-").toLowerCase()),children:[(0,_.jsx)(id,{index:s,...a,sectionLocation:n,sectionId:r,viewMode:c,slot:d}),(0,_.jsxs)("div",{className:"B__grid md:B__grid-cols-2 B__gap-x-8 B__px-3 B__mx-auto",children:[o.map((e,o)=>(0,_.jsx)(S.Z,{sectionId:r,sectionLocation:n,slot:d,type:c,deleteBtn:{deleteType:"item",itemIndex:o,itemKeyName:"menus[".concat(s,"]menuItems")},editBtn:{icon:!0,fields:[{name:"name",placeholder:"Name",type:"texteditor",value:null!==(t=e.name)&&void 0!==t?t:"",key:"blockProps.menus[".concat(s,"].menuItems[").concat(o,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:null!==(l=e.description)&&void 0!==l?l:"",key:"blockProps.menus[".concat(s,"].menuItems[").concat(o,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:null!==(i=e.price.toString())&&void 0!==i?i:"",key:"blockProps.menus[".concat(s,"].menuItems[").concat(o,"].price"),field_label:"Price"}]},children:(0,_.jsxs)("div",{className:"B__flex B__justify-between B__border-b B__border-primary B__pb-5 B__pt-3 B__items-center B__font-secondary",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("h4",{className:"B__font-semibold B__text-lg B__text-primary",children:e.name?(0,D.ZP)(e.name):"Name"}),(0,_.jsx)("p",{className:"B__text-sm B__text-primary B__mt-1 B__max-w-lg B__text-ellipsis font-bol",children:e.description?(0,D.ZP)(e.description):"Description"})]}),(0,_.jsx)("div",{className:"B__pl-10 B__font-semibold B__text-primary",children:e.price?(0,D.ZP)(e.price.toString()):"Price"})]})},o)),(0,_.jsx)(S.Z,{sectionId:r,sectionLocation:n,slot:d,type:c,addItemBtn:{key:"blockProps.menus[".concat(s,"].menuItems")}})]})]})};function im(e){var t,l;let{blockProps:i,sectionLocation:o,id:a,slot:s,viewMode:n}=e;return(0,_.jsxs)(eu,{children:[(0,_.jsx)(iB,{blockProps:i,sectionLocation:o,id:a,viewMode:n,slot:s}),(0,_.jsx)("div",{className:"B__space-y-32",children:null==i?void 0:null===(t=i.menus)||void 0===t?void 0:t.map((e,t)=>(0,_.jsx)(S.Z,{sectionId:a,sectionLocation:o,slot:s,type:n,deleteBtn:{deleteType:"item",itemIndex:t,itemKeyName:"menus",style:{right:-40}},children:(0,_.jsx)(ix,{index:t,...e,sectionLocation:o,sectionId:a,slot:s,viewMode:n},t)},t))}),(0,_.jsx)(S.Z,{sectionId:a,sectionLocation:o,slot:s,type:n,addItemBtn:{key:"blockProps.menus"}}),(0,_.jsx)(K,{components:null==i?void 0:null===(l=i.components)||void 0===l?void 0:l.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:a,parentKey:"blockProps.components",viewMode:n})]})}let ip=e=>{var t,l,i,o,a;let{menuItems:s,banner:n,reverse:r=!1,imageRounded:d=!1,index:c,sectionLocation:B,sectionId:x,slot:m,viewMode:p}=e;return(0,_.jsxs)("div",{id:"".concat(n.title.replaceAll(" ","-").toLowerCase()),className:"B__flex B__flex-col  B__gap-8 ".concat(r?"md:B__flex-row-reverse":"md:B__flex-row"),children:[(0,_.jsx)("div",{className:"md:B__w-1/2 B__max-h-96 B__flex B__items-center B__justify-center",children:(0,_.jsx)("div",{className:"B__overflow-hidden  B__flex B__items-center B__justify-center ".concat(r?"B__ml-auto":"B__mr-auto"),children:(0,_.jsx)(S.Z,{sectionId:x,sectionLocation:B,slot:m,type:p,regenrateBtn:{key:"blockProps.menus[".concat(c,"].banner.img"),updateType:"item",keywords:n.title,isImg:!0},uploadBtn:{fields:[{name:"Image",type:"file",value:null!==(t=n.img)&&void 0!==t?t:"",key:"blockProps.menus[".concat(c,"].banner.img"),placeholder:"Image"}]},children:(0,_.jsx)("img",{src:(0,_J.jv)(n.img)?n.img:"https://images.unsplash.com/photo-1706091843782-8629c9163299?q=80&w=3087&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",alt:n.title,className:"B__w-full B__h-full B__object-cover B__aspect-square B__max-h-96 ".concat(d?"B__rounded-full":"")})})})}),(0,_.jsxs)("div",{className:"md:B__w-1/2 B__mx-1 md:B__mx-0",children:[(0,_.jsx)("h4",{className:"B__font-main B__font-bold B__text-lg lg:B__text-xl xl:B__text-2xl 2xl:B__text-3xl B__break-words B__text-main B__border-b B__border-primary B__pb-2 B__mb-6",children:(0,_.jsx)(S.Z,{sectionId:x,sectionLocation:B,slot:m,type:p,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:null!==(l=n.title)&&void 0!==l?l:"",key:"blockProps.menus[".concat(c,"].banner.title"),field_label:"Title"}]},children:n.title?(0,D.ZP)(n.title):"Title"})}),(0,_.jsxs)("div",{children:[s.map((e,t)=>(0,_.jsx)(S.Z,{sectionId:x,sectionLocation:B,slot:m,type:p,deleteBtn:{deleteType:"item",itemIndex:t,itemKeyName:"menus[".concat(c,"]menuItems")},editBtn:{icon:!0,fields:[{name:"name",placeholder:"Name",type:"texteditor",value:null!==(i=e.name)&&void 0!==i?i:"",key:"blockProps.menus[".concat(c,"].menuItems[").concat(t,"].name"),field_label:"Name"},{name:"description",placeholder:"Description",type:"texteditor",value:null!==(o=e.description)&&void 0!==o?o:"",key:"blockProps.menus[".concat(c,"].menuItems[").concat(t,"].description"),field_label:"Description"},{name:"price",placeholder:"Price",type:"texteditor",value:null!==(a=e.price.toString())&&void 0!==a?a:"",key:"blockProps.menus[".concat(c,"].menuItems[").concat(t,"].price"),field_label:"Price"}]},children:(0,_.jsxs)("div",{className:"B__flex B__justify-between B__border-primary B__pb-0 B__items-center B__font-secondary \n                  ".concat(t===s.length-1?"B__border-0":"B__border-b B__pb-3","\n                  ").concat(0===t?"":"  B__pt-6","\n                "),children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("h4",{className:"B__font-semibold B__text-lg B__text-primary",children:e.name?(0,D.ZP)(e.name):"Name"}),(0,_.jsx)("p",{className:"B__text-sm B__text-primary B__mt-1 B__max-w-lg B__text-ellipsis",children:e.description?(0,D.ZP)(e.description):"Description"})]}),(0,_.jsx)("div",{className:"B__pl-10 B__font-semibold B__text-primary",children:e.price?(0,D.ZP)(e.price.toString()):"Price"})]})},t)),(0,_.jsx)(S.Z,{sectionId:x,sectionLocation:B,slot:m,type:p,addItemBtn:{key:"blockProps.menus[".concat(c,"].menuItems")}})]})]})]})},iu=e=>{var t;let{blockProps:l,sectionLocation:i,id:o,slot:a,viewMode:s,rounded:n=!1,showCategories:r=!1}=e;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(eu,{className:"B__space-y-12",children:[(0,_.jsx)(iB,{blockProps:l,sectionLocation:i,id:o,viewMode:s,slot:a}),r&&(0,_.jsx)(ic,{menus:l.menus,sectionLocation:i,sectionId:o,slot:a,viewMode:s}),l.menus.map((e,t)=>(0,_.jsx)(S.Z,{sectionId:o,sectionLocation:i,slot:a,type:s,deleteBtn:{deleteType:"item",itemIndex:t,itemKeyName:"menus",style:{right:-40}},children:(0,_.jsx)(ip,{index:t,...e,sectionLocation:i,sectionId:o,slot:a,viewMode:s,imageRounded:n,reverse:t%2==0})},t))]}),(0,_.jsx)(S.Z,{sectionId:o,sectionLocation:i,slot:a,type:s,addItemBtn:{key:"blockProps.menus"}}),(0,_.jsx)(K,{components:null==l?void 0:null===(t=l.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:o,parentKey:"blockProps.components",viewMode:s})]})},iv=(0,em.tv)({base:"B__grid B__gap-6 B__font-open-sans B__grid-cols-1",variants:{grid:{2:"md:B__grid-cols-2",3:"md:B__grid-cols-2 lg:B__grid-cols-3",4:"md:B__grid-cols-2 lg:B__grid-cols-4"}},defaultVariants:{grid:4}}),ih=(0,em.tv)({base:"overflow-hidden B__bg-card-surface B__rounded-lg B__shadow-card B__flex B__rounded-primary B__cursor-pointer",variants:{horizontal:{true:"B__w-full B__min-h-60 B__grid B__grid-cols-10",false:"B__flex-col"}}}),ig=e=>{let{blogs:t,grid:l=4}=e,o=(0,n.useRouter)(),a=l<=2,s=e=>t=>{var l,_,i,a;t.preventDefault(),window&&!g.EB.includes(window.location.host)?o.push("/".concat(null===(l=e.page_details)||void 0===l?void 0:l.slug,"/").concat((null==e?void 0:e.slug)||(null==e?void 0:null===(_=e._id)||void 0===_?void 0:_.$oid))):o.push("/live/".concat(e.website_id,"/").concat(null===(i=e.page_details)||void 0===i?void 0:i.slug,"/").concat((null==e?void 0:e.slug)||(null==e?void 0:null===(a=e._id)||void 0===a?void 0:a.$oid)))};return(0,_.jsx)("div",{className:iv({grid:l}),children:null==t?void 0:t.map((e,t)=>{var l,o,n,r,d,c,B,x,m;return(0,_.jsx)(i.Fragment,{children:(0,_.jsxs)("div",{className:ih({horizontal:a}),onClick:s(e),children:[(0,_.jsx)("div",{className:"B__w-full B__border B__col-span-4 B__overflow-hidden ".concat(a?"B__h-64":"B__h-52"),children:(0,_.jsx)("img",{src:null==e?void 0:null===(l=e.blockProps)||void 0===l?void 0:null===(o=l.card)||void 0===o?void 0:o.img,alt:"",className:"B__object-cover B__h-full B__w-full"})}),(0,_.jsxs)("div",{className:"B__p-5 B__space-y-6 B__col-span-6",children:[(0,_.jsx)("h3",{className:"B__font-main B__font-bold B__text-lg lg:B__text-xl xl:B__text-base 2xl:B__text-3xl B__break-words B__text-main B__line-clamp-2",children:(0,D.ZP)((null===(n=e.blockProps)||void 0===n?void 0:n.title)||"")}),(0,_.jsxs)("p",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-sm xl:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3.5 xl:B__mt-5 2xl:B__mt-6 B__line-clamp-3",children:[(0,D.ZP)((null==e?void 0:null===(r=e.blockProps)||void 0===r?void 0:null===(d=r.card)||void 0===d?void 0:null===(c=d.description)||void 0===c?void 0:c.slice(0,100))||""),(null==e?void 0:null===(B=e.blockProps)||void 0===B?void 0:null===(x=B.card)||void 0===x?void 0:null===(m=x.description)||void 0===m?void 0:m.length)>100?"...":""]})]})]})},t)})})},iy=e=>{var t,l;let{sectionId:i,sectionLocation:o,slot:a,viewMode:s,blockProps:n}=e;return(0,_.jsx)(S.Z,{sectionId:i,sectionLocation:o,slot:a,type:s,editBtn:{icon:!0,fields:[{name:"sectionType",placeholder:"Section Type",type:"input",value:null!==(t=n.sectionType)&&void 0!==t?t:"BLOGS",key:"blockProps.sectionType",field_label:"Section Type"},{name:"title",placeholder:"Title",type:"input",value:n.title||"",key:"blockProps.title",field_label:"Title"},{name:"Sub Title",placeholder:"subTitle",type:"textarea",value:n.subTitle||"",key:"blockProps.subTitle",field_label:"Sub Title"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__mb-10",children:[(0,_.jsx)(ef,{children:null!==(l=n.sectionType)&&void 0!==l?l:"REVIEWS"}),(0,_.jsx)(eh,{children:(0,D.ZP)(n.title)}),(0,_.jsx)(ey,{children:n.subTitle})]})})};var ib=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,[_,o]=(0,i.useState)([]),[a,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{s(!0),tm.Z.get("v2/get-recent-articles?website_id=".concat(e,"&limit=").concat(t,"&offset=").concat(l)).then(e=>{o(e.data),s(!1)})},[t,l,e]),{data:_,isLoading:a}};let ij=e=>{let{gridSize:t=4,blockProps:l,id:i,sectionLocation:o,slot:a,viewMode:s,websiteId:n}=e,{data:r,isLoading:d}=ib(n);return(0,_.jsxs)("section",{className:"B__font-secondary section-spacing section-vertical-padding custom-container-max-width B__mx-auto B__px-4 sm:B__px-6 lg:B__px-8 global_css",children:[(0,_.jsx)(iy,{blockProps:l,sectionLocation:o,sectionId:i,viewMode:s,slot:a}),(0,_.jsx)(ig,{blogs:r,grid:t})]})},ik=e=>{let{items:t=[],sectionId:l,sectionLocation:i,viewMode:o,slot:a,maxRows:s=2}=e;return(0,_.jsx)("div",{className:"B__mt-12 B__grid B__gap-5 B__max-w-lg B__mx-auto md:B__grid-cols-2 lg:B__grid-cols-3 lg:B__max-w-none",children:t.slice(0,3*s).map((e,t)=>(0,_.jsx)("div",{className:"B__flex B__flex-col B__rounded-lg B__shadow-lg B__overflow-hidden B__bg-white",children:(0,_.jsx)(iw,{item:e,sectionId:l,index:t,viewMode:o,slot:a,sectionLocation:i})},t))})},iw=e=>{var t;let{item:l,sectionId:i,sectionLocation:o,viewMode:a,slot:s,index:n}=e;return(0,_.jsx)(S.Z,{sectionId:i,sectionLocation:o,slot:s,type:a,uploadBtn:{fields:[{name:"Image",placeholder:"Image",type:"file",value:l.img,key:"items.".concat(n,".img")}]},deleteBtn:{itemIndex:n,deleteType:"item",itemKeyName:"items"},children:(0,_.jsx)("img",{className:"B__aspect-square B__object-cover B__w-full",src:null!==(t=l.img)&&void 0!==t?t:"https://images.unsplash.com/photo-1467007849282-42dad96c2312?q=80&w=2976&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",alt:l.description})})},iN=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e;return(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"input",value:a.title||"",key:"blockProps.title",field_label:"Title"},{name:"Sub Title",placeholder:"subTitle",type:"textarea",value:a.subTitle||"",key:"blockProps.subTitle",field_label:"Sub Title"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__mb-24",children:[(0,_.jsx)("h3",{className:"B__text-center  B__mx-auto B__text-primary B__font-medium B__font-primary B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-lg B__mb-4",children:(0,D.ZP)(a.title||"")}),(0,_.jsx)("p",{className:"B__text-center B__mx-auto B__text-base lg:B__text-xl B__text-primary B__max-w-lg",children:a.subTitle})]})})},iP=e=>{var t;let{maxRows:l,blockProps:i,id:o,sectionLocation:a,slot:s,viewMode:n}=e;return(0,_.jsxs)(eu,{className:"B__space-y-4",children:[(0,_.jsx)(iN,{blockProps:i,sectionLocation:a,id:o,viewMode:n,slot:s}),(0,_.jsx)(ik,{items:i.items,sectionId:o,slot:s,viewMode:n,sectionLocation:a,maxRows:l}),(0,_.jsx)(S.Z,{sectionId:o,sectionLocation:a,slot:s,type:n,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==i?void 0:null===(t=i.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:o,parentKey:"blockProps.components",viewMode:n})]})},iI=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,aboutUs:r,sectionType:d,img:c,img_keywords:B}=s;return(0,_.jsx)(eu,{className:"",children:(0,_.jsxs)("div",{className:"B__relative B__flex B__items-center",children:[(0,_.jsx)("div",{className:"B__relative B__w-[80%] lg:B__w-[45%] B__mx-auto custom-container-max-width B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20 B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"sectionType",placeholder:"Section Type",type:"input",value:d||"",key:"blockProps.sectionType",field_label:"Section Type"},{name:"title",placeholder:"Title",type:"texteditor",value:n||"",key:"blockProps.title",field_label:"Title"}]},children:[(0,_.jsx)("p",{className:"B__pb-3",children:d}),(0,_.jsx)("h3",{className:"B__text-center md:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(n||"")})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.aboutUs",keywords:"",isImg:!1},editBtn:{fields:[{name:"aboutUs",placeholder:"About Us",type:"texteditor",value:r||"",key:"blockProps.aboutUs",field_label:"About Us"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center md:B__text-left B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(r||"")})})]})}),(0,_.jsx)("div",{className:"B__hidden md:B__block B__w-[50%] B__h-full",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:B||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("img",{src:c,alt:(0,J.s9)(n),className:"B__w-full B__object-cover B__object-center B__h-[350px] lg:B__h-[420px] xl:B__h-[650px]"})})})]})})},iC=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,blockProps:a}=e,{title:s,aboutUs:n,sectionType:r,img:d,img_keywords:c}=a;return(0,_.jsx)(eu,{className:"",children:(0,_.jsxs)("div",{className:"B__relative B__flex B__items-center B__shadow-2xl",children:[(0,_.jsx)("div",{className:"B__hidden md:B__block B__w-[50%] B__h-full",children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:c||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("img",{src:d,alt:(0,J.s9)(s),className:"B__w-full B__object-cover B__object-center B__h-[350px] lg:B__h-[420px] xl:B__h-[600px]"})})}),(0,_.jsx)("div",{className:"B__relative B__w-[80%] lg:B__w-[40%] B__mx-auto custom-container-max-width B__rounded-primary",children:(0,_.jsxs)("div",{className:"B__py-9 lg:B__py-12 xl:B__py-16 2xl:B__py-20 B__px-4 md:B__px-6 lg:B__px-14 xl:B__px-16 2xl:B__px-20",children:[(0,_.jsxs)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.title",keywords:"",isImg:!1},editBtn:{fields:[{name:"sectionType",placeholder:"Section Type",type:"input",value:r||"",key:"blockProps.sectionType",field_label:"Section Type"},{name:"title",placeholder:"Title",type:"texteditor",value:s||"",key:"blockProps.title",field_label:"Title"}]},children:[(0,_.jsx)("p",{className:"B__pb-3",children:r}),(0,_.jsx)("h3",{className:"B__text-center md:B__text-left B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words",children:(0,D.ZP)(s||"")})]}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,regenrateBtn:{updateType:"key",key:"blockProps.aboutUs",keywords:"",isImg:!1},editBtn:{fields:[{name:"aboutUs",placeholder:"About Us",type:"texteditor",value:n||"",key:"blockProps.aboutUs",field_label:"About Us"}]},children:(0,_.jsx)("p",{className:"B__font-secondary B__text-center md:B__text-left B__text-primary B__text-base  B__font-normal B__mt-8 lg:B__mt-6 xl:B__mt-5 B__break-words",children:(0,D.ZP)(n||"")})})]})})]})})},iZ=e=>{let{year:t,heading:l,description:i,className:o,index:a,id:s,sectionLocation:n,slot:r,viewMode:d,item:c}=e;return(0,_.jsx)(iF,{index:a,id:s,sectionLocation:n,slot:r,viewMode:d,item:c,children:(0,_.jsx)("div",{className:"B__bg-primary-light B__p-6 B__rounded-lg ".concat(o),children:(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)("p",{className:"B__text-lg B__text-primary B__mb-3 B__font-secondary B__font-semibold",children:(0,D.ZP)(t||"")}),(0,_.jsx)("h3",{className:"B__text-xl B__font-semibold B__text-primary B__mb-2 B__mt-4 B__font-secondary",children:(0,D.ZP)(l||"")}),(0,_.jsx)("p",{className:"B__text-secondary B__font-secondary B__text-base",children:(0,D.ZP)(i||"")})]})})})},iT=(0,em.tv)({base:"B__w-[2px] B__h-12 B__mb-2 B__bg-primary B__rounded-full before:B__absolute B__relative after:B__flex after:B__bg-primary after:B__w-[7px] after:B__h-[7px] after:B__-translate-x-[2.5px] after:B__rounded-full after:B__absolute",variants:{reverse:{true:"",false:"after:B__bottom-0"}}}),iL=e=>{let{reverse:t=!1}=e;return(0,_.jsx)("div",{className:iT({reverse:t})})},iS=(0,em.tv)({slots:{year:"B__font-semibold B__text-primary B__absolute",title:"B__text-center B__flex B__flex-col B__items-center B__gap-4"},variants:{reverse:{true:{year:"B__top-10",title:"B__-top-2 B__absolute B__-translate-y-full B__flex-col-reverse B__mb-2"},false:{year:"B__-top-10",title:"B__mt-2"}}}}),iD=e=>{let{item:t,reverse:l,style:i,index:o,id:a,sectionLocation:s,slot:n,viewMode:r}=e,{year:d,title:c}=iS();return(0,_.jsx)("div",{className:"B__absolute",style:i,children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-center",children:[(0,_.jsx)("div",{className:"B__w-2 B__h-2 B__mb-2 B__bg-primary B__rounded-full B__outline-double B__outline-8 B__outline-[var(--background-color-primary)]"}),(0,_.jsx)(iF,{index:o,id:a,sectionLocation:s,slot:n,viewMode:r,item:t,style:{width:20,height:20,transform:"translateY(-50%) translateX(-50%)"},hideDescription:!0,children:(0,_.jsx)("span",{className:d({reverse:l}),children:t.year})}),(0,_.jsxs)("div",{className:c({reverse:l}),children:[(0,_.jsx)(iL,{reverse:l}),(0,_.jsx)(iF,{index:o,id:a,sectionLocation:s,slot:n,viewMode:r,item:t,style:{width:"unset",height:"unset"},hideDescription:!0,children:(0,_.jsx)("p",{className:"B__text-sm B__text-secondary",children:t.heading})})]})]})})},iF=e=>{let{children:t,index:l,id:o,sectionLocation:a,slot:s,viewMode:n,item:r,hideDescription:d,style:c}=e,B=(0,i.useMemo)(()=>{let e=[{name:"year",placeholder:"Year",type:"texteditor",value:r.year||"",key:"blockProps.items[".concat(l,"].year"),field_label:"Year"},{name:"heading",placeholder:"Heading",type:"texteditor",value:r.heading||"",key:"blockProps.items[".concat(l,"].heading"),field_label:"Heading"}],t={name:"Description",placeholder:"Description",type:"texteditor",value:r.description||"",key:"blockProps.items[".concat(l,"].description"),field_label:"Description"};return d||e.push(t),e},[r,l,d]);return(0,_.jsx)(S.Z,{sectionId:o,sectionLocation:a,slot:s,type:n,deleteBtn:{itemIndex:l,deleteType:"item",itemKeyName:"items",style:c},editBtn:{icon:!0,fields:B},style:c,children:t})},iE=e=>{let{blockProps:t,id:l,sectionLocation:i,slot:o,viewMode:a}=e;return(0,_.jsx)("div",{className:"B__relative B__flex B__w-full !B__py-[230px] section-vertical-padding",children:(0,_.jsx)(eu,{className:"B__flex B__flex-col B__w-full",children:(0,_.jsx)("div",{className:"B__flex B__items-center B__flex-grow",children:(0,_.jsxs)("div",{className:"B__w-full B__h-0.5 B__bg-primary B__relative",children:[t.items.map((e,t,s)=>(0,_.jsx)(iD,{index:t,id:l,sectionLocation:i,slot:o,viewMode:a,style:{left:"".concat(t*(100/s.length),"%"),width:"".concat(100/s.length%100,"%"),top:-3},reverse:t%2!=0,item:e},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"},style:{top:150}})]})})})})},iA=e=>{let{blockProps:t,id:l,sectionLocation:i,slot:o,viewMode:a}=e;return(0,_.jsxs)(eu,{className:"B__flex B__flex-col md:B__flex-row",verticalPadding:!1,children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"input",value:t.title||"",key:"blockProps.title",field_label:"Title"},{name:"Sub Title",placeholder:"subTitle",type:"textarea",value:t.subTitle||"",key:"blockProps.subTitle",field_label:"Sub Title"}]},children:(0,_.jsxs)("div",{className:"B__w-full B__md:w-8/12 B__pr-8 B__mb-8 B__md:mb-0 section-vertical-padding",children:[(0,_.jsx)(eh,{children:(0,D.ZP)(t.title||"")}),(0,_.jsx)(ey,{children:(0,D.ZP)(t.subTitle||"")})]})}),(0,_.jsxs)("div",{className:"B__w-full B__md:w-4/12 B__relative B__flex-grow",children:[(0,_.jsx)("div",{className:"B__absolute B__left-4 B__top-0 B__h-full B__w-3 B__bg-primary"}),(0,_.jsxs)("div",{className:"section-vertical-padding B__flex B__flex-col B__gap-8",children:[t.items.map((e,t)=>(0,_.jsxs)("div",{className:"B__mb-8 B__flex B__items-center B__pl-10",children:[(0,_.jsx)("div",{className:"B__absolute B__left-4 B__w-5 B__h-5 B__bg-white B__outline B__outline-8 B__outline-[var(--background-color-primary)] B__rounded-full B__-ml-1 B__border-0"}),(0,_.jsx)(iF,{id:l,sectionLocation:i,slot:o,viewMode:a,index:t,item:e,children:(0,_.jsxs)("div",{className:"B__ml-12",children:[(0,_.jsx)("p",{className:"B__text-lg B__text-primary B__mb-3 B__font-secondary B__font-semibold",children:(0,D.ZP)(e.year||"")}),(0,_.jsx)("h3",{className:"B__text-xl B__font-semibold B__text-primary B__mb-2 B__mt-4 B__font-secondary",children:(0,D.ZP)(e.heading||"")}),(0,_.jsx)("p",{className:"B__text-secondary B__max-w-sm B__font-secondary B__text-base",children:(0,D.ZP)(e.description||"")})]})})]},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}})]})]})]})},iH=e=>{let{blockProps:t,id:l,sectionLocation:i,slot:o,viewMode:a,lineWidth:s}=e;return(0,_.jsxs)(eu,{className:"md:B__flex-row !B__pb-0",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"input",value:t.title||"",key:"blockProps.title",field_label:"Title"},{name:"Sub Title",placeholder:"subTitle",type:"textarea",value:t.subTitle||"",key:"blockProps.subTitle",field_label:"Sub Title"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__mb-6",children:[(0,_.jsx)(eh,{children:(0,D.ZP)(t.title||"")}),(0,_.jsx)(ey,{children:(0,D.ZP)(t.subTitle||"")})]})}),(0,_.jsx)("div",{className:"B__flex",children:(0,_.jsxs)("div",{className:"B__relative B__mx-auto B__flex B__gap-x-5",children:[(0,_.jsx)("div",{className:"B__h-full lg:B__absolute B__left-1/2 B__-translate-x-1/2 B__top-0 B__bg-gradient-to-b B__from-white B__to-[var(--background-color-primary)] B__z-10",style:{width:null!=s?s:12}}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__flex-grow lg:B__w-[980px] B__z-10 B__pt-20",children:[(0,_.jsx)("div",{}),t.items.map((e,t)=>(0,_.jsxs)("div",{className:"B__mb-8 B__flex B__items-center B__flex-row-reverse lg:odd:B__mr-auto lg:even:B__ml-auto lg:odd:B__flex-row lg:even:B__flex-row-reverse lg:B__w-[500px] lg:B__gap-x-14",children:[(0,_.jsx)(iZ,{year:e.year,heading:e.heading,description:e.description,id:l,sectionLocation:i,slot:o,viewMode:a,index:t,item:e}),(0,_.jsx)("div",{className:"B__absolute B__-left-[10px] lg:B__static lg:left-0 lg:B__w-6 B__w-5 B__h-5 B__bg-white B__outline B__outline-8 B__outline-[var(--background-color-primary)] B__rounded-full B__border-0 B__z-10"})]},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"},style:{left:t.items.length%2!=0?"-30%":"30%"}})]})]})})]})},iz=e=>{let{blockProps:t,id:l,sectionLocation:i,slot:o,viewMode:a}=e;return(0,_.jsxs)(eu,{className:"B__flex lg:B__flex-row B__items-center B__flex-col",verticalPadding:!1,children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"input",value:t.title||"",key:"blockProps.title",field_label:"Title"},{name:"Sub Title",placeholder:"subTitle",type:"textarea",value:t.subTitle||"",key:"blockProps.subTitle",field_label:"Sub Title"}]},children:(0,_.jsxs)("div",{className:"w-full B__flex B__flex-col lg:B__w-5/6 section-vertical-padding",children:[(0,_.jsx)(eh,{center:!1,children:(0,D.ZP)(t.title||"")}),(0,_.jsx)(ey,{center:!1,children:(0,D.ZP)(t.subTitle||"")})]})}),(0,_.jsx)("div",{className:"B__flex B__w-full lg:B__w-1/2",children:(0,_.jsx)("div",{className:"B__relative B__mx-auto",children:(0,_.jsxs)("div",{className:"B__flex lg:B__flex-col B__flex-row B__flex-grow lg:B__w-[700px] B__z-10 lg:B__pt-20 lg:B__gap-20 B__relative section-vertical-padding",children:[(0,_.jsx)("div",{className:"B__absolute lg:B__left-[23.7%] B__-translate-x-1/2 B__top-0 B__h-full B__w-3 B__bg-primary B__z-10"}),(0,_.jsxs)("div",{className:"B__relative B__gap-10 B__flex B__flex-col B__ml-10 lg:B__ml-0",children:[t.items.map((e,t)=>(0,_.jsx)(iF,{id:l,sectionLocation:i,slot:o,viewMode:a,index:t,item:e,children:(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__grid lg:B__grid-cols-10 lg:B__gap-20 B__relative",children:[(0,_.jsxs)("div",{className:"B__col-span-2",children:[(0,_.jsx)("p",{className:"B__text-lg B__text-primary B__font-secondary B__font-semibold",children:(0,D.ZP)(e.year||"")}),(0,_.jsx)("h3",{className:"B__text-xl B__font-semibold B__text-primary B__mb-2 B__mt-2 B__font-secondary",children:(0,D.ZP)(e.heading||"")})]}),(0,_.jsx)("div",{className:"B__col-span-1 B__block lg:B__relative",children:(0,_.jsx)("div",{className:"B__absolute B__-left-[46px] lg:B__left-0 B__w-5 B__h-5 B__bg-white B__outline B__outline-8 B__outline-[var(--background-color-primary)] B__rounded-full B__-ml-1 B__border-0 B__z-30"})}),(0,_.jsx)("p",{className:"B__text-secondary B__max-w-sm B__font-secondary B__text-base B__col-span-6",children:(0,D.ZP)(e.description||"")})]})},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}})]})]})})})]})},iM=e=>{let{blockProps:t,id:l,sectionLocation:i,slot:o,viewMode:a}=e;return(0,_.jsxs)(eu,{enableCTA:!0,className:"md:B__flex-row !B__pb-0",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"input",value:t.title||"",key:"blockProps.title",field_label:"Title"},{name:"Sub Title",placeholder:"subTitle",type:"textarea",value:t.subTitle||"",key:"blockProps.subTitle",field_label:"Sub Title"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__mb-6",children:[(0,_.jsx)(eh,{children:(0,D.ZP)(t.title||"")}),(0,_.jsx)(ey,{children:(0,D.ZP)(t.subTitle||"")})]})}),(0,_.jsx)("div",{className:"B__flex B__justify-center",children:(0,_.jsxs)("div",{className:"B__relative lg:B__ml-10 B__flex-grow B__max-w-4xl",children:[(0,_.jsx)("div",{className:"B__absolute B__left-[10px] B__-translate-x-1/2 B__top-0 B__h-full B__w-1 B__bg-gradient-to-b B__from-white B__to-[var(--background-color-primary)] B__z-10"}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__flex-grow B__z-10 B__pt-20",children:[t.items.map((e,t)=>(0,_.jsxs)("div",{className:"B__mb-8 B__flex B__items-center B__ml-auto B__w-full B__gap-x-5 lg:B__gap-x-14",children:[(0,_.jsx)("div",{className:"B__w-5 B__h-5 B__min-w-[20px] B__aspect-square B__bg-white B__outline B__outline-8 B__outline-[var(--background-color-primary)] B__rounded-full B__border-0 B__z-10"}),(0,_.jsx)(iZ,{className:"B__w-full",year:e.year,heading:e.heading,description:e.description,id:l,sectionLocation:i,slot:o,viewMode:a,index:t,item:e})]},t)),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}})]})]})})]})},iU=e=>{let{blockProps:t,id:l,sectionLocation:i,slot:o,viewMode:a}=e;return(0,_.jsxs)(eu,{className:"md:B__flex-row !B__pb-0 B__font-primary",children:[(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"input",value:t.title||"",key:"blockProps.title",field_label:"Title"},{name:"Sub Title",placeholder:"subTitle",type:"textarea",value:t.subTitle||"",key:"blockProps.subTitle",field_label:"Sub Title"}]},children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__mb-6",children:[(0,_.jsx)(eh,{children:(0,D.ZP)(t.title||"")}),(0,_.jsx)(ey,{children:(0,D.ZP)(t.subTitle||"")})]})}),(0,_.jsx)("div",{className:"B__flex",children:(0,_.jsx)("div",{className:"B__relative B__mx-auto",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__flex-grow B__z-10",children:[(0,_.jsx)("div",{}),(0,_.jsxs)("div",{className:"flex items-center justify-center mb-16 space-x-4",children:[(0,_.jsx)("div",{className:"B__flex B__justify-center B__items-center B__mb-16 B__gap-10 B__py-8 lg:B__py-32 B__flex-col lg:B__flex-row ",children:t.items.map((e,t,s)=>(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-10 B__items-center lg:B__flex-row lg:B__justify-center",children:[(0,_.jsx)(iF,{id:l,sectionLocation:i,slot:o,viewMode:a,index:t,hideDescription:!0,item:e,children:(0,_.jsxs)("div",{className:"B__flex B__items-center B__relative B__text-center B__flex-col",children:[(0,_.jsx)("div",{className:"B__w-36 B__h-36 B__bg-primary B__rounded-full B__flex B__items-center B__justify-center B__text-white B__text-2xl B__font-bold",children:(0,D.ZP)(e.year||"")}),(0,_.jsx)("h2",{className:"B__text-center B__text-lg B__font-semibold lg:B__absolute lg:B__-bottom-0 B__translate-y-[calc(100%+1.5rem)]",children:(0,D.ZP)(e.heading||"")})]})}),t<s.length-1&&(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-center B__w-12 B__rotate-90 lg:B__rotate-0",children:(0,_.jsx)("svg",{width:"41",height:"12",viewBox:"0 0 41 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_.jsx)("path",{d:"M41 6L31 0.226497V11.7735L41 6ZM0 7H32V5H0V7Z",fill:"black"})})})]},e.year))}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}})]})]})})})]})},iV=(0,em.tv)({slots:{img:"B__w-full",imgWrapper:"B__w-full lg:B__w-[50%] B__relative B__flex B__justify-center B__z-[1]"},variants:{imageContained:{true:{img:"lg:B__h-full B__rounded-primary B__max-h-full",imgWrapper:"B__h-[280px] lg:B__h-[calc(100dvh_-_128px)] B__px-10 B__py-10 lg:B__px-32 lg:B__py-20 B__bg-primary-light-20 B__max-w-[45%]"},false:{img:"B__h-[280px] lg:B__h-[calc(100dvh_-_128px)]"}},reverse:{true:{img:"lg:even:B__flex-row-reverse"},false:{img:"lg:odd:B__flex-row-reverse"}}},defaultVariants:{imageContained:!1}}),iR=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n,reverse:r=!1,imageContained:d=!1}=e,{items:c}=n,{img:B,imgWrapper:x}=iV({imageContained:d,reverse:r});return(0,_.jsx)("div",{className:"",children:(0,_.jsxs)("div",{className:"B__mx-auto global_css",children:[(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:c.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__gap-5 lg:B__gap-8 B__w-full B__flex-col lg:B__flex-row ".concat(r?"lg:even:B__flex-row-reverse":"lg:odd:B__flex-row-reverse"," B__rounded-primary"),children:[(0,_.jsx)("div",{className:x({reverse:r,imageContained:d}),children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"B__w-full",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:B({imageContained:d})})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%] xl:B__w-[40%] B__text-center lg:B__text-left B__p-[5%]  B__flex-grow B__flex B__flex-col B__justify-center B__items-center",children:[(0,_.jsxs)("div",{children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main B__max-w-lg",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5 B__max-w-lg",children:(0,D.ZP)(e.description||"")})]})," "]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})})},iW=e=>{let{id:t,sectionLocation:l,slot:i,viewMode:o,active:a,blockProps:s}=e,{title:n,items:r}=s;return(0,_.jsxs)("div",{className:"B__mx-auto global_css",children:[(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:r.map((e,a)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__gap-5 lg:B__gap-20 B__w-full B__flex-col lg:B__flex-col B__rounded-primary",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[100%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(a,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"B__w-full",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(a,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[40dvh]"})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[50%] B__text-center lg:B__text-left custom-container-max-width",children:[(0,_.jsxs)(S.Z,{sectionId:t,type:o,sectionLocation:l,slot:i,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:a},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:a,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(a,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(a,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:t,parentKey:"blockProps.items[".concat(a,"].components"),viewMode:o})]})]},a)})}),(0,_.jsx)(S.Z,{sectionId:t,sectionLocation:l,slot:i,type:o,addItemBtn:{key:"blockProps.items"}})]})},iK=e=>{var t;let{id:l,sectionLocation:i,slot:o,viewMode:a,active:s,blockProps:n}=e,{title:r,items:d}=n;return(0,_.jsxs)("div",{className:"B__mx-auto global_css",children:[(0,_.jsx)("div",{className:"B__flex B__mx-auto B__items-center B__justify-center 2xl:B__mt-[3.75rem] B__flex-col B__gap-[18px] md:B__gap-[25px] lg:B__gap-12 xl:B__gap-[3.75rem] 2xl:B__gap-[5.6rem]",children:d.map((e,t)=>{var s;return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__gap-5 lg:B__gap-20 B__w-full B__flex-col lg:B__flex-col B__rounded-primary B__relative",children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[100%] B__relative",style:{display:"flex",justifyContent:"center",zIndex:1},children:(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,style:{zIndex:"unset"},buttonsWrapperClasses:"!B__top-[10%]",regenrateBtn:{updateType:"key",key:"blockProps.items[".concat(t,"].img"),keywords:(null==e?void 0:e.img_keywords)||"",isImg:!0},className:"B__w-full",uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.items[".concat(t,"].img")}]},children:(0,_.jsx)(w(),{alt:(0,J.s9)(e.title),src:e.img,height:520,width:700,style:{objectFit:"cover",boxShadow:"0px 42.44px 61.30px 0px #00000014"},className:"B__w-full B__h-[calc(100dvh-64px)]"})})}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[50%] B__text-center custom-container-max-width B__absolute B__bottom-20 B__z-10 B__p-10 B__bg-white B__bg-opacity-50 B__rounded-primary B__shadow-sm",children:[(0,_.jsxs)(S.Z,{sectionId:l,type:a,sectionLocation:i,slot:o,style:{height:void 0,zIndex:"unset"},deleteBtn:{deleteType:"item",itemIndex:t},regenrateBtn:{updateType:"item",key:"blockProps.items",itemIndex:t,keywords:null==e?void 0:e.keywords,isImg:!1},editBtn:{fields:[{name:"title",placeholder:"Title",type:"texteditor",value:e.title,regenerateBtn:!0,key:"blockProps.items[".concat(t,"].title"),field_label:"Title"},{name:"description",placeholder:"Description",type:"texteditor",value:e.description,key:"blockProps.items[".concat(t,"].description"),field_label:"Description"}]},children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__break-words B__text-main",children:(0,D.ZP)(e.title||"")}),(0,_.jsx)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-2.5 lg:B__mt-3 xl:B__mt-4 2xl:B__mt-5",children:(0,D.ZP)(e.description||"")})]}),(0,_.jsx)(K,{components:null==e?void 0:null===(s=e.components)||void 0===s?void 0:s.filter(e=>"cta-button"===e.slot),className:"B__my-4",wrapperClassName:"B__relative B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.items[".concat(t,"].components"),viewMode:a})]})]},t)})}),(0,_.jsx)(S.Z,{sectionId:l,sectionLocation:i,slot:o,type:a,addItemBtn:{key:"blockProps.items"}}),(0,_.jsx)(K,{components:null==n?void 0:null===(t=n.components)||void 0===t?void 0:t.filter(e=>"cta-button"===e.slot),className:"B__my-5",wrapperClassName:"B__flex B__justify-center B__items-center",sectionId:l,parentKey:"blockProps.components",viewMode:a})]})},iq=_$()(()=>l.e(4955).then(l.bind(l,64955)),{loadableGenerated:{webpack:()=>[64955]},ssr:!1}),iO=(e,t,l,i,o)=>{let a={viewMode:t,websiteId:l,sectionLocation:i,slot:o,key:null==e?void 0:e.id};switch(e.type){case"banner_v1":return(0,_.jsx)(F,{...e,...a});case"banner_v2":return(0,_.jsx)(E,{...e,...a});case"banner_v3":return(0,_.jsx)(A,{...e,...a});case"banner_v4":return(0,_.jsx)(H,{...e,...a});case"banner_v5":return(0,_.jsx)(z,{...e,...a});case"services_v1":return(0,_.jsx)(Q,{...e,...a});case"services_v2":return(0,_.jsx)(X,{...e,...a});case"services_v3":return(0,_.jsx)(ee,{...e,...a});case"services_v4":return(0,_.jsx)(et,{...e,...a});case"services_v5":return(0,_.jsx)(el,{...e,...a});case"services_v6":return(0,_.jsx)(eo,{...e,...a});case"features_v1":return(0,_.jsx)(er,{...e,...a});case"features_v2":return(0,_.jsx)(ed,{...e,...a});case"features_v3":return(0,_.jsx)(ec,{...e,...a});case"features_v4":return(0,_.jsx)(eB,{...e,...a});case"features_v5":return(0,_.jsx)(ex,{...e,...a});case"testimonials_v1":return(0,_.jsx)(eA,{...e,...a});case"testimonials_v2":return(0,_.jsx)(eM,{...e,...a});case"testimonials_v3":return(0,_.jsx)(eR,{...e,...a});case"testimonials_v4":return(0,_.jsx)(eq,{...e,...a});case"testimonials_v5":return(0,_.jsx)(e$,{...e,...a});case"testimonials_v6":return(0,_.jsx)(eQ,{...e,...a});case"quotes_v1":return(0,_.jsx)($,{...e,...a});case"quotes_v2":return(0,_.jsx)(Y,{...e,...a});case"team_v1":return(0,_.jsx)(eT,{...e,...a});case"team_v2":return(0,_.jsx)(eL,{...e,...a});case"team_v3":return(0,_.jsx)(eS,{...e,...a});case"team_v4":return(0,_.jsx)(eD,{...e,...a});case"textlist_v1":return(0,_.jsx)(eX,{...e,...a});case"textlist_v2":return(0,_.jsx)(e0,{...e,...a});case"textlist_v3":return(0,_.jsx)(e5,{...e,...a});case"faq_v1":return(0,_.jsx)(q,{...e,...a});case"clients_v1":return(0,_.jsx)(en,{...e,...a});case"newsletter_v1":return(0,_.jsx)(eZ,{...e,...a,formDirection:"row"});case"newsletter_v2":return(0,_.jsx)(eZ,{...e,...a,formDirection:"column"});case"newsletter_v3":return(0,_.jsx)(eZ,{...e,...a,formDirection:"column",hasImage:!0});case"newsletter_v4":return(0,_.jsx)(eZ,{...e,...a,fullWidth:!0});case"gallery_v1":return(0,_.jsx)(e9,{...e,...a});case"contactus_v1":return(0,_.jsx)(e7,{...e,...a});case"embed_v1":return(0,_.jsx)(iq,{...e,...a});case"imagesection_v1":return(0,_.jsx)(tl,{...e,...a});case"multicoltext_v1":return(0,_.jsx)(t_,{...e,...a});case"video_v1":return(0,_.jsx)(to,{...e,...a});case"googleanalytics_v1":return(0,_.jsx)(ta,{...e,...a});case"aboutus_v1":return(0,_.jsx)(tr,{...e,...a});case"p_aboutus_v2":return(0,_.jsx)(iI,{...e,...a});case"p_aboutus_v3":return(0,_.jsx)(iC,{...e,...a});case"customcode_v1":return(0,_.jsx)(tu,{...e,...a});case"chatbot_v1":return(0,_.jsx)(ty,{...e,...a});case"p_services_v1":return(0,_.jsx)(tb,{...e,...a});case"p_services_v2":case"p_layout_three_column_v2":return(0,_.jsx)(tj,{...e,...a,gridSize:3});case"p_services_v3":case"p_layout_three_column_v1":return(0,_.jsx)(tk,{...e,...a});case"p_services_v4":return(0,_.jsx)(tw,{...e,...a});case"p_services_v6":case"p_services_v6":case"p_layout_two_column_v2":return(0,_.jsx)(tI,{...e,...a});case"p_services_v5":return(0,_.jsx)(tN,{...e,...a});case"p_services_v7":return(0,_.jsx)(tC,{...e,...a});case"p_services_v8":return(0,_.jsx)(tN,{...e,...a,border:!1,center:!1});case"p_services_v9":return(0,_.jsx)(tZ,{...e,...a});case"p_services_v10":return(0,_.jsx)(tT,{...e,...a});case"p_services_v11":return(0,_.jsx)(tL,{...e,...a});case"p_services_v12":return(0,_.jsx)(tS,{...e,...a});case"p_services_v13":return(0,_.jsx)(tD,{...e,...a});case"p_banner_v1":return(0,_.jsx)(tF,{...e,...a});case"p_banner_v2":return(0,_.jsx)(tE,{...e,...a});case"p_banner_v3":return(0,_.jsx)(tA,{...e,...a,showGradientBackground:!0});case"p_banner_v4":return(0,_.jsx)(tH,{...e,...a});case"p_banner_v5":return(0,_.jsx)(tz,{...e,...a});case"p_banner_v6":return(0,_.jsx)(tA,{...e,...a});case"p_difference_v1":return(0,_.jsx)(tM,{...e,...a});case"p_statistics_v1":return(0,_.jsx)(tU,{...e,...a});case"p_statistics_v2":return(0,_.jsx)(tV,{...e,...a});case"p_statistics_v3":return(0,_.jsx)(tR,{...e,...a});case"p_statistics_v4":return(0,_.jsx)(tW,{...e,...a});case"p_statistics_v5":return(0,_.jsx)(tK,{...e,...a});case"p_statistics_v6":return(0,_.jsx)(tq,{...e,...a});case"p_gallery_v1":return(0,_.jsx)(tO,{...e,...a});case"p_gallery_v2":case"p_layout_photos_gallery_v1":return(0,_.jsx)(t$,{...e,...a});case"p_gallery_v3":return(0,_.jsx)(tY,{...e,...a});case"p_gallery_v4":return(0,_.jsx)(tJ,{...e,...a});case"p_gallery_v5":return(0,_.jsx)(tQ,{...e,...a});case"p_gallery_v6":return(0,_.jsx)(tX,{...e,...a});case"p_gallery_v7":return(0,_.jsx)(t0,{...e,...a});case"p_gallery_v8":return(0,_.jsx)(t1,{...e,...a});case"p_gallery_v9":return(0,_.jsx)(t2,{...e,...a});case"p_testimonials_v1":return(0,_.jsx)(t9,{...e,...a});case"p_testimonials_v2":return(0,_.jsx)(t8,{...e,...a});case"p_testimonials_v3":return(0,_.jsx)(t7,{...e,...a});case"p_testimonials_v4":return(0,_.jsx)(le,{...e,...a});case"p_testimonials_v5":return(0,_.jsx)(lt,{...e,...a});case"p_testimonials_v6":return(0,_.jsx)(li,{...e,...a});case"p_testimonials_v7":return(0,_.jsx)(lo,{...e,...a});case"p_faq_v1":return(0,_.jsx)(t5,{...e,...a});case"p_faq_v2":case"p_faq_v5":return(0,_.jsx)(t3,{...e,...a});case"p_faq_v3":return(0,_.jsx)(t4,{...e,...a});case"p_faq_v4":return(0,_.jsx)(t6,{...e,...a});case"p_portfolio_v1":return(0,_.jsx)(la,{...e,...a});case"p_clients_v1":return(0,_.jsx)(ls,{...e,...a});case"p_clients_v2":return(0,_.jsx)(ln,{...e,...a});case"p_clients_v3":return(0,_.jsx)(lr,{...e,...a});case"p_clients_v4":return(0,_.jsx)(ld,{...e,...a});case"p_clients_v5":return(0,_.jsx)(lc,{...e,...a});case"p_clients_v6":return(0,_.jsx)(lB,{...e,...a});case"p_clientsquotes_v1":return(0,_.jsx)(lx,{...e,...a});case"p_text_v1":return(0,_.jsx)(lp,{...e,...a});case"p_quotes_v1":return(0,_.jsx)(lm,{...e,...a});case"p_contactus_v1":return(0,_.jsx)(lu,{...e,...a});case"p_contactus_v2":return(0,_.jsx)(lv,{...e,...a});case"p_contactus_v3":return(0,_.jsx)(lh,{...e,...a});case"p_contactus_v4":return(0,_.jsx)(lg,{...e,...a});case"p_contactus_v5":return(0,_.jsx)(ly,{...e,...a});case"p_contactus_v6":return(0,_.jsx)(lb,{...e,...a});case"p_contactus_v7":return(0,_.jsx)(lf,{...e,...a});case"p_contactus_vcustom":return(0,_.jsx)(lj,{...e,...a});case"p_bookanappointment_v1":return(0,_.jsx)(lk,{...e,...a});case"p_bookanappointment_v2":return(0,_.jsx)(lw,{...e,...a});case"p_bookanappointment_v3":return(0,_.jsx)(lN,{...e,...a});case"p_journey_v1":return(0,_.jsx)(lP,{...e,...a});case"p_journey_v2":return(0,_.jsx)(lI,{...e,...a});case"p_journey_v3":return(0,_.jsx)(lC,{...e,...a});case"p_journey_v4":return(0,_.jsx)(lZ,{...e,...a});case"p_founders_v1":return(0,_.jsx)(lT,{...e,...a});case"p_founders_v2":return(0,_.jsx)(lL,{...e,...a});case"p_founders_v3":return(0,_.jsx)(lS,{...e,...a});case"p_founders_v4":return(0,_.jsx)(lE,{...e,...a});case"p_missions_v1":return(0,_.jsx)(lA,{...e,...a});case"p_vision_v1":return(0,_.jsx)(lH,{...e,...a});case"p_vision_v2":return(0,_.jsx)(lz,{...e,...a});case"p_vision_v3":return(0,_.jsx)(lM,{...e,...a});case"p_vision_v4":return(0,_.jsx)(lU,{...e,...a});case"p_map_v1":return(0,_.jsx)(lV,{...e,...a});case"p_map_v2":return(0,_.jsx)(_8,{...e,...a});case"p_map_v3":return(0,_.jsx)(_7,{...e,...a});case"p_reviews_v1":return(0,_.jsx)(is,{...e,...a});case"p_reviews_v2":return(0,_.jsx)(ir,{...e,...a});case"p_social_v1":return(0,_.jsx)(iP,{...e,...a,maxRows:1});case"p_social_v2":return(0,_.jsx)(iP,{...e,...a,maxRows:2});case"p_blog_v1":return(0,_.jsx)(ij,{...e,...a});case"p_blog_v2":return(0,_.jsx)(ij,{...e,...a,gridSize:2});case"p_blog_v3":return(0,_.jsx)(ij,{...e,...a,gridSize:3});case"p_menu_v1":return(0,_.jsx)(im,{...e,...a});case"p_menu_v2":return(0,_.jsx)(iu,{...e,...a});case"p_menu_v3":return(0,_.jsx)(iu,{...e,...a,showCategories:!0});case"p_menu_v4":return(0,_.jsx)(iu,{...e,...a,rounded:!0});case"p_menu_v5":case"p_spa_v1":return(0,_.jsx)(im,{...e,...a,showCategories:!0,rounded:!0});case"p_timeline_v1":return(0,_.jsx)(iE,{...e,...a});case"p_timeline_v2":return(0,_.jsx)(iA,{...e,...a});case"p_timeline_v3":case"p_timeline_v6":return(0,_.jsx)(iH,{...e,...a});case"p_timeline_v4":return(0,_.jsx)(iz,{...e,...a});case"p_timeline_v5":return(0,_.jsx)(iM,{...e,...a});case"p_timeline_v7":return(0,_.jsx)(iU,{...e,...a});case"p_team_v1":return(0,_.jsx)(lR,{...e,...a});case"p_team_v2":case"p_layout_photos_team_v1":return(0,_.jsx)(lW,{...e,...a});case"p_team_v3":return(0,_.jsx)(lK,{...e,...a});case"p_team_v4":return(0,_.jsx)(lq,{...e,...a});case"p_team_v5":return(0,_.jsx)(lO,{...e,...a});case"p_pricingplan_v1":return(0,_.jsx)(lG,{...e,...a});case"p_pricingplan_v2":return(0,_.jsx)(l$,{...e,...a});case"p_pricingplan_v3":return(0,_.jsx)(lY,{...e,...a});case"p_pricingplan_v4":return(0,_.jsx)(lJ,{...e,...a});case"p_pricingplan_v5":return(0,_.jsx)(lQ,{...e,...a});case"p_pricingplan_v6":return(0,_.jsx)(lX,{...e,...a});case"p_pricingplan_v7":return(0,_.jsx)(l0,{...e,...a});case"p_pricingplan_v8":return(0,_.jsx)(l1,{...e,...a});case"p_pricingplan_v9":return(0,_.jsx)(l2,{...e,...a});case"p_privacypolicy_v1":return(0,_.jsx)(l3,{...e,...a});case"p_tnc_v1":return(0,_.jsx)(l4,{...e,...a});case"f_newsletter_v1":return(0,_.jsx)(_p,{...e,...a});case"h_banner_v1":return(0,_.jsx)(l6,{...e,...a,showThemeBackground:!0});case"h_banner_v2":return(0,_.jsx)(l9,{...e,...a});case"h_banner_v3":return(0,_.jsx)(l8,{...e,...a});case"h_banner_v4":return(0,_.jsx)(l7,{...e,...a});case"h_banner_v5":return(0,_.jsx)(_e,{...e,...a});case"h_banner_v6":return(0,_.jsx)(_t,{...e,...a});case"h_banner_v7":return(0,_.jsx)(l6,{...e,...a});case"h_features_v1":return(0,_.jsx)(_l,{...e,...a});case"h_features_v2":return(0,_.jsx)(__,{...e,...a});case"h_features_v3":return(0,_.jsx)(_i,{...e,...a});case"h_features_v4":return(0,_.jsx)(_o,{...e,...a});case"h_features_v5":return(0,_.jsx)(_a,{...e,...a});case"h_features_v6":return(0,_.jsx)(_s,{...e,...a});case"h_features_v7":return(0,_.jsx)(_n,{...e,...a});case"h_features_v8":return(0,_.jsx)(_r,{...e,...a});case"h_features_v9":return(0,_.jsx)(_d,{...e,...a});case"p_layout_text_image_v1":return(0,_.jsx)(_i,{...e,...a,imgClassName:"B__h-[280px] lg:B__h-[500px] xl:B__h-[550px] 2xl:B__h-[600px]"});case"p_layout_image_text_v1":return(0,_.jsx)(_i,{...e,...a,reverse:!0,imgClassName:"B__h-[280px] lg:B__h-[500px] xl:B__h-[550px] 2xl:B__h-[600px]"});case"p_layout_accent_left_v1":return(0,_.jsx)(iR,{...e,...a,reverse:!0});case"p_layout_accent_right_v1":return(0,_.jsx)(iR,{...e,...a});case"p_layout_accent_top_v1":return(0,_.jsx)(iW,{...e,...a});case"p_layout_accent_left_fit_v1":return(0,_.jsx)(iR,{...e,...a,imageContained:!0,reverse:!0});case"p_layout_accent_right_fit_v1":return(0,_.jsx)(iR,{...e,...a,imageContained:!0});case"p_layout_accent_background_v1":return(0,_.jsx)(iK,{...e,...a});case"p_layout_two_column_v1":return(0,_.jsx)(t3,{...e,...a,hideSNo:!0});case"p_layout_two_column_v3":case"p_layout_photos_two_column_v1":return(0,_.jsx)(tk,{...e,...a,gridSize:2});case"p_layout_four_column_v1":case"p_layout_photos_four_column_v1":return(0,_.jsx)(tk,{...e,...a,gridSize:4});case"p_layout_four_column_v2":return(0,_.jsx)(tj,{...e,...a,gridSize:4});case"p_layout_title_bullets_image_v1":return(0,_.jsx)(tw,{...e,...a,shaded:!1,reverse:!0});case"p_layout_title_bullets_image_v2":return(0,_.jsx)(tw,{...e,...a,shaded:!1});case"p_layout_title_bullets_image_v3":return(0,_.jsx)(tS,{...e,...a,listStyle:"bullets",shaded:!1,reverse:!0});case"p_layout_title_bullets_image_v4":return(0,_.jsx)(tS,{...e,...a,listStyle:"bullets",shaded:!1});case"p_layout_title_bullets_v1":case"p_layout_title_bullets_v2":return(0,_.jsx)(tN,{...e,...a,border:!1,hideCTA:!0});case"p_layout_title_bullets_v3":return(0,_.jsx)(tS,{...e,...a,listStyle:"numbers",shaded:!1,hideImage:!0});case"p_layout_photos_three_column_v1":return(0,_.jsx)(tk,{...e,...a,gridSize:3});case"p_layout_text_boxes_v1":return(0,_.jsx)(tI,{...e,...a,hideIcon:!0});case"p_layout_large_bullets_v1":return(0,_.jsx)(tD,{...e,...a,gridSize:2});case"p_layout_icon_with_text_v1":return(0,_.jsx)(tj,{...e,...a,gridSize:3,cardBg:"#FFFFFF"});case"h_aboutus_v1":return(0,_.jsx)(_c,{...e,...a});case"h_aboutus_v2":return(0,_.jsx)(_B,{...e,...a});case"h_aboutus_v3":return(0,_.jsx)(_x,{...e,...a});case"h_aboutus_v4":return(0,_.jsx)(_m,{...e,...a});default:return(0,_.jsx)(_.Fragment,{})}},iG=e=>{var t,l;let{sections:o,websiteId:a,type:s,slot:n,sectionLocation:d}=e,{addSection:c}=(0,i.useContext)(r.o)||{},[B,x]=(0,i.useState)(!1);return(0,_.jsxs)(_.Fragment,{children:[null===(t=null==o?void 0:o.filter(e=>"p_banner_v0"!==e.type))||void 0===t?void 0:t.map((e,t)=>{if(("live"===s&&e.active||"live"!==s)&&e.blockProps)return(0,_.jsx)(_O,{section:e,viewMode:s,itemIndex:t,sections:null==o?void 0:o.filter(e=>"p_banner_v0"!==e.type),sectionLocation:d,slot:n,children:iO(e,s,a,d,n)},t)}),(null===(l=null==o?void 0:o.filter(e=>"p_banner_v0"!==e.type))||void 0===l?void 0:l.length)?(0,_.jsx)(_.Fragment,{}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(_R,{showModal:B,handleClose:()=>x(!1),handleSave:async(e,t)=>{x(!1),null==c||c(e,0,t,void 0,"website"===d,n)}}),"live"!==s?(0,_.jsxs)("div",{className:"B__relative B__group",children:[(0,_.jsx)("div",{className:"B__w-full B__py-20 lg:B__py-32"}),(0,_.jsxs)("div",{className:"B__absolute B__w-full B__top-1/2 B__-translate-y-1/2 B__left-1/2 B__z-20 B__-translate-x-1/2 B__flex B__items-center B__justify-center B__my-3 group-hover:B__visible",children:[(0,_.jsx)("div",{className:"B__h-[2px] B__flex B__flex-1 B__items-center B__bg-butternut-orange"}),(0,_.jsx)(I.u,{buttons:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],[{children:(0,_.jsx)(_q,{text:"Add Section",children:(0,_.jsx)(_W._7,{})}),onClick:()=>x(!0)},{children:(0,_.jsx)(_q,{text:"Build with AI",children:(0,_.jsx)(_W.J_,{})}),onClick:()=>{null==c||c("customcode",0,"",void 0,"website"===d,n)}}]}("bottom")}),(0,_.jsx)("div",{className:"B__h-[2px] B__flex B__flex-1 B__items-center B__bg-butternut-orange"})]})]}):(0,_.jsx)(_.Fragment,{})]})]})};l(71399);var i$=l(39332),iY=l(35005);let iJ=e=>{var t,l,o,a;let{websiteData:s,editPagesTitle:n,togglePage:c,toggleNavbarPage:B,toggleFooterPage:x,dragPage:m,deletePage:p,editPageSlug:u}=(0,i.useContext)(r.o)||{},[v,h]=(0,i.useState)(!1),g=async t=>{h(!0),console.log(t),(null==s?void 0:s.pages)&&await (null==n?void 0:n(t)),h(!1),null==e||e.handleClose()},y=async e=>{if(null==s?void 0:s.pages){let t=s.pages.find(t=>t.page_id===e);t&&await (null==B?void 0:B(e,!t.showInNavbar))}},b=async e=>{if(null==s?void 0:s.pages){let t=s.pages.find(t=>t.page_id===e);t&&await (null==x?void 0:x(e,!t.showInFooter))}},f=(e,t,l)=>async()=>{(null==s?void 0:s.pages)&&await (null==m?void 0:m(e,t,l))},j=async e=>{e&&await (null==p?void 0:p(e))},[k,w]=(0,i.useState)(null),[N,P]=(0,i.useState)((null==s?void 0:null===(t=s.pages)||void 0===t?void 0:t.reduce((e,t)=>(e[t.page_id]=t.slug,e),{}))||{}),I=e=>t=>{""===t.target.value?P(l=>({...l,[e]:t.target.value})):/^[a-z0-9_-]+$/.test(t.target.value)&&P(l=>({...l,[e]:t.target.value}))},C=e=>async()=>{N.hasOwnProperty(e)&&await (null==u?void 0:u(e,N[e])),w(null)},Z=null==s?void 0:null===(l=s.pages)||void 0===l?void 0:l.filter(e=>e.mainPage),T=null==s?void 0:null===(o=s.pages)||void 0===o?void 0:o.filter(e=>!e.mainPage);return(0,_.jsx)("div",{children:(0,_.jsxs)(_Q.Z,{title:"Edit Page",show:e.show,handleClose:()=>{e.handleClose()},handleSave:()=>{},showFooter:!1,size:"lg",children:[(0,_.jsx)("h3",{className:"B__text-left B__font-primary B__text-primary B__font-normal",children:"Pages"}),(0,_.jsx)("div",{className:"B__p-3",children:(0,_.jsx)(ek.J9,{initialValues:{...null==s?void 0:null===(a=s.pages)||void 0===a?void 0:a.reduce((e,t)=>(e[t.page_id]=t.title,e),{})},onSubmit:e=>{g(e)},children:t=>{let{values:l,setFieldValue:i,submitForm:o,handleChange:a}=t;return(0,_.jsxs)("form",{className:"B__w-full",children:[(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-2 ",children:[null==Z?void 0:Z.map((t,i)=>{if(t.mainPage)return(0,_.jsxs)("div",{className:"B__flex B__items-end B__justify-start B__flex-col B__gap-2 lg:B__gap-0 lg:B__flex-row",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-4/6 B__mt-2",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1.5",children:[(0,_.jsxs)("div",{className:"B__text-gray-700 B__flex B__items-center B__flex-nowrap B__whitespace-nowrap",children:["Path : ",(0,_.jsxs)("span",{className:"B__font-medium B__px-2 B__bg-slate-100 B__m-1 B__rounded-md",children:["/",null==t?void 0:t.slug]})]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1.5",children:[k===t.page_id?(0,_.jsx)("input",{className:"B__rounded-md B__text-gray-600 B__px-3 B__py-1 focus-visible:B__outline-none B__border B__border-[#ced4da] B__mb-1",type:"text",value:N[t.page_id],onChange:I(t.page_id)}):(0,_.jsx)(_.Fragment,{}),k===t.page_id?(0,_.jsx)("div",{className:"B__cursor-pointer B__py-1 B__px-2 B__rounded-md B__bg-butternut-button B__text-white B__text-sm",onClick:C(t.page_id),children:"Save"}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{className:"B__cursor-pointer",onClick:()=>{w(e=>e&&e===t.page_id?null:t.page_id)},children:k===t.page_id?(0,_.jsx)(d.FU5,{className:"B__text-gray-700"}):(0,_.jsx)(d.zmo,{className:"B__text-gray-600"})})]})]}),(0,_.jsx)(_u.Z,{name:null==t?void 0:t.page_id,handleChange:a,containerStyle:{margin:0},placeholder:"",type:"text",value:l[null==t?void 0:t.page_id]||""})]}),(0,_.jsxs)("div",{className:"B__w-auto B__flex B__gap-2 B__items-center",children:[(0,_.jsx)(l5.Oe,{style:{outline:"none"},show:(null==e?void 0:e.type)==="navbar"?null==t?void 0:t.showInNavbar:null==t?void 0:t.showInFooter,onClick:l=>{l.stopPropagation(),"navbar"===e.type?y(t.page_id):b(t.page_id)},iconClassName:"!B__text-black ",className:"!B__bg-[#f8f9f8] hover:!B__bg-[#d3d4d5] !B__border B__border-transparent hover:!B__border-[#c6c7c8] hover:B__shadow-[0px_2px_6px_0px_rgba(30,30,30,0.3)] B__px-3 B__py-2 B__ml-2 B__rounded-md"}),(0,_.jsx)(iY.Z,{variant:"light",className:"hvButton",onClick:()=>{console.log("delete"),j(t.page_id)},children:(0,_.jsx)(M.yvY,{className:"B__text-xl md:B__text-2xl"})}),0!==i&&(0,_.jsx)(iY.Z,{variant:"light",className:"hvButton",onClick:f(t.page_id,"up",!0),children:(0,_.jsx)(M.HTv,{className:"B__text-xl"})}),i!==(null==Z?void 0:Z.length)-1&&(0,_.jsx)(iY.Z,{variant:"light",className:"hvButton",onClick:f(t.page_id,"down",!0),children:(0,_.jsx)(M.CSs,{className:"B__text-xl"})})]})]},i)}),"footer"===e.type?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__text-lg B__mt-4",children:"Resources pages"}),null==T?void 0:T.map((t,o)=>{if(!t.mainPage)return(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-start",children:[(0,_.jsxs)("div",{className:"B__w-4/6 B__mt-2",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1.5",children:[(0,_.jsxs)("div",{className:"B__text-gray-700 B__flex B__items-center B__flex-nowrap B__whitespace-nowrap",children:["Path : ",(0,_.jsxs)("span",{className:"B__font-medium",children:["/",null==t?void 0:t.slug]})]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1.5",children:[k===t.page_id?(0,_.jsx)("input",{className:"B__rounded-md B__text-gray-600 B__px-3 B__py-1 focus-visible:B__outline-none B__border B__border-[#ced4da] B__mb-1",type:"text",value:N[t.page_id]||t.slug,onChange:I(t.page_id)}):(0,_.jsx)(_.Fragment,{}),k===t.page_id?(0,_.jsx)("div",{className:"B__cursor-pointer B__py-1 B__px-2 B__rounded-md B__bg-butternut-button B__text-white B__text-sm",onClick:C(t.page_id),children:"Save"}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{className:"B__cursor-pointer",onClick:()=>{w(e=>e&&e===t.page_id?null:t.page_id)},children:k===t.page_id?(0,_.jsx)(d.FU5,{className:"B__text-gray-700"}):(0,_.jsx)(d.zmo,{className:"B__text-gray-600"})})]})]}),(0,_.jsx)(_u.Z,{name:null==t?void 0:t.page_id,handleChange:e=>i(null==t?void 0:t.page_id,e.target.value),placeholder:"",type:"text",value:l[null==t?void 0:t.page_id]||""})]}),(0,_.jsxs)("div",{className:"B__w-auto B__flex B__gap-2 B__items-center",children:[(0,_.jsx)(l5.Oe,{style:{border:"none",outline:"none"},show:(null==e?void 0:e.type)==="navbar"?null==t?void 0:t.showInNavbar:null==t?void 0:t.showInFooter,onClick:l=>{l.stopPropagation(),"navbar"===e.type?y(t.page_id):b(t.page_id)}}),(0,_.jsx)(iY.Z,{variant:"light",className:"hvButton",onClick:()=>{console.log("delete"),j(t.page_id)},children:(0,_.jsx)(M.yvY,{className:"B__text-xl md:B__text-2xl"})}),0!==o&&(0,_.jsx)(iY.Z,{variant:"light",className:"hvButton",onClick:f(t.page_id,"up",!1),children:(0,_.jsx)(M.HTv,{className:"B__text-xl"})}),o!==(null==T?void 0:T.length)-1&&(0,_.jsx)(iY.Z,{variant:"light",className:"hvButton",onClick:f(t.page_id,"down",!1),children:(0,_.jsx)(M.CSs,{className:"B__text-xl"})})]})]},o)})]}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsxs)("div",{className:"B__w-full B__flex B__justify-end B__items-center B__gap-4 B__mt-3",children:[(0,_.jsx)(ti.Z,{title:"Cancel",onClick:()=>e.handleClose()}),(0,_.jsx)(ti.Z,{title:"Save",onClick:o,disabled:v})]})]})}})}),(0,_.jsx)("hr",{style:{borderTop:" 2px dotted"}})]})})},iQ=e=>{let{showSocialMediaIcons:t=!0,showAddPagesOption:l=!0,showEditNavbarOption:o=!0,showEditPagesOption:a=!0,addPageHandler:s}=e,{setShowEditContentModal:n,setEditContentFields:d,setEditSectionMetaData:c,addPage:B,websiteData:x}=(0,i.useContext)(r.o)||{},{layout:m}=x||{},p=(0,i.useCallback)(()=>{var e,t,l,_,i,o,a,s,n;return(null==x?void 0:null===(e=x.license_details)||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.tier)?null===g.PV||void 0===g.PV?void 0:null===(i=g.PV.tier)||void 0===i?void 0:i[null==x?void 0:null===(o=x.license_details)||void 0===o?void 0:null===(a=o[0])||void 0===a?void 0:a.tier]:(null==x?void 0:null===(l=x.website_config)||void 0===l?void 0:null===(_=l[0])||void 0===_?void 0:_.plan)?null===g.PV||void 0===g.PV?void 0:g.PV[null==x?void 0:null===(s=x.website_config)||void 0===s?void 0:null===(n=s[0])||void 0===n?void 0:n.plan]:null===g.PV||void 0===g.PV?void 0:g.PV.free},[x]),[u,v]=(0,i.useState)(!1),[h,y]=(0,i.useState)(!1),b=()=>{var e,l,_,i,o,a,s,r,B,u,h,g,y,b,f,j,k,w,N,P,I,C,Z,T,L,S,D,F,E,A,H,z,M,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,e_;null==d||d([{name:"org_name",placeholder:"Name of your business",type:"input",value:x.org_name,key:"org_name",field_label:"Title",hideIconBtnValue:null==m?void 0:null===(e=m.blockProps)||void 0===e?void 0:null===(l=e.org_name)||void 0===l?void 0:l.active,hideIconBtnKey:"layout?.blockProps?.org_name.active"},{name:"url",placeholder:"Upload Your logo",type:"file",editBaseData:!1,key:"layout?.blockProps?.logo?.url",field_label:"Logo",value:null==m?void 0:null===(_=m.blockProps)||void 0===_?void 0:null===(i=_.logo)||void 0===i?void 0:i.url,disabled:null==m?void 0:null===(o=m.blockProps)||void 0===o?void 0:null===(a=o.logo)||void 0===a?void 0:a.active,hideIconBtnValue:null==m?void 0:null===(s=m.blockProps)||void 0===s?void 0:null===(r=s.logo)||void 0===r?void 0:r.active,hideIconBtnKey:"layout?.blockProps?.logo?.active",hideSearchTab:!0},{name:"favicon",placeholder:"Upload Your favicon icon",type:"file",editBaseData:!1,key:"layout?.blockProps?.favicon?.url",field_label:"Favicon icon",value:null==m?void 0:null===(B=m.blockProps)||void 0===B?void 0:null===(u=B.favicon)||void 0===u?void 0:u.url,disabled:null==m?void 0:null===(h=m.blockProps)||void 0===h?void 0:null===(g=h.favicon)||void 0===g?void 0:g.active,hideIconBtnValue:null==m?void 0:null===(y=m.blockProps)||void 0===y?void 0:null===(b=y.favicon)||void 0===b?void 0:b.active,hideIconBtnKey:"layout?.blockProps?.favicon?.active",hideSearchTab:!0},...t?[{name:"header_facebook_link",field_label:"Facebook",placeholder:"https://www.facebook.com/abc",type:"input",key:"layout?.blockProps?.header_facebook_link?.value",value:(null==m?void 0:null===(f=m.blockProps)||void 0===f?void 0:null===(j=f.header_facebook_link)||void 0===j?void 0:j.value)||"",hideIconBtnValue:null==m?void 0:null===(k=m.blockProps)||void 0===k?void 0:null===(w=k.header_facebook_link)||void 0===w?void 0:w.active,hideIconBtnKey:"layout?.blockProps?.header_facebook_link?.active"},{name:"header_twitter_link",field_label:"Twitter",placeholder:"https://twitter.com/abc",type:"input",key:"layout?.blockProps?.header_twitter_link?.value",value:(null==m?void 0:null===(N=m.blockProps)||void 0===N?void 0:null===(P=N.header_twitter_link)||void 0===P?void 0:P.value)||"",hideIconBtnValue:null==m?void 0:null===(I=m.blockProps)||void 0===I?void 0:null===(C=I.header_twitter_link)||void 0===C?void 0:C.active,hideIconBtnKey:"layout?.blockProps?.header_twitter_link?.active"},{name:"header_instagram_link",field_label:"Instagram",placeholder:"https://www.instagram.com/abc",type:"input",key:"layout?.blockProps?.header_instagram_link?.value",value:(null==m?void 0:null===(Z=m.blockProps)||void 0===Z?void 0:null===(T=Z.header_instagram_link)||void 0===T?void 0:T.value)||"",hideIconBtnValue:null==m?void 0:null===(L=m.blockProps)||void 0===L?void 0:null===(S=L.header_instagram_link)||void 0===S?void 0:S.active,hideIconBtnKey:"layout?.blockProps?.header_instagram_link?.active"},{name:"header_linkedin_link",field_label:"LinkedIn",placeholder:"https://www.linkedin.com/in/abc",type:"input",key:"layout?.blockProps?.header_linkedin_link?.value",value:(null==m?void 0:null===(D=m.blockProps)||void 0===D?void 0:null===(F=D.header_linkedin_link)||void 0===F?void 0:F.value)||"",hideIconBtnValue:null==m?void 0:null===(E=m.blockProps)||void 0===E?void 0:null===(A=E.header_linkedin_link)||void 0===A?void 0:A.active,hideIconBtnKey:"layout?.blockProps?.header_linkedin_link?.active"},{name:"header_tiktok_link",field_label:"Tiktok",placeholder:"https://www.tiktok.com/",type:"input",key:"layout?.blockProps?.header_tiktok_link?.value",value:(null==m?void 0:null===(H=m.blockProps)||void 0===H?void 0:null===(z=H.header_tiktok_link)||void 0===z?void 0:z.value)||"",hideIconBtnValue:null==m?void 0:null===(M=m.blockProps)||void 0===M?void 0:null===(U=M.header_tiktok_link)||void 0===U?void 0:U.active,hideIconBtnKey:"layout?.blockProps?.header_tiktok_link?.active"},{name:"header_youtube_link",field_label:"Youtube",placeholder:"https://www.youtube.com/",type:"input",key:"layout?.blockProps?.header_youtube_link?.value",value:(null==m?void 0:null===(V=m.blockProps)||void 0===V?void 0:null===(R=V.header_youtube_link)||void 0===R?void 0:R.value)||"",hideIconBtnValue:null==m?void 0:null===(W=m.blockProps)||void 0===W?void 0:null===(K=W.header_youtube_link)||void 0===K?void 0:K.active,hideIconBtnKey:"layout?.blockProps?.header_youtube_link?.active"}]:[],{name:"header_call_link",field_label:"Call Button",placeholder:"Call us",type:"input",key:"layout?.blockProps?.header_call_link?.value",value:(null==m?void 0:null===(q=m.blockProps)||void 0===q?void 0:null===(O=q.header_call_link)||void 0===O?void 0:O.value)||"Call us",hideIconBtnValue:null==m?void 0:null===(G=m.blockProps)||void 0===G?void 0:null===($=G.header_call_link)||void 0===$?void 0:$.active,hideIconBtnKey:"layout?.blockProps?.header_call_link?.active"},{name:"header_call_phonenumber",field_label:"Call Button Phone Number (with country code)",placeholder:"+1234432123",type:"input",key:"layout?.blockProps?.header_call_link?.phonenumber",value:(null==m?void 0:null===(Y=m.blockProps)||void 0===Y?void 0:null===(J=Y.header_call_link)||void 0===J?void 0:J.phonenumber)||""},{name:"whatsapp_button",field_label:"Whatsapp Button (available on Pro plan)",placeholder:"Whatsapp Button (available on Pro plan)",type:"input",key:"layout?.blockProps?.whatsapp_button?.value",value:(null==m?void 0:null===(Q=m.blockProps)||void 0===Q?void 0:null===(X=Q.whatsapp_button)||void 0===X?void 0:X.value)||"+11234567890",...p()?{hideIconBtnValue:null==m?void 0:null===(ee=m.blockProps)||void 0===ee?void 0:null===(et=ee.whatsapp_button)||void 0===et?void 0:et.active,hideIconBtnKey:"layout?.blockProps?.whatsapp_button?.active"}:{},disabled:!p()},{name:"whatsapp_button_message",field_label:"Whatsapp Default Message",placeholder:"Hi",type:"input",key:"layout?.blockProps?.whatsapp_button?.message",value:(null==m?void 0:null===(el=m.blockProps)||void 0===el?void 0:null===(e_=el.whatsapp_button)||void 0===e_?void 0:e_.message)||"Hi",disabled:!p()}]),null==c||c(()=>({websiteId:null==x?void 0:x._id.$oid,editBaseData:!0})),null==n||n(!0),v(!1)},f=()=>{y(!0),v(!1)},j=()=>{s(),v(!1)};return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)(iJ,{show:h,handleClose:()=>y(!1),type:"navbar"}),(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-1.5 B__bg-white B__rounded-md B__select-none B__text-sm",tooltipDirection:"bottom-right",onClick:()=>{l||a||!o?v(e=>!e):b()}}),u?(0,_.jsxs)("div",{className:"B__absolute B__-left-3 B__top-0 B__-translate-x-[100%] B__flex B__items-stretch B__justify-center B__flex-col B__gap-2 B__p-1.5 B__border B__border-slate-400 B__shadow-md B__bg-[#fafafa] B__rounded-md",children:[l&&(0,_.jsx)("div",{className:"B__p-1.5 B__px-4 B__whitespace-nowrap B__text-base B__font-medium B__text-white B__bg-butternut-button B__border B__border-slate-300 B__rounded-md B__cursor-pointer B__text-center",onClick:j,children:"Add Pages"}),a&&(0,_.jsx)("div",{className:"B__p-1.5 B__px-4 B__whitespace-nowrap B__text-base B__font-medium B__text-white B__bg-butternut-button B__border B__border-slate-300 B__rounded-md B__cursor-pointer B__text-center",onClick:f,children:"Edit Pages"}),o&&(0,_.jsx)("div",{className:"B__p-1.5 B__px-4 B__whitespace-nowrap B__text-base B__font-medium B__text-white B__bg-butternut-button B__border B__border-slate-300 B__rounded-md B__cursor-pointer B__text-center",onClick:b,children:"Edit Navbar"})]}):(0,_.jsx)(_.Fragment,{})]})})},iX=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z,T,S,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez;let{viewMode:eM,websiteData:eU,page:eV,addPageHandler:eR}=e,{page_id:eW}=eV,{layout:eK}=eU,[eq,eO]=(0,i.useState)(!1),eG=(0,i.useRef)(null),e$=(0,n.useRouter)(),[eY,eJ]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;eO(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:eQ,width:eX}=lD(eG),[e0,e1]=(0,i.useState)(!1),e2=(null==eU?void 0:null===(t=eU.styles)||void 0===t?void 0:t["nav-appearance"])==="white",e5="live"===eM?(null===(l=eK.blockProps)||void 0===l?void 0:null===(o=l.header_facebook_link)||void 0===o?void 0:o.active)&&(null===(a=eK.blockProps)||void 0===a?void 0:null===(s=a.header_facebook_link)||void 0===s?void 0:null===(r=s.value)||void 0===r?void 0:r.trim())!=="":null===(c=eK.blockProps)||void 0===c?void 0:null===(B=c.header_facebook_link)||void 0===B?void 0:B.active,e3="live"===eM?(null===(x=eK.blockProps)||void 0===x?void 0:null===(m=x.header_instagram_link)||void 0===m?void 0:m.active)&&(null===(p=eK.blockProps)||void 0===p?void 0:null===(u=p.header_instagram_link)||void 0===u?void 0:null===(v=u.value)||void 0===v?void 0:v.trim())!=="":null===(h=eK.blockProps)||void 0===h?void 0:null===(y=h.header_instagram_link)||void 0===y?void 0:y.active,e4="live"===eM?(null===(b=eK.blockProps)||void 0===b?void 0:null===(f=b.header_twitter_link)||void 0===f?void 0:f.active)&&(null===(k=eK.blockProps)||void 0===k?void 0:null===(w=k.header_twitter_link)||void 0===w?void 0:null===(N=w.value)||void 0===N?void 0:N.trim())!=="":null===(P=eK.blockProps)||void 0===P?void 0:null===(I=P.header_twitter_link)||void 0===I?void 0:I.active,e6="live"===eM?(null===(C=eK.blockProps)||void 0===C?void 0:null===(Z=C.header_linkedin_link)||void 0===Z?void 0:Z.active)&&(null===(T=eK.blockProps)||void 0===T?void 0:null===(S=T.header_linkedin_link)||void 0===S?void 0:null===(F=S.value)||void 0===F?void 0:F.trim())!=="":null===(E=eK.blockProps)||void 0===E?void 0:null===(A=E.header_linkedin_link)||void 0===A?void 0:A.active,e9="live"===eM?(null===(H=eK.blockProps)||void 0===H?void 0:null===(z=H.header_tiktok_link)||void 0===z?void 0:z.active)&&(null===(U=eK.blockProps)||void 0===U?void 0:null===(V=U.header_tiktok_link)||void 0===V?void 0:null===(R=V.value)||void 0===R?void 0:R.trim())!=="":null===(W=eK.blockProps)||void 0===W?void 0:null===(K=W.header_tiktok_link)||void 0===K?void 0:K.active,e8="live"===eM?(null===(q=eK.blockProps)||void 0===q?void 0:null===(O=q.header_youtube_link)||void 0===O?void 0:O.active)&&(null===(G=eK.blockProps)||void 0===G?void 0:null===($=G.header_youtube_link)||void 0===$?void 0:null===(Y=$.value)||void 0===Y?void 0:Y.trim())!=="":null===(J=eK.blockProps)||void 0===J?void 0:null===(Q=J.header_youtube_link)||void 0===Q?void 0:Q.active,e7="live"===eM?(null===(X=eK.blockProps)||void 0===X?void 0:null===(ee=X.header_call_link)||void 0===ee?void 0:ee.active)&&(null===(et=eK.blockProps)||void 0===et?void 0:null===(el=et.header_call_link)||void 0===el?void 0:null===(ei=el.value)||void 0===ei?void 0:ei.trim())!=="":null===(eo=eK.blockProps)||void 0===eo?void 0:null===(ea=eo.header_call_link)||void 0===ea?void 0:ea.active;return(0,_.jsx)("div",{className:"",style:{height:(eQ||0)+("preview"===eM||"edit"===eM?eX<768?92:60:0)-10,"--navbar-height":(eQ||0)+("preview"===eM||"edit"===eM?eX<768?92:60:0)-10,...e2?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==eM?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(eq&&L().scrolled," ").concat(eq?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:eG,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(eq&&L().scrolled," !B__justify-between lg:!B__justify-center !B__ml-0 B__w-full lg:B__w-auto"),onClick:()=>{e$.pathname.startsWith("/generated")||e$.pathname.startsWith("/edit")||e$.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?e$.push("/".concat("preview"===eM?"generated":"edit"===eM?"edit":"live","/").concat(eU._id.$oid)):e$.push("/")},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(es=eK.blockProps)||void 0===es?void 0:null===(en=es.logo)||void 0===en?void 0:en.active)&&(null===(er=eK.blockProps)||void 0===er?void 0:null===(ed=er.logo)||void 0===ed?void 0:ed.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(ec=eK.blockProps)||void 0===ec?void 0:null===(eB=ec.logo)||void 0===eB?void 0:eB.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(ex=eK.blockProps)||void 0===ex?void 0:null===(em=ex.logo)||void 0===em?void 0:em.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==eM&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{e1(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:e0,handleClose:()=>{e1(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative  B__min-h-[60px] B__content-center ".concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:[(null==eK?void 0:null===(ep=eK.blockProps)||void 0===ep?void 0:null===(eu=ep.org_name)||void 0===eu?void 0:eu.active)?(0,D.ZP)(eU.org_name||""):"",("preview"===eM||"edit"===eM)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,addPageHandler:eR})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(eq?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),eJ(e=>!e)},children:eY?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===eM||"edit"===eM)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(eY?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 lg:B__gap-6",children:(0,_.jsx)(iQ,{addPageHandler:eR})})}),(null===(ev=null==eU?void 0:null===(eh=eU.pages)||void 0===eh?void 0:eh.filter(e=>e.mainPage&&e.page_id!==eW&&e.active&&e.showInNavbar))||void 0===ev?void 0:ev.length)||!(null==eU?void 0:eU.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-center B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(eY?"":"!B__hidden lg:!B__flex"),children:[null==eU?void 0:null===(eg=eU.pages)||void 0===eg?void 0:eg.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(eq?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===eW?"B__rounded-full B__bg-[#ffffff1a] B__px-4 xl:B__px-5":""," ").concat(e.page_id===eW&&e2?"!B__bg-[#0000001a]":""," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{e$.pathname.startsWith("/generated")||e$.pathname.startsWith("/edit")||e$.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?e$.push("/".concat("preview"===eM?"generated":"edit"===eM?"edit":"live","/").concat(eU._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):e$.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),eJ(!1)},children:null==e?void 0:e.title},t)}),e7&&(0,_.jsx)("a",{href:"tel:".concat(null===(ey=eK.blockProps)||void 0===ey?void 0:null===(eb=ey.header_call_link)||void 0===eb?void 0:eb.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"lg:B__hidden B__w-fit B__rounded-full B__border B__p-1.5 B__px-4 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ef=eK.blockProps)||void 0===ef?void 0:null===(ej=ef.header_call_link)||void 0===ej?void 0:ej.value)||"Call us"})}),(null==eU?void 0:eU.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(eq?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"!B__hidden lg:!B__flex B__justify-start lg:B__justify-center B__mr-auto lg:B__mr-0 B__items-center B__gap-1 B__transition-[height] B__overflow-hidden",style:{right:"0"},children:[e5&&(0,_.jsx)("a",{href:null===(ek=eK.blockProps)||void 0===ek?void 0:null===(ew=ek.header_facebook_link)||void 0===ew?void 0:ew.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.k1O,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e4&&(0,_.jsx)("a",{href:null===(eN=eK.blockProps)||void 0===eN?void 0:null===(eP=eN.header_twitter_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.meP,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e3&&(0,_.jsx)("a",{href:null===(eI=eK.blockProps)||void 0===eI?void 0:null===(eC=eI.header_instagram_link)||void 0===eC?void 0:eC.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.Vs6,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e6&&(0,_.jsx)("a",{href:null===(eZ=eK.blockProps)||void 0===eZ?void 0:null===(eT=eZ.header_linkedin_link)||void 0===eT?void 0:eT.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.NQh,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e9&&(0,_.jsx)("a",{href:null===(eL=eK.blockProps)||void 0===eL?void 0:null===(eS=eL.header_tiktok_link)||void 0===eS?void 0:eS.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.nTm,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e8&&(0,_.jsx)("a",{href:null===(eD=eK.blockProps)||void 0===eD?void 0:null===(eF=eD.header_youtube_link)||void 0===eF?void 0:eF.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.V2E,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e7&&(0,_.jsx)("a",{href:"tel:".concat(null===(eE=eK.blockProps)||void 0===eE?void 0:null===(eA=eE.header_call_link)||void 0===eA?void 0:eA.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__px-4 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:(null===(eH=eK.blockProps)||void 0===eH?void 0:null===(ez=eH.header_call_link)||void 0===ez?void 0:ez.value)||"Call us"})})]})]})})})},i0=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z,T,S,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez;let{viewMode:eM,websiteData:eU,page:eV,addPageHandler:eR}=e,{page_id:eW}=eV,{layout:eK}=eU,[eq,eO]=(0,i.useState)(!1),eG=(0,i.useRef)(null),e$=(0,n.useRouter)(),[eY,eJ]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;eO(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:eQ,width:eX}=lD(eG),[e0,e1]=(0,i.useState)(!1),e2=(null==eU?void 0:null===(t=eU.styles)||void 0===t?void 0:t["nav-appearance"])==="white",e5="live"===eM?(null===(l=eK.blockProps)||void 0===l?void 0:null===(o=l.header_facebook_link)||void 0===o?void 0:o.active)&&(null===(a=eK.blockProps)||void 0===a?void 0:null===(s=a.header_facebook_link)||void 0===s?void 0:null===(r=s.value)||void 0===r?void 0:r.trim())!=="":null===(c=eK.blockProps)||void 0===c?void 0:null===(B=c.header_facebook_link)||void 0===B?void 0:B.active,e3="live"===eM?(null===(x=eK.blockProps)||void 0===x?void 0:null===(m=x.header_instagram_link)||void 0===m?void 0:m.active)&&(null===(p=eK.blockProps)||void 0===p?void 0:null===(u=p.header_instagram_link)||void 0===u?void 0:null===(v=u.value)||void 0===v?void 0:v.trim())!=="":null===(h=eK.blockProps)||void 0===h?void 0:null===(y=h.header_instagram_link)||void 0===y?void 0:y.active,e4="live"===eM?(null===(b=eK.blockProps)||void 0===b?void 0:null===(f=b.header_twitter_link)||void 0===f?void 0:f.active)&&(null===(k=eK.blockProps)||void 0===k?void 0:null===(w=k.header_twitter_link)||void 0===w?void 0:null===(N=w.value)||void 0===N?void 0:N.trim())!=="":null===(P=eK.blockProps)||void 0===P?void 0:null===(I=P.header_twitter_link)||void 0===I?void 0:I.active,e6="live"===eM?(null===(C=eK.blockProps)||void 0===C?void 0:null===(Z=C.header_linkedin_link)||void 0===Z?void 0:Z.active)&&(null===(T=eK.blockProps)||void 0===T?void 0:null===(S=T.header_linkedin_link)||void 0===S?void 0:null===(F=S.value)||void 0===F?void 0:F.trim())!=="":null===(E=eK.blockProps)||void 0===E?void 0:null===(A=E.header_linkedin_link)||void 0===A?void 0:A.active,e9="live"===eM?(null===(H=eK.blockProps)||void 0===H?void 0:null===(z=H.header_tiktok_link)||void 0===z?void 0:z.active)&&(null===(U=eK.blockProps)||void 0===U?void 0:null===(V=U.header_tiktok_link)||void 0===V?void 0:null===(R=V.value)||void 0===R?void 0:R.trim())!=="":null===(W=eK.blockProps)||void 0===W?void 0:null===(K=W.header_tiktok_link)||void 0===K?void 0:K.active,e8="live"===eM?(null===(q=eK.blockProps)||void 0===q?void 0:null===(O=q.header_youtube_link)||void 0===O?void 0:O.active)&&(null===(G=eK.blockProps)||void 0===G?void 0:null===($=G.header_youtube_link)||void 0===$?void 0:null===(Y=$.value)||void 0===Y?void 0:Y.trim())!=="":null===(J=eK.blockProps)||void 0===J?void 0:null===(Q=J.header_youtube_link)||void 0===Q?void 0:Q.active,e7="live"===eM?(null===(X=eK.blockProps)||void 0===X?void 0:null===(ee=X.header_call_link)||void 0===ee?void 0:ee.active)&&(null===(et=eK.blockProps)||void 0===et?void 0:null===(el=et.header_call_link)||void 0===el?void 0:null===(ei=el.value)||void 0===ei?void 0:ei.trim())!=="":null===(eo=eK.blockProps)||void 0===eo?void 0:null===(ea=eo.header_call_link)||void 0===ea?void 0:ea.active;return(0,_.jsx)("div",{className:"",style:{height:(eQ||0)+("preview"===eM||"edit"===eM?eX<768?92:60:0)-10,"--navbar-height":(eQ||0)+("preview"===eM||"edit"===eM?eX<768?92:60:0)-10,...e2?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==eM?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(eq&&L().scrolled," ").concat(eq?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:eG,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3 lg:B__gap-6"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(eq&&L().scrolled," !B__justify-between lg:!B__justify-center !B__ml-0 B__w-full lg:B__w-auto"),onClick:()=>{e$.pathname.startsWith("/generated")||e$.pathname.startsWith("/edit")||e$.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?e$.push("/".concat("preview"===eM?"generated":"edit"===eM?"edit":"live","/").concat(eU._id.$oid)):e$.push("/")},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(es=eK.blockProps)||void 0===es?void 0:null===(en=es.logo)||void 0===en?void 0:en.active)&&(null===(er=eK.blockProps)||void 0===er?void 0:null===(ed=er.logo)||void 0===ed?void 0:ed.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(ec=eK.blockProps)||void 0===ec?void 0:null===(eB=ec.logo)||void 0===eB?void 0:eB.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(ex=eK.blockProps)||void 0===ex?void 0:null===(em=ex.logo)||void 0===em?void 0:em.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==eM&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{e1(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:e0,handleClose:()=>{e1(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px] B__content-center ".concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:[(null==eK?void 0:null===(ep=eK.blockProps)||void 0===ep?void 0:null===(eu=ep.org_name)||void 0===eu?void 0:eu.active)?(0,D.ZP)(eU.org_name||""):"",("preview"===eM||"edit"===eM)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,addPageHandler:eR})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(eq?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),eJ(e=>!e)},children:eY?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===eM||"edit"===eM)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(eY?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3",children:(0,_.jsx)(iQ,{addPageHandler:eR})})}),(null===(ev=null==eU?void 0:null===(eh=eU.pages)||void 0===eh?void 0:eh.filter(e=>e.mainPage&&e.page_id!==eW&&e.active&&e.showInNavbar))||void 0===ev?void 0:ev.length)||!(null==eU?void 0:eU.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-end B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(eY?"":"!B__hidden lg:!B__flex"),children:[null==eU?void 0:null===(eg=eU.pages)||void 0===eg?void 0:eg.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(eq?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===eW?"B__rounded-full B__bg-[#ffffff1a] B__px-4 xl:B__px-5":""," ").concat(e.page_id===eW&&e2?"!B__bg-[#0000001a]":""," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{e$.pathname.startsWith("/generated")||e$.pathname.startsWith("/edit")||e$.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?e$.push("/".concat("preview"===eM?"generated":"edit"===eM?"edit":"live","/").concat(eU._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):e$.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),eJ(!1)},children:null==e?void 0:e.title},t)}),e7&&(0,_.jsx)("a",{href:"tel:".concat(null===(ey=eK.blockProps)||void 0===ey?void 0:null===(eb=ey.header_call_link)||void 0===eb?void 0:eb.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"lg:B__hidden B__w-fit B__rounded-full B__border B__p-1.5 B__px-4 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ef=eK.blockProps)||void 0===ef?void 0:null===(ej=ef.header_call_link)||void 0===ej?void 0:ej.value)||"Call us"})}),(null==eU?void 0:eU.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(eq?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"!B__hidden lg:!B__flex B__justify-start lg:B__justify-center B__mr-auto lg:B__mr-0 B__items-center B__gap-1 B__transition-[height] B__overflow-hidden",style:{right:"0"},children:[e5&&(0,_.jsx)("a",{href:null===(ek=eK.blockProps)||void 0===ek?void 0:null===(ew=ek.header_facebook_link)||void 0===ew?void 0:ew.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.k1O,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e4&&(0,_.jsx)("a",{href:null===(eN=eK.blockProps)||void 0===eN?void 0:null===(eP=eN.header_twitter_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.meP,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e3&&(0,_.jsx)("a",{href:null===(eI=eK.blockProps)||void 0===eI?void 0:null===(eC=eI.header_instagram_link)||void 0===eC?void 0:eC.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.Vs6,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e6&&(0,_.jsx)("a",{href:null===(eZ=eK.blockProps)||void 0===eZ?void 0:null===(eT=eZ.header_linkedin_link)||void 0===eT?void 0:eT.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.NQh,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e9&&(0,_.jsx)("a",{href:null===(eL=eK.blockProps)||void 0===eL?void 0:null===(eS=eL.header_tiktok_link)||void 0===eS?void 0:eS.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.nTm,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e8&&(0,_.jsx)("a",{href:null===(eD=eK.blockProps)||void 0===eD?void 0:null===(eF=eD.header_youtube_link)||void 0===eF?void 0:eF.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.V2E,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e7&&(0,_.jsx)("a",{href:"tel:".concat(null===(eE=eK.blockProps)||void 0===eE?void 0:null===(eA=eE.header_call_link)||void 0===eA?void 0:eA.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__px-4 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:(null===(eH=eK.blockProps)||void 0===eH?void 0:null===(ez=eH.header_call_link)||void 0===ez?void 0:ez.value)||"Call us"})})]})]})})})},i1=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z,T,S,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez;let{viewMode:eM,websiteData:eU,page:eV,addPageHandler:eR}=e,{page_id:eW}=eV,{layout:eK}=eU,[eq,eO]=(0,i.useState)(!1),eG=(0,i.useRef)(null),e$=(0,n.useRouter)(),[eY,eJ]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;eO(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:eQ,width:eX}=lD(eG),[e0,e1]=(0,i.useState)(!1),e2=(null==eU?void 0:null===(t=eU.styles)||void 0===t?void 0:t["nav-appearance"])==="white",e5="live"===eM?(null===(l=eK.blockProps)||void 0===l?void 0:null===(o=l.header_facebook_link)||void 0===o?void 0:o.active)&&(null===(a=eK.blockProps)||void 0===a?void 0:null===(s=a.header_facebook_link)||void 0===s?void 0:null===(r=s.value)||void 0===r?void 0:r.trim())!=="":null===(c=eK.blockProps)||void 0===c?void 0:null===(B=c.header_facebook_link)||void 0===B?void 0:B.active,e3="live"===eM?(null===(x=eK.blockProps)||void 0===x?void 0:null===(m=x.header_instagram_link)||void 0===m?void 0:m.active)&&(null===(p=eK.blockProps)||void 0===p?void 0:null===(u=p.header_instagram_link)||void 0===u?void 0:null===(v=u.value)||void 0===v?void 0:v.trim())!=="":null===(h=eK.blockProps)||void 0===h?void 0:null===(y=h.header_instagram_link)||void 0===y?void 0:y.active,e4="live"===eM?(null===(b=eK.blockProps)||void 0===b?void 0:null===(f=b.header_twitter_link)||void 0===f?void 0:f.active)&&(null===(k=eK.blockProps)||void 0===k?void 0:null===(w=k.header_twitter_link)||void 0===w?void 0:null===(N=w.value)||void 0===N?void 0:N.trim())!=="":null===(P=eK.blockProps)||void 0===P?void 0:null===(I=P.header_twitter_link)||void 0===I?void 0:I.active,e6="live"===eM?(null===(C=eK.blockProps)||void 0===C?void 0:null===(Z=C.header_linkedin_link)||void 0===Z?void 0:Z.active)&&(null===(T=eK.blockProps)||void 0===T?void 0:null===(S=T.header_linkedin_link)||void 0===S?void 0:null===(F=S.value)||void 0===F?void 0:F.trim())!=="":null===(E=eK.blockProps)||void 0===E?void 0:null===(A=E.header_linkedin_link)||void 0===A?void 0:A.active,e9="live"===eM?(null===(H=eK.blockProps)||void 0===H?void 0:null===(z=H.header_tiktok_link)||void 0===z?void 0:z.active)&&(null===(U=eK.blockProps)||void 0===U?void 0:null===(V=U.header_tiktok_link)||void 0===V?void 0:null===(R=V.value)||void 0===R?void 0:R.trim())!=="":null===(W=eK.blockProps)||void 0===W?void 0:null===(K=W.header_tiktok_link)||void 0===K?void 0:K.active,e8="live"===eM?(null===(q=eK.blockProps)||void 0===q?void 0:null===(O=q.header_youtube_link)||void 0===O?void 0:O.active)&&(null===(G=eK.blockProps)||void 0===G?void 0:null===($=G.header_youtube_link)||void 0===$?void 0:null===(Y=$.value)||void 0===Y?void 0:Y.trim())!=="":null===(J=eK.blockProps)||void 0===J?void 0:null===(Q=J.header_youtube_link)||void 0===Q?void 0:Q.active,e7="live"===eM?(null===(X=eK.blockProps)||void 0===X?void 0:null===(ee=X.header_call_link)||void 0===ee?void 0:ee.active)&&(null===(et=eK.blockProps)||void 0===et?void 0:null===(el=et.header_call_link)||void 0===el?void 0:null===(ei=el.value)||void 0===ei?void 0:ei.trim())!=="":null===(eo=eK.blockProps)||void 0===eo?void 0:null===(ea=eo.header_call_link)||void 0===ea?void 0:ea.active;return(0,_.jsx)("div",{className:"",style:{height:(eQ||0)+("preview"===eM||"edit"===eM?eX<768?92:60:0)-10,"--navbar-height":(eQ||0)+("preview"===eM||"edit"===eM?eX<768?92:60:0)-10,...e2?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==eM?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(eq&&L().scrolled," ").concat(eq?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:eG,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3 lg:B__gap-6"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(eq&&L().scrolled," !B__justify-between lg:!B__justify-center !B__ml-0 B__w-full lg:B__w-auto"),onClick:()=>{e$.pathname.startsWith("/generated")||e$.pathname.startsWith("/edit")||e$.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?e$.push("/".concat("preview"===eM?"generated":"edit"===eM?"edit":"live","/").concat(eU._id.$oid)):e$.push("/")},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(es=eK.blockProps)||void 0===es?void 0:null===(en=es.logo)||void 0===en?void 0:en.active)&&(null===(er=eK.blockProps)||void 0===er?void 0:null===(ed=er.logo)||void 0===ed?void 0:ed.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(ec=eK.blockProps)||void 0===ec?void 0:null===(eB=ec.logo)||void 0===eB?void 0:eB.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(ex=eK.blockProps)||void 0===ex?void 0:null===(em=ex.logo)||void 0===em?void 0:em.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==eM&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{e1(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:e0,handleClose:()=>{e1(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px] B__content-center ".concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:[(null==eK?void 0:null===(ep=eK.blockProps)||void 0===ep?void 0:null===(eu=ep.org_name)||void 0===eu?void 0:eu.active)?(0,D.ZP)(eU.org_name||""):"",("preview"===eM||"edit"===eM)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,addPageHandler:eR})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(eq?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),eJ(e=>!e)},children:eY?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===eM||"edit"===eM)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(eY?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3",children:(0,_.jsx)(iQ,{addPageHandler:eR})})}),(null===(ev=null==eU?void 0:null===(eh=eU.pages)||void 0===eh?void 0:eh.filter(e=>e.mainPage&&e.page_id!==eW&&e.active&&e.showInNavbar))||void 0===ev?void 0:ev.length)||!(null==eU?void 0:eU.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-start B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(eY?"":"!B__hidden lg:!B__flex"),children:[null==eU?void 0:null===(eg=eU.pages)||void 0===eg?void 0:eg.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(eq?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===eW?"B__rounded-full B__bg-[#ffffff1a] B__px-4 xl:B__px-5":""," ").concat(e.page_id===eW&&e2?"!B__bg-[#0000001a]":""," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{e$.pathname.startsWith("/generated")||e$.pathname.startsWith("/edit")||e$.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?e$.push("/".concat("preview"===eM?"generated":"edit"===eM?"edit":"live","/").concat(eU._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):e$.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),eJ(!1)},children:null==e?void 0:e.title},t)}),e7&&(0,_.jsx)("a",{href:"tel:".concat(null===(ey=eK.blockProps)||void 0===ey?void 0:null===(eb=ey.header_call_link)||void 0===eb?void 0:eb.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"lg:B__hidden B__w-fit B__rounded-full B__border B__p-1.5 B__px-4 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ef=eK.blockProps)||void 0===ef?void 0:null===(ej=ef.header_call_link)||void 0===ej?void 0:ej.value)||"Call us"})}),(null==eU?void 0:eU.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(eq?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"!B__hidden lg:!B__flex B__justify-start lg:B__justify-center B__mr-auto lg:B__mr-0 B__items-center B__gap-1 B__transition-[height] B__overflow-hidden",style:{right:"0"},children:[e5&&(0,_.jsx)("a",{href:null===(ek=eK.blockProps)||void 0===ek?void 0:null===(ew=ek.header_facebook_link)||void 0===ew?void 0:ew.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.k1O,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e4&&(0,_.jsx)("a",{href:null===(eN=eK.blockProps)||void 0===eN?void 0:null===(eP=eN.header_twitter_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.meP,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e3&&(0,_.jsx)("a",{href:null===(eI=eK.blockProps)||void 0===eI?void 0:null===(eC=eI.header_instagram_link)||void 0===eC?void 0:eC.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.Vs6,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e6&&(0,_.jsx)("a",{href:null===(eZ=eK.blockProps)||void 0===eZ?void 0:null===(eT=eZ.header_linkedin_link)||void 0===eT?void 0:eT.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.NQh,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e9&&(0,_.jsx)("a",{href:null===(eL=eK.blockProps)||void 0===eL?void 0:null===(eS=eL.header_tiktok_link)||void 0===eS?void 0:eS.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.nTm,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e8&&(0,_.jsx)("a",{href:null===(eD=eK.blockProps)||void 0===eD?void 0:null===(eF=eD.header_youtube_link)||void 0===eF?void 0:eF.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.V2E,{className:"B__text-xs ".concat(eq?"B__text-nav-scrolled":"B__text-nav")})})}),e7&&(0,_.jsx)("a",{href:"tel:".concat(null===(eE=eK.blockProps)||void 0===eE?void 0:null===(eA=eE.header_call_link)||void 0===eA?void 0:eA.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__px-4 B__mx-1.5 ".concat(eq?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eq?"B__text-nav-scrolled":"B__text-nav"),children:(null===(eH=eK.blockProps)||void 0===eH?void 0:null===(ez=eH.header_call_link)||void 0===ez?void 0:ez.value)||"Call us"})})]})]})})})},i2=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C;let{viewMode:Z,websiteData:T,page:S,addPageHandler:F}=e,{page_id:E}=S,{layout:A}=T,[H,z]=(0,i.useState)(!1),M=(0,i.useRef)(null),U=(0,n.useRouter)(),[V,R]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;z(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:W,width:K}=lD(M),[q,O]=(0,i.useState)(!1),G=(null==T?void 0:null===(t=T.styles)||void 0===t?void 0:t["nav-appearance"])==="white",$="live"===Z?(null===(l=A.blockProps)||void 0===l?void 0:null===(o=l.header_call_link)||void 0===o?void 0:o.active)&&(null===(a=A.blockProps)||void 0===a?void 0:null===(s=a.header_call_link)||void 0===s?void 0:null===(r=s.value)||void 0===r?void 0:r.trim())!=="":null===(c=A.blockProps)||void 0===c?void 0:null===(B=c.header_call_link)||void 0===B?void 0:B.active;return(0,_.jsx)("div",{className:"",style:{height:(W||0)+("preview"===Z||"edit"===Z?K<768?92:60:0)-10,"--navabar-height":(W||0)+("preview"===Z||"edit"===Z?K<768?92:60:0)-10,...G?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==Z?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(H&&L().scrolled," ").concat(H?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:M,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3 lg:B__gap-6"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(H&&L().scrolled," !B__justify-between lg:!B__justify-center B__w-full lg:B__w-auto"),onClick:()=>{U.pathname.startsWith("/generated")||U.pathname.startsWith("/edit")||U.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?U.push("/".concat("preview"===Z?"generated":"edit"===Z?"edit":"live","/").concat(T._id.$oid)):U.push("/")},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(x=A.blockProps)||void 0===x?void 0:null===(m=x.logo)||void 0===m?void 0:m.active)&&(null===(p=A.blockProps)||void 0===p?void 0:null===(u=p.logo)||void 0===u?void 0:u.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(v=A.blockProps)||void 0===v?void 0:null===(h=v.logo)||void 0===h?void 0:h.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(y=A.blockProps)||void 0===y?void 0:null===(b=y.logo)||void 0===b?void 0:b.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==Z&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{O(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:q,handleClose:()=>{O(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px] B__content-center ".concat(H?"B__text-nav-scrolled":"B__text-nav"),children:[(null==A?void 0:null===(f=A.blockProps)||void 0===f?void 0:null===(k=f.org_name)||void 0===k?void 0:k.active)?(0,D.ZP)(T.org_name||""):"",("preview"===Z||"edit"===Z)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,showSocialMediaIcons:!1,addPageHandler:F})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(H?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),R(e=>!e)},children:V?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===Z||"edit"===Z)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(V?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3",children:(0,_.jsx)(iQ,{showSocialMediaIcons:!1,addPageHandler:F})})}),(null===(w=null==T?void 0:null===(N=T.pages)||void 0===N?void 0:N.filter(e=>e.mainPage&&e.page_id!==E&&e.active&&e.showInNavbar))||void 0===w?void 0:w.length)||!(null==T?void 0:T.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-end B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(V?"":"!B__hidden lg:!B__flex"),children:[null==T?void 0:null===(P=T.pages)||void 0===P?void 0:P.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:" B__w-fit lg:B__w-auto B__rounded-primary lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(H?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===E?"B__px-3 lg:B__px-5 xl:B__px-6":"B__px-1 lg:B__px-2 xl:B__px-3","  ").concat(e.page_id===E?H?"B__text-[color:var(--background-color-nav-scrolled)] B__bg-[color:var(--color-nav-scrolled)]":"B__text-[color:var(--background-color-nav)] B__bg-[color:var(--color-nav)]":""),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{U.pathname.startsWith("/generated")||U.pathname.startsWith("/edit")||U.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?U.push("/".concat("preview"===Z?"generated":"edit"===Z?"edit":"live","/").concat(T._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):U.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),R(!1)},children:null==e?void 0:e.title},t)}),(null==T?void 0:T.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(H?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-4xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-4xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-4xl B__leading-3",children:"."})]})}),$&&(0,_.jsx)("div",{className:" B__w-fit lg:B__w-auto B__rounded-primary lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(H?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," B__px-3 lg:B__px-5 xl:B__px-6 ").concat(H?"B__text-[color:var(--background-color-nav-scrolled)] B__bg-[color:var(--color-nav-scrolled)]":"B__text-[color:var(--background-color-nav)] B__bg-[color:var(--color-nav)]"),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{if(window){var e,t;window.open("tel:".concat(null===(e=A.blockProps)||void 0===e?void 0:null===(t=e.header_call_link)||void 0===t?void 0:t.phonenumber))}},children:(null===(I=A.blockProps)||void 0===I?void 0:null===(C=I.header_call_link)||void 0===C?void 0:C.value)||"Call us"})]}):(0,_.jsx)(_.Fragment,{})]})})})},i5=e=>{var t,l,o,a,s,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z;let{viewMode:T,websiteData:S,page:F,addPageHandler:E}=e,{page_id:A}=F,{layout:H}=S,[z,M]=(0,i.useState)(!1),{addPage:U}=(0,i.useContext)(r.o)||{},V=(0,i.useRef)(null),R=(0,n.useRouter)(),[W,K]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;M(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:q,width:O}=lD(V),[G,$]=(0,i.useState)(!1),Y=(null==S?void 0:null===(t=S.styles)||void 0===t?void 0:t["nav-appearance"])==="white",J="live"===T?(null===(l=H.blockProps)||void 0===l?void 0:null===(o=l.header_call_link)||void 0===o?void 0:o.active)&&(null===(a=H.blockProps)||void 0===a?void 0:null===(s=a.header_call_link)||void 0===s?void 0:null===(c=s.value)||void 0===c?void 0:c.trim())!=="":null===(B=H.blockProps)||void 0===B?void 0:null===(x=B.header_call_link)||void 0===x?void 0:x.active;return(0,_.jsx)("div",{className:"",style:{height:(q||0)+("preview"===T||"edit"===T?O<768?92:60:0)-10,"--navbar-height":(q||0)+("preview"===T||"edit"===T?O<768?92:60:0)-10,...Y?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==T?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(z&&L().scrolled," ").concat(z?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:V,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3 lg:B__gap-6"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(z&&L().scrolled," !B__justify-between lg:!B__justify-center B__w-full lg:B__w-auto"),onClick:()=>{R.pathname.startsWith("/generated")||R.pathname.startsWith("/edit")||R.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?R.push("/".concat("preview"===T?"generated":"edit"===T?"edit":"live","/").concat(S._id.$oid)):R.push("/")},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(m=H.blockProps)||void 0===m?void 0:null===(p=m.logo)||void 0===p?void 0:p.active)&&(null===(u=H.blockProps)||void 0===u?void 0:null===(v=u.logo)||void 0===v?void 0:v.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(h=H.blockProps)||void 0===h?void 0:null===(y=h.logo)||void 0===y?void 0:y.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(b=H.blockProps)||void 0===b?void 0:null===(f=b.logo)||void 0===f?void 0:f.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==T&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{$(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:G,handleClose:()=>{$(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px] B__content-center ".concat(z?"B__text-nav-scrolled ":""),children:[(null==H?void 0:null===(k=H.blockProps)||void 0===k?void 0:null===(w=k.org_name)||void 0===w?void 0:w.active)?(0,D.ZP)(S.org_name||""):"",("preview"===T||"edit"===T)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,showSocialMediaIcons:!1,addPageHandler:E})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(z?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),K(e=>!e)},children:W?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===T||"edit"===T)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(W?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3",children:(0,_.jsx)(iQ,{showSocialMediaIcons:!1,addPageHandler:E})})}),(null===(N=null==S?void 0:null===(P=S.pages)||void 0===P?void 0:P.filter(e=>e.mainPage&&e.page_id!==A&&e.active&&e.showInNavbar))||void 0===N?void 0:N.length)||!(null==S?void 0:S.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-end B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(W?"":"!B__hidden lg:!B__flex"),children:[null==S?void 0:null===(I=S.pages)||void 0===I?void 0:I.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto B__rounded-primary lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(z?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===A?"B__px-3 lg:B__px-5 xl:B__px-6":"B__px-1 lg:B__px-2 xl:B__px-3"," ").concat(e.page_id===A?z?"B__text-nav-scrolled B__border-[0.5px] B__border-[color:var(--color-nav-scrolled)]":"B__text-nav B__border-[0.5px] B__border-[color:var(--color-nav)]":""," "),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{R.pathname.startsWith("/generated")||R.pathname.startsWith("/edit")||R.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?R.push("/".concat("preview"===T?"generated":"edit"===T?"edit":"live","/").concat(S._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):R.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),K(!1)},children:null==e?void 0:e.title},t)}),(null==S?void 0:S.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(z?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),J&&(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto B__rounded-primary lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(z?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," B__px-3 lg:B__px-5 xl:B__px-6 ").concat(z?"B__text-nav-scrolled B__border-[0.5px] B__border-[color:var(--color-nav-scrolled)]":"B__text-nav B__border-[0.5px] B__border-[color:var(--color-nav)]"," "),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{if(window){var e,t;window.open("tel:".concat(null===(e=H.blockProps)||void 0===e?void 0:null===(t=e.header_call_link)||void 0===t?void 0:t.phonenumber))}},children:(null===(C=H.blockProps)||void 0===C?void 0:null===(Z=C.header_call_link)||void 0===Z?void 0:Z.value)||"Call us"})]}):(0,_.jsx)(_.Fragment,{})]})})})},i3=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z,T,S,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez,eM;let{viewMode:eU,websiteData:eV,page:eR,addPageHandler:eW}=e,{page_id:eK}=eR,{layout:eq}=eV,[eO,eG]=(0,i.useState)(!1),e$=(0,i.useRef)(null),eY=(0,n.useRouter)(),[eJ,eQ]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;eG(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:eX,width:e0}=lD(e$),[e1,e2]=(0,i.useState)(!1),e5=(null==eV?void 0:null===(t=eV.styles)||void 0===t?void 0:t["h-nav-appearance"])==="transparent",e3=(null==eV?void 0:null===(l=eV.styles)||void 0===l?void 0:l["h-nav-appearance"])==="white",e4="live"===eU?(null===(o=eq.blockProps)||void 0===o?void 0:null===(a=o.header_facebook_link)||void 0===a?void 0:a.active)&&(null===(s=eq.blockProps)||void 0===s?void 0:null===(r=s.header_facebook_link)||void 0===r?void 0:null===(c=r.value)||void 0===c?void 0:c.trim())!=="":null===(B=eq.blockProps)||void 0===B?void 0:null===(x=B.header_facebook_link)||void 0===x?void 0:x.active,e6="live"===eU?(null===(m=eq.blockProps)||void 0===m?void 0:null===(p=m.header_instagram_link)||void 0===p?void 0:p.active)&&(null===(u=eq.blockProps)||void 0===u?void 0:null===(v=u.header_instagram_link)||void 0===v?void 0:null===(h=v.value)||void 0===h?void 0:h.trim())!=="":null===(y=eq.blockProps)||void 0===y?void 0:null===(b=y.header_instagram_link)||void 0===b?void 0:b.active,e9="live"===eU?(null===(f=eq.blockProps)||void 0===f?void 0:null===(k=f.header_twitter_link)||void 0===k?void 0:k.active)&&(null===(w=eq.blockProps)||void 0===w?void 0:null===(N=w.header_twitter_link)||void 0===N?void 0:null===(P=N.value)||void 0===P?void 0:P.trim())!=="":null===(I=eq.blockProps)||void 0===I?void 0:null===(C=I.header_twitter_link)||void 0===C?void 0:C.active,e8="live"===eU?(null===(Z=eq.blockProps)||void 0===Z?void 0:null===(T=Z.header_linkedin_link)||void 0===T?void 0:T.active)&&(null===(S=eq.blockProps)||void 0===S?void 0:null===(F=S.header_linkedin_link)||void 0===F?void 0:null===(E=F.value)||void 0===E?void 0:E.trim())!=="":null===(A=eq.blockProps)||void 0===A?void 0:null===(H=A.header_linkedin_link)||void 0===H?void 0:H.active,e7="live"===eU?(null===(z=eq.blockProps)||void 0===z?void 0:null===(U=z.header_tiktok_link)||void 0===U?void 0:U.active)&&(null===(V=eq.blockProps)||void 0===V?void 0:null===(R=V.header_tiktok_link)||void 0===R?void 0:null===(W=R.value)||void 0===W?void 0:W.trim())!=="":null===(K=eq.blockProps)||void 0===K?void 0:null===(q=K.header_tiktok_link)||void 0===q?void 0:q.active,te="live"===eU?(null===(O=eq.blockProps)||void 0===O?void 0:null===(G=O.header_youtube_link)||void 0===G?void 0:G.active)&&(null===($=eq.blockProps)||void 0===$?void 0:null===(Y=$.header_youtube_link)||void 0===Y?void 0:null===(J=Y.value)||void 0===J?void 0:J.trim())!=="":null===(Q=eq.blockProps)||void 0===Q?void 0:null===(X=Q.header_youtube_link)||void 0===X?void 0:X.active,tt="live"===eU?(null===(ee=eq.blockProps)||void 0===ee?void 0:null===(et=ee.header_call_link)||void 0===et?void 0:et.active)&&(null===(el=eq.blockProps)||void 0===el?void 0:null===(ei=el.header_call_link)||void 0===ei?void 0:null===(eo=ei.value)||void 0===eo?void 0:eo.trim())!=="":null===(ea=eq.blockProps)||void 0===ea?void 0:null===(es=ea.header_call_link)||void 0===es?void 0:es.active;return(0,_.jsx)("div",{className:"",style:{height:((e5?0:eX)||0)+("preview"===eU||"edit"===eU?e0<768?92:60:0)-10,"--navbar-height":((e5?0:eX)||0)+("preview"===eU||"edit"===eU?e0<768?92:60:0)-10,...e5&&(e0>992||!eJ)?{"--color-nav":"#ffffff","--background-color-nav":"#ffffff00"}:e3?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==eU?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(eO&&L().scrolled," ").concat(eO?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:e$,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(eO&&L().scrolled," !B__justify-between lg:!B__justify-center !B__ml-0 B__w-full lg:B__w-auto"),onClick:()=>{eY.pathname.startsWith("/generated")||eY.pathname.startsWith("/edit")||eY.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eY.push("/".concat("preview"===eU?"generated":"edit"===eU?"edit":"live","/").concat(eV._id.$oid)):eY.push("/")},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(en=eq.blockProps)||void 0===en?void 0:null===(er=en.logo)||void 0===er?void 0:er.active)&&(null===(ed=eq.blockProps)||void 0===ed?void 0:null===(ec=ed.logo)||void 0===ec?void 0:ec.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(eB=eq.blockProps)||void 0===eB?void 0:null===(ex=eB.logo)||void 0===ex?void 0:ex.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(em=eq.blockProps)||void 0===em?void 0:null===(ep=em.logo)||void 0===ep?void 0:ep.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==eU&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{e2(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:e1,handleClose:()=>{e2(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px]  B__content-center ".concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:[(null==eq?void 0:null===(eu=eq.blockProps)||void 0===eu?void 0:null===(ev=eu.org_name)||void 0===ev?void 0:ev.active)?(0,D.ZP)(eV.org_name||""):"",("preview"===eU||"edit"===eU)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,addPageHandler:eW})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(eO?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),eQ(e=>!e)},children:eJ?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===eU||"edit"===eU)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(eJ?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 lg:B__gap-6",children:(0,_.jsx)(iQ,{addPageHandler:eW})})}),(null===(eh=null==eV?void 0:null===(eg=eV.pages)||void 0===eg?void 0:eg.filter(e=>e.mainPage&&e.page_id!==eK&&e.active&&e.showInNavbar))||void 0===eh?void 0:eh.length)||!(null==eV?void 0:eV.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-center B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(eJ?"":"!B__hidden lg:!B__flex"),children:[null==eV?void 0:null===(ey=eV.pages)||void 0===ey?void 0:ey.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(eO?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===eK?"B__rounded-full B__bg-[#ffffff1a] B__px-4 xl:B__px-5":""," ").concat(e.page_id===eK&&(e3||e5)?"!B__bg-[#0000001a]":""," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{eY.pathname.startsWith("/generated")||eY.pathname.startsWith("/edit")||eY.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eY.push("/".concat("preview"===eU?"generated":"edit"===eU?"edit":"live","/").concat(eV._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eY.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),eQ(!1)},children:null==e?void 0:e.title},t)}),tt&&(0,_.jsx)("a",{href:"tel:".concat(null===(eb=eq.blockProps)||void 0===eb?void 0:null===(ef=eb.header_call_link)||void 0===ef?void 0:ef.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"lg:B__hidden B__w-fit B__rounded-full B__border B__p-1.5 B__px-4 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ej=eq.blockProps)||void 0===ej?void 0:null===(ek=ej.header_call_link)||void 0===ek?void 0:ek.value)||"Call us"})}),(null==eV?void 0:eV.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(eO?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"!B__hidden lg:!B__flex B__justify-start lg:B__justify-center B__mr-auto lg:B__mr-0 B__items-center B__gap-1 B__transition-[height] B__overflow-hidden",style:{right:"0"},children:[e4&&(0,_.jsx)("a",{href:null===(ew=eq.blockProps)||void 0===ew?void 0:null===(eN=ew.header_facebook_link)||void 0===eN?void 0:eN.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.k1O,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e9&&(0,_.jsx)("a",{href:null===(eP=eq.blockProps)||void 0===eP?void 0:null===(eI=eP.header_twitter_link)||void 0===eI?void 0:eI.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.meP,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e6&&(0,_.jsx)("a",{href:null===(eC=eq.blockProps)||void 0===eC?void 0:null===(eZ=eC.header_instagram_link)||void 0===eZ?void 0:eZ.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.Vs6,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e8&&(0,_.jsx)("a",{href:null===(eT=eq.blockProps)||void 0===eT?void 0:null===(eL=eT.header_linkedin_link)||void 0===eL?void 0:eL.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.NQh,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e7&&(0,_.jsx)("a",{href:null===(eS=eq.blockProps)||void 0===eS?void 0:null===(eD=eS.header_tiktok_link)||void 0===eD?void 0:eD.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.nTm,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),te&&(0,_.jsx)("a",{href:null===(eF=eq.blockProps)||void 0===eF?void 0:null===(eE=eF.header_youtube_link)||void 0===eE?void 0:eE.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.V2E,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),tt&&(0,_.jsx)("a",{href:"tel:".concat(null===(eA=eq.blockProps)||void 0===eA?void 0:null===(eH=eA.header_call_link)||void 0===eH?void 0:eH.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__px-4 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ez=eq.blockProps)||void 0===ez?void 0:null===(eM=ez.header_call_link)||void 0===eM?void 0:eM.value)||"Call us"})})]})]})})})},i4=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z,T,S,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez,eM;let{viewMode:eU,websiteData:eV,page:eR,addPageHandler:eW}=e,{page_id:eK}=eR,{layout:eq}=eV,[eO,eG]=(0,i.useState)(!1),e$=(0,i.useRef)(null),eY=(0,n.useRouter)(),[eJ,eQ]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;eG(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:eX,width:e0}=lD(e$),[e1,e2]=(0,i.useState)(!1),e5=(null==eV?void 0:null===(t=eV.styles)||void 0===t?void 0:t["h-nav-appearance"])==="transparent",e3=(null==eV?void 0:null===(l=eV.styles)||void 0===l?void 0:l["h-nav-appearance"])==="white",e4="live"===eU?(null===(o=eq.blockProps)||void 0===o?void 0:null===(a=o.header_facebook_link)||void 0===a?void 0:a.active)&&(null===(s=eq.blockProps)||void 0===s?void 0:null===(r=s.header_facebook_link)||void 0===r?void 0:null===(c=r.value)||void 0===c?void 0:c.trim())!=="":null===(B=eq.blockProps)||void 0===B?void 0:null===(x=B.header_facebook_link)||void 0===x?void 0:x.active,e6="live"===eU?(null===(m=eq.blockProps)||void 0===m?void 0:null===(p=m.header_instagram_link)||void 0===p?void 0:p.active)&&(null===(u=eq.blockProps)||void 0===u?void 0:null===(v=u.header_instagram_link)||void 0===v?void 0:null===(h=v.value)||void 0===h?void 0:h.trim())!=="":null===(y=eq.blockProps)||void 0===y?void 0:null===(b=y.header_instagram_link)||void 0===b?void 0:b.active,e9="live"===eU?(null===(f=eq.blockProps)||void 0===f?void 0:null===(k=f.header_twitter_link)||void 0===k?void 0:k.active)&&(null===(w=eq.blockProps)||void 0===w?void 0:null===(N=w.header_twitter_link)||void 0===N?void 0:null===(P=N.value)||void 0===P?void 0:P.trim())!=="":null===(I=eq.blockProps)||void 0===I?void 0:null===(C=I.header_twitter_link)||void 0===C?void 0:C.active,e8="live"===eU?(null===(Z=eq.blockProps)||void 0===Z?void 0:null===(T=Z.header_linkedin_link)||void 0===T?void 0:T.active)&&(null===(S=eq.blockProps)||void 0===S?void 0:null===(F=S.header_linkedin_link)||void 0===F?void 0:null===(E=F.value)||void 0===E?void 0:E.trim())!=="":null===(A=eq.blockProps)||void 0===A?void 0:null===(H=A.header_linkedin_link)||void 0===H?void 0:H.active,e7="live"===eU?(null===(z=eq.blockProps)||void 0===z?void 0:null===(U=z.header_tiktok_link)||void 0===U?void 0:U.active)&&(null===(V=eq.blockProps)||void 0===V?void 0:null===(R=V.header_tiktok_link)||void 0===R?void 0:null===(W=R.value)||void 0===W?void 0:W.trim())!=="":null===(K=eq.blockProps)||void 0===K?void 0:null===(q=K.header_tiktok_link)||void 0===q?void 0:q.active,te="live"===eU?(null===(O=eq.blockProps)||void 0===O?void 0:null===(G=O.header_youtube_link)||void 0===G?void 0:G.active)&&(null===($=eq.blockProps)||void 0===$?void 0:null===(Y=$.header_youtube_link)||void 0===Y?void 0:null===(J=Y.value)||void 0===J?void 0:J.trim())!=="":null===(Q=eq.blockProps)||void 0===Q?void 0:null===(X=Q.header_youtube_link)||void 0===X?void 0:X.active,tt="live"===eU?(null===(ee=eq.blockProps)||void 0===ee?void 0:null===(et=ee.header_call_link)||void 0===et?void 0:et.active)&&(null===(el=eq.blockProps)||void 0===el?void 0:null===(ei=el.header_call_link)||void 0===ei?void 0:null===(eo=ei.value)||void 0===eo?void 0:eo.trim())!=="":null===(ea=eq.blockProps)||void 0===ea?void 0:null===(es=ea.header_call_link)||void 0===es?void 0:es.active;return(0,_.jsx)("div",{className:"",style:{height:((e5?0:eX)||0)+("preview"===eU||"edit"===eU?e0<768?92:60:0)-10,"--navbar-height":((e5?0:eX)||0)+("preview"===eU||"edit"===eU?e0<768?92:60:0)-10,...e5&&(e0>992||!eJ)?{"--color-nav":"#ffffff","--background-color-nav":"#ffffff00"}:e3?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==eU?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(eO&&L().scrolled," ").concat(eO?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:e$,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3 lg:B__gap-6"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(eO&&L().scrolled," !B__justify-between lg:!B__justify-center !B__ml-0 B__w-full lg:B__w-auto"),onClick:()=>{eY.pathname.startsWith("/generated")||eY.pathname.startsWith("/edit")||eY.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eY.push("/".concat("preview"===eU?"generated":"edit"===eU?"edit":"live","/").concat(eV._id.$oid)):eY.push("/"),eQ(!1)},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(en=eq.blockProps)||void 0===en?void 0:null===(er=en.logo)||void 0===er?void 0:er.active)&&(null===(ed=eq.blockProps)||void 0===ed?void 0:null===(ec=ed.logo)||void 0===ec?void 0:ec.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(eB=eq.blockProps)||void 0===eB?void 0:null===(ex=eB.logo)||void 0===ex?void 0:ex.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(em=eq.blockProps)||void 0===em?void 0:null===(ep=em.logo)||void 0===ep?void 0:ep.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==eU&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{e2(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:e1,handleClose:()=>{e2(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px] B__content-center ".concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:[(null==eq?void 0:null===(eu=eq.blockProps)||void 0===eu?void 0:null===(ev=eu.org_name)||void 0===ev?void 0:ev.active)?(0,D.ZP)(eV.org_name||""):"",("preview"===eU||"edit"===eU)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,addPageHandler:eW})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(eO?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),eQ(e=>!e)},children:eJ?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===eU||"edit"===eU)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(eJ?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3",children:(0,_.jsx)(iQ,{addPageHandler:eW})})}),(null===(eh=null==eV?void 0:null===(eg=eV.pages)||void 0===eg?void 0:eg.filter(e=>e.mainPage&&e.page_id!==eK&&e.active&&e.showInNavbar))||void 0===eh?void 0:eh.length)||!(null==eV?void 0:eV.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-end B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(eJ?"":"!B__hidden lg:!B__flex"),children:[null==eV?void 0:null===(ey=eV.pages)||void 0===ey?void 0:ey.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(eO?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===eK?"B__rounded-full B__bg-[#ffffff1a] B__px-4 xl:B__px-5":""," ").concat(e.page_id===eK&&(e3||e5)?"!B__bg-[#0000001a]":""," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{eY.pathname.startsWith("/generated")||eY.pathname.startsWith("/edit")||eY.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eY.push("/".concat("preview"===eU?"generated":"edit"===eU?"edit":"live","/").concat(eV._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eY.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),eQ(!1)},children:null==e?void 0:e.title},t)}),tt&&(0,_.jsx)("a",{href:"tel:".concat(null===(eb=eq.blockProps)||void 0===eb?void 0:null===(ef=eb.header_call_link)||void 0===ef?void 0:ef.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"lg:B__hidden B__w-fit B__rounded-full B__border B__p-1.5 B__px-4 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ej=eq.blockProps)||void 0===ej?void 0:null===(ek=ej.header_call_link)||void 0===ek?void 0:ek.value)||"Call us"})}),(null==eV?void 0:eV.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(eO?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"!B__hidden lg:!B__flex B__justify-start lg:B__justify-center B__mr-auto lg:B__mr-0 B__items-center B__gap-1 B__transition-[height] B__overflow-hidden",style:{right:"0"},children:[e4&&(0,_.jsx)("a",{href:null===(ew=eq.blockProps)||void 0===ew?void 0:null===(eN=ew.header_facebook_link)||void 0===eN?void 0:eN.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.k1O,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e9&&(0,_.jsx)("a",{href:null===(eP=eq.blockProps)||void 0===eP?void 0:null===(eI=eP.header_twitter_link)||void 0===eI?void 0:eI.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.meP,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e6&&(0,_.jsx)("a",{href:null===(eC=eq.blockProps)||void 0===eC?void 0:null===(eZ=eC.header_instagram_link)||void 0===eZ?void 0:eZ.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.Vs6,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e8&&(0,_.jsx)("a",{href:null===(eT=eq.blockProps)||void 0===eT?void 0:null===(eL=eT.header_linkedin_link)||void 0===eL?void 0:eL.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.NQh,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e7&&(0,_.jsx)("a",{href:null===(eS=eq.blockProps)||void 0===eS?void 0:null===(eD=eS.header_tiktok_link)||void 0===eD?void 0:eD.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.nTm,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),te&&(0,_.jsx)("a",{href:null===(eF=eq.blockProps)||void 0===eF?void 0:null===(eE=eF.header_youtube_link)||void 0===eE?void 0:eE.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.V2E,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),tt&&(0,_.jsx)("a",{href:"tel:".concat(null===(eA=eq.blockProps)||void 0===eA?void 0:null===(eH=eA.header_call_link)||void 0===eH?void 0:eH.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__px-4 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ez=eq.blockProps)||void 0===ez?void 0:null===(eM=ez.header_call_link)||void 0===eM?void 0:eM.value)||"Call us"})})]})]})})})},i6=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z,T,S,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez,eM;let{viewMode:eU,websiteData:eV,page:eR,addPageHandler:eW}=e,{page_id:eK}=eR,{layout:eq}=eV,[eO,eG]=(0,i.useState)(!1),e$=(0,i.useRef)(null),eY=(0,n.useRouter)(),[eJ,eQ]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;eG(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:eX,width:e0}=lD(e$),[e1,e2]=(0,i.useState)(!1),e5=(null==eV?void 0:null===(t=eV.styles)||void 0===t?void 0:t["h-nav-appearance"])==="white",e3=(null==eV?void 0:null===(l=eV.styles)||void 0===l?void 0:l["h-nav-appearance"])==="transparent",e4="live"===eU?(null===(o=eq.blockProps)||void 0===o?void 0:null===(a=o.header_facebook_link)||void 0===a?void 0:a.active)&&(null===(s=eq.blockProps)||void 0===s?void 0:null===(r=s.header_facebook_link)||void 0===r?void 0:null===(c=r.value)||void 0===c?void 0:c.trim())!=="":null===(B=eq.blockProps)||void 0===B?void 0:null===(x=B.header_facebook_link)||void 0===x?void 0:x.active,e6="live"===eU?(null===(m=eq.blockProps)||void 0===m?void 0:null===(p=m.header_instagram_link)||void 0===p?void 0:p.active)&&(null===(u=eq.blockProps)||void 0===u?void 0:null===(v=u.header_instagram_link)||void 0===v?void 0:null===(h=v.value)||void 0===h?void 0:h.trim())!=="":null===(y=eq.blockProps)||void 0===y?void 0:null===(b=y.header_instagram_link)||void 0===b?void 0:b.active,e9="live"===eU?(null===(f=eq.blockProps)||void 0===f?void 0:null===(k=f.header_twitter_link)||void 0===k?void 0:k.active)&&(null===(w=eq.blockProps)||void 0===w?void 0:null===(N=w.header_twitter_link)||void 0===N?void 0:null===(P=N.value)||void 0===P?void 0:P.trim())!=="":null===(I=eq.blockProps)||void 0===I?void 0:null===(C=I.header_twitter_link)||void 0===C?void 0:C.active,e8="live"===eU?(null===(Z=eq.blockProps)||void 0===Z?void 0:null===(T=Z.header_linkedin_link)||void 0===T?void 0:T.active)&&(null===(S=eq.blockProps)||void 0===S?void 0:null===(F=S.header_linkedin_link)||void 0===F?void 0:null===(E=F.value)||void 0===E?void 0:E.trim())!=="":null===(A=eq.blockProps)||void 0===A?void 0:null===(H=A.header_linkedin_link)||void 0===H?void 0:H.active,e7="live"===eU?(null===(z=eq.blockProps)||void 0===z?void 0:null===(U=z.header_tiktok_link)||void 0===U?void 0:U.active)&&(null===(V=eq.blockProps)||void 0===V?void 0:null===(R=V.header_tiktok_link)||void 0===R?void 0:null===(W=R.value)||void 0===W?void 0:W.trim())!=="":null===(K=eq.blockProps)||void 0===K?void 0:null===(q=K.header_tiktok_link)||void 0===q?void 0:q.active,te="live"===eU?(null===(O=eq.blockProps)||void 0===O?void 0:null===(G=O.header_youtube_link)||void 0===G?void 0:G.active)&&(null===($=eq.blockProps)||void 0===$?void 0:null===(Y=$.header_youtube_link)||void 0===Y?void 0:null===(J=Y.value)||void 0===J?void 0:J.trim())!=="":null===(Q=eq.blockProps)||void 0===Q?void 0:null===(X=Q.header_youtube_link)||void 0===X?void 0:X.active,tt="live"===eU?(null===(ee=eq.blockProps)||void 0===ee?void 0:null===(et=ee.header_call_link)||void 0===et?void 0:et.active)&&(null===(el=eq.blockProps)||void 0===el?void 0:null===(ei=el.header_call_link)||void 0===ei?void 0:null===(eo=ei.value)||void 0===eo?void 0:eo.trim())!=="":null===(ea=eq.blockProps)||void 0===ea?void 0:null===(es=ea.header_call_link)||void 0===es?void 0:es.active;return(0,_.jsx)("div",{className:"",style:{height:((e3?0:eX)||0)+("preview"===eU||"edit"===eU?e0<768?92:60:0)-10,"--navbar-height":((e3?0:eX)||0)+("preview"===eU||"edit"===eU?e0<768?92:60:0)-10,...e3&&(e0>992||!eJ)?{"--color-nav":"#ffffff","--background-color-nav":"#ffffff00"}:e5?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==eU?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(eO&&L().scrolled," ").concat(eO?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:e$,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3 lg:B__gap-6"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(eO&&L().scrolled," !B__justify-between lg:!B__justify-center !B__ml-0 B__w-full lg:B__w-auto"),onClick:()=>{eY.pathname.startsWith("/generated")||eY.pathname.startsWith("/edit")||eY.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eY.push("/".concat("preview"===eU?"generated":"edit"===eU?"edit":"live","/").concat(eV._id.$oid)):eY.push("/"),eQ(!1)},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(en=eq.blockProps)||void 0===en?void 0:null===(er=en.logo)||void 0===er?void 0:er.active)&&(null===(ed=eq.blockProps)||void 0===ed?void 0:null===(ec=ed.logo)||void 0===ec?void 0:ec.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(eB=eq.blockProps)||void 0===eB?void 0:null===(ex=eB.logo)||void 0===ex?void 0:ex.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(em=eq.blockProps)||void 0===em?void 0:null===(ep=em.logo)||void 0===ep?void 0:ep.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==eU&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{e2(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:e1,handleClose:()=>{e2(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px] B__content-center ".concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:[(null==eq?void 0:null===(eu=eq.blockProps)||void 0===eu?void 0:null===(ev=eu.org_name)||void 0===ev?void 0:ev.active)?(0,D.ZP)(eV.org_name||""):"",("preview"===eU||"edit"===eU)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,addPageHandler:eW})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(eO?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),eQ(e=>!e)},children:eJ?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===eU||"edit"===eU)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(eJ?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3",children:(0,_.jsx)(iQ,{addPageHandler:eW})})}),(null===(eh=null==eV?void 0:null===(eg=eV.pages)||void 0===eg?void 0:eg.filter(e=>e.mainPage&&e.page_id!==eK&&e.active&&e.showInNavbar))||void 0===eh?void 0:eh.length)||!(null==eV?void 0:eV.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-start B__mr-auto lg:B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(eJ?"":"!B__hidden lg:!B__flex"),children:[null==eV?void 0:null===(ey=eV.pages)||void 0===ey?void 0:ey.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(eO?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===eK?"B__rounded-full B__bg-[#ffffff1a] B__px-4 xl:B__px-5":""," ").concat(e.page_id===eK&&(e5||e3)?"!B__bg-[#0000001a]":""," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{eY.pathname.startsWith("/generated")||eY.pathname.startsWith("/edit")||eY.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eY.push("/".concat("preview"===eU?"generated":"edit"===eU?"edit":"live","/").concat(eV._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eY.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),eQ(!1)},children:null==e?void 0:e.title},t)}),tt&&(0,_.jsx)("a",{href:"tel:".concat(null===(eb=eq.blockProps)||void 0===eb?void 0:null===(ef=eb.header_call_link)||void 0===ef?void 0:ef.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"lg:B__hidden B__w-fit B__rounded-full B__border B__p-1.5 B__px-4 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ej=eq.blockProps)||void 0===ej?void 0:null===(ek=ej.header_call_link)||void 0===ek?void 0:ek.value)||"Call us"})}),(null==eV?void 0:eV.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(eO?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"!B__hidden lg:!B__flex B__justify-start lg:B__justify-center B__mr-auto lg:B__mr-0 B__items-center B__gap-1 B__transition-[height] B__overflow-hidden",style:{right:"0"},children:[e4&&(0,_.jsx)("a",{href:null===(ew=eq.blockProps)||void 0===ew?void 0:null===(eN=ew.header_facebook_link)||void 0===eN?void 0:eN.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.k1O,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e9&&(0,_.jsx)("a",{href:null===(eP=eq.blockProps)||void 0===eP?void 0:null===(eI=eP.header_twitter_link)||void 0===eI?void 0:eI.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.meP,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e6&&(0,_.jsx)("a",{href:null===(eC=eq.blockProps)||void 0===eC?void 0:null===(eZ=eC.header_instagram_link)||void 0===eZ?void 0:eZ.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.Vs6,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e8&&(0,_.jsx)("a",{href:null===(eT=eq.blockProps)||void 0===eT?void 0:null===(eL=eT.header_linkedin_link)||void 0===eL?void 0:eL.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(M.NQh,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),e7&&(0,_.jsx)("a",{href:null===(eS=eq.blockProps)||void 0===eS?void 0:null===(eD=eS.header_tiktok_link)||void 0===eD?void 0:eD.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.nTm,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),te&&(0,_.jsx)("a",{href:null===(eF=eq.blockProps)||void 0===eF?void 0:null===(eE=eF.header_youtube_link)||void 0===eE?void 0:eE.value,target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"),children:(0,_.jsx)(e_.V2E,{className:"B__text-xs ".concat(eO?"B__text-nav-scrolled":"B__text-nav")})})}),tt&&(0,_.jsx)("a",{href:"tel:".concat(null===(eA=eq.blockProps)||void 0===eA?void 0:null===(eH=eA.header_call_link)||void 0===eH?void 0:eH.phonenumber),target:"_blank",style:{textDecoration:"none"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__p-1.5 B__px-4 B__mx-1.5 ".concat(eO?"B__border-[color:var(--color-nav-scrolled)]":"B__border-[color:var(--color-nav)]"," ").concat(eO?"B__text-nav-scrolled":"B__text-nav"),children:(null===(ez=eq.blockProps)||void 0===ez?void 0:null===(eM=ez.header_call_link)||void 0===eM?void 0:eM.value)||"Call us"})})]})]})})})},i9=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z;let{viewMode:T,websiteData:S,page:F,addPageHandler:E}=e,{page_id:A}=F,{layout:H}=S,[z,M]=(0,i.useState)(!1),U=(0,i.useRef)(null),V=(0,n.useRouter)(),[R,W]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;M(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:K,width:q}=lD(U),[O,G]=(0,i.useState)(!1),$=(null==S?void 0:null===(t=S.styles)||void 0===t?void 0:t["h-nav-appearance"])==="transparent",Y=(null==S?void 0:null===(l=S.styles)||void 0===l?void 0:l["h-nav-appearance"])==="white",J="live"===T?(null===(o=H.blockProps)||void 0===o?void 0:null===(a=o.header_call_link)||void 0===a?void 0:a.active)&&(null===(s=H.blockProps)||void 0===s?void 0:null===(r=s.header_call_link)||void 0===r?void 0:null===(c=r.value)||void 0===c?void 0:c.trim())!=="":null===(B=H.blockProps)||void 0===B?void 0:null===(x=B.header_call_link)||void 0===x?void 0:x.active;return(0,_.jsx)("div",{className:"",style:{height:(($?0:K)||0)+("preview"===T||"edit"===T?q<768?82:60:0)-10,"--navbar-height":(($?0:K)||0)+("preview"===T||"edit"===T?q<768?82:60:0)-10,...$&&(q>992||!R)?{"--color-nav":"#ffffff","--background-color-nav":"#ffffff00"}:Y?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==T?"B__top-[82px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(z&&L().scrolled," ").concat(z?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:U,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3 lg:B__gap-6"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(z&&L().scrolled," !B__justify-between lg:!B__justify-center B__w-full lg:B__w-auto"),onClick:()=>{V.pathname.startsWith("/generated")||V.pathname.startsWith("/edit")||V.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?V.push("/".concat("preview"===T?"generated":"edit"===T?"edit":"live","/").concat(S._id.$oid)):V.push("/"),W(!1)},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(m=H.blockProps)||void 0===m?void 0:null===(p=m.logo)||void 0===p?void 0:p.active)&&(null===(u=H.blockProps)||void 0===u?void 0:null===(v=u.logo)||void 0===v?void 0:v.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(h=H.blockProps)||void 0===h?void 0:null===(y=h.logo)||void 0===y?void 0:y.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(b=H.blockProps)||void 0===b?void 0:null===(f=b.logo)||void 0===f?void 0:f.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==T&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{G(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:O,handleClose:()=>{G(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px] B__content-center ".concat(z?"B__text-nav-scrolled":"B__text-nav"),children:[(null==H?void 0:null===(k=H.blockProps)||void 0===k?void 0:null===(w=k.org_name)||void 0===w?void 0:w.active)?(0,D.ZP)(S.org_name||""):"",("preview"===T||"edit"===T)&&(0,_.jsx)("div",{className:"B__hidden lg:B__block B__invisible group-hover/orgname:B__visible B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,showSocialMediaIcons:!1,addPageHandler:E})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(z?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),W(e=>!e)},children:R?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===T||"edit"===T)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(R?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3",children:(0,_.jsx)(iQ,{showSocialMediaIcons:!1,addPageHandler:E})})}),(null===(N=null==S?void 0:null===(P=S.pages)||void 0===P?void 0:P.filter(e=>e.mainPage&&e.page_id!==A&&e.active&&e.showInNavbar))||void 0===N?void 0:N.length)||!(null==S?void 0:S.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-end B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(R?"":"!B__hidden lg:!B__flex"),children:[null==S?void 0:null===(I=S.pages)||void 0===I?void 0:I.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:" B__w-fit lg:B__w-auto B__rounded-primary lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(z?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===A?"B__px-3 lg:B__px-5 xl:B__px-6":"B__px-1 lg:B__px-2 xl:B__px-3","  ").concat(e.page_id===A?z?"B__text-[color:var(--background-color-nav-scrolled)] B__bg-[color:var(--color-nav-scrolled)]":Y?"B__text-[color:var(--background-color-nav)] B__bg-[color:var(--color-nav)]":"B__text-[#000000] B__bg-[color:var(--color-nav)]":""),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{V.pathname.startsWith("/generated")||V.pathname.startsWith("/edit")||V.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?V.push("/".concat("preview"===T?"generated":"edit"===T?"edit":"live","/").concat(S._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):V.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),W(!1)},children:null==e?void 0:e.title},t)}),J&&(0,_.jsx)("div",{className:" B__w-fit lg:B__w-auto B__rounded-primary lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(z?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," B__px-3 lg:B__px-5 xl:B__px-6  ").concat(z?"B__text-[color:var(--background-color-nav-scrolled)] B__bg-[color:var(--color-nav-scrolled)]":Y?"B__text-[color:var(--background-color-nav)] B__bg-[color:var(--color-nav)]":"B__text-[#000000] B__bg-[color:var(--color-nav)]"),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{if(window){var e,t;window.open("tel:".concat(null===(e=H.blockProps)||void 0===e?void 0:null===(t=e.header_call_link)||void 0===t?void 0:t.phonenumber))}},children:(null===(C=H.blockProps)||void 0===C?void 0:null===(Z=C.header_call_link)||void 0===Z?void 0:Z.value)||"Call us"}),(null==S?void 0:S.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(z?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-4xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-4xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-4xl B__leading-3",children:"."})]})})]}):(0,_.jsx)(_.Fragment,{})]})})})},i8=e=>{var t,l,o,a,s,r,c,B,x,m,p,u,v,h,y,b,f,k,w,N,P,I,C,Z;let{viewMode:T,websiteData:S,page:F,addPageHandler:E}=e,{page_id:A}=F,{layout:H}=S,[z,M]=(0,i.useState)(!1),U=(0,i.useRef)(null),V=(0,n.useRouter)(),[R,W]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;M(e>50)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let{height:K,width:q}=lD(U),[O,G]=(0,i.useState)(!1),$=(null==S?void 0:null===(t=S.styles)||void 0===t?void 0:t["h-nav-appearance"])==="transparent",Y=(null==S?void 0:null===(l=S.styles)||void 0===l?void 0:l["h-nav-appearance"])==="white",J="live"===T?(null===(o=H.blockProps)||void 0===o?void 0:null===(a=o.header_call_link)||void 0===a?void 0:a.active)&&(null===(s=H.blockProps)||void 0===s?void 0:null===(r=s.header_call_link)||void 0===r?void 0:null===(c=r.value)||void 0===c?void 0:c.trim())!=="":null===(B=H.blockProps)||void 0===B?void 0:null===(x=B.header_call_link)||void 0===x?void 0:x.active;return(0,_.jsx)("div",{className:"",style:{height:(($?0:K)||0)+("preview"===T||"edit"===T?q<768?92:60:0)-10,"--navbar-height":(($?0:K)||0)+("preview"===T||"edit"===T?q<768?92:60:0)-10,...$&&(q>992||!R)?{"--color-nav":"#ffffff","--background-color-nav":"#ffffff00"}:Y?{"--color-nav":"#101043","--color-nav-scrolled":"#101043","--background-color-nav":"#ffffff","--background-color-nav-scrolled":"#ffffff"}:{}},children:(0,_.jsx)("nav",{className:"".concat("live"!==T?"B__top-[92px] md:B__top-[60px]":""," ").concat(L().navbar," ").concat(z&&L().scrolled," ").concat(z?"B__bg-nav-scrolled B__text-nav-scrolled":"B__bg-nav B__text-nav"),ref:U,children:(0,_.jsxs)("div",{className:"B__relative ".concat(L()["nav-container"]," ").concat(L().editHoverContainer," B__max-w-[90%] B__mx-auto B__py-2.5 lg:B__py-0 B__gap-3 lg:B__gap-6"),children:[(0,_.jsxs)("div",{className:"".concat(L()["header-logo"]," ").concat(z&&L().scrolled," !B__justify-between lg:!B__justify-center B__w-full lg:B__w-auto"),onClick:()=>{V.pathname.startsWith("/generated")||V.pathname.startsWith("/edit")||V.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?V.push("/".concat("preview"===T?"generated":"edit"===T?"edit":"live","/").concat(S._id.$oid)):V.push("/"),W(!1)},children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__group/logo B__group/orgname",children:[(null===(m=H.blockProps)||void 0===m?void 0:null===(p=m.logo)||void 0===p?void 0:p.active)&&(null===(u=H.blockProps)||void 0===u?void 0:null===(v=u.logo)||void 0===v?void 0:v.url)&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(null===(h=H.blockProps)||void 0===h?void 0:null===(y=h.logo)||void 0===y?void 0:y.url)&&(0,_.jsxs)("div",{className:"B__relative",children:[(0,_.jsx)("img",{src:null===(b=H.blockProps)||void 0===b?void 0:null===(f=b.logo)||void 0===f?void 0:f.url,alt:"Image",className:"visible ".concat(L().logo_image,"visible !B__visible"),style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px",scale:"var(--logo-size)"}}),"live"!==T&&(0,_.jsxs)(_.Fragment,{children:[" ",(0,_.jsx)("div",{className:"B__hidden group-hover/logo:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__p-1.5 B__bg-butternut-button B__rounded-md",onClick:()=>{G(!0)},children:(0,_.jsx)(d.zmo,{className:"B__text-lg B__text-white"})}),(0,_.jsx)(j,{showModal:O,handleClose:()=>{G(!1)},containerClassName:" !B__-translate-x-[10%]",headerDescription:"",headerTitle:"Update Logo Size",options:{logo:!0}})]})]}),(0,_.jsxs)("div",{className:"B__text-left lg:B__text-center B__uppercase B__font-primary B__font-bold B__max-w-[200px] B__text-lg lg:B__text-xl xl:B__text-2xl B__py-2 lg:B__py-4 B__relative B__min-h-[60px] B__content-center ".concat(z?"B__text-nav-scrolled ":""),children:[(null==H?void 0:null===(k=H.blockProps)||void 0===k?void 0:null===(w=k.org_name)||void 0===w?void 0:w.active)?(0,D.ZP)(S.org_name||""):"",("preview"===T||"edit"===T)&&(0,_.jsx)("div",{className:"B__hidden B__invisible group-hover/orgname:B__visible lg:B__block B__absolute B__right-0 B__top-1/2 B__-translate-y-1/2 B__translate-x-full",style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3 B__text-base B__font-normal",children:(0,_.jsx)(iQ,{showAddPagesOption:!1,showEditNavbarOption:!0,showEditPagesOption:!1,showSocialMediaIcons:!1,addPageHandler:E})})})]})]}),(0,_.jsx)("div",{className:"B__text-3xl lg:B__hidden ".concat(z?"B__text-nav-scrolled":"B__text-nav"),onClick:e=>{e.stopPropagation(),W(e=>!e)},children:R?(0,_.jsx)(d.FU5,{}):(0,_.jsx)(d.xXU,{})})]}),("preview"===T||"edit"===T)&&(0,_.jsx)("div",{className:"B__absolute B__right-[40%] B__translate-x-1/2 lg:B__translate-x-0 lg:B__right-0 ".concat(R?"B__top-3":""),style:{width:"fit-content",marginLeft:"auto"},children:(0,_.jsx)("div",{className:"!B__flex B__items-center B__gap-3",children:(0,_.jsx)(iQ,{showSocialMediaIcons:!1,addPageHandler:E})})}),(null===(N=null==S?void 0:null===(P=S.pages)||void 0===P?void 0:P.filter(e=>e.mainPage&&e.page_id!==A&&e.active&&e.showInNavbar))||void 0===N?void 0:N.length)||!(null==S?void 0:S.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row lg:B__items-center lg:B__justify-end B__m-auto B__gap-4 lg:B__gap-6 xl:B__gap-8 2xl:B__gap-10 B__p-2.5 lg:B__p-4 B__mt-22 B__px-22 B__cursor-pointer B__w-full lg:B__w-auto B__overflow-scroll B__font-secondary B__flex-1 ".concat(L().hidescrollbar," B__transition-[height] ").concat(R?"":"!B__hidden lg:!B__flex"),children:[null==S?void 0:null===(I=S.pages)||void 0===I?void 0:I.map((e,t)=>{if(e.mainPage&&e.active&&e.showInNavbar)return(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto B__rounded-primary lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(z?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," ").concat(e.page_id===A?"B__px-3 lg:B__px-5 xl:B__px-6":"B__px-1 lg:B__px-2 xl:B__px-3"," ").concat(e.page_id===A?z?"B__text-nav-scrolled B__border-[0.5px] B__border-[color:var(--color-nav-scrolled)]":"B__text-nav B__border-[0.5px] B__border-[color:var(--color-nav)]":""," "),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{V.pathname.startsWith("/generated")||V.pathname.startsWith("/edit")||V.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?V.push("/".concat("preview"===T?"generated":"edit"===T?"edit":"live","/").concat(S._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):V.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")),W(!1)},children:null==e?void 0:e.title},t)}),(null==S?void 0:S.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative B__py-1 B__px-2",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__font-medium B__animate-pulse ".concat(z?"B__text-nav-scrolled B__text-lg lg:B__text-xl":"B__text-nav B__text-base lg:B__text-lg"),children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),J&&(0,_.jsx)("div",{className:"B__w-fit lg:B__w-auto B__rounded-primary lg:B__float-right B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__py-2 ".concat(z?"B__text-base lg:B__text-lg":"B__text-sm lg:B__text-base"," B__px-3 lg:B__px-5 xl:B__px-6 ").concat(z?"B__text-nav-scrolled B__border-[0.5px] B__border-[color:var(--color-nav-scrolled)]":"B__text-nav B__border-[0.5px] B__border-[color:var(--color-nav)]"," "),style:{transition:"0.3s font-size ease",lineHeight:.95},onClick:()=>{if(window){var e,t;window.open("tel:".concat(null===(e=H.blockProps)||void 0===e?void 0:null===(t=e.header_call_link)||void 0===t?void 0:t.phonenumber))}},children:(null===(C=H.blockProps)||void 0===C?void 0:null===(Z=C.header_call_link)||void 0===Z?void 0:Z.value)||"Call us"})]}):(0,_.jsx)(_.Fragment,{})]})})})},i7=e=>{var t,l,o,a,s,d,c,B,x,m,p,u,v,h,b,f,j,k,w,N,P,I,C,Z,T,L,S,D,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez,eM,eU;let{viewMode:eV,websiteData:eR,page:eW}=e,{layout:eK}=eR,{page_id:eq}=eW,eO=(0,n.useRouter)(),{setEditContentFields:eG,setEditSectionMetaData:e$,setShowEditContentModal:eY,updateSectionData:eJ,togglePage:eQ}=(0,i.useContext)(r.o)||{},[eX,e0]=(0,i.useState)(!1),e1="live"===eV?(null===(t=eK.blockProps)||void 0===t?void 0:null===(l=t.footer_facebook_link)||void 0===l?void 0:l.active)&&(null===(o=eK.blockProps)||void 0===o?void 0:null===(a=o.footer_facebook_link)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.trim())!=="":null===(d=eK.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,e2="live"===eV?(null===(B=eK.blockProps)||void 0===B?void 0:null===(x=B.footer_instagram_link)||void 0===x?void 0:x.active)&&(null===(m=eK.blockProps)||void 0===m?void 0:null===(p=m.footer_instagram_link)||void 0===p?void 0:null===(u=p.value)||void 0===u?void 0:u.trim())!=="":null===(v=eK.blockProps)||void 0===v?void 0:null===(h=v.footer_instagram_link)||void 0===h?void 0:h.active,e5="live"===eV?(null===(b=eK.blockProps)||void 0===b?void 0:null===(f=b.footer_twitter_link)||void 0===f?void 0:f.active)&&(null===(j=eK.blockProps)||void 0===j?void 0:null===(k=j.footer_twitter_link)||void 0===k?void 0:null===(w=k.value)||void 0===w?void 0:w.trim())!=="":null===(N=eK.blockProps)||void 0===N?void 0:null===(P=N.footer_twitter_link)||void 0===P?void 0:P.active,e3="live"===eV?(null===(I=eK.blockProps)||void 0===I?void 0:null===(C=I.footer_linkedin_link)||void 0===C?void 0:C.active)&&(null===(Z=eK.blockProps)||void 0===Z?void 0:null===(T=Z.footer_linkedin_link)||void 0===T?void 0:null===(L=T.value)||void 0===L?void 0:L.trim())!=="":null===(S=eK.blockProps)||void 0===S?void 0:null===(D=S.footer_linkedin_link)||void 0===D?void 0:D.active,e4="live"===eV?(null===(F=eK.blockProps)||void 0===F?void 0:null===(E=F.footer_tiktok_link)||void 0===E?void 0:E.active)&&(null===(A=eK.blockProps)||void 0===A?void 0:null===(H=A.footer_tiktok_link)||void 0===H?void 0:null===(z=H.value)||void 0===z?void 0:z.trim())!=="":null===(U=eK.blockProps)||void 0===U?void 0:null===(V=U.footer_tiktok_link)||void 0===V?void 0:V.active,e6="live"===eV?(null===(R=eK.blockProps)||void 0===R?void 0:null===(W=R.footer_youtube_link)||void 0===W?void 0:W.active)&&(null===(K=eK.blockProps)||void 0===K?void 0:null===(q=K.footer_youtube_link)||void 0===q?void 0:null===(O=q.value)||void 0===O?void 0:O.trim())!=="":null===(G=eK.blockProps)||void 0===G?void 0:null===($=G.footer_youtube_link)||void 0===$?void 0:$.active,e9=()=>{var e,t,l,_;null==eG||eG([{name:"company_label",field_label:"Company Label",type:"input",placeholder:"Company",key:"layout.blockProps.company_label.value",value:(null===(e=eK.blockProps)||void 0===e?void 0:null===(t=e.company_label)||void 0===t?void 0:t.value)||"Company"},{name:"resources_label",field_label:"Resources Label",type:"input",placeholder:"Resources",key:"layout.blockProps.resources_label.value",value:(null===(l=eK.blockProps)||void 0===l?void 0:null===(_=l.resources_label)||void 0===_?void 0:_.value)||"Resources"}]),null==e$||e$(()=>({websiteId:null==eR?void 0:eR._id.$oid,editBaseData:!0})),null==eY||eY(!0)};return(0,_.jsxs)("footer",{className:"B__w-full B__py-6 lg:B__py-7 xl:B__py-10 2xl:B__py-12 B__bg-nav B__text-nav",children:[(0,_.jsx)(iJ,{show:eX,handleClose:()=>e0(!1),type:"footer"}),(null===(Y=eR.layout.blockProps)||void 0===Y?void 0:null===(J=Y.footer_sections)||void 0===J?void 0:J.active)&&(null==eR?void 0:null===(Q=eR.footer_sections)||void 0===Q?void 0:Q.length)?(0,_.jsx)(iG,{sections:eR.footer_sections,websiteId:eR._id.$oid,type:eV,slot:"footer_sections",sectionLocation:"website"}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"max-width-mobile-95 custom-container-max-width B__mx-auto B__pt-6 lg:B__pt-7 xl:B__pt-10 2xl:B__pt-12",children:[(0,_.jsxs)("div",{className:"B__mb-7 lg:B__mb-16 xl:B__mb-20 2xl:B__mb-28 B__w-full B__flex B__justify-between B__flex-wrap B__gap-8",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-auto B__flex B__flex-col B__items-center lg:B__items-start B__gap-5 xl:B__gap-7 2xl:B__gap-9",children:[(0,_.jsxs)("div",{className:"B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-primary B__font-bold B__flex B__gap-2 B__items-center",children:[(null===(X=eK.blockProps)||void 0===X?void 0:null===(ee=X.footer_logo)||void 0===ee?void 0:ee.active)&&(null===(et=eK.blockProps)||void 0===et?void 0:null===(el=et.logo)||void 0===el?void 0:el.active)&&(null===(ei=eK.blockProps)||void 0===ei?void 0:null===(eo=ei.logo)||void 0===eo?void 0:eo.url)&&(0,y.jv)(null===(ea=eK.blockProps)||void 0===ea?void 0:null===(es=ea.logo)||void 0===es?void 0:es.url)&&(0,_.jsx)("img",{src:(null===(en=eK.blockProps)||void 0===en?void 0:null===(er=en.footer_logo)||void 0===er?void 0:er.url)||(null===(ed=eK.blockProps)||void 0===ed?void 0:null===(ec=ed.logo)||void 0===ec?void 0:ec.url),alt:"Image",className:"!B__visible",style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px"}}),(null===(eB=eK.blockProps)||void 0===eB?void 0:null===(ex=eB.footer_tagline)||void 0===ex?void 0:ex.value)?null===(em=eK.blockProps)||void 0===em?void 0:null===(ep=em.footer_tagline)||void 0===ep?void 0:ep.value:null==eR?void 0:eR.org_name]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1",children:[e1&&(0,_.jsx)("a",{href:null===(eu=eK.blockProps)||void 0===eu?void 0:null===(ev=eu.footer_facebook_link)||void 0===ev?void 0:ev.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.k1O,{className:"B__text-base B__text-nav"})})}),e5&&(0,_.jsx)("a",{href:null===(eh=eK.blockProps)||void 0===eh?void 0:null===(eg=eh.footer_twitter_link)||void 0===eg?void 0:eg.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.meP,{className:"B__text-base B__text-nav"})})}),e2&&(0,_.jsx)("a",{href:null===(ey=eK.blockProps)||void 0===ey?void 0:null===(eb=ey.footer_instagram_link)||void 0===eb?void 0:eb.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.Vs6,{className:"B__text-base B__text-nav"})})}),e3&&(0,_.jsx)("a",{href:null===(ef=eK.blockProps)||void 0===ef?void 0:null===(ej=ef.footer_linkedin_link)||void 0===ej?void 0:ej.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.NQh,{className:"B__text-base B__text-nav"})})}),e4&&(0,_.jsx)("a",{href:null===(ek=eK.blockProps)||void 0===ek?void 0:null===(ew=ek.footer_tiktok_link)||void 0===ew?void 0:ew.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.nTm,{className:"B__text-base B__text-nav"})})}),e6&&(0,_.jsx)("a",{href:null===(eN=eK.blockProps)||void 0===eN?void 0:null===(eP=eN.footer_youtube_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.V2E,{className:"B__text-base B__text-nav"})})})]}),("preview"===eV||"edit"===eV)&&(0,_.jsx)("div",{className:"",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{var e,t,l,_,i,o,a,s,n,r,d,c,B,x,m,p,u,v,h,g,y,b,f,j,k,w,N,P,I,C,Z,T,L,S;null==eG||eG([{name:"footer_tagline",field_label:"Tagline",placeholder:eR.org_name,type:"input",key:"layout.blockProps?.footer_tagline?.value",value:(null===(e=eK.blockProps)||void 0===e?void 0:null===(t=e.footer_tagline)||void 0===t?void 0:t.value)||eR.org_name},{name:"footer_logo",field_label:"Footer Logo",type:"file",placeholder:"Upload Your logo",disabled:null===(l=eK.blockProps)||void 0===l?void 0:null===(_=l.footer_logo)||void 0===_?void 0:_.active,key:"layout.blockProps.footer_logo.url",value:null===(i=eK.blockProps)||void 0===i?void 0:null===(o=i.footer_logo)||void 0===o?void 0:o.url,hideIconBtnValue:null===(a=eK.blockProps)||void 0===a?void 0:null===(s=a.footer_logo)||void 0===s?void 0:s.active,hideIconBtnKey:"layout.blockProps.footer_logo.active",hideSearchTab:!0},{name:"footer_facebook_link",field_label:"Facebook",placeholder:"https://www.facebook.com/abc",type:"input",key:"layout.blockProps?.footer_facebook_link?.value",value:(null===(n=eK.blockProps)||void 0===n?void 0:null===(r=n.footer_facebook_link)||void 0===r?void 0:r.value)||"",hideIconBtnValue:null===(d=eK.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,hideIconBtnKey:"layout.blockProps?.footer_facebook_link?.active"},{name:"footer_twitter_link",field_label:"Twitter",placeholder:"https://twitter.com/abc",type:"input",key:"layout.blockProps?.footer_twitter_link?.value",value:(null===(B=eK.blockProps)||void 0===B?void 0:null===(x=B.footer_twitter_link)||void 0===x?void 0:x.value)||"",hideIconBtnValue:null===(m=eK.blockProps)||void 0===m?void 0:null===(p=m.footer_twitter_link)||void 0===p?void 0:p.active,hideIconBtnKey:"layout.blockProps?.footer_twitter_link?.active"},{name:"footer_instagram_link",field_label:"Instagram",placeholder:"https://www.instagram.com/abc",type:"input",key:"layout.blockProps?.footer_instagram_link?.value",value:(null===(u=eK.blockProps)||void 0===u?void 0:null===(v=u.footer_instagram_link)||void 0===v?void 0:v.value)||"",hideIconBtnValue:null===(h=eK.blockProps)||void 0===h?void 0:null===(g=h.footer_instagram_link)||void 0===g?void 0:g.active,hideIconBtnKey:"layout.blockProps?.footer_instagram_link?.active"},{name:"footer_linkedin_link",field_label:"LinkedIn",placeholder:"https://www.linkedin.com/in/abc",type:"input",key:"layout.blockProps?.footer_linkedin_link?.value",value:(null===(y=eK.blockProps)||void 0===y?void 0:null===(b=y.footer_linkedin_link)||void 0===b?void 0:b.value)||"",hideIconBtnValue:null===(f=eK.blockProps)||void 0===f?void 0:null===(j=f.footer_linkedin_link)||void 0===j?void 0:j.active,hideIconBtnKey:"layout.blockProps?.footer_linkedin_link?.active"},{name:"footer_tiktok_link",field_label:"Tiktok",placeholder:"https://www.tiktok.com/in/abc",type:"input",key:"layout.blockProps?.footer_tiktok_link?.value",value:(null===(k=eK.blockProps)||void 0===k?void 0:null===(w=k.footer_tiktok_link)||void 0===w?void 0:w.value)||"",hideIconBtnValue:null===(N=eK.blockProps)||void 0===N?void 0:null===(P=N.footer_tiktok_link)||void 0===P?void 0:P.active,hideIconBtnKey:"layout.blockProps?.footer_tiktok_link?.active"},{name:"footer_youtube_link",field_label:"Youtube",placeholder:"https://www.youtube.com/in/abc",type:"input",key:"layout.blockProps?.footer_youtube_link?.value",value:(null===(I=eK.blockProps)||void 0===I?void 0:null===(C=I.footer_youtube_link)||void 0===C?void 0:C.value)||"",hideIconBtnValue:null===(Z=eK.blockProps)||void 0===Z?void 0:null===(T=Z.footer_youtube_link)||void 0===T?void 0:T.active,hideIconBtnKey:"layout.blockProps?.footer_youtube_link?.active"},{name:"footer_copyrights",field_label:"Copyrights",placeholder:"\xa9 Copyright 2024, All Rights Reserved by "+eR.org_name,type:"input",key:"layout.blockProps?.footer_copyrights?.value",value:(null===(L=eK.blockProps)||void 0===L?void 0:null===(S=L.footer_copyrights)||void 0===S?void 0:S.value)||"\xa9 Copyright 2024, All Rights Reserved by "+eR.org_name}]),null==e$||e$(()=>({websiteId:null==eR?void 0:eR._id.$oid,editBaseData:!0})),null==eY||eY(!0)}})})]}),(null===(eI=null==eR?void 0:null===(eC=eR.pages)||void 0===eC?void 0:eC.filter(e=>e.mainPage&&e.page_id!==eq&&e.active&&e.showInFooter))||void 0===eI?void 0:eI.length)||!(null==eR?void 0:eR.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(eZ=eK.blockProps)||void 0===eZ?void 0:null===(eT=eZ.company_label)||void 0===eT?void 0:eT.value)||"Company",("preview"===eV||"edit"===eV)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:e9})})]}),null==eR?void 0:null===(eL=eR.pages)||void 0===eL?void 0:eL.map((e,t)=>{if(e.mainPage&&e.active&&e.showInFooter)return(0,_.jsx)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4]",style:{transition:"0.3s font-size ease"},onClick:()=>{eO.pathname.startsWith("/generated")||eO.pathname.startsWith("/edit")||eO.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eO.push("/".concat("preview"===eV?"generated":"edit"===eV?"edit":"live","/").concat(eR._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eO.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:null==e?void 0:e.title},t)}),(null==eR?void 0:eR.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__animate-pulse B__cursor-pointer B__font-medium B__flex-wrap B__text-sm lg:B__text-base B__text-[#ffffffa4] B__flex B__items-center B__gap-1",children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),("preview"===eV||"edit"===eV)&&(0,_.jsx)(l5.mL,{className:"B__p-2.5 B__bg-butternut-button B__rounded-md",btntext:"Edit Pages",onClick:()=>{e0(!0)}})]}):(0,_.jsx)(_.Fragment,{}),(null===(eS=null==eR?void 0:null===(eD=eR.pages)||void 0===eD?void 0:eD.filter(e=>!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eV)))||void 0===eS?void 0:eS.length)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(eF=eK.blockProps)||void 0===eF?void 0:null===(eE=eF.resources_label)||void 0===eE?void 0:eE.value)||"Resources",("preview"===eV||"edit"===eV)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:e9})})]}),null==eR?void 0:null===(eA=eR.pages)||void 0===eA?void 0:eA.map((e,t)=>{if(!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eV))return(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4] B__flex B__items-center B__gap-1",style:{transition:"0.3s font-size ease"},onClick:()=>{eO.pathname.startsWith("/generated")||eO.pathname.startsWith("/edit")||eO.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eO.push("/".concat("preview"===eV?"generated":"edit"===eV?"edit":"live","/").concat(eR._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eO.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:[null==e?void 0:e.title,(0,_.jsx)("div",{})]},t)})]}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)("div",{className:"B__w-full B__border-t B__border-[#ffffff4d] B__h-[1px]"}),(0,_.jsx)("div",{className:"B__w-full B__text-center B__px-3 B__font-secondary B__font-semibold B__text-xs lg:B__text-sm B__mt-5 lg:B__mt-7 2xl:B__mt-10",children:(null===(eH=eK.blockProps)||void 0===eH?void 0:null===(ez=eH.footer_copyrights)||void 0===ez?void 0:ez.value)?null===(eM=eK.blockProps)||void 0===eM?void 0:null===(eU=eM.footer_copyrights)||void 0===eU?void 0:eU.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",eR.org_name]})})]})]})},oe=e=>{var t,l,o,a,s,d,c,B,x,m,p,u,v,h,b,f,j,k,w,N,P,I,C,Z,T,S,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez,eM,eU,eV,eR,eW,eK,eq,eO,eG,e$,eY,eJ,eQ,eX,e0,e1,e2,e5,e3,e4,e6;let{viewMode:e9,websiteData:e8,page:e7}=e,{layout:te}=e8,{page_id:tt}=e7,tl=(0,n.useRouter)(),{setEditContentFields:t_,setEditSectionMetaData:ti,setShowEditContentModal:to,updateSectionData:ta}=(0,i.useContext)(r.o)||{},[ts,tn]=(0,i.useState)(!1),[tr,td]=(0,i.useState)(!1),[tc,tB]=(0,i.useState)(""),tx=e=>{if("preview"===e9||"edit"===e9)td(!0);else{var t;ej.Z.subscribe({email:e.email,websiteId:null==e8?void 0:null===(t=e8._id)||void 0===t?void 0:t.$oid}).then(()=>{td(!0)}).catch(e=>{var t,l;tB((null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(l=t.data)||void 0===l?void 0:l.msg)==="already_subscribed"?"You are already subscribed":"Something went wrong")})}},tm=()=>{var e,t;null==ta||ta({"layout.blockProps.footer_newsletter.active":!(null==te?void 0:null===(e=te.blockProps)||void 0===e?void 0:null===(t=e.footer_newsletter)||void 0===t?void 0:t.active)},void 0,!0)},tp="live"===e9?(null===(t=te.blockProps)||void 0===t?void 0:null===(l=t.footer_facebook_link)||void 0===l?void 0:l.active)&&(null===(o=te.blockProps)||void 0===o?void 0:null===(a=o.footer_facebook_link)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.trim())!=="":null===(d=te.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,tu="live"===e9?(null===(B=te.blockProps)||void 0===B?void 0:null===(x=B.footer_instagram_link)||void 0===x?void 0:x.active)&&(null===(m=te.blockProps)||void 0===m?void 0:null===(p=m.footer_instagram_link)||void 0===p?void 0:null===(u=p.value)||void 0===u?void 0:u.trim())!=="":null===(v=te.blockProps)||void 0===v?void 0:null===(h=v.footer_instagram_link)||void 0===h?void 0:h.active,tv="live"===e9?(null===(b=te.blockProps)||void 0===b?void 0:null===(f=b.footer_twitter_link)||void 0===f?void 0:f.active)&&(null===(j=te.blockProps)||void 0===j?void 0:null===(k=j.footer_twitter_link)||void 0===k?void 0:null===(w=k.value)||void 0===w?void 0:w.trim())!=="":null===(N=te.blockProps)||void 0===N?void 0:null===(P=N.footer_twitter_link)||void 0===P?void 0:P.active,th="live"===e9?(null===(I=te.blockProps)||void 0===I?void 0:null===(C=I.footer_linkedin_link)||void 0===C?void 0:C.active)&&(null===(Z=te.blockProps)||void 0===Z?void 0:null===(T=Z.footer_linkedin_link)||void 0===T?void 0:null===(S=T.value)||void 0===S?void 0:S.trim())!=="":null===(F=te.blockProps)||void 0===F?void 0:null===(E=F.footer_linkedin_link)||void 0===E?void 0:E.active,tg="live"===e9?(null===(A=te.blockProps)||void 0===A?void 0:null===(H=A.footer_tiktok_link)||void 0===H?void 0:H.active)&&(null===(z=te.blockProps)||void 0===z?void 0:null===(U=z.footer_tiktok_link)||void 0===U?void 0:null===(V=U.value)||void 0===V?void 0:V.trim())!=="":null===(R=te.blockProps)||void 0===R?void 0:null===(W=R.footer_tiktok_link)||void 0===W?void 0:W.active,ty="live"===e9?(null===(K=te.blockProps)||void 0===K?void 0:null===(q=K.footer_youtube_link)||void 0===q?void 0:q.active)&&(null===(O=te.blockProps)||void 0===O?void 0:null===(G=O.footer_youtube_link)||void 0===G?void 0:null===($=G.value)||void 0===$?void 0:$.trim())!=="":null===(Y=te.blockProps)||void 0===Y?void 0:null===(J=Y.footer_youtube_link)||void 0===J?void 0:J.active,tb=()=>{var e,t,l,_;null==t_||t_([{name:"company_label",field_label:"Company Label",type:"input",placeholder:"Company",key:"layout.blockProps.company_label.value",value:(null===(e=te.blockProps)||void 0===e?void 0:null===(t=e.company_label)||void 0===t?void 0:t.value)||"Company"},{name:"resources_label",field_label:"Resources Label",type:"input",placeholder:"Resources",key:"layout.blockProps.resources_label.value",value:(null===(l=te.blockProps)||void 0===l?void 0:null===(_=l.resources_label)||void 0===_?void 0:_.value)||"Resources"}]),null==ti||ti(()=>({websiteId:null==e8?void 0:e8._id.$oid,editBaseData:!0})),null==to||to(!0)};return(0,_.jsxs)("footer",{className:"B__w-full B__py-6 lg:B__py-7 xl:B__py-10 2xl:B__py-12 B__bg-nav B__text-nav",children:[(0,_.jsx)(iJ,{show:ts,handleClose:()=>tn(!1),type:"footer"}),(0,_.jsxs)("div",{className:"max-width-mobile-90 custom-container-max-width B__mx-auto B__pt-6 lg:B__pt-7 xl:B__pt-10 2xl:B__pt-12",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-auto B__flex B__flex-col B__items-center lg:B__items-start B__gap-5 xl:B__gap-7 2xl:B__gap-9",children:[(0,_.jsxs)("div",{className:"B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-primary B__font-bold B__flex B__items-center B__gap-2",children:[(null===(Q=te.blockProps)||void 0===Q?void 0:null===(X=Q.footer_logo)||void 0===X?void 0:X.active)&&(null===(ee=te.blockProps)||void 0===ee?void 0:null===(et=ee.logo)||void 0===et?void 0:et.active)&&(null===(el=te.blockProps)||void 0===el?void 0:null===(ei=el.logo)||void 0===ei?void 0:ei.url)&&(0,y.jv)(null===(eo=te.blockProps)||void 0===eo?void 0:null===(ea=eo.logo)||void 0===ea?void 0:ea.url)&&(0,_.jsx)("img",{src:(null===(es=te.blockProps)||void 0===es?void 0:null===(en=es.footer_logo)||void 0===en?void 0:en.url)||(null===(er=te.blockProps)||void 0===er?void 0:null===(ed=er.logo)||void 0===ed?void 0:ed.url),alt:"Image",className:"!B__visible",style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px"}}),(null===(ec=te.blockProps)||void 0===ec?void 0:null===(eB=ec.footer_tagline)||void 0===eB?void 0:eB.value)?null===(ex=te.blockProps)||void 0===ex?void 0:null===(em=ex.footer_tagline)||void 0===em?void 0:em.value:null==e8?void 0:e8.org_name]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1",children:[tp&&(0,_.jsx)("a",{href:null===(ep=te.blockProps)||void 0===ep?void 0:null===(eu=ep.footer_facebook_link)||void 0===eu?void 0:eu.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.k1O,{className:"B__text-base B__text-nav"})})}),tv&&(0,_.jsx)("a",{href:null===(ev=te.blockProps)||void 0===ev?void 0:null===(eh=ev.footer_twitter_link)||void 0===eh?void 0:eh.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.meP,{className:"B__text-base B__text-nav"})})}),tu&&(0,_.jsx)("a",{href:null===(eg=te.blockProps)||void 0===eg?void 0:null===(ey=eg.footer_instagram_link)||void 0===ey?void 0:ey.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.Vs6,{className:"B__text-base B__text-nav"})})}),th&&(0,_.jsx)("a",{href:null===(eb=te.blockProps)||void 0===eb?void 0:null===(ef=eb.footer_linkedin_link)||void 0===ef?void 0:ef.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.NQh,{className:"B__text-base B__text-nav"})})}),tg&&(0,_.jsx)("a",{href:null===(eN=te.blockProps)||void 0===eN?void 0:null===(eP=eN.footer_tiktok_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.nTm,{className:"B__text-base B__text-nav"})})}),ty&&(0,_.jsx)("a",{href:null===(eI=te.blockProps)||void 0===eI?void 0:null===(eC=eI.footer_youtube_link)||void 0===eC?void 0:eC.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.V2E,{className:"B__text-base B__text-nav"})})})]}),("preview"===e9||"edit"===e9)&&(0,_.jsx)("div",{className:"",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{var e,t,l,_,i,o,a,s,n,r,d,c,B,x,m,p,u,v,h,g,y,b,f,j,k,w,N,P,I,C,Z,T,L,S;null==t_||t_([{name:"footer_tagline",field_label:"Tagline",placeholder:e8.org_name,type:"input",key:"layout.blockProps?.footer_tagline?.value",value:(null===(e=te.blockProps)||void 0===e?void 0:null===(t=e.footer_tagline)||void 0===t?void 0:t.value)||e8.org_name},{name:"footer_logo",field_label:"Footer Logo",type:"file",placeholder:"Upload Your logo",disabled:null===(l=te.blockProps)||void 0===l?void 0:null===(_=l.footer_logo)||void 0===_?void 0:_.active,key:"layout.blockProps.footer_logo.url",value:null===(i=te.blockProps)||void 0===i?void 0:null===(o=i.footer_logo)||void 0===o?void 0:o.url,hideIconBtnValue:null===(a=te.blockProps)||void 0===a?void 0:null===(s=a.footer_logo)||void 0===s?void 0:s.active,hideIconBtnKey:"layout.blockProps.footer_logo.active",hideSearchTab:!0},{name:"footer_facebook_link",field_label:"Facebook",placeholder:"https://www.facebook.com/abc",type:"input",key:"layout.blockProps?.footer_facebook_link?.value",value:(null===(n=te.blockProps)||void 0===n?void 0:null===(r=n.footer_facebook_link)||void 0===r?void 0:r.value)||"",hideIconBtnValue:null===(d=te.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,hideIconBtnKey:"layout.blockProps?.footer_facebook_link?.active"},{name:"footer_twitter_link",field_label:"Twitter",placeholder:"https://twitter.com/abc",type:"input",key:"layout.blockProps?.footer_twitter_link?.value",value:(null===(B=te.blockProps)||void 0===B?void 0:null===(x=B.footer_twitter_link)||void 0===x?void 0:x.value)||"",hideIconBtnValue:null===(m=te.blockProps)||void 0===m?void 0:null===(p=m.footer_twitter_link)||void 0===p?void 0:p.active,hideIconBtnKey:"layout.blockProps?.footer_twitter_link?.active"},{name:"footer_instagram_link",field_label:"Instagram",placeholder:"https://www.instagram.com/abc",type:"input",key:"layout.blockProps?.footer_instagram_link?.value",value:(null===(u=te.blockProps)||void 0===u?void 0:null===(v=u.footer_instagram_link)||void 0===v?void 0:v.value)||"",hideIconBtnValue:null===(h=te.blockProps)||void 0===h?void 0:null===(g=h.footer_instagram_link)||void 0===g?void 0:g.active,hideIconBtnKey:"layout.blockProps?.footer_instagram_link?.active"},{name:"footer_linkedin_link",field_label:"LinkedIn",placeholder:"https://www.linkedin.com/in/abc",type:"input",key:"layout.blockProps?.footer_linkedin_link?.value",value:(null===(y=te.blockProps)||void 0===y?void 0:null===(b=y.footer_linkedin_link)||void 0===b?void 0:b.value)||"",hideIconBtnValue:null===(f=te.blockProps)||void 0===f?void 0:null===(j=f.footer_linkedin_link)||void 0===j?void 0:j.active,hideIconBtnKey:"layout.blockProps?.footer_linkedin_link?.active"},{name:"footer_tiktok_link",field_label:"Tiktok",placeholder:"https://www.tiktok.com/in/abc",type:"input",key:"layout.blockProps?.footer_tiktok_link?.value",value:(null===(k=te.blockProps)||void 0===k?void 0:null===(w=k.footer_tiktok_link)||void 0===w?void 0:w.value)||"",hideIconBtnValue:null===(N=te.blockProps)||void 0===N?void 0:null===(P=N.footer_tiktok_link)||void 0===P?void 0:P.active,hideIconBtnKey:"layout.blockProps?.footer_tiktok_link?.active"},{name:"footer_youtube_link",field_label:"Youtube",placeholder:"https://www.youtube.com/in/abc",type:"input",key:"layout.blockProps?.footer_youtube_link?.value",value:(null===(I=te.blockProps)||void 0===I?void 0:null===(C=I.footer_youtube_link)||void 0===C?void 0:C.value)||"",hideIconBtnValue:null===(Z=te.blockProps)||void 0===Z?void 0:null===(T=Z.footer_youtube_link)||void 0===T?void 0:T.active,hideIconBtnKey:"layout.blockProps?.footer_youtube_link?.active"},{name:"footer_copyrights",field_label:"Copyrights",placeholder:"\xa9 Copyright 2024, All Rights Reserved by "+e8.org_name,type:"input",key:"layout.blockProps?.footer_copyrights?.value",value:(null===(L=te.blockProps)||void 0===L?void 0:null===(S=L.footer_copyrights)||void 0===S?void 0:S.value)||"\xa9 Copyright 2024, All Rights Reserved by "+e8.org_name}]),null==ti||ti(()=>({websiteId:null==e8?void 0:e8._id.$oid,editBaseData:!0})),null==to||to(!0)}})})]}),(0,_.jsxs)("div",{className:"B__mb-7 lg:B__mb-16 xl:B__mb-20 2xl:B__mb-28 B__mt-5 lg:B__mt-9 xl:B__mt-12 2xl:B__mt-14 B__w-full B__flex B__flex-col lg:B__flex-row  lg:B__justify-between B__gap-8 lg:B__gap-10 xl:B__gap-16 2xl:B__gap-20 B__relative",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-around lg:B__justify-between B__gap-8 ".concat((null==te?void 0:null===(eZ=te.blockProps)||void 0===eZ?void 0:null===(eT=eZ.footer_newsletter)||void 0===eT?void 0:eT.active)||"live"!==e9?"lg:B__w-[45%]":"B__flex-1"),children:[(null===(eL=null==e8?void 0:null===(eS=e8.pages)||void 0===eS?void 0:eS.filter(e=>e.mainPage&&e.page_id!==tt&&e.active&&e.showInFooter))||void 0===eL?void 0:eL.length)||!(null==e8?void 0:e8.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(eD=te.blockProps)||void 0===eD?void 0:null===(eF=eD.company_label)||void 0===eF?void 0:eF.value)||"Company",("preview"===e9||"edit"===e9)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:tb})})]}),null==e8?void 0:null===(eE=e8.pages)||void 0===eE?void 0:eE.map((e,t)=>{if(e.mainPage&&e.active&&e.showInFooter)return(0,_.jsx)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4]",style:{transition:"0.3s font-size ease"},onClick:()=>{tl.pathname.startsWith("/generated")||tl.pathname.startsWith("/edit")||tl.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?tl.push("/".concat("preview"===e9?"generated":"edit"===e9?"edit":"live","/").concat(e8._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):tl.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:null==e?void 0:e.title},t)}),(null==e8?void 0:e8.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__animate-pulse B__cursor-pointer B__font-medium B__flex-wrap B__text-sm lg:B__text-base B__text-[#ffffffa4] B__flex B__items-center B__gap-1",children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),("preview"===e9||"edit"===e9)&&(0,_.jsx)(l5.mL,{className:"B__p-2.5 B__bg-butternut-button B__rounded-md",btntext:"Edit Pages",onClick:()=>{tn(!0)}})]}):(0,_.jsx)(_.Fragment,{}),(null===(eA=null==e8?void 0:null===(eH=e8.pages)||void 0===eH?void 0:eH.filter(e=>!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==e9)))||void 0===eA?void 0:eA.length)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(ez=te.blockProps)||void 0===ez?void 0:null===(eM=ez.resources_label)||void 0===eM?void 0:eM.value)||"Resources",("preview"===e9||"edit"===e9)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:tb})})]}),null==e8?void 0:null===(eU=e8.pages)||void 0===eU?void 0:eU.map((e,t)=>{if(!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==e9))return(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4] B__flex B__items-center B__gap-1",style:{transition:"0.3s font-size ease"},onClick:()=>{tl.pathname.startsWith("/generated")||tl.pathname.startsWith("/edit")||tl.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?tl.push("/".concat("preview"===e9?"generated":"edit"===e9?"edit":"live","/").concat(e8._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):tl.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:[null==e?void 0:e.title,(0,_.jsx)("div",{})]},t)})]}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-[40%] ",children:(0,_.jsxs)("div",{className:" B__py-12 lg:B__py-0 B__mx-auto",children:[(null==te?void 0:null===(eV=te.blockProps)||void 0===eV?void 0:null===(eR=eV.footer_newsletter)||void 0===eR?void 0:eR.active)||"live"!==e9?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{style:{position:"relative"},className:"".concat(L().editHoverContainer," B__mb-5 xl:B__mb-7 2xl:B__mb-9 ").concat((null==te?void 0:null===(eW=te.blockProps)||void 0===eW?void 0:null===(eK=eW.footer_newsletter)||void 0===eK?void 0:eK.active)?"":"B__opacity-60"),children:[(0,_.jsx)("h3",{className:"B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-center B__break-words lg:B__text-left B__uppercase",children:(0,D.ZP)((null==te?void 0:null===(eq=te.blockProps)||void 0===eq?void 0:null===(eO=eq.footer_newsletter)||void 0===eO?void 0:eO.title)||"Sign up for our newsletter now!")}),("preview"===e9||"edit"===e9)&&(0,_.jsxs)("div",{className:L().editContainer,children:[(0,_.jsx)("div",{className:"B__px-2 B__py-1.5 B__bg-butternut-button B__rounded-md",children:(0,_.jsx)(l5.Oe,{style:{border:"none",outline:"none",color:"white"},show:null==te?void 0:null===(eG=te.blockProps)||void 0===eG?void 0:null===(e$=eG.footer_newsletter)||void 0===e$?void 0:e$.active,onClick:e=>{e.stopPropagation(),null==tm||tm()}})}),(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},icon:!0,className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{var e,t,l,_,i,o,a;null==t_||t_([{name:"newsletter_title",label:"Newsletter title",placeholder:"Title",type:"texteditor",key:"layout.blockProps?.footer_newsletter?.title",value:(null===(e=te.blockProps)||void 0===e?void 0:null===(t=e.footer_newsletter)||void 0===t?void 0:t.title)||"Sign up for our newsletter now!",field_label:"Newsletter title"},{name:"emailPlaceholder",label:"Email placeholder",placeholder:"Email placeholder",type:"input",value:(null===(l=te.blockProps)||void 0===l?void 0:null===(_=l.footer_newsletter)||void 0===_?void 0:_.emailPlaceholder)||"Enter your email",key:"layout.blockProps?.footer_newsletter?.emailPlaceholder",field_label:"Email placeholder"},{name:"buttonText",label:"Submit Button Text",placeholder:"Submit Button text",type:"input",value:(null===(i=te.blockProps)||void 0===i?void 0:null===(o=i.footer_newsletter)||void 0===o?void 0:o.buttonText)||"Subscribe",key:"layout.blockProps?.footer_newsletter?.buttonText",field_label:"Submit Button text"}]),null==to||to(!0),null==ti||ti({websiteId:null==e8?void 0:null===(a=e8._id)||void 0===a?void 0:a.$oid,editBaseData:!0})}})]})]}),tr||tc?tr?(0,_.jsx)("p",{style:{color:"white",textAlign:"center"},children:"Thank you for subscribing."}):(0,_.jsx)("p",{className:"error-message",style:{color:"white",textAlign:"center"},children:tc}):(0,_.jsx)(ek.J9,{initialValues:{email:""},validationSchema:ew.Ry().shape({email:ew.Z_().required("Email is required").email("Please enter a valid email")}),onSubmit:tx,children:e=>{var t,l,i,o,a,s;let{values:n,errors:r,handleChange:d,handleSubmit:c}=e;return(0,_.jsxs)("form",{onSubmit:c,className:"".concat((null==te?void 0:null===(t=te.blockProps)||void 0===t?void 0:null===(l=t.footer_newsletter)||void 0===l?void 0:l.active)?"":"B__opacity-60"),children:[(0,_.jsxs)("div",{className:"B__flex B__items-stretch B__gap-4 xl:B__gap-7 B__font-secondary",children:[(0,_.jsx)("input",{type:"email",placeholder:(null===(i=te.blockProps)||void 0===i?void 0:null===(o=i.footer_newsletter)||void 0===o?void 0:o.emailPlaceholder)||"Enter your email",name:"email",onChange:d,value:n.email,style:{width:"100%",backgroundColor:"transparent",border:"1px solid rgba(255, 255, 255, 0.3)",height:"50px",fontSize:"16px",padding:"20px",boxSizing:"border-box"},className:"B__rounded-primary B__placeholder-[#ffffffa4]"}),(0,_.jsx)("input",{type:"submit",value:(null===(a=te.blockProps)||void 0===a?void 0:null===(s=a.footer_newsletter)||void 0===s?void 0:s.buttonText)||"Subscribe",className:"B__font-semibold B__text-xs lg:B__text-sm 2xl:B__text-base B__py-2.5 xl:B__py-3.5 B__px-6 lg:B__px-8 xl:B__px-10 2xl:B__px-14 B__text-[color:var(--background-color-nav)] B__bg-[color:var(--color-nav)] B__rounded-primary"})]}),r.email?(0,_.jsx)("p",{style:{color:"white"},children:r.email}):null]})}})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{style:{position:"relative"},className:"".concat(L().editHoverContainer," B__mt-5 lg:B__mt-7 xl:B__mt-10 2xl:B__mt-12 B__flex B__flex-wrap B__items-center B__justify-center ").concat((null==te?void 0:null===(eY=te.blockProps)||void 0===eY?void 0:null===(eJ=eY.footer_newsletter)||void 0===eJ?void 0:eJ.active)||"live"!==e9?"lg:B__justify-start":"lg:B__justify-center"," B__gap-5 lg:B__gap-7"),children:[(0,_.jsx)("div",{className:"B__font-light B__whitespace-nowrap B__flex-wrap B__text-sm lg:B__text-base B__text-center B__break-words lg:B__text-left",children:(0,D.ZP)((null==te?void 0:null===(eQ=te.blockProps)||void 0===eQ?void 0:null===(eX=eQ.footer_newsletter)||void 0===eX?void 0:eX.email)||(null==e8?void 0:null===(e0=e8.user_location)||void 0===e0?void 0:e0.user_email)||"user@email.com")}),(0,_.jsx)("div",{className:"B__font-light B__whitespace-nowrap B__flex-wrap B__text-sm lg:B__text-base B__text-center B__break-words lg:B__text-left",children:(0,D.ZP)((null==te?void 0:null===(e1=te.blockProps)||void 0===e1?void 0:null===(e2=e1.footer_newsletter)||void 0===e2?void 0:e2.phone)||"+1 (123)-456-7890")}),("preview"===e9||"edit"===e9)&&(0,_.jsx)("div",{className:L().editContainer,children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},icon:!0,className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{var e,t,l,_,i,o;null==t_||t_([{name:"newsletter_email",label:"Newsletter email",placeholder:"Email",type:"texteditor",key:"layout.blockProps?.footer_newsletter?.email",value:(null===(e=te.blockProps)||void 0===e?void 0:null===(t=e.footer_newsletter)||void 0===t?void 0:t.email)||(null==e8?void 0:null===(l=e8.user_location)||void 0===l?void 0:l.user_email)||"user@email.com",field_label:"Newsletter email"},{name:"newsletter_phone",label:"Newsletter phone",placeholder:"Phone",type:"texteditor",key:"layout.blockProps?.footer_newsletter?.phone",value:(null===(_=te.blockProps)||void 0===_?void 0:null===(i=_.footer_newsletter)||void 0===i?void 0:i.phone)||"+1 (123)-456-7890",field_label:"Newsletter phone"}]),null==to||to(!0),null==ti||ti({websiteId:null==e8?void 0:null===(o=e8._id)||void 0===o?void 0:o.$oid,editBaseData:!0})}})})]})]})})]}),(0,_.jsx)("div",{className:"B__w-full B__border-t B__border-[#ffffff4d] B__h-[1px]"}),(0,_.jsx)("div",{className:"B__w-full B__text-center B__px-3 B__font-secondary B__font-semibold B__text-xs lg:B__text-sm B__mt-5 lg:B__mt-7 2xl:B__mt-10",children:(null===(e5=te.blockProps)||void 0===e5?void 0:null===(e3=e5.footer_copyrights)||void 0===e3?void 0:e3.value)?null===(e4=te.blockProps)||void 0===e4?void 0:null===(e6=e4.footer_copyrights)||void 0===e6?void 0:e6.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",e8.org_name]})})]})]})},ot=e=>{var t,l,o,a,s,d,c,B,x,m,p,u,v,h,b,f,j,k,w,N,P,I,C,Z,T,S,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez,eM,eU,eV,eR,eW,eK,eq,eO,eG,e$,eY,eJ,eQ,eX,e0,e1,e2,e5,e3;let{viewMode:e4,websiteData:e6,page:e9}=e,{layout:e8}=e6,{page_id:e7}=e9,te=(0,n.useRouter)(),{setEditContentFields:tt,setEditSectionMetaData:tl,setShowEditContentModal:t_,updateSectionData:ti}=(0,i.useContext)(r.o)||{},[to,ta]=(0,i.useState)(!1),[ts,tn]=(0,i.useState)(!1),[tr,td]=(0,i.useState)(""),tc=e=>{if("preview"===e4||"edit"===e4)tn(!0);else{var t;ej.Z.subscribe({email:e.email,websiteId:null==e6?void 0:null===(t=e6._id)||void 0===t?void 0:t.$oid}).then(()=>{tn(!0)}).catch(e=>{var t,l;td((null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(l=t.data)||void 0===l?void 0:l.msg)==="already_subscribed"?"You are already subscribed":"Something went wrong")})}},tB=()=>{var e,t;null==ti||ti({"layout.blockProps.footer_newsletter.active":!(null==e8?void 0:null===(e=e8.blockProps)||void 0===e?void 0:null===(t=e.footer_newsletter)||void 0===t?void 0:t.active)},void 0,!0)},tx="live"===e4?(null===(t=e8.blockProps)||void 0===t?void 0:null===(l=t.footer_facebook_link)||void 0===l?void 0:l.active)&&(null===(o=e8.blockProps)||void 0===o?void 0:null===(a=o.footer_facebook_link)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.trim())!=="":null===(d=e8.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,tm="live"===e4?(null===(B=e8.blockProps)||void 0===B?void 0:null===(x=B.footer_instagram_link)||void 0===x?void 0:x.active)&&(null===(m=e8.blockProps)||void 0===m?void 0:null===(p=m.footer_instagram_link)||void 0===p?void 0:null===(u=p.value)||void 0===u?void 0:u.trim())!=="":null===(v=e8.blockProps)||void 0===v?void 0:null===(h=v.footer_instagram_link)||void 0===h?void 0:h.active,tp="live"===e4?(null===(b=e8.blockProps)||void 0===b?void 0:null===(f=b.footer_twitter_link)||void 0===f?void 0:f.active)&&(null===(j=e8.blockProps)||void 0===j?void 0:null===(k=j.footer_twitter_link)||void 0===k?void 0:null===(w=k.value)||void 0===w?void 0:w.trim())!=="":null===(N=e8.blockProps)||void 0===N?void 0:null===(P=N.footer_twitter_link)||void 0===P?void 0:P.active,tu="live"===e4?(null===(I=e8.blockProps)||void 0===I?void 0:null===(C=I.footer_linkedin_link)||void 0===C?void 0:C.active)&&(null===(Z=e8.blockProps)||void 0===Z?void 0:null===(T=Z.footer_linkedin_link)||void 0===T?void 0:null===(S=T.value)||void 0===S?void 0:S.trim())!=="":null===(F=e8.blockProps)||void 0===F?void 0:null===(E=F.footer_linkedin_link)||void 0===E?void 0:E.active,tv="live"===e4?(null===(A=e8.blockProps)||void 0===A?void 0:null===(H=A.footer_tiktok_link)||void 0===H?void 0:H.active)&&(null===(z=e8.blockProps)||void 0===z?void 0:null===(U=z.footer_tiktok_link)||void 0===U?void 0:null===(V=U.value)||void 0===V?void 0:V.trim())!=="":null===(R=e8.blockProps)||void 0===R?void 0:null===(W=R.footer_tiktok_link)||void 0===W?void 0:W.active,th="live"===e4?(null===(K=e8.blockProps)||void 0===K?void 0:null===(q=K.footer_youtube_link)||void 0===q?void 0:q.active)&&(null===(O=e8.blockProps)||void 0===O?void 0:null===(G=O.footer_youtube_link)||void 0===G?void 0:null===($=G.value)||void 0===$?void 0:$.trim())!=="":null===(Y=e8.blockProps)||void 0===Y?void 0:null===(J=Y.footer_youtube_link)||void 0===J?void 0:J.active,tg=()=>{var e,t,l,_;null==tt||tt([{name:"company_label",field_label:"Company Label",type:"input",placeholder:"Company",key:"layout.blockProps.company_label.value",value:(null===(e=e8.blockProps)||void 0===e?void 0:null===(t=e.company_label)||void 0===t?void 0:t.value)||"Company"},{name:"resources_label",field_label:"Resources Label",type:"input",placeholder:"Resources",key:"layout.blockProps.resources_label.value",value:(null===(l=e8.blockProps)||void 0===l?void 0:null===(_=l.resources_label)||void 0===_?void 0:_.value)||"Resources"}]),null==tl||tl(()=>({websiteId:null==e6?void 0:e6._id.$oid,editBaseData:!0})),null==t_||t_(!0)};return(0,_.jsxs)("footer",{className:"B__w-full B__py-6 lg:B__py-7 xl:B__py-10 2xl:B__py-12 B__bg-nav B__text-nav",children:[(0,_.jsx)(iJ,{show:to,handleClose:()=>ta(!1),type:"footer"}),(0,_.jsxs)("div",{className:"max-width-mobile-90 custom-container-max-width B__mx-auto B__pt-6 lg:B__pt-7 xl:B__pt-10 2xl:B__pt-12",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-auto B__flex B__flex-col B__items-center lg:B__items-start B__gap-5 xl:B__gap-7 2xl:B__gap-9",children:[(0,_.jsxs)("div",{className:"B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-primary B__font-bold B__flex B__items-center B__gap-2",children:[(null===(Q=e8.blockProps)||void 0===Q?void 0:null===(X=Q.footer_logo)||void 0===X?void 0:X.active)&&(null===(ee=e8.blockProps)||void 0===ee?void 0:null===(et=ee.logo)||void 0===et?void 0:et.active)&&(null===(el=e8.blockProps)||void 0===el?void 0:null===(ei=el.logo)||void 0===ei?void 0:ei.url)&&(0,y.jv)(null===(eo=e8.blockProps)||void 0===eo?void 0:null===(ea=eo.logo)||void 0===ea?void 0:ea.url)&&(0,_.jsx)("img",{src:(null===(es=e8.blockProps)||void 0===es?void 0:null===(en=es.footer_logo)||void 0===en?void 0:en.url)||(null===(er=e8.blockProps)||void 0===er?void 0:null===(ed=er.logo)||void 0===ed?void 0:ed.url),alt:"Image",className:"!B__visible",style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px"}}),(null===(ec=e8.blockProps)||void 0===ec?void 0:null===(eB=ec.footer_tagline)||void 0===eB?void 0:eB.value)?null===(ex=e8.blockProps)||void 0===ex?void 0:null===(em=ex.footer_tagline)||void 0===em?void 0:em.value:null==e6?void 0:e6.org_name]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1",children:[tx&&(0,_.jsx)("a",{href:null===(ep=e8.blockProps)||void 0===ep?void 0:null===(eu=ep.footer_facebook_link)||void 0===eu?void 0:eu.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.k1O,{className:"B__text-base B__text-nav"})})}),tp&&(0,_.jsx)("a",{href:null===(ev=e8.blockProps)||void 0===ev?void 0:null===(eh=ev.footer_twitter_link)||void 0===eh?void 0:eh.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.meP,{className:"B__text-base B__text-nav"})})}),tm&&(0,_.jsx)("a",{href:null===(eg=e8.blockProps)||void 0===eg?void 0:null===(ey=eg.footer_instagram_link)||void 0===ey?void 0:ey.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.Vs6,{className:"B__text-base B__text-nav"})})}),tu&&(0,_.jsx)("a",{href:null===(eb=e8.blockProps)||void 0===eb?void 0:null===(ef=eb.footer_linkedin_link)||void 0===ef?void 0:ef.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.NQh,{className:"B__text-base B__text-nav"})})}),tv&&(0,_.jsx)("a",{href:null===(eN=e8.blockProps)||void 0===eN?void 0:null===(eP=eN.footer_tiktok_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.nTm,{className:"B__text-base B__text-nav"})})}),th&&(0,_.jsx)("a",{href:null===(eI=e8.blockProps)||void 0===eI?void 0:null===(eC=eI.footer_youtube_link)||void 0===eC?void 0:eC.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.V2E,{className:"B__text-base B__text-nav"})})})]}),("preview"===e4||"edit"===e4)&&(0,_.jsx)("div",{className:"",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{var e,t,l,_,i,o,a,s,n,r,d,c,B,x,m,p,u,v,h,g,y,b,f,j,k,w,N,P,I,C,Z,T,L,S;null==tt||tt([{name:"footer_tagline",field_label:"Tagline",placeholder:e6.org_name,type:"input",key:"layout.blockProps?.footer_tagline?.value",value:(null===(e=e8.blockProps)||void 0===e?void 0:null===(t=e.footer_tagline)||void 0===t?void 0:t.value)||e6.org_name},{name:"footer_logo",field_label:"Footer Logo",type:"file",placeholder:"Upload Your logo",disabled:null===(l=e8.blockProps)||void 0===l?void 0:null===(_=l.footer_logo)||void 0===_?void 0:_.active,key:"layout.blockProps.footer_logo.url",value:null===(i=e8.blockProps)||void 0===i?void 0:null===(o=i.footer_logo)||void 0===o?void 0:o.url,hideIconBtnValue:null===(a=e8.blockProps)||void 0===a?void 0:null===(s=a.footer_logo)||void 0===s?void 0:s.active,hideIconBtnKey:"layout.blockProps.footer_logo.active",hideSearchTab:!0},{name:"footer_facebook_link",field_label:"Facebook",placeholder:"https://www.facebook.com/abc",type:"input",key:"layout.blockProps?.footer_facebook_link?.value",value:(null===(n=e8.blockProps)||void 0===n?void 0:null===(r=n.footer_facebook_link)||void 0===r?void 0:r.value)||"",hideIconBtnValue:null===(d=e8.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,hideIconBtnKey:"layout.blockProps?.footer_facebook_link?.active"},{name:"footer_twitter_link",field_label:"Twitter",placeholder:"https://twitter.com/abc",type:"input",key:"layout.blockProps?.footer_twitter_link?.value",value:(null===(B=e8.blockProps)||void 0===B?void 0:null===(x=B.footer_twitter_link)||void 0===x?void 0:x.value)||"",hideIconBtnValue:null===(m=e8.blockProps)||void 0===m?void 0:null===(p=m.footer_twitter_link)||void 0===p?void 0:p.active,hideIconBtnKey:"layout.blockProps?.footer_twitter_link?.active"},{name:"footer_instagram_link",field_label:"Instagram",placeholder:"https://www.instagram.com/abc",type:"input",key:"layout.blockProps?.footer_instagram_link?.value",value:(null===(u=e8.blockProps)||void 0===u?void 0:null===(v=u.footer_instagram_link)||void 0===v?void 0:v.value)||"",hideIconBtnValue:null===(h=e8.blockProps)||void 0===h?void 0:null===(g=h.footer_instagram_link)||void 0===g?void 0:g.active,hideIconBtnKey:"layout.blockProps?.footer_instagram_link?.active"},{name:"footer_linkedin_link",field_label:"LinkedIn",placeholder:"https://www.linkedin.com/in/abc",type:"input",key:"layout.blockProps?.footer_linkedin_link?.value",value:(null===(y=e8.blockProps)||void 0===y?void 0:null===(b=y.footer_linkedin_link)||void 0===b?void 0:b.value)||"",hideIconBtnValue:null===(f=e8.blockProps)||void 0===f?void 0:null===(j=f.footer_linkedin_link)||void 0===j?void 0:j.active,hideIconBtnKey:"layout.blockProps?.footer_linkedin_link?.active"},{name:"footer_tiktok_link",field_label:"Tiktok",placeholder:"https://www.tiktok.com/in/abc",type:"input",key:"layout.blockProps?.footer_tiktok_link?.value",value:(null===(k=e8.blockProps)||void 0===k?void 0:null===(w=k.footer_tiktok_link)||void 0===w?void 0:w.value)||"",hideIconBtnValue:null===(N=e8.blockProps)||void 0===N?void 0:null===(P=N.footer_tiktok_link)||void 0===P?void 0:P.active,hideIconBtnKey:"layout.blockProps?.footer_tiktok_link?.active"},{name:"footer_youtube_link",field_label:"Youtube",placeholder:"https://www.youtube.com/in/abc",type:"input",key:"layout.blockProps?.footer_youtube_link?.value",value:(null===(I=e8.blockProps)||void 0===I?void 0:null===(C=I.footer_youtube_link)||void 0===C?void 0:C.value)||"",hideIconBtnValue:null===(Z=e8.blockProps)||void 0===Z?void 0:null===(T=Z.footer_youtube_link)||void 0===T?void 0:T.active,hideIconBtnKey:"layout.blockProps?.footer_youtube_link?.active"},{name:"footer_copyrights",field_label:"Copyrights",placeholder:"\xa9 Copyright 2024, All Rights Reserved by "+e6.org_name,type:"input",key:"layout.blockProps?.footer_copyrights?.value",value:(null===(L=e8.blockProps)||void 0===L?void 0:null===(S=L.footer_copyrights)||void 0===S?void 0:S.value)||"\xa9 Copyright 2024, All Rights Reserved by "+e6.org_name}]),null==tl||tl(()=>({websiteId:null==e6?void 0:e6._id.$oid,editBaseData:!0})),null==t_||t_(!0)}})})]}),(0,_.jsxs)("div",{className:"B__mb-7 lg:B__mb-16 xl:B__mb-20 2xl:B__mb-28 B__mt-5 lg:B__mt-9 xl:B__mt-12 2xl:B__mt-14 B__w-full B__flex B__flex-col-reverse lg:B__flex-row-reverse  lg:B__justify-between B__gap-8 lg:B__gap-10 xl:B__gap-16 2xl:B__gap-20 B__relative",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-around lg:B__justify-between B__gap-8 ".concat((null==e8?void 0:null===(eZ=e8.blockProps)||void 0===eZ?void 0:null===(eT=eZ.footer_newsletter)||void 0===eT?void 0:eT.active)||"live"!==e4?"lg:B__w-[45%]":"B__flex-1"),children:[(null===(eL=null==e6?void 0:null===(eS=e6.pages)||void 0===eS?void 0:eS.filter(e=>e.mainPage&&e.page_id!==e7&&e.active&&e.showInFooter))||void 0===eL?void 0:eL.length)||!(null==e6?void 0:e6.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(eD=e8.blockProps)||void 0===eD?void 0:null===(eF=eD.company_label)||void 0===eF?void 0:eF.value)||"Company",("preview"===e4||"edit"===e4)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:tg})})]}),null==e6?void 0:null===(eE=e6.pages)||void 0===eE?void 0:eE.map((e,t)=>{if(e.mainPage&&e.active&&e.showInFooter)return(0,_.jsx)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4]",style:{transition:"0.3s font-size ease"},onClick:()=>{te.pathname.startsWith("/generated")||te.pathname.startsWith("/edit")||te.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?te.push("/".concat("preview"===e4?"generated":"edit"===e4?"edit":"live","/").concat(e6._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):te.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:null==e?void 0:e.title},t)}),(null==e6?void 0:e6.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__animate-pulse B__cursor-pointer B__font-medium B__flex-wrap B__text-sm lg:B__text-base B__text-[#ffffffa4] B__flex B__items-center B__gap-1",children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),("preview"===e4||"edit"===e4)&&(0,_.jsx)(l5.mL,{className:"B__p-2.5 B__bg-butternut-button B__rounded-md",btntext:"Edit Pages",onClick:()=>{ta(!0)}})]}):(0,_.jsx)(_.Fragment,{}),(null===(eA=null==e6?void 0:null===(eH=e6.pages)||void 0===eH?void 0:eH.filter(e=>!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==e4)))||void 0===eA?void 0:eA.length)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(ez=e8.blockProps)||void 0===ez?void 0:null===(eM=ez.resources_label)||void 0===eM?void 0:eM.value)||"Resources",("preview"===e4||"edit"===e4)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:tg})})]}),null==e6?void 0:null===(eU=e6.pages)||void 0===eU?void 0:eU.map((e,t)=>{if(!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==e4))return(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4] B__flex B__items-center B__gap-1",style:{transition:"0.3s font-size ease"},onClick:()=>{te.pathname.startsWith("/generated")||te.pathname.startsWith("/edit")||te.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?te.push("/".concat("preview"===e4?"generated":"edit"===e4?"edit":"live","/").concat(e6._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):te.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:[null==e?void 0:e.title,(0,_.jsx)("div",{})]},t)})]}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)("div",{className:"B__w-full lg:B__w-[40%] ",children:(0,_.jsxs)("div",{className:" B__py-12 lg:B__py-0 B__mx-auto",children:[(null==e8?void 0:null===(eV=e8.blockProps)||void 0===eV?void 0:null===(eR=eV.footer_newsletter)||void 0===eR?void 0:eR.active)||"live"!==e4?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{style:{position:"relative"},className:"".concat(L().editHoverContainer," B__mb-5 xl:B__mb-7 2xl:B__mb-9 ").concat((null==e8?void 0:null===(eW=e8.blockProps)||void 0===eW?void 0:null===(eK=eW.footer_newsletter)||void 0===eK?void 0:eK.active)?"":"B__opacity-60"),children:[(0,_.jsx)("h3",{className:"B__font-medium B__text-center lg:B__text-left B__break-words B__text-xs lg:B__text-sm B__uppercase",children:(0,D.ZP)((null==e8?void 0:null===(eq=e8.blockProps)||void 0===eq?void 0:null===(eO=eq.footer_newsletter)||void 0===eO?void 0:eO.title)||"Sign up for our newsletter now!")}),("preview"===e4||"edit"===e4)&&(0,_.jsxs)("div",{className:L().editContainer,children:[(0,_.jsx)("div",{className:"B__px-2 B__py-1.5 B__bg-butternut-button B__rounded-md",children:(0,_.jsx)(l5.Oe,{style:{border:"none",outline:"none",color:"white"},show:null==e8?void 0:null===(eG=e8.blockProps)||void 0===eG?void 0:null===(e$=eG.footer_newsletter)||void 0===e$?void 0:e$.active,onClick:e=>{e.stopPropagation(),null==tB||tB()}})}),(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},icon:!0,className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{var e,t,l,_,i,o,a;null==tt||tt([{name:"newsletter_title",label:"Newsletter title",placeholder:"Title",type:"texteditor",key:"layout.blockProps?.footer_newsletter?.title",value:(null===(e=e8.blockProps)||void 0===e?void 0:null===(t=e.footer_newsletter)||void 0===t?void 0:t.title)||"Sign up for our newsletter now!",field_label:"Newsletter title"},{name:"emailPlaceholder",label:"Email placeholder",placeholder:"Email placeholder",type:"input",value:(null===(l=e8.blockProps)||void 0===l?void 0:null===(_=l.footer_newsletter)||void 0===_?void 0:_.emailPlaceholder)||"Enter your email",key:"layout.blockProps?.footer_newsletter?.emailPlaceholder",field_label:"Email placeholder"},{name:"buttonText",label:"Submit Button Text",placeholder:"Submit Button text",type:"input",value:(null===(i=e8.blockProps)||void 0===i?void 0:null===(o=i.footer_newsletter)||void 0===o?void 0:o.buttonText)||"Subscribe",key:"layout.blockProps?.footer_newsletter?.buttonText",field_label:"Submit Button text"}]),null==t_||t_(!0),null==tl||tl({websiteId:null==e6?void 0:null===(a=e6._id)||void 0===a?void 0:a.$oid,editBaseData:!0})}})]})]}),ts||tr?ts?(0,_.jsx)("p",{style:{color:"white",textAlign:"center"},children:"Thank you for subscribing."}):(0,_.jsx)("p",{className:"error-message",style:{color:"white",textAlign:"center"},children:tr}):(0,_.jsx)(ek.J9,{initialValues:{email:""},validationSchema:ew.Ry().shape({email:ew.Z_().required("Email is required").email("Please enter a valid email")}),onSubmit:tc,children:e=>{var t,l,i,o,a,s;let{values:n,errors:r,handleChange:d,handleSubmit:c}=e;return(0,_.jsxs)("form",{onSubmit:c,className:"".concat((null==e8?void 0:null===(t=e8.blockProps)||void 0===t?void 0:null===(l=t.footer_newsletter)||void 0===l?void 0:l.active)?"":"B__opacity-60"),children:[(0,_.jsxs)("div",{className:"B__flex B__items-stretch B__gap-4 xl:B__gap-7 B__font-secondary",children:[(0,_.jsx)("input",{type:"email",placeholder:(null===(i=e8.blockProps)||void 0===i?void 0:null===(o=i.footer_newsletter)||void 0===o?void 0:o.emailPlaceholder)||"Enter your email",name:"email",onChange:d,value:n.email,style:{width:"100%",backgroundColor:"transparent",border:"1px solid rgba(255, 255, 255, 0.3)",height:"50px",fontSize:"16px",padding:"20px",boxSizing:"border-box"},className:"B__rounded-primary B__placeholder-[#ffffffa4]"}),(0,_.jsx)("input",{type:"submit",value:(null===(a=e8.blockProps)||void 0===a?void 0:null===(s=a.footer_newsletter)||void 0===s?void 0:s.buttonText)||"Subscribe",className:"B__font-semibold B__text-xs lg:B__text-sm 2xl:B__text-base B__py-2.5 xl:B__py-3.5 B__px-6 lg:B__px-8 xl:B__px-10 2xl:B__px-14 B__text-[color:var(--background-color-nav)] B__bg-[color:var(--color-nav)] B__rounded-primary"})]}),r.email?(0,_.jsx)("p",{style:{color:"white"},children:r.email}):null]})}})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{style:{position:"relative"},className:"".concat(L().editHoverContainer," B__mt-5 lg:B__mt-7 xl:B__mt-10 2xl:B__mt-12 B__flex B__flex-wrap B__items-center B__justify-center lg:B__justify-start B__gap-5 lg:B__gap-7"),children:[(0,_.jsx)("div",{className:"B__font-light B__whitespace-nowrap B__flex-wrap B__text-sm lg:B__text-base B__text-center B__break-words lg:B__text-left",children:(0,D.ZP)((null==e8?void 0:null===(eY=e8.blockProps)||void 0===eY?void 0:null===(eJ=eY.footer_newsletter)||void 0===eJ?void 0:eJ.email)||(null==e6?void 0:null===(eQ=e6.user_location)||void 0===eQ?void 0:eQ.user_email)||"user@email.com")}),(0,_.jsx)("div",{className:"B__font-light B__whitespace-nowrap B__flex-wrap B__text-sm lg:B__text-base B__text-center B__break-words lg:B__text-left",children:(0,D.ZP)((null==e8?void 0:null===(eX=e8.blockProps)||void 0===eX?void 0:null===(e0=eX.footer_newsletter)||void 0===e0?void 0:e0.phone)||"+1 (123)-456-7890")}),("preview"===e4||"edit"===e4)&&(0,_.jsx)("div",{className:L().editContainer,children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},icon:!0,className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{var e,t,l,_,i,o;null==tt||tt([{name:"newsletter_email",label:"Newsletter email",placeholder:"Email",type:"texteditor",key:"layout.blockProps?.footer_newsletter?.email",value:(null===(e=e8.blockProps)||void 0===e?void 0:null===(t=e.footer_newsletter)||void 0===t?void 0:t.email)||(null==e6?void 0:null===(l=e6.user_location)||void 0===l?void 0:l.user_email)||"user@email.com",field_label:"Newsletter email"},{name:"newsletter_phone",label:"Newsletter phone",placeholder:"Phone",type:"texteditor",key:"layout.blockProps?.footer_newsletter?.phone",value:(null===(_=e8.blockProps)||void 0===_?void 0:null===(i=_.footer_newsletter)||void 0===i?void 0:i.phone)||"+1 (123)-456-7890",field_label:"Newsletter phone"}]),null==t_||t_(!0),null==tl||tl({websiteId:null==e6?void 0:null===(o=e6._id)||void 0===o?void 0:o.$oid,editBaseData:!0})}})})]})]})})]}),(0,_.jsx)("div",{className:"B__w-full B__border-t B__border-[#ffffff4d] B__h-[1px]"}),(0,_.jsx)("div",{className:"B__w-full B__text-center B__px-3 B__font-secondary B__font-semibold B__text-xs lg:B__text-sm B__mt-5 lg:B__mt-7 2xl:B__mt-10",children:(null===(e1=e8.blockProps)||void 0===e1?void 0:null===(e2=e1.footer_copyrights)||void 0===e2?void 0:e2.value)?null===(e5=e8.blockProps)||void 0===e5?void 0:null===(e3=e5.footer_copyrights)||void 0===e3?void 0:e3.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",e6.org_name]})})]})]})},ol=e=>{var t,l,o,a,s,d,c,B,x,m,p,u,v,h,b,f,j,k,w,N,P,I,C,Z,T,L,S,D,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA;let{viewMode:eH,websiteData:ez,page:eM}=e,{layout:eU}=ez,{page_id:eV}=eM,eR=(0,n.useRouter)(),{setEditContentFields:eW,setEditSectionMetaData:eK,setShowEditContentModal:eq}=(0,i.useContext)(r.o)||{},[eO,eG]=(0,i.useState)(!1),e$="live"===eH?(null===(t=eU.blockProps)||void 0===t?void 0:null===(l=t.footer_facebook_link)||void 0===l?void 0:l.active)&&(null===(o=eU.blockProps)||void 0===o?void 0:null===(a=o.footer_facebook_link)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.trim())!=="":null===(d=eU.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,eY="live"===eH?(null===(B=eU.blockProps)||void 0===B?void 0:null===(x=B.footer_instagram_link)||void 0===x?void 0:x.active)&&(null===(m=eU.blockProps)||void 0===m?void 0:null===(p=m.footer_instagram_link)||void 0===p?void 0:null===(u=p.value)||void 0===u?void 0:u.trim())!=="":null===(v=eU.blockProps)||void 0===v?void 0:null===(h=v.footer_instagram_link)||void 0===h?void 0:h.active,eJ="live"===eH?(null===(b=eU.blockProps)||void 0===b?void 0:null===(f=b.footer_twitter_link)||void 0===f?void 0:f.active)&&(null===(j=eU.blockProps)||void 0===j?void 0:null===(k=j.footer_twitter_link)||void 0===k?void 0:null===(w=k.value)||void 0===w?void 0:w.trim())!=="":null===(N=eU.blockProps)||void 0===N?void 0:null===(P=N.footer_twitter_link)||void 0===P?void 0:P.active,eQ="live"===eH?(null===(I=eU.blockProps)||void 0===I?void 0:null===(C=I.footer_linkedin_link)||void 0===C?void 0:C.active)&&(null===(Z=eU.blockProps)||void 0===Z?void 0:null===(T=Z.footer_linkedin_link)||void 0===T?void 0:null===(L=T.value)||void 0===L?void 0:L.trim())!=="":null===(S=eU.blockProps)||void 0===S?void 0:null===(D=S.footer_linkedin_link)||void 0===D?void 0:D.active,eX="live"===eH?(null===(F=eU.blockProps)||void 0===F?void 0:null===(E=F.footer_tiktok_link)||void 0===E?void 0:E.active)&&(null===(A=eU.blockProps)||void 0===A?void 0:null===(H=A.footer_tiktok_link)||void 0===H?void 0:null===(z=H.value)||void 0===z?void 0:z.trim())!=="":null===(U=eU.blockProps)||void 0===U?void 0:null===(V=U.footer_tiktok_link)||void 0===V?void 0:V.active,e0="live"===eH?(null===(R=eU.blockProps)||void 0===R?void 0:null===(W=R.footer_youtube_link)||void 0===W?void 0:W.active)&&(null===(K=eU.blockProps)||void 0===K?void 0:null===(q=K.footer_youtube_link)||void 0===q?void 0:null===(O=q.value)||void 0===O?void 0:O.trim())!=="":null===(G=eU.blockProps)||void 0===G?void 0:null===($=G.footer_youtube_link)||void 0===$?void 0:$.active,e1=()=>{var e,t,l,_,i,o,a,s,n,r,d,c,B,x,m,p,u,v,h,g,y,b,f,j,k,w,N,P,I,C,Z,T,L,S;null==eW||eW([{name:"footer_tagline",field_label:"Tagline",placeholder:ez.org_name,type:"input",key:"layout.blockProps?.footer_tagline?.value",value:(null===(e=eU.blockProps)||void 0===e?void 0:null===(t=e.footer_tagline)||void 0===t?void 0:t.value)||ez.org_name},{name:"footer_logo",field_label:"Footer Logo",type:"file",placeholder:"Upload Your logo",disabled:null===(l=eU.blockProps)||void 0===l?void 0:null===(_=l.footer_logo)||void 0===_?void 0:_.active,key:"layout.blockProps.footer_logo.url",value:null===(i=eU.blockProps)||void 0===i?void 0:null===(o=i.footer_logo)||void 0===o?void 0:o.url,hideIconBtnValue:null===(a=eU.blockProps)||void 0===a?void 0:null===(s=a.footer_logo)||void 0===s?void 0:s.active,hideIconBtnKey:"layout.blockProps.footer_logo.active",hideSearchTab:!0},{name:"footer_facebook_link",field_label:"Facebook",placeholder:"https://www.facebook.com/abc",type:"input",key:"layout.blockProps?.footer_facebook_link?.value",value:(null===(n=eU.blockProps)||void 0===n?void 0:null===(r=n.footer_facebook_link)||void 0===r?void 0:r.value)||"",hideIconBtnValue:null===(d=eU.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,hideIconBtnKey:"layout.blockProps?.footer_facebook_link?.active"},{name:"footer_twitter_link",field_label:"Twitter",placeholder:"https://twitter.com/abc",type:"input",key:"layout.blockProps?.footer_twitter_link?.value",value:(null===(B=eU.blockProps)||void 0===B?void 0:null===(x=B.footer_twitter_link)||void 0===x?void 0:x.value)||"",hideIconBtnValue:null===(m=eU.blockProps)||void 0===m?void 0:null===(p=m.footer_twitter_link)||void 0===p?void 0:p.active,hideIconBtnKey:"layout.blockProps?.footer_twitter_link?.active"},{name:"footer_instagram_link",field_label:"Instagram",placeholder:"https://www.instagram.com/abc",type:"input",key:"layout.blockProps?.footer_instagram_link?.value",value:(null===(u=eU.blockProps)||void 0===u?void 0:null===(v=u.footer_instagram_link)||void 0===v?void 0:v.value)||"",hideIconBtnValue:null===(h=eU.blockProps)||void 0===h?void 0:null===(g=h.footer_instagram_link)||void 0===g?void 0:g.active,hideIconBtnKey:"layout.blockProps?.footer_instagram_link?.active"},{name:"footer_linkedin_link",field_label:"LinkedIn",placeholder:"https://www.linkedin.com/in/abc",type:"input",key:"layout.blockProps?.footer_linkedin_link?.value",value:(null===(y=eU.blockProps)||void 0===y?void 0:null===(b=y.footer_linkedin_link)||void 0===b?void 0:b.value)||"",hideIconBtnValue:null===(f=eU.blockProps)||void 0===f?void 0:null===(j=f.footer_linkedin_link)||void 0===j?void 0:j.active,hideIconBtnKey:"layout.blockProps?.footer_linkedin_link?.active"},{name:"footer_tiktok_link",field_label:"Tiktok",placeholder:"https://www.tiktok.com/in/abc",type:"input",key:"layout.blockProps?.footer_tiktok_link?.value",value:(null===(k=eU.blockProps)||void 0===k?void 0:null===(w=k.footer_tiktok_link)||void 0===w?void 0:w.value)||"",hideIconBtnValue:null===(N=eU.blockProps)||void 0===N?void 0:null===(P=N.footer_tiktok_link)||void 0===P?void 0:P.active,hideIconBtnKey:"layout.blockProps?.footer_tiktok_link?.active"},{name:"footer_youtube_link",field_label:"Youtube",placeholder:"https://www.youtube.com/in/abc",type:"input",key:"layout.blockProps?.footer_youtube_link?.value",value:(null===(I=eU.blockProps)||void 0===I?void 0:null===(C=I.footer_youtube_link)||void 0===C?void 0:C.value)||"",hideIconBtnValue:null===(Z=eU.blockProps)||void 0===Z?void 0:null===(T=Z.footer_youtube_link)||void 0===T?void 0:T.active,hideIconBtnKey:"layout.blockProps?.footer_youtube_link?.active"},{name:"footer_copyrights",field_label:"Copyrights",placeholder:"\xa9 Copyright 2024, All Rights Reserved by "+ez.org_name,type:"input",key:"layout.blockProps?.footer_copyrights?.value",value:(null===(L=eU.blockProps)||void 0===L?void 0:null===(S=L.footer_copyrights)||void 0===S?void 0:S.value)||"\xa9 Copyright 2024, All Rights Reserved by "+ez.org_name}]),null==eK||eK(()=>({websiteId:null==ez?void 0:ez._id.$oid,editBaseData:!0})),null==eq||eq(!0)};return(0,_.jsxs)("footer",{className:"B__w-full B__py-6 lg:B__py-7 xl:B__py-10 2xl:B__py-12 B__bg-nav B__text-nav",children:[(0,_.jsx)(iJ,{show:eO,handleClose:()=>eG(!1),type:"footer"}),(null===(Y=ez.layout.blockProps)||void 0===Y?void 0:null===(J=Y.footer_sections)||void 0===J?void 0:J.active)&&(null==ez?void 0:null===(Q=ez.footer_sections)||void 0===Q?void 0:Q.length)?(0,_.jsx)(iG,{sections:ez.footer_sections,websiteId:ez._id.$oid,type:eH,slot:"footer_sections",sectionLocation:"website"}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"max-width-mobile-90 custom-container-max-width B__mx-auto B__pt-6 lg:B__pt-7 xl:B__pt-10 2xl:B__pt-12",children:[(0,_.jsxs)("div",{className:"B__mb-7 lg:B__mb-16 xl:B__mb-20 2xl:B__mb-28 B__w-full B__flex B__flex-col B__justify-center B__items-center B__flex-wrap B__gap-8 lg:B__gap-10 xl:B__gap-12",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-auto B__flex B__flex-col B__items-center lg:B__items-start B__gap-5 xl:B__gap-7 2xl:B__gap-9 B__relative",children:[(0,_.jsxs)("div",{className:"B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-primary B__font-bold B__flex B__gap-2 B__items-center ",children:[(null===(X=eU.blockProps)||void 0===X?void 0:null===(ee=X.footer_logo)||void 0===ee?void 0:ee.active)&&(null===(et=eU.blockProps)||void 0===et?void 0:null===(el=et.logo)||void 0===el?void 0:el.active)&&(null===(ei=eU.blockProps)||void 0===ei?void 0:null===(eo=ei.logo)||void 0===eo?void 0:eo.url)&&(0,y.jv)(null===(ea=eU.blockProps)||void 0===ea?void 0:null===(es=ea.logo)||void 0===es?void 0:es.url)&&(0,_.jsx)("img",{src:(null===(en=eU.blockProps)||void 0===en?void 0:null===(er=en.footer_logo)||void 0===er?void 0:er.url)||(null===(ed=eU.blockProps)||void 0===ed?void 0:null===(ec=ed.logo)||void 0===ec?void 0:ec.url),alt:"Image",className:"!B__visible",style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px"}}),(null===(eB=eU.blockProps)||void 0===eB?void 0:null===(ex=eB.footer_tagline)||void 0===ex?void 0:ex.value)?null===(em=eU.blockProps)||void 0===em?void 0:null===(ep=em.footer_tagline)||void 0===ep?void 0:ep.value:null==ez?void 0:ez.org_name]}),("preview"===eH||"edit"===eH)&&(0,_.jsx)("div",{className:"B__absolute B__-right-2 B__translate-x-full",style:{width:"fit-content",margin:"0 auto"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 auto"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:e1})})]}),(null===(eu=null==ez?void 0:null===(ev=ez.pages)||void 0===ev?void 0:ev.filter(e=>e.mainPage&&e.page_id!==eV&&e.active&&e.showInFooter))||void 0===eu?void 0:eu.length)||!(null==ez?void 0:ez.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-row B__items-center B__gap-5 xl:B__gap-6 2xl:B__gap-7 B__uppercase B__flex-wrap B__justify-center",children:[null==ez?void 0:null===(eh=ez.pages)||void 0===eh?void 0:eh.map((e,t)=>{if(e.mainPage&&e.active&&e.showInFooter)return(0,_.jsx)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap  B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4]",style:{transition:"0.3s font-size ease"},onClick:()=>{eR.pathname.startsWith("/generated")||eR.pathname.startsWith("/edit")||eR.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eR.push("/".concat("preview"===eH?"generated":"edit"===eH?"edit":"live","/").concat(ez._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eR.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:null==e?void 0:e.title},t)}),(null==ez?void 0:ez.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__animate-pulse B__cursor-pointer B__font-medium B__flex-wrap B__text-sm lg:B__text-base B__text-[#ffffffa4] B__flex B__items-center B__gap-1",children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),("preview"===eH||"edit"===eH)&&(0,_.jsx)(l5.mL,{className:"B__p-2.5 B__bg-butternut-button B__rounded-md",btntext:"Edit Pages",onClick:()=>{eG(!0)}})]}):(0,_.jsx)(_.Fragment,{}),(null===(eg=null==ez?void 0:null===(ey=ez.pages)||void 0===ey?void 0:ey.filter(e=>!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eH)))||void 0===eg?void 0:eg.length)?(0,_.jsx)("div",{className:"B__flex B__flex-row B__items-center B__flex-wrap B__gap-5 xl:B__gap-6 2xl:B__gap-7 B__uppercase  B__justify-center",children:null==ez?void 0:null===(eb=ez.pages)||void 0===eb?void 0:eb.map((e,t)=>{if(!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eH))return(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4] B__flex B__items-center B__gap-1",style:{transition:"0.3s font-size ease"},onClick:()=>{eR.pathname.startsWith("/generated")||eR.pathname.startsWith("/edit")||eR.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eR.push("/".concat("preview"===eH?"generated":"edit"===eH?"edit":"live","/").concat(ez._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eR.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:[null==e?void 0:e.title,(0,_.jsx)("div",{})]},t)})}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"B__flex B__justify-center B__w-full B__items-center B__gap-1",children:[e$&&(0,_.jsx)("a",{href:null===(ef=eU.blockProps)||void 0===ef?void 0:null===(ej=ef.footer_facebook_link)||void 0===ej?void 0:ej.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.k1O,{className:"B__text-xs B__text-nav"})})}),eJ&&(0,_.jsx)("a",{href:null===(ek=eU.blockProps)||void 0===ek?void 0:null===(ew=ek.footer_twitter_link)||void 0===ew?void 0:ew.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.meP,{className:"B__text-xs B__text-nav"})})}),eY&&(0,_.jsx)("a",{href:null===(eN=eU.blockProps)||void 0===eN?void 0:null===(eP=eN.footer_instagram_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.Vs6,{className:"B__text-xs B__text-nav"})})}),eQ&&(0,_.jsx)("a",{href:null===(eI=eU.blockProps)||void 0===eI?void 0:null===(eC=eI.footer_linkedin_link)||void 0===eC?void 0:eC.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.NQh,{className:"B__text-xs B__text-nav"})})}),eX&&(0,_.jsx)("a",{href:null===(eZ=eU.blockProps)||void 0===eZ?void 0:null===(eT=eZ.footer_tiktok_link)||void 0===eT?void 0:eT.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.nTm,{className:"B__text-base B__text-nav"})})}),e0&&(0,_.jsx)("a",{href:null===(eL=eU.blockProps)||void 0===eL?void 0:null===(eS=eL.footer_youtube_link)||void 0===eS?void 0:eS.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.V2E,{className:"B__text-base B__text-nav"})})})]}),("preview"===eH||"edit"===eH)&&(0,_.jsx)("div",{className:"",style:{width:"fit-content",margin:"0 auto"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 auto"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:e1})})]}),(0,_.jsx)("div",{className:"B__w-full B__border-t B__border-[#ffffff4d] B__h-[1px]"}),(0,_.jsx)("div",{className:"B__w-full B__text-center B__px-3 B__font-secondary B__font-semibold B__text-xs lg:B__text-sm B__mt-5 lg:B__mt-7 2xl:B__mt-10",children:(null===(eD=eU.blockProps)||void 0===eD?void 0:null===(eF=eD.footer_copyrights)||void 0===eF?void 0:eF.value)?null===(eE=eU.blockProps)||void 0===eE?void 0:null===(eA=eE.footer_copyrights)||void 0===eA?void 0:eA.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",ez.org_name]})})]})]})},o_=e=>{var t,l,o,a,s,d,c,B,x,m,p,u,v,h,b,f,j,k,w,N,P,I,C,Z,T,L,S,D,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez;let{viewMode:eM,websiteData:eU,page:eV}=e,{layout:eR}=eU,{page_id:eW}=eV,eK=(0,n.useRouter)(),{setEditContentFields:eq,setEditSectionMetaData:eO,setShowEditContentModal:eG,updateSectionData:e$,togglePage:eY}=(0,i.useContext)(r.o)||{},[eJ,eQ]=(0,i.useState)(!1),eX="live"===eM?(null===(t=eR.blockProps)||void 0===t?void 0:null===(l=t.footer_facebook_link)||void 0===l?void 0:l.active)&&(null===(o=eR.blockProps)||void 0===o?void 0:null===(a=o.footer_facebook_link)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.trim())!=="":null===(d=eR.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,e0="live"===eM?(null===(B=eR.blockProps)||void 0===B?void 0:null===(x=B.footer_instagram_link)||void 0===x?void 0:x.active)&&(null===(m=eR.blockProps)||void 0===m?void 0:null===(p=m.footer_instagram_link)||void 0===p?void 0:null===(u=p.value)||void 0===u?void 0:u.trim())!=="":null===(v=eR.blockProps)||void 0===v?void 0:null===(h=v.footer_instagram_link)||void 0===h?void 0:h.active,e1="live"===eM?(null===(b=eR.blockProps)||void 0===b?void 0:null===(f=b.footer_twitter_link)||void 0===f?void 0:f.active)&&(null===(j=eR.blockProps)||void 0===j?void 0:null===(k=j.footer_twitter_link)||void 0===k?void 0:null===(w=k.value)||void 0===w?void 0:w.trim())!=="":null===(N=eR.blockProps)||void 0===N?void 0:null===(P=N.footer_twitter_link)||void 0===P?void 0:P.active,e2="live"===eM?(null===(I=eR.blockProps)||void 0===I?void 0:null===(C=I.footer_linkedin_link)||void 0===C?void 0:C.active)&&(null===(Z=eR.blockProps)||void 0===Z?void 0:null===(T=Z.footer_linkedin_link)||void 0===T?void 0:null===(L=T.value)||void 0===L?void 0:L.trim())!=="":null===(S=eR.blockProps)||void 0===S?void 0:null===(D=S.footer_linkedin_link)||void 0===D?void 0:D.active,e5="live"===eM?(null===(F=eR.blockProps)||void 0===F?void 0:null===(E=F.footer_tiktok_link)||void 0===E?void 0:E.active)&&(null===(A=eR.blockProps)||void 0===A?void 0:null===(H=A.footer_tiktok_link)||void 0===H?void 0:null===(z=H.value)||void 0===z?void 0:z.trim())!=="":null===(U=eR.blockProps)||void 0===U?void 0:null===(V=U.footer_tiktok_link)||void 0===V?void 0:V.active,e3="live"===eM?(null===(R=eR.blockProps)||void 0===R?void 0:null===(W=R.footer_youtube_link)||void 0===W?void 0:W.active)&&(null===(K=eR.blockProps)||void 0===K?void 0:null===(q=K.footer_youtube_link)||void 0===q?void 0:null===(O=q.value)||void 0===O?void 0:O.trim())!=="":null===(G=eR.blockProps)||void 0===G?void 0:null===($=G.footer_youtube_link)||void 0===$?void 0:$.active,e4=()=>{var e,t,l,_,i,o,a,s,n,r,d,c,B,x,m,p,u,v,h,g,y,b,f,j,k,w,N,P,I,C,Z,T,L,S;null==eq||eq([{name:"footer_tagline",field_label:"Tagline",placeholder:eU.org_name,type:"input",key:"layout.blockProps?.footer_tagline?.value",value:(null===(e=eR.blockProps)||void 0===e?void 0:null===(t=e.footer_tagline)||void 0===t?void 0:t.value)||eU.org_name},{name:"footer_logo",field_label:"Footer Logo",type:"file",placeholder:"Upload Your logo",disabled:null===(l=eR.blockProps)||void 0===l?void 0:null===(_=l.footer_logo)||void 0===_?void 0:_.active,key:"layout.blockProps.footer_logo.url",value:null===(i=eR.blockProps)||void 0===i?void 0:null===(o=i.footer_logo)||void 0===o?void 0:o.url,hideIconBtnValue:null===(a=eR.blockProps)||void 0===a?void 0:null===(s=a.footer_logo)||void 0===s?void 0:s.active,hideIconBtnKey:"layout.blockProps.footer_logo.active",hideSearchTab:!0},{name:"footer_facebook_link",field_label:"Facebook",placeholder:"https://www.facebook.com/abc",type:"input",key:"layout.blockProps?.footer_facebook_link?.value",value:(null===(n=eR.blockProps)||void 0===n?void 0:null===(r=n.footer_facebook_link)||void 0===r?void 0:r.value)||"",hideIconBtnValue:null===(d=eR.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,hideIconBtnKey:"layout.blockProps?.footer_facebook_link?.active"},{name:"footer_twitter_link",field_label:"Twitter",placeholder:"https://twitter.com/abc",type:"input",key:"layout.blockProps?.footer_twitter_link?.value",value:(null===(B=eR.blockProps)||void 0===B?void 0:null===(x=B.footer_twitter_link)||void 0===x?void 0:x.value)||"",hideIconBtnValue:null===(m=eR.blockProps)||void 0===m?void 0:null===(p=m.footer_twitter_link)||void 0===p?void 0:p.active,hideIconBtnKey:"layout.blockProps?.footer_twitter_link?.active"},{name:"footer_instagram_link",field_label:"Instagram",placeholder:"https://www.instagram.com/abc",type:"input",key:"layout.blockProps?.footer_instagram_link?.value",value:(null===(u=eR.blockProps)||void 0===u?void 0:null===(v=u.footer_instagram_link)||void 0===v?void 0:v.value)||"",hideIconBtnValue:null===(h=eR.blockProps)||void 0===h?void 0:null===(g=h.footer_instagram_link)||void 0===g?void 0:g.active,hideIconBtnKey:"layout.blockProps?.footer_instagram_link?.active"},{name:"footer_linkedin_link",field_label:"LinkedIn",placeholder:"https://www.linkedin.com/in/abc",type:"input",key:"layout.blockProps?.footer_linkedin_link?.value",value:(null===(y=eR.blockProps)||void 0===y?void 0:null===(b=y.footer_linkedin_link)||void 0===b?void 0:b.value)||"",hideIconBtnValue:null===(f=eR.blockProps)||void 0===f?void 0:null===(j=f.footer_linkedin_link)||void 0===j?void 0:j.active,hideIconBtnKey:"layout.blockProps?.footer_linkedin_link?.active"},{name:"footer_tiktok_link",field_label:"Tiktok",placeholder:"https://www.tiktok.com/in/abc",type:"input",key:"layout.blockProps?.footer_tiktok_link?.value",value:(null===(k=eR.blockProps)||void 0===k?void 0:null===(w=k.footer_tiktok_link)||void 0===w?void 0:w.value)||"",hideIconBtnValue:null===(N=eR.blockProps)||void 0===N?void 0:null===(P=N.footer_tiktok_link)||void 0===P?void 0:P.active,hideIconBtnKey:"layout.blockProps?.footer_tiktok_link?.active"},{name:"footer_youtube_link",field_label:"Youtube",placeholder:"https://www.youtube.com/in/abc",type:"input",key:"layout.blockProps?.footer_youtube_link?.value",value:(null===(I=eR.blockProps)||void 0===I?void 0:null===(C=I.footer_youtube_link)||void 0===C?void 0:C.value)||"",hideIconBtnValue:null===(Z=eR.blockProps)||void 0===Z?void 0:null===(T=Z.footer_youtube_link)||void 0===T?void 0:T.active,hideIconBtnKey:"layout.blockProps?.footer_youtube_link?.active"},{name:"footer_copyrights",field_label:"Copyrights",placeholder:"\xa9 Copyright 2024, All Rights Reserved by "+eU.org_name,type:"input",key:"layout.blockProps?.footer_copyrights?.value",value:(null===(L=eR.blockProps)||void 0===L?void 0:null===(S=L.footer_copyrights)||void 0===S?void 0:S.value)||"\xa9 Copyright 2024, All Rights Reserved by "+eU.org_name}]),null==eO||eO(()=>({websiteId:null==eU?void 0:eU._id.$oid,editBaseData:!0})),null==eG||eG(!0)};return(0,_.jsxs)("footer",{className:"B__w-full B__py-6 lg:B__py-7 xl:B__py-10 2xl:B__py-12 B__bg-nav B__text-nav",children:[(0,_.jsx)(iJ,{show:eJ,handleClose:()=>eQ(!1),type:"footer"}),(null===(Y=eU.layout.blockProps)||void 0===Y?void 0:null===(J=Y.footer_sections)||void 0===J?void 0:J.active)&&(null==eU?void 0:null===(Q=eU.footer_sections)||void 0===Q?void 0:Q.length)?(0,_.jsx)(iG,{sections:eU.footer_sections,websiteId:eU._id.$oid,type:eM,slot:"footer_sections",sectionLocation:"website"}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"max-width-mobile-90 custom-container-max-width B__mx-auto B__pt-6 lg:B__pt-7 xl:B__pt-10 2xl:B__pt-12",children:[(0,_.jsxs)("div",{className:"B__mb-7 lg:B__mb-16 xl:B__mb-20 2xl:B__mb-28 B__w-full B__flex B__flex-col lg:B__flex-row B__justify-center B__items-center lg:B__items-start B__flex-wrap B__gap-8 lg:B__gap-10 xl:B__gap-12",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[25%] B__flex B__flex-col B__items-center lg:B__items-start B__gap-5 xl:B__gap-7 2xl:B__gap-9 B__relative",children:[(0,_.jsxs)("div",{className:"B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-primary B__font-bold B__flex B__items-center B__gap-2",children:[(null===(X=eR.blockProps)||void 0===X?void 0:null===(ee=X.footer_logo)||void 0===ee?void 0:ee.active)&&(null===(et=eR.blockProps)||void 0===et?void 0:null===(el=et.logo)||void 0===el?void 0:el.active)&&(null===(ei=eR.blockProps)||void 0===ei?void 0:null===(eo=ei.logo)||void 0===eo?void 0:eo.url)&&(0,y.jv)(null===(ea=eR.blockProps)||void 0===ea?void 0:null===(es=ea.logo)||void 0===es?void 0:es.url)&&(0,_.jsx)("img",{src:(null===(en=eR.blockProps)||void 0===en?void 0:null===(er=en.footer_logo)||void 0===er?void 0:er.url)||(null===(ed=eR.blockProps)||void 0===ed?void 0:null===(ec=ed.logo)||void 0===ec?void 0:ec.url),alt:"Image",className:"!B__visible",style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px"}}),(null===(eB=eR.blockProps)||void 0===eB?void 0:null===(ex=eB.footer_tagline)||void 0===ex?void 0:ex.value)?null===(em=eR.blockProps)||void 0===em?void 0:null===(ep=em.footer_tagline)||void 0===ep?void 0:ep.value:null==eU?void 0:eU.org_name]}),("preview"===eM||"edit"===eM)&&(0,_.jsx)("div",{className:"B__absolute  B__right-1",style:{width:"fit-content",margin:"0 auto"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 auto"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:e4})})]}),(0,_.jsx)("div",{className:"B__w-auto B__flex-1",children:(null===(eu=null==eU?void 0:null===(ev=eU.pages)||void 0===ev?void 0:ev.filter(e=>e.mainPage&&e.page_id!==eW&&e.active&&e.showInFooter))||void 0===eu?void 0:eu.length)||!(null==eU?void 0:eU.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-row B__items-center B__gap-5 xl:B__gap-6 2xl:B__gap-7 B__uppercase B__flex-wrap B__justify-center",children:[null==eU?void 0:null===(eh=eU.pages)||void 0===eh?void 0:eh.map((e,t)=>{if(e.mainPage&&e.active&&e.showInFooter)return(0,_.jsx)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap  B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4]",style:{transition:"0.3s font-size ease"},onClick:()=>{eK.pathname.startsWith("/generated")||eK.pathname.startsWith("/edit")||eK.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eK.push("/".concat("preview"===eM?"generated":"edit"===eM?"edit":"live","/").concat(eU._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eK.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:null==e?void 0:e.title},t)}),(null==eU?void 0:eU.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__animate-pulse B__cursor-pointer B__font-medium B__flex-wrap B__text-sm lg:B__text-base B__text-[#ffffffa4] B__flex B__items-center B__gap-1",children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),("preview"===eM||"edit"===eM)&&(0,_.jsx)(l5.mL,{className:"B__p-2.5 B__bg-butternut-button B__rounded-md",btntext:"Edit Pages",onClick:()=>{eQ(!0)}})]}):(0,_.jsx)(_.Fragment,{})}),(0,_.jsxs)("div",{className:"B__relative B__flex B__justify-center lg:B__justify-end B__w-auto B__items-center B__gap-1",children:[eX&&(0,_.jsx)("a",{href:null===(eg=eR.blockProps)||void 0===eg?void 0:null===(ey=eg.footer_facebook_link)||void 0===ey?void 0:ey.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.k1O,{className:"B__text-xs B__text-nav"})})}),e1&&(0,_.jsx)("a",{href:null===(eb=eR.blockProps)||void 0===eb?void 0:null===(ef=eb.footer_twitter_link)||void 0===ef?void 0:ef.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.meP,{className:"B__text-xs B__text-nav"})})}),e0&&(0,_.jsx)("a",{href:null===(ej=eR.blockProps)||void 0===ej?void 0:null===(ek=ej.footer_instagram_link)||void 0===ek?void 0:ek.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.Vs6,{className:"B__text-xs B__text-nav"})})}),e2&&(0,_.jsx)("a",{href:null===(ew=eR.blockProps)||void 0===ew?void 0:null===(eN=ew.footer_linkedin_link)||void 0===eN?void 0:eN.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.NQh,{className:"B__text-xs B__text-nav"})})}),e5&&(0,_.jsx)("a",{href:null===(eP=eR.blockProps)||void 0===eP?void 0:null===(eI=eP.footer_tiktok_link)||void 0===eI?void 0:eI.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.nTm,{className:"B__text-base B__text-nav"})})}),e3&&(0,_.jsx)("a",{href:null===(eC=eR.blockProps)||void 0===eC?void 0:null===(eZ=eC.footer_youtube_link)||void 0===eZ?void 0:eZ.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.V2E,{className:"B__text-base B__text-nav"})})}),("preview"===eM||"edit"===eM)&&(0,_.jsx)("div",{className:"B__absolute B__-bottom-10 B__right-0",style:{width:"fit-content",margin:"0 auto"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 auto"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:e4})})]})]}),(0,_.jsx)("div",{className:"B__w-full B__border-t B__border-[#ffffff4d] B__h-[1px]"}),(0,_.jsxs)("div",{className:"B__flex B__flex-col lg:B__flex-row B__items-center B__justify-center ".concat((null===(eT=null==eU?void 0:null===(eL=eU.pages)||void 0===eL?void 0:eL.filter(e=>!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eM)))||void 0===eT?void 0:eT.length)?"lg:B__justify-between":"lg:B__justify-center"," B__pt-7"),children:[(0,_.jsx)("div",{className:"B__w-full lg:B__w-[45%] B__text-center lg:B__text-left B__px-3 B__font-secondary B__font-semibold B__text-xs lg:B__text-sm",children:(null===(eS=eR.blockProps)||void 0===eS?void 0:null===(eD=eS.footer_copyrights)||void 0===eD?void 0:eD.value)?null===(eF=eR.blockProps)||void 0===eF?void 0:null===(eE=eF.footer_copyrights)||void 0===eE?void 0:eE.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",eU.org_name]})}),(null===(eA=null==eU?void 0:null===(eH=eU.pages)||void 0===eH?void 0:eH.filter(e=>!e.mainPage&&((null==e?void 0:e.active)||"live"!==eM)))||void 0===eA?void 0:eA.length)?(0,_.jsx)("div",{className:"B__flex B__flex-row B__items-center B__flex-wrap B__gap-5 xl:B__gap-6 2xl:B__gap-7 B__uppercase  B__justify-center lg:B__justify-end B__w-full lg:B__w-[45%] B__mt-4 lg:B__mt-0",children:null==eU?void 0:null===(ez=eU.pages)||void 0===ez?void 0:ez.map((e,t)=>{if(!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eM))return(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4] B__flex B__items-center B__gap-1",style:{transition:"0.3s font-size ease"},onClick:()=>{eK.pathname.startsWith("/generated")||eK.pathname.startsWith("/edit")||eK.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eK.push("/".concat("preview"===eM?"generated":"edit"===eM?"edit":"live","/").concat(eU._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eK.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:[null==e?void 0:e.title,(0,_.jsx)("div",{})]},t)})}):(0,_.jsx)(_.Fragment,{})]})]})]})},oi=e=>{var t,l,o,a,s,d,c,B,x,m,p,u,v,h,b,f,j,k,w,N,P,I,C,Z,T,L,S,D,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez,eM,eU,eV,eR,eW,eK;let{viewMode:eq,websiteData:eO,page:eG}=e,{layout:e$}=eO,{page_id:eY}=eG,eJ=(0,n.useRouter)(),{setEditContentFields:eQ,setEditSectionMetaData:eX,setShowEditContentModal:e0,updateSectionData:e1,togglePage:e2}=(0,i.useContext)(r.o)||{},[e5,e3]=(0,i.useState)(!1),e4="live"===eq?(null===(t=e$.blockProps)||void 0===t?void 0:null===(l=t.footer_facebook_link)||void 0===l?void 0:l.active)&&(null===(o=e$.blockProps)||void 0===o?void 0:null===(a=o.footer_facebook_link)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.trim())!=="":null===(d=e$.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,e6="live"===eq?(null===(B=e$.blockProps)||void 0===B?void 0:null===(x=B.footer_instagram_link)||void 0===x?void 0:x.active)&&(null===(m=e$.blockProps)||void 0===m?void 0:null===(p=m.footer_instagram_link)||void 0===p?void 0:null===(u=p.value)||void 0===u?void 0:u.trim())!=="":null===(v=e$.blockProps)||void 0===v?void 0:null===(h=v.footer_instagram_link)||void 0===h?void 0:h.active,e9="live"===eq?(null===(b=e$.blockProps)||void 0===b?void 0:null===(f=b.footer_twitter_link)||void 0===f?void 0:f.active)&&(null===(j=e$.blockProps)||void 0===j?void 0:null===(k=j.footer_twitter_link)||void 0===k?void 0:null===(w=k.value)||void 0===w?void 0:w.trim())!=="":null===(N=e$.blockProps)||void 0===N?void 0:null===(P=N.footer_twitter_link)||void 0===P?void 0:P.active,e8="live"===eq?(null===(I=e$.blockProps)||void 0===I?void 0:null===(C=I.footer_linkedin_link)||void 0===C?void 0:C.active)&&(null===(Z=e$.blockProps)||void 0===Z?void 0:null===(T=Z.footer_linkedin_link)||void 0===T?void 0:null===(L=T.value)||void 0===L?void 0:L.trim())!=="":null===(S=e$.blockProps)||void 0===S?void 0:null===(D=S.footer_linkedin_link)||void 0===D?void 0:D.active,e7="live"===eq?(null===(F=e$.blockProps)||void 0===F?void 0:null===(E=F.footer_tiktok_link)||void 0===E?void 0:E.active)&&(null===(A=e$.blockProps)||void 0===A?void 0:null===(H=A.footer_tiktok_link)||void 0===H?void 0:null===(z=H.value)||void 0===z?void 0:z.trim())!=="":null===(U=e$.blockProps)||void 0===U?void 0:null===(V=U.footer_tiktok_link)||void 0===V?void 0:V.active,te="live"===eq?(null===(R=e$.blockProps)||void 0===R?void 0:null===(W=R.footer_youtube_link)||void 0===W?void 0:W.active)&&(null===(K=e$.blockProps)||void 0===K?void 0:null===(q=K.footer_youtube_link)||void 0===q?void 0:null===(O=q.value)||void 0===O?void 0:O.trim())!=="":null===(G=e$.blockProps)||void 0===G?void 0:null===($=G.footer_youtube_link)||void 0===$?void 0:$.active,tt=()=>{var e,t,l,_;null==eQ||eQ([{name:"company_label",field_label:"Company Label",type:"input",placeholder:"Company",key:"layout.blockProps.company_label.value",value:(null===(e=e$.blockProps)||void 0===e?void 0:null===(t=e.company_label)||void 0===t?void 0:t.value)||"Company"},{name:"resources_label",field_label:"Resources Label",type:"input",placeholder:"Resources",key:"layout.blockProps.resources_label.value",value:(null===(l=e$.blockProps)||void 0===l?void 0:null===(_=l.resources_label)||void 0===_?void 0:_.value)||"Resources"}]),null==eX||eX(()=>({websiteId:null==eO?void 0:eO._id.$oid,editBaseData:!0})),null==e0||e0(!0)};return(0,_.jsxs)("footer",{className:"B__w-full B__py-6 lg:B__py-7 xl:B__py-10 2xl:B__py-12 B__bg-nav B__text-nav",children:[(0,_.jsx)(iJ,{show:e5,handleClose:()=>e3(!1),type:"footer"}),(null===(Y=eO.layout.blockProps)||void 0===Y?void 0:null===(J=Y.footer_sections)||void 0===J?void 0:J.active)&&(null==eO?void 0:null===(Q=eO.footer_sections)||void 0===Q?void 0:Q.length)?(0,_.jsx)(iG,{sections:eO.footer_sections,websiteId:eO._id.$oid,type:eq,slot:"footer_sections",sectionLocation:"website"}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"max-width-mobile-90 custom-container-max-width B__mx-auto B__pt-6 lg:B__pt-7 xl:B__pt-10 2xl:B__pt-12",children:[(0,_.jsxs)("div",{className:"B__mb-7 lg:B__mb-16 B__w-full B__flex B__justify-around lg:B__justify-between B__flex-wrap B__gap-8",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[50%] B__flex B__flex-col B__items-center lg:B__items-start B__gap-5 xl:B__gap-7 2xl:B__gap-9 lg:B__justify-between",children:[(0,_.jsxs)("div",{className:"B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-primary B__font-bold B__flex B__items-center B__gap-2",children:[(null===(X=e$.blockProps)||void 0===X?void 0:null===(ee=X.footer_logo)||void 0===ee?void 0:ee.active)&&(null===(et=e$.blockProps)||void 0===et?void 0:null===(el=et.logo)||void 0===el?void 0:el.active)&&(null===(ei=e$.blockProps)||void 0===ei?void 0:null===(eo=ei.logo)||void 0===eo?void 0:eo.url)&&(0,y.jv)(null===(ea=e$.blockProps)||void 0===ea?void 0:null===(es=ea.logo)||void 0===es?void 0:es.url)&&(0,_.jsx)("img",{src:(null===(en=e$.blockProps)||void 0===en?void 0:null===(er=en.footer_logo)||void 0===er?void 0:er.url)||(null===(ed=e$.blockProps)||void 0===ed?void 0:null===(ec=ed.logo)||void 0===ec?void 0:ec.url),alt:"Image",className:"!B__visible",style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px"}}),(null===(eB=e$.blockProps)||void 0===eB?void 0:null===(ex=eB.footer_tagline)||void 0===ex?void 0:ex.value)?null===(em=e$.blockProps)||void 0===em?void 0:null===(ep=em.footer_tagline)||void 0===ep?void 0:ep.value:null==eO?void 0:eO.org_name]}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-5 xl:B__gap-7 2xl:B__gap-9 B__items-center lg:B__items-start",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1",children:[e4&&(0,_.jsx)("a",{href:null===(eu=e$.blockProps)||void 0===eu?void 0:null===(ev=eu.footer_facebook_link)||void 0===ev?void 0:ev.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.k1O,{className:"B__text-xs B__text-nav"})})}),e9&&(0,_.jsx)("a",{href:null===(eh=e$.blockProps)||void 0===eh?void 0:null===(eg=eh.footer_twitter_link)||void 0===eg?void 0:eg.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.meP,{className:"B__text-xs B__text-nav"})})}),e6&&(0,_.jsx)("a",{href:null===(ey=e$.blockProps)||void 0===ey?void 0:null===(eb=ey.footer_instagram_link)||void 0===eb?void 0:eb.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.Vs6,{className:"B__text-xs B__text-nav"})})}),e8&&(0,_.jsx)("a",{href:null===(ef=e$.blockProps)||void 0===ef?void 0:null===(ej=ef.footer_linkedin_link)||void 0===ej?void 0:ej.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.NQh,{className:"B__text-xs B__text-nav"})})}),e7&&(0,_.jsx)("a",{href:null===(ek=e$.blockProps)||void 0===ek?void 0:null===(ew=ek.footer_tiktok_link)||void 0===ew?void 0:ew.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.nTm,{className:"B__text-base B__text-nav"})})}),te&&(0,_.jsx)("a",{href:null===(eN=e$.blockProps)||void 0===eN?void 0:null===(eP=eN.footer_youtube_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.V2E,{className:"B__text-base B__text-nav"})})})]}),("preview"===eq||"edit"===eq)&&(0,_.jsx)("div",{className:"",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:()=>{var e,t,l,_,i,o,a,s,n,r,d,c,B,x,m,p,u,v,h,g,y,b,f,j,k,w,N,P,I,C,Z,T,L,S;null==eQ||eQ([{name:"footer_tagline",field_label:"Tagline",placeholder:eO.org_name,type:"input",key:"layout.blockProps?.footer_tagline?.value",value:(null===(e=e$.blockProps)||void 0===e?void 0:null===(t=e.footer_tagline)||void 0===t?void 0:t.value)||eO.org_name},{name:"footer_logo",field_label:"Footer Logo",type:"file",placeholder:"Upload Your logo",disabled:null===(l=e$.blockProps)||void 0===l?void 0:null===(_=l.footer_logo)||void 0===_?void 0:_.active,key:"layout.blockProps.footer_logo.url",value:null===(i=e$.blockProps)||void 0===i?void 0:null===(o=i.footer_logo)||void 0===o?void 0:o.url,hideIconBtnValue:null===(a=e$.blockProps)||void 0===a?void 0:null===(s=a.footer_logo)||void 0===s?void 0:s.active,hideIconBtnKey:"layout.blockProps.footer_logo.active",hideSearchTab:!0},{name:"footer_facebook_link",field_label:"Facebook",placeholder:"https://www.facebook.com/abc",type:"input",key:"layout.blockProps?.footer_facebook_link?.value",value:(null===(n=e$.blockProps)||void 0===n?void 0:null===(r=n.footer_facebook_link)||void 0===r?void 0:r.value)||"",hideIconBtnValue:null===(d=e$.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,hideIconBtnKey:"layout.blockProps?.footer_facebook_link?.active"},{name:"footer_twitter_link",field_label:"Twitter",placeholder:"https://twitter.com/abc",type:"input",key:"layout.blockProps?.footer_twitter_link?.value",value:(null===(B=e$.blockProps)||void 0===B?void 0:null===(x=B.footer_twitter_link)||void 0===x?void 0:x.value)||"",hideIconBtnValue:null===(m=e$.blockProps)||void 0===m?void 0:null===(p=m.footer_twitter_link)||void 0===p?void 0:p.active,hideIconBtnKey:"layout.blockProps?.footer_twitter_link?.active"},{name:"footer_instagram_link",field_label:"Instagram",placeholder:"https://www.instagram.com/abc",type:"input",key:"layout.blockProps?.footer_instagram_link?.value",value:(null===(u=e$.blockProps)||void 0===u?void 0:null===(v=u.footer_instagram_link)||void 0===v?void 0:v.value)||"",hideIconBtnValue:null===(h=e$.blockProps)||void 0===h?void 0:null===(g=h.footer_instagram_link)||void 0===g?void 0:g.active,hideIconBtnKey:"layout.blockProps?.footer_instagram_link?.active"},{name:"footer_linkedin_link",field_label:"LinkedIn",placeholder:"https://www.linkedin.com/in/abc",type:"input",key:"layout.blockProps?.footer_linkedin_link?.value",value:(null===(y=e$.blockProps)||void 0===y?void 0:null===(b=y.footer_linkedin_link)||void 0===b?void 0:b.value)||"",hideIconBtnValue:null===(f=e$.blockProps)||void 0===f?void 0:null===(j=f.footer_linkedin_link)||void 0===j?void 0:j.active,hideIconBtnKey:"layout.blockProps?.footer_linkedin_link?.active"},{name:"footer_tiktok_link",field_label:"Tiktok",placeholder:"https://www.tiktok.com/in/abc",type:"input",key:"layout.blockProps?.footer_tiktok_link?.value",value:(null===(k=e$.blockProps)||void 0===k?void 0:null===(w=k.footer_tiktok_link)||void 0===w?void 0:w.value)||"",hideIconBtnValue:null===(N=e$.blockProps)||void 0===N?void 0:null===(P=N.footer_tiktok_link)||void 0===P?void 0:P.active,hideIconBtnKey:"layout.blockProps?.footer_tiktok_link?.active"},{name:"footer_youtube_link",field_label:"Youtube",placeholder:"https://www.youtube.com/in/abc",type:"input",key:"layout.blockProps?.footer_youtube_link?.value",value:(null===(I=e$.blockProps)||void 0===I?void 0:null===(C=I.footer_youtube_link)||void 0===C?void 0:C.value)||"",hideIconBtnValue:null===(Z=e$.blockProps)||void 0===Z?void 0:null===(T=Z.footer_youtube_link)||void 0===T?void 0:T.active,hideIconBtnKey:"layout.blockProps?.footer_youtube_link?.active"},{name:"footer_copyrights",field_label:"Copyrights",placeholder:"\xa9 Copyright 2024, All Rights Reserved by "+eO.org_name,type:"input",key:"layout.blockProps?.footer_copyrights?.value",value:(null===(L=e$.blockProps)||void 0===L?void 0:null===(S=L.footer_copyrights)||void 0===S?void 0:S.value)||"\xa9 Copyright 2024, All Rights Reserved by "+eO.org_name}]),null==eX||eX(()=>({websiteId:null==eO?void 0:eO._id.$oid,editBaseData:!0})),null==e0||e0(!0)}})}),(0,_.jsx)("div",{className:"B__hidden lg:B__block B__w-full B__text-center B__px-3 B__font-secondary B__font-semibold B__text-xs lg:B__text-sm B__mt-4",children:(null===(eI=e$.blockProps)||void 0===eI?void 0:null===(eC=eI.footer_copyrights)||void 0===eC?void 0:eC.value)?null===(eZ=e$.blockProps)||void 0===eZ?void 0:null===(eT=eZ.footer_copyrights)||void 0===eT?void 0:eT.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",eO.org_name]})})]})]}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%] B__flex B__justify-between B__items-start",children:[(null===(eL=null==eO?void 0:null===(eS=eO.pages)||void 0===eS?void 0:eS.filter(e=>e.mainPage&&e.page_id!==eY&&e.active&&e.showInFooter))||void 0===eL?void 0:eL.length)||!(null==eO?void 0:eO.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(eD=e$.blockProps)||void 0===eD?void 0:null===(eF=eD.company_label)||void 0===eF?void 0:eF.value)||"Company",("preview"===eq||"edit"===eq)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:tt})})]}),null==eO?void 0:null===(eE=eO.pages)||void 0===eE?void 0:eE.map((e,t)=>{if(e.mainPage&&e.active&&e.showInFooter)return(0,_.jsx)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4]",style:{transition:"0.3s font-size ease"},onClick:()=>{eJ.pathname.startsWith("/generated")||eJ.pathname.startsWith("/edit")||eJ.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eJ.push("/".concat("preview"===eq?"generated":"edit"===eq?"edit":"live","/").concat(eO._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eJ.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:null==e?void 0:e.title},t)}),(null==eO?void 0:eO.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__animate-pulse B__cursor-pointer B__font-medium B__flex-wrap B__text-sm lg:B__text-base B__text-[#ffffffa4] B__flex B__items-center B__gap-1",children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),("preview"===eq||"edit"===eq)&&(0,_.jsx)(l5.mL,{className:"B__p-2.5 B__bg-butternut-button B__rounded-md",btntext:"Edit Pages",onClick:()=>{e3(!0)}})]}):(0,_.jsx)(_.Fragment,{}),(null===(eA=null==eO?void 0:null===(eH=eO.pages)||void 0===eH?void 0:eH.filter(e=>!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eq)))||void 0===eA?void 0:eA.length)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(ez=e$.blockProps)||void 0===ez?void 0:null===(eM=ez.resources_label)||void 0===eM?void 0:eM.value)||"Resources",("preview"===eq||"edit"===eq)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:tt})})]}),null==eO?void 0:null===(eU=eO.pages)||void 0===eU?void 0:eU.map((e,t)=>{if(!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eq))return(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4] B__flex B__items-center B__gap-1",style:{transition:"0.3s font-size ease"},onClick:()=>{eJ.pathname.startsWith("/generated")||eJ.pathname.startsWith("/edit")||eJ.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eJ.push("/".concat("preview"===eq?"generated":"edit"===eq?"edit":"live","/").concat(eO._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eJ.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:[null==e?void 0:e.title,(0,_.jsx)("div",{})]},t)})]}):(0,_.jsx)(_.Fragment,{})]})]}),(0,_.jsx)("div",{className:"B__block lg:B__hidden B__w-full B__text-center B__px-3 B__font-secondary B__font-semibold B__text-xs lg:B__text-sm B__mt-4",children:(null===(eV=e$.blockProps)||void 0===eV?void 0:null===(eR=eV.footer_copyrights)||void 0===eR?void 0:eR.value)?null===(eW=e$.blockProps)||void 0===eW?void 0:null===(eK=eW.footer_copyrights)||void 0===eK?void 0:eK.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",eO.org_name]})})]})]})},oo=e=>{var t,l,o,a,s,d,c,B,x,m,p,u,v,h,b,f,j,k,w,N,P,I,C,Z,T,L,S,D,F,E,A,H,z,U,V,R,W,K,q,O,G,$,Y,J,Q,X,ee,et,el,ei,eo,ea,es,en,er,ed,ec,eB,ex,em,ep,eu,ev,eh,eg,ey,eb,ef,ej,ek,ew,eN,eP,eI,eC,eZ,eT,eL,eS,eD,eF,eE,eA,eH,ez,eM,eU,eV,eR,eW,eK;let{viewMode:eq,websiteData:eO,page:eG}=e,{layout:e$}=eO,{page_id:eY}=eG,eJ=(0,n.useRouter)(),{setEditContentFields:eQ,setEditSectionMetaData:eX,setShowEditContentModal:e0,updateSectionData:e1,togglePage:e2}=(0,i.useContext)(r.o)||{},[e5,e3]=(0,i.useState)(!1),e4="live"===eq?(null===(t=e$.blockProps)||void 0===t?void 0:null===(l=t.footer_facebook_link)||void 0===l?void 0:l.active)&&(null===(o=e$.blockProps)||void 0===o?void 0:null===(a=o.footer_facebook_link)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.trim())!=="":null===(d=e$.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,e6="live"===eq?(null===(B=e$.blockProps)||void 0===B?void 0:null===(x=B.footer_instagram_link)||void 0===x?void 0:x.active)&&(null===(m=e$.blockProps)||void 0===m?void 0:null===(p=m.footer_instagram_link)||void 0===p?void 0:null===(u=p.value)||void 0===u?void 0:u.trim())!=="":null===(v=e$.blockProps)||void 0===v?void 0:null===(h=v.footer_instagram_link)||void 0===h?void 0:h.active,e9="live"===eq?(null===(b=e$.blockProps)||void 0===b?void 0:null===(f=b.footer_twitter_link)||void 0===f?void 0:f.active)&&(null===(j=e$.blockProps)||void 0===j?void 0:null===(k=j.footer_twitter_link)||void 0===k?void 0:null===(w=k.value)||void 0===w?void 0:w.trim())!=="":null===(N=e$.blockProps)||void 0===N?void 0:null===(P=N.footer_twitter_link)||void 0===P?void 0:P.active,e8="live"===eq?(null===(I=e$.blockProps)||void 0===I?void 0:null===(C=I.footer_linkedin_link)||void 0===C?void 0:C.active)&&(null===(Z=e$.blockProps)||void 0===Z?void 0:null===(T=Z.footer_linkedin_link)||void 0===T?void 0:null===(L=T.value)||void 0===L?void 0:L.trim())!=="":null===(S=e$.blockProps)||void 0===S?void 0:null===(D=S.footer_linkedin_link)||void 0===D?void 0:D.active,e7="live"===eq?(null===(F=e$.blockProps)||void 0===F?void 0:null===(E=F.footer_tiktok_link)||void 0===E?void 0:E.active)&&(null===(A=e$.blockProps)||void 0===A?void 0:null===(H=A.footer_tiktok_link)||void 0===H?void 0:null===(z=H.value)||void 0===z?void 0:z.trim())!=="":null===(U=e$.blockProps)||void 0===U?void 0:null===(V=U.footer_tiktok_link)||void 0===V?void 0:V.active,te="live"===eq?(null===(R=e$.blockProps)||void 0===R?void 0:null===(W=R.footer_youtube_link)||void 0===W?void 0:W.active)&&(null===(K=e$.blockProps)||void 0===K?void 0:null===(q=K.footer_youtube_link)||void 0===q?void 0:null===(O=q.value)||void 0===O?void 0:O.trim())!=="":null===(G=e$.blockProps)||void 0===G?void 0:null===($=G.footer_youtube_link)||void 0===$?void 0:$.active,tt=()=>{var e,t,l,_;null==eQ||eQ([{name:"company_label",field_label:"Company Label",type:"input",placeholder:"Company",key:"layout.blockProps.company_label.value",value:(null===(e=e$.blockProps)||void 0===e?void 0:null===(t=e.company_label)||void 0===t?void 0:t.value)||"Company"},{name:"resources_label",field_label:"Resources Label",type:"input",placeholder:"Resources",key:"layout.blockProps.resources_label.value",value:(null===(l=e$.blockProps)||void 0===l?void 0:null===(_=l.resources_label)||void 0===_?void 0:_.value)||"Resources"}]),null==eX||eX(()=>({websiteId:null==eO?void 0:eO._id.$oid,editBaseData:!0})),null==e0||e0(!0)};return(0,_.jsxs)("footer",{className:"B__w-full B__py-6 lg:B__py-7 xl:B__py-10 2xl:B__py-12 B__bg-nav B__text-nav",children:[(0,_.jsx)(iJ,{show:e5,handleClose:()=>e3(!1),type:"footer"}),(null===(Y=eO.layout.blockProps)||void 0===Y?void 0:null===(J=Y.footer_sections)||void 0===J?void 0:J.active)&&(null==eO?void 0:null===(Q=eO.footer_sections)||void 0===Q?void 0:Q.length)?(0,_.jsx)(iG,{sections:eO.footer_sections,websiteId:eO._id.$oid,type:eq,slot:"footer_sections",sectionLocation:"website"}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"max-width-mobile-90 custom-container-max-width B__mx-auto B__pt-6 lg:B__pt-7 xl:B__pt-10 2xl:B__pt-12",children:[(0,_.jsxs)("div",{className:"B__mb-7 lg:B__mb-16 B__w-full B__flex B__flex-row-reverse B__justify-around lg:B__justify-between B__flex-wrap B__gap-8",children:[(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[50%] B__flex B__flex-col B__items-center lg:B__items-end B__gap-5 xl:B__gap-7 2xl:B__gap-9 lg:B__justify-between",children:[(0,_.jsxs)("div",{className:"B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-primary B__font-bold B__flex B__items-center B__gap-2",children:[(null===(X=e$.blockProps)||void 0===X?void 0:null===(ee=X.footer_logo)||void 0===ee?void 0:ee.active)&&(null===(et=e$.blockProps)||void 0===et?void 0:null===(el=et.logo)||void 0===el?void 0:el.active)&&(null===(ei=e$.blockProps)||void 0===ei?void 0:null===(eo=ei.logo)||void 0===eo?void 0:eo.url)&&(0,y.jv)(null===(ea=e$.blockProps)||void 0===ea?void 0:null===(es=ea.logo)||void 0===es?void 0:es.url)&&(0,_.jsx)("img",{src:(null===(en=e$.blockProps)||void 0===en?void 0:null===(er=en.footer_logo)||void 0===er?void 0:er.url)||(null===(ed=e$.blockProps)||void 0===ed?void 0:null===(ec=ed.logo)||void 0===ec?void 0:ec.url),alt:"Image",className:"!B__visible",style:{margin:"0 15px",maxWidth:"150px",maxHeight:"40px"}}),(null===(eB=e$.blockProps)||void 0===eB?void 0:null===(ex=eB.footer_tagline)||void 0===ex?void 0:ex.value)?null===(em=e$.blockProps)||void 0===em?void 0:null===(ep=em.footer_tagline)||void 0===ep?void 0:ep.value:null==eO?void 0:eO.org_name]}),(0,_.jsxs)("div",{className:"B__flex B__flex-col B__gap-5 xl:B__gap-7 2xl:B__gap-9 B__items-center lg:B__items-end",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-1",children:[e4&&(0,_.jsx)("a",{href:null===(eu=e$.blockProps)||void 0===eu?void 0:null===(ev=eu.footer_facebook_link)||void 0===ev?void 0:ev.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.k1O,{className:"B__text-xs B__text-nav"})})}),e9&&(0,_.jsx)("a",{href:null===(eh=e$.blockProps)||void 0===eh?void 0:null===(eg=eh.footer_twitter_link)||void 0===eg?void 0:eg.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.meP,{className:"B__text-xs B__text-nav"})})}),e6&&(0,_.jsx)("a",{href:null===(ey=e$.blockProps)||void 0===ey?void 0:null===(eb=ey.footer_instagram_link)||void 0===eb?void 0:eb.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.Vs6,{className:"B__text-xs B__text-nav"})})}),e8&&(0,_.jsx)("a",{href:null===(ef=e$.blockProps)||void 0===ef?void 0:null===(ej=ef.footer_linkedin_link)||void 0===ej?void 0:ej.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(M.NQh,{className:"B__text-xs B__text-nav"})})}),e7&&(0,_.jsx)("a",{href:null===(ek=e$.blockProps)||void 0===ek?void 0:null===(ew=ek.footer_tiktok_link)||void 0===ew?void 0:ew.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.nTm,{className:"B__text-base B__text-nav"})})}),te&&(0,_.jsx)("a",{href:null===(eN=e$.blockProps)||void 0===eN?void 0:null===(eP=eN.footer_youtube_link)||void 0===eP?void 0:eP.value,target:"_blank",style:{textDecoration:"none",color:"#212529"},children:(0,_.jsx)("div",{className:"B__rounded-full B__border B__border-[color:var(--color-nav)] B__p-1.5 B__m-1.5",children:(0,_.jsx)(e_.V2E,{className:"B__text-base B__text-nav"})})})]}),("preview"===eq||"edit"===eq)&&(0,_.jsx)("div",{className:"",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-1.5 B__bg-butternut-button B__rounded-md B__transform-none",onClick:()=>{var e,t,l,_,i,o,a,s,n,r,d,c,B,x,m,p,u,v,h,g,y,b,f,j,k,w,N,P,I,C,Z,T,L,S;null==eQ||eQ([{name:"footer_tagline",field_label:"Tagline",placeholder:eO.org_name,type:"input",key:"layout.blockProps?.footer_tagline?.value",value:(null===(e=e$.blockProps)||void 0===e?void 0:null===(t=e.footer_tagline)||void 0===t?void 0:t.value)||eO.org_name},{name:"footer_logo",field_label:"Footer Logo",type:"file",placeholder:"Upload Your logo",disabled:null===(l=e$.blockProps)||void 0===l?void 0:null===(_=l.footer_logo)||void 0===_?void 0:_.active,key:"layout.blockProps.footer_logo.url",value:null===(i=e$.blockProps)||void 0===i?void 0:null===(o=i.footer_logo)||void 0===o?void 0:o.url,hideIconBtnValue:null===(a=e$.blockProps)||void 0===a?void 0:null===(s=a.footer_logo)||void 0===s?void 0:s.active,hideIconBtnKey:"layout.blockProps.footer_logo.active",hideSearchTab:!0},{name:"footer_facebook_link",field_label:"Facebook",placeholder:"https://www.facebook.com/abc",type:"input",key:"layout.blockProps?.footer_facebook_link?.value",value:(null===(n=e$.blockProps)||void 0===n?void 0:null===(r=n.footer_facebook_link)||void 0===r?void 0:r.value)||"",hideIconBtnValue:null===(d=e$.blockProps)||void 0===d?void 0:null===(c=d.footer_facebook_link)||void 0===c?void 0:c.active,hideIconBtnKey:"layout.blockProps?.footer_facebook_link?.active"},{name:"footer_twitter_link",field_label:"Twitter",placeholder:"https://twitter.com/abc",type:"input",key:"layout.blockProps?.footer_twitter_link?.value",value:(null===(B=e$.blockProps)||void 0===B?void 0:null===(x=B.footer_twitter_link)||void 0===x?void 0:x.value)||"",hideIconBtnValue:null===(m=e$.blockProps)||void 0===m?void 0:null===(p=m.footer_twitter_link)||void 0===p?void 0:p.active,hideIconBtnKey:"layout.blockProps?.footer_twitter_link?.active"},{name:"footer_instagram_link",field_label:"Instagram",placeholder:"https://www.instagram.com/abc",type:"input",key:"layout.blockProps?.footer_instagram_link?.value",value:(null===(u=e$.blockProps)||void 0===u?void 0:null===(v=u.footer_instagram_link)||void 0===v?void 0:v.value)||"",hideIconBtnValue:null===(h=e$.blockProps)||void 0===h?void 0:null===(g=h.footer_instagram_link)||void 0===g?void 0:g.active,hideIconBtnKey:"layout.blockProps?.footer_instagram_link?.active"},{name:"footer_linkedin_link",field_label:"LinkedIn",placeholder:"https://www.linkedin.com/in/abc",type:"input",key:"layout.blockProps?.footer_linkedin_link?.value",value:(null===(y=e$.blockProps)||void 0===y?void 0:null===(b=y.footer_linkedin_link)||void 0===b?void 0:b.value)||"",hideIconBtnValue:null===(f=e$.blockProps)||void 0===f?void 0:null===(j=f.footer_linkedin_link)||void 0===j?void 0:j.active,hideIconBtnKey:"layout.blockProps?.footer_linkedin_link?.active"},{name:"footer_tiktok_link",field_label:"Tiktok",placeholder:"https://www.tiktok.com/in/abc",type:"input",key:"layout.blockProps?.footer_tiktok_link?.value",value:(null===(k=e$.blockProps)||void 0===k?void 0:null===(w=k.footer_tiktok_link)||void 0===w?void 0:w.value)||"",hideIconBtnValue:null===(N=e$.blockProps)||void 0===N?void 0:null===(P=N.footer_tiktok_link)||void 0===P?void 0:P.active,hideIconBtnKey:"layout.blockProps?.footer_tiktok_link?.active"},{name:"footer_youtube_link",field_label:"Youtube",placeholder:"https://www.youtube.com/in/abc",type:"input",key:"layout.blockProps?.footer_youtube_link?.value",value:(null===(I=e$.blockProps)||void 0===I?void 0:null===(C=I.footer_youtube_link)||void 0===C?void 0:C.value)||"",hideIconBtnValue:null===(Z=e$.blockProps)||void 0===Z?void 0:null===(T=Z.footer_youtube_link)||void 0===T?void 0:T.active,hideIconBtnKey:"layout.blockProps?.footer_youtube_link?.active"},{name:"footer_copyrights",field_label:"Copyrights",placeholder:"\xa9 Copyright 2024, All Rights Reserved by "+eO.org_name,type:"input",key:"layout.blockProps?.footer_copyrights?.value",value:(null===(L=e$.blockProps)||void 0===L?void 0:null===(S=L.footer_copyrights)||void 0===S?void 0:S.value)||"\xa9 Copyright 2024, All Rights Reserved by "+eO.org_name}]),null==eX||eX(()=>({websiteId:null==eO?void 0:eO._id.$oid,editBaseData:!0})),null==e0||e0(!0)}})}),(0,_.jsx)("div",{className:"B__hidden lg:B__block B__w-full B__text-center B__font-secondary B__font-semibold B__text-xs lg:B__text-sm B__mt-4",children:(null===(eI=e$.blockProps)||void 0===eI?void 0:null===(eC=eI.footer_copyrights)||void 0===eC?void 0:eC.value)?null===(eZ=e$.blockProps)||void 0===eZ?void 0:null===(eT=eZ.footer_copyrights)||void 0===eT?void 0:eT.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",eO.org_name]})})]})]}),(0,_.jsxs)("div",{className:"B__w-full lg:B__w-[40%] B__flex B__justify-between B__items-start",children:[(null===(eL=null==eO?void 0:null===(eS=eO.pages)||void 0===eS?void 0:eS.filter(e=>e.mainPage&&e.page_id!==eY&&e.active&&e.showInFooter))||void 0===eL?void 0:eL.length)||!(null==eO?void 0:eO.generatedPages)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(eD=e$.blockProps)||void 0===eD?void 0:null===(eF=eD.company_label)||void 0===eF?void 0:eF.value)||"Company",("preview"===eq||"edit"===eq)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:tt})})]}),null==eO?void 0:null===(eE=eO.pages)||void 0===eE?void 0:eE.map((e,t)=>{if(e.mainPage&&e.active&&e.showInFooter)return(0,_.jsx)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4]",style:{transition:"0.3s font-size ease"},onClick:()=>{eJ.pathname.startsWith("/generated")||eJ.pathname.startsWith("/edit")||eJ.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eJ.push("/".concat("preview"===eq?"generated":"edit"===eq?"edit":"live","/").concat(eO._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eJ.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:null==e?void 0:e.title},t)}),(null==eO?void 0:eO.generatedPages)?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)("div",{className:" B__relative",children:(0,_.jsxs)("p",{className:"generating-page B__whitespace-nowrap B__m-0 B__animate-pulse B__cursor-pointer B__font-medium B__flex-wrap B__text-sm lg:B__text-base B__text-[#ffffffa4] B__flex B__items-center B__gap-1",children:["Generating pages",(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."}),(0,_.jsx)("span",{className:"B__text-xl B__leading-3",children:"."})]})}),("preview"===eq||"edit"===eq)&&(0,_.jsx)(l5.mL,{className:"B__p-2.5 B__bg-butternut-button B__rounded-md",btntext:"Edit Pages",onClick:()=>{e3(!0)}})]}):(0,_.jsx)(_.Fragment,{}),(null===(eA=null==eO?void 0:null===(eH=eO.pages)||void 0===eH?void 0:eH.filter(e=>!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eq)))||void 0===eA?void 0:eA.length)?(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-start B__gap-3 xl:B__gap-6 2xl:B__gap-7 B__uppercase",children:[(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__mb-1 B__relative",children:[(null===(ez=e$.blockProps)||void 0===ez?void 0:null===(eM=ez.resources_label)||void 0===eM?void 0:eM.value)||"Resources",("preview"===eq||"edit"===eq)&&(0,_.jsx)("div",{className:"B__absolute B__-right-14 B__top-0",style:{width:"fit-content"},children:(0,_.jsx)(l5.mL,{style:{margin:"0 10px"},className:"B__p-2.5 B__bg-butternut-button B__rounded-md",onClick:tt})})]}),null==eO?void 0:null===(eU=eO.pages)||void 0===eU?void 0:eU.map((e,t)=>{if(!e.mainPage&&e.showInFooter&&((null==e?void 0:e.active)||"live"!==eq))return(0,_.jsxs)("div",{className:"B__cursor-pointer B__font-medium B__whitespace-nowrap B__flex-wrap B__text-xs lg:B__text-sm B__text-[#ffffffa4] B__flex B__items-center B__gap-1",style:{transition:"0.3s font-size ease"},onClick:()=>{eJ.pathname.startsWith("/generated")||eJ.pathname.startsWith("/edit")||eJ.pathname.startsWith("/live")&&g.EB.includes(window.location.host)?eJ.push("/".concat("preview"===eq?"generated":"edit"===eq?"edit":"live","/").concat(eO._id.$oid,"/").concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):"")):eJ.push("/".concat(t>0?(null==e?void 0:e.slug)||(null==e?void 0:e.page_id):""))},children:[null==e?void 0:e.title,(0,_.jsx)("div",{})]},t)})]}):(0,_.jsx)(_.Fragment,{})]})]}),(0,_.jsx)("div",{className:"B__block lg:B__hidden B__w-full B__text-center B__px-3 B__font-secondary B__font-semibold B__text-xs lg:B__text-sm B__mt-4",children:(null===(eV=e$.blockProps)||void 0===eV?void 0:null===(eR=eV.footer_copyrights)||void 0===eR?void 0:eR.value)?null===(eW=e$.blockProps)||void 0===eW?void 0:null===(eK=eW.footer_copyrights)||void 0===eK?void 0:eK.value:(0,_.jsxs)(_.Fragment,{children:["\xa9 Copyright 2024, All Rights Reserved by ",eO.org_name]})})]})]})},oa=()=>(0,_.jsxs)("div",{className:"B__relative B__w-full B__h-full",children:[(0,_.jsx)("div",{className:"B__absolute B__z-10 B__inset-0 B__flex B__justify-center B__items-center",children:(0,_.jsxs)("div",{className:"B__bg-secondary-dark B__p-10 B__flex B__items-center B__flex-col B__gap-2 B__rounded-md",children:[(0,_.jsx)(tB(),{src:"https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"}),(0,_.jsx)("lottie-player",{src:"/animation/lottie-loader.json",background:"transparent",speed:"1",style:{width:"150px",height:"100px",minWidth:"150px"},direction:"1",mode:"normal",autoplay:!0,loop:!0}),(0,_.jsx)("span",{className:"B__text-xl B__text-white",children:" Generating section ..."})]})}),(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto custom-container-max-width global_css B__animate-pulse",children:[(0,_.jsx)("div",{className:"B__h-4 B__bg-gray-200 B__rounded-full dark:B__bg-gray-300 B__w-[30%] B__mb-8 B__mx-auto"}),(0,_.jsx)("div",{className:"B__h-2.5 B__bg-gray-200 B__rounded-full dark:B__bg-gray-300 B__w-[60%] B__mb-2 B__mx-auto"}),"  ",(0,_.jsx)("div",{className:"B__h-2.5 B__bg-gray-200 B__rounded-full dark:B__bg-gray-300 B__w-[55%] B__mb-2 B__mx-auto"}),(0,_.jsx)("div",{className:"B__h-2.5 B__bg-gray-200 B__rounded-full dark:B__bg-gray-300 B__w-[30%] B__mb-2 B__mx-auto"}),(0,_.jsx)("div",{className:"B__mt-10 lg:B__mt-14 xl:B__mt-20 B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__gap-8 ",children:[,,,].fill(0).map((e,t)=>(0,_.jsxs)("div",{className:"B__flex B__flex-col",children:[(0,_.jsx)("div",{className:"B__flex B__items-center B__justify-center B__w-full B__h-32 B__bg-gray-300 B__rounded dark:B__bg-gray-300",children:(0,_.jsx)("svg",{className:"B__w-10 B__h-10 B__text-gray-200 dark:B__text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 18",children:(0,_.jsx)("path",{d:"M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z"})})}),(0,_.jsx)("div",{className:"B__h-3 B__bg-gray-200 B__rounded-full dark:B__bg-gray-300 B__w-[60%] B__mt-8 B__mb-6 B__mr-auto"}),(0,_.jsx)("div",{className:"B__h-2.5 B__bg-gray-200 B__rounded-full dark:B__bg-gray-300 B__w-[80%] B__mb-2 B__mr-auto"})," ",(0,_.jsx)("div",{className:"B__h-2.5 B__bg-gray-200 B__rounded-full dark:B__bg-gray-300 B__w-[75%] B__mb-2 B__mr-auto"}),(0,_.jsx)("div",{className:"B__h-2.5 B__bg-gray-200 B__rounded-full dark:B__bg-gray-300 B__w-[55%] B__mb-2 B__mr-auto"})]},t))})]})]}),os=e=>{let{pageData:t,viewMode:l}=e,{title:i,description:o,title_keywords:a}=(null==t?void 0:t.header)||{};return(0,_.jsxs)("div",{className:"B__mx-auto custom-container-max-width global_css B__mt-16 lg:B__mt-20 xl:B__mt-24 B__my-10",children:[(0,_.jsx)(S.Z,{sectionLocation:"page",slot:"blogs",type:l,regenrateBtn:{updateType:"key",key:"header.title",keywords:a||""},editBtn:{icon:!0,fields:[{name:"title",placeholder:"Title",type:"texteditor",value:i||"",key:"header.title",field_label:"Title"}]},children:(0,_.jsx)("h3",{className:"B__text-center B__text-primary B__font-bold B__font-primary B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__max-w-[500px]",style:{lineHeight:1.1},children:(0,D.ZP)(i||"")})}),(0,_.jsx)(S.Z,{className:"",sectionLocation:"page",slot:"blogs",type:l,regenrateBtn:{updateType:"key",key:"header.description",keywords:""},editBtn:{fields:[{name:"description",placeholder:"Description",type:"texteditor",value:o||"",key:"header.description",field_label:"Description"}]},children:(0,_.jsx)("div",{className:"B__text-secondary B__font-secondary B__text-center B__mx-auto B__text-lg B__break-words B__mt-4 B__max-w-[600px]",children:(0,D.ZP)(o||"")})})]})};var on=l(77349);let or=e=>{let{articles:t,viewMode:l,websiteId:o,pageData:a,addArticle:s}=e,c=(0,n.useRouter)(),B=null==t?void 0:t.filter(e=>!e.article_generated||!(null==e?void 0:e.published)),x=e=>()=>{var t,_;window&&!g.EB.includes(window.location.host)?c.push("/".concat(null==a?void 0:a.slug,"/").concat((null==e?void 0:e.slug)||(null==e?void 0:null===(t=e._id)||void 0===t?void 0:t.$oid))):c.push("/".concat("preview"===l?"generated":"edit"===l?"edit":"live","/").concat(o,"/").concat(null==a?void 0:a.slug,"/").concat((null==e?void 0:e.slug)||(null==e?void 0:null===(_=e._id)||void 0===_?void 0:_.$oid)))},{refetchArticlesData:m}=(0,i.useContext)(r.o)||{},p=async e=>{e&&(await tm.Z.post("/v2/delete-article",{query:{article_id:e,website_id:o,page_id:null==a?void 0:a.page_id}}),v({modal:!1}),await (null==m?void 0:m()))},[u,v]=(0,i.useState)({modal:!1,articleId:""});return(0,_.jsxs)("div",{className:"B__py-8 lg:B__pb-20 xl:B__pb-28 B__mx-auto B__max-w-[90%] lg:B__max-w-[85%] xl:B__max-w-[80%] 2xl:B__max-w-[80%] global_css",children:[(0,_.jsx)(on.Z,{handleClose:()=>{v({modal:!1})},showModal:null==u?void 0:u.modal,handleConfirm:()=>p(null==u?void 0:u.articleId),confirmButtonText:"Delete",confirmButtonClassName:"!B__bg-red-400 !B__text-white",modalMessage:"Are you sure you want to delete this Blog?",modalTitle:"Confirm Delete"}),"live"!==l&&(0,_.jsx)("div",{className:"B__flex B__justify-end B__items-center B__gap-3",children:(0,_.jsx)("button",{className:"B__bg-butternut-button B__text-white B__px-8 B__py-2 B__rounded-md B__font-medium B__text-sm",onClick:s,children:"Add new Blog"})}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 lg:B__grid-cols-2 B__mx-auto B__mt-5 lg:B__mt-10 xl:B__mt-11 2xl:B__mt-[3.75rem] B__gap-4 lg:B__gap-8",children:null==t?void 0:t.map((e,t)=>{var i,o,a,s,n,r,c,B,m,p,u,h,g;if((null==e?void 0:e.article_generated)&&(null==e?void 0:e.published))return(0,_.jsxs)("div",{className:"B__flex B__items-center B__w-full B__h-[300px] hover:B__border-transparent B__gap-3 lg:B__gap-5 B__cursor-pointer B__rounded-xl B__overflow-hidden  B__relative B__group/edit",onClick:x(e),style:{boxShadow:"0px 2px 12px 0px #0000001F"},children:["live"!==l?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__absolute B__top-1/2 B__left-1/2 B__-translate-x-1/2 B__-translate-y-1/2 B__hidden group-hover/edit:B__block",children:(0,_.jsx)("button",{className:"B__p-3 B__bg-butternut-button B__text-white B__rounded-md B__shadow-[1px_1px_6px_0px_#7543e1]",onClick:t=>{t.stopPropagation(),x(e)()},children:(0,_.jsx)(d.zmo,{className:"B__text-2xl"})})}),(0,_.jsx)("div",{className:"B__absolute B__top-3 B__right-3 B__hidden group-hover/edit:B__block",children:(0,_.jsx)("button",{className:"B__p-3 B__rounded-md B__bg-[#f5f5f5]",onClick:t=>{var l;t.stopPropagation(),v({modal:!0,articleId:null==e?void 0:null===(l=e._id)||void 0===l?void 0:l.$oid})},children:(0,_.jsx)(d.ZkW,{className:"B__text-2xl"})})})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{className:"B__w-full B__h-full",children:(0,_.jsx)("img",{alt:(0,J.s9)((null==e?void 0:null===(i=e.blockProps)||void 0===i?void 0:null===(o=i.card)||void 0===o?void 0:o.img)||""),src:null==e?void 0:null===(a=e.blockProps)||void 0===a?void 0:null===(s=a.card)||void 0===s?void 0:s.img,height:300,width:300,style:{objectFit:"cover"},className:"B__w-full B__h-full"})}),(0,_.jsxs)("div",{className:"B__w-full B__text-center lg:B__text-left B__py-6 B__px-3",children:[(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-base lg:B__text-lg xl:B__text-xl 2xl:B__text-2xl B__break-words B__text-main",children:(0,D.ZP)((0,J.s9)((null==e?void 0:null===(n=e.blockProps)||void 0===n?void 0:n.title)||""))}),(0,_.jsxs)("div",{className:"B__font-secondary B__text-primary B__text-sm lg:B__text-base B__font-normal B__mt-3 lg:B__mt-4",children:[(0,D.ZP)((null==e?void 0:null===(r=e.blockProps)||void 0===r?void 0:null===(c=r.card)||void 0===c?void 0:null===(B=c.description)||void 0===B?void 0:B.slice(0,100))||""),(null==e?void 0:null===(m=e.blockProps)||void 0===m?void 0:null===(p=m.card)||void 0===p?void 0:null===(u=p.description)||void 0===u?void 0:u.length)>100?"...":""]}),(0,_.jsx)("button",{className:"B__text-[#5959FF] B__text-sm B__font-normal",onClick:t=>{t.stopPropagation(),x(e)()},children:(null==e?void 0:null===(h=e.blockProps)||void 0===h?void 0:null===(g=h.card)||void 0===g?void 0:g.readMoreText)||"Read more"})]})]},t)})}),(null==B?void 0:B.length)&&"live"!==l?(0,_.jsxs)("div",{className:" B__py-6 lg:B__py-8 B__mt-3",children:[(0,_.jsx)("div",{className:"B__pb-2 B__font-semibold B__text-2xl B__font-[Lato]",children:"Drafts"}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__mx-auto B__mt-3 B__flex-col B__gap-4 lg:B__gap-8",children:null==B?void 0:B.map((e,t)=>(0,_.jsxs)("div",{className:"B__border B__border-[#e1e1e1] B__p-3 B__px-5 B__rounded-lg B__font-[Lato]",children:[(0,_.jsxs)("div",{className:"B__text-lg B__mt-2 B__font-medium",children:[(0,_.jsx)("strong",{children:"Topic: "})," ",null==e?void 0:e.topic]})," ",(0,_.jsxs)("div",{className:"B__text-sm B__mt-2  B__font-normal",children:[(0,_.jsx)("strong",{children:"Keywords: "})," ",null==e?void 0:e.keywords]}),(0,_.jsx)("button",{className:"B__mt-3 B__mx-auto  B__py-0.5  B__border-b B__border-[#5959FF] B__text-[#5959FF]",onClick:x(e),children:"Continue Editing"})]},t))})]}):(0,_.jsx)(_.Fragment,{})]})};var od=l(21096),oc=l(74096);let oB=e=>{var t,l,o,a,s,c,B,x;let{showModal:m,handleClose:p,article:u,viewMode:v,pageData:h}=e,{websiteData:y,articles:b}=(0,i.useContext)(r.o)||{},[f,j]=(0,i.useState)(!1),[k,w]=(0,i.useState)({title:(null==u?void 0:null===(t=u.meta)||void 0===t?void 0:t.title)||(null==u?void 0:u.title)||"",slug:(null==u?void 0:u.slug)||"",description:(null==u?void 0:null===(l=u.meta)||void 0===l?void 0:l.description)||(null==u?void 0:u.keywords)||"",img:(null==u?void 0:null===(o=u.blockProps)||void 0===o?void 0:null===(a=o.card)||void 0===a?void 0:a.img)||"",cardDescription:null==u?void 0:null===(s=u.blockProps)||void 0===s?void 0:null===(c=s.card)||void 0===c?void 0:c.description,readMoreText:(null==u?void 0:null===(B=u.blockProps)||void 0===B?void 0:null===(x=B.card)||void 0===x?void 0:x.readMoreText)||"Read more"}),[N,P]=(0,i.useState)({title:"",slug:"",description:"",cardDescription:""}),I=(0,n.useRouter)(),{refetchArticlesData:C}=(0,i.useContext)(r.o)||{},Z=e=>{var t;(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.name)&&(P(t=>({...t,[e.target.name]:""})),w(t=>({...t,[e.target.name]:e.target.value})))},T=()=>{let e=!0;if((null==k?void 0:k.cardDescription)||(P(e=>({...e,cardDescription:"Please provide description for card in blog home page"})),e=!1),(null==k?void 0:k.description)||(P(e=>({...e,description:"Please provide meta description for your blog"})),e=!1),(null==k?void 0:k.title)||(P(e=>({...e,title:"Please provide meta title for your blog"})),e=!1),null==k?void 0:k.slug){let t=null==b?void 0:b.find(e=>e.slug===(null==k?void 0:k.slug)&&e._id.$oid!==u._id.$oid);t&&(P(e=>({...e,slug:"This path is already in use"})),e=!1)}else P(e=>({...e,slug:"Please provide valid path for your blog"})),e=!1;return e},L=async()=>{if(T()){j(!0);let{data:t}=await tm.Z.post("/v2/edit-article-data",{query:{website_id:u.website_id,page_id:u.page_id,article_id:u._id.$oid},data:{"meta.title":null==k?void 0:k.title,"meta.description":null==k?void 0:k.description,"blockProps.card.description":null==k?void 0:k.cardDescription,slug:null==k?void 0:k.slug,"blockProps.card.readMoreText":null==k?void 0:k.readMoreText,...(null==k?void 0:k.img)?{"blockProps.card.img":k.img}:{}}});if((null==u?void 0:u.slug)!==(null==k?void 0:k.slug)){var e;let t=null==y?void 0:null===(e=y.pages)||void 0===e?void 0:e.find(e=>e.page_id===u.page_id);window&&!g.EB.includes(window.location.host)?I.push("/".concat(null==t?void 0:t.slug,"/").concat(null==k?void 0:k.slug)):I.push("/".concat("preview"===v?"generated":"edit"===v?"edit":"live","/").concat(null==u?void 0:u.website_id,"/").concat(null==t?void 0:t.slug,"/").concat(null==k?void 0:k.slug))}await (null==C?void 0:C()),j(!1),p()}};return(0,_.jsx)(_.Fragment,{children:m?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none B__text-[#131332]",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] lg:B__max-w-[800px] xl:B__max-w-[900px] 2xl:B__max-w-[1200px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__p-5 B__px-7 B__border-b B__border-solid B__border-blueGray-200",children:[(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-bold B__mb-0",children:"Settings"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:p,children:(0,_.jsx)(d.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsxs)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto  B__p-5 B__px-7 B__font-[Lato]",children:[(0,_.jsx)("div",{className:"B__mt-5 B__mx-auto B__w-full",children:(0,_.jsx)(oc.Z,{article:u,formData:k,setFormData:w,setErrors:P})}),(0,_.jsx)("div",{className:"B__text-sm B__font-bold B__font-[Lato] B__mt-5",children:"URL"}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-start B__border B__border-[#e1e1e1] B__rounded-lg B__px-5 B__py-3  B__mt-2",style:{boxShadow:"0px 25px 60px 0px #00000014"},children:[(0,_.jsx)("div",{className:"B__text-[#131332b4] B__font-normal B__text-base B__whitespace-nowrap",children:"https://yourdomain.com/".concat((null==h?void 0:h.slug)||"blogs","/")}),(0,_.jsx)("input",{className:" placeholder:B__text-[#000000] B__text-[#000000] placeholder:B__text-sm B__border-none B__rounded-lg focus:B__outline-none  B__w-full",name:"slug",placeholder:"",onChange:Z,value:null==k?void 0:k.slug})]}),(null==N?void 0:N.slug)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400 B__text-sm",children:null==N?void 0:N.slug}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{className:"B__text-sm B__font-bold B__font-[Lato] B__mt-5",children:"META TITLE"}),(0,_.jsx)("input",{className:"B__px-5 B__py-3  placeholder:B__text-[#171786] placeholder:B__text-sm B__border B__border-[#e1e1e1] B__rounded-lg focus:B__outline-none focus:B__border-blue-500 B__w-full B__mt-2",name:"title",placeholder:"Meta Title",onChange:Z,value:null==k?void 0:k.title,style:{boxShadow:"0px 25px 60px 0px #00000014"}}),(null==N?void 0:N.title)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400 B__text-sm",children:null==N?void 0:N.title}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{className:"B__text-sm B__font-bold B__font-[Lato] B__mt-5",children:"META DESCRIPTION"}),(0,_.jsx)("textarea",{rows:3,className:"B__px-5 B__py-3  placeholder:B__text-[#52525B] placeholder:B__text-sm B__border B__border-[#e1e1e1] B__rounded-lg focus:B__outline-none focus:B__border-blue-500 B__w-full B__mt-2",name:"description",placeholder:"Meta Desciption",onChange:Z,value:null==k?void 0:k.description,style:{boxShadow:"0px 25px 60px 0px #00000014"}}),(null==N?void 0:N.description)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400 B__text-sm",children:null==N?void 0:N.description}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{className:"B__flex B__justify-end B__w-full B__items-center B__pt-8 B__pb-10 ",children:(0,_.jsx)("button",{className:"B__bg-butternut-button B__text-white B__rounded-md B__px-12 B__py-3 B__font-bold B__text-sm disabled:B__cursor-not-allowed",disabled:f,onClick:L,children:f?"Saving...":"Save"})})]})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})},ox=e=>{var t,l,o,a;let{article:s,showModal:n,handleClose:c}=e,{updateSectionData:B}=(0,i.useContext)(r.o)||{};return(0,_.jsx)(_.Fragment,{children:n?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] lg:B__max-w-[500px] xl:B__max-w-[600px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-center B__p-5 B__px-7 B__pl-10 B__border-b B__border-solid B__border-blueGray-200",children:[(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold !B__my-0 ",children:"Social media icons settings"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:c,children:(0,_.jsx)(d.FU5,{className:"B__text-2xl B__text-gray-600"})})]}),(0,_.jsx)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto  B__p-5 B__px-10 B__font-[Lato]",children:(0,_.jsxs)("div",{className:"B__my-4",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-start B__gap-3 B__items-center B__my-2",children:[(0,_.jsx)("span",{className:"B__font-semibold B__text-base B__font-[Lato] B__min-w-[200px]",children:"Facebook share button :"}),(0,_.jsx)(l5.Oe,{style:{border:"none",outline:"none"},show:(null==s?void 0:null===(t=s.blockProps)||void 0===t?void 0:t.facebookShare)||!1,onClick:()=>{var e;null==B||B({"blockProps.facebookShare":!(null==s?void 0:null===(e=s.blockProps)||void 0===e?void 0:e.facebookShare)},void 0,!1,"articles",null==s?void 0:s._id.$oid)}})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-start B__gap-3 B__items-center B__my-2",children:[(0,_.jsx)("span",{className:"B__font-semibold B__text-base B__font-[Lato] B__min-w-[200px]",children:"Linkedin share button :"}),(0,_.jsx)(l5.Oe,{style:{border:"none",outline:"none"},show:(null==s?void 0:null===(l=s.blockProps)||void 0===l?void 0:l.linkedinShare)||!1,onClick:()=>{var e;null==B||B({"blockProps.linkedinShare":!(null==s?void 0:null===(e=s.blockProps)||void 0===e?void 0:e.linkedinShare)},void 0,!1,"articles",null==s?void 0:s._id.$oid)}})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-start B__gap-3 B__items-center B__my-2",children:[(0,_.jsx)("span",{className:"B__font-semibold B__text-base B__font-[Lato] B__min-w-[200px]",children:"Twitter share button :"}),(0,_.jsx)(l5.Oe,{style:{border:"none",outline:"none"},show:(null==s?void 0:null===(o=s.blockProps)||void 0===o?void 0:o.twitterShare)||!1,onClick:()=>{var e;null==B||B({"blockProps.twitterShare":!(null==s?void 0:null===(e=s.blockProps)||void 0===e?void 0:e.twitterShare)},void 0,!1,"articles",null==s?void 0:s._id.$oid)}})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-start B__gap-3 B__items-center B__my-2",children:[(0,_.jsx)("span",{className:"B__font-semibold B__text-base B__font-[Lato] B__min-w-[200px]",children:"Email share button :"}),(0,_.jsx)(l5.Oe,{style:{border:"none",outline:"none"},show:(null==s?void 0:null===(a=s.blockProps)||void 0===a?void 0:a.mailShare)||!1,onClick:()=>{var e;null==B||B({"blockProps.mailShare":!(null==s?void 0:null===(e=s.blockProps)||void 0===e?void 0:e.mailShare)},void 0,!1,"articles",null==s?void 0:s._id.$oid)}})]})]})})]})})}),(0,_.jsx)("div",{className:"B__opacity-25 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})},om=e=>{var t,l,o,a,s,c,B,x,m,p,u,v,h,y,f,j,k,w,N,P,I,C,Z,T,L,F,E,A,H,z,M,U,V,R,W,K,q,O;let{article:G,viewMode:$,pageData:Y,allArticles:Q}=e,[X,ee]=(0,i.useState)(!1),et=e=>{var t;let l=(null===(t=Object.entries(e))||void 0===t?void 0:t.map(e=>{let[t,l]=e;return"<h2>".concat(t,"</h2><div>").concat(l||"","</div></br>")}).join(""))||"";return l},el=(0,n.useRouter)(),ei=e=>()=>{var t,l;window&&!g.EB.includes(window.location.host)?el.push("/".concat(null==Y?void 0:Y.slug,"/").concat((null==e?void 0:e.slug)||(null==e?void 0:null===(t=e._id)||void 0===t?void 0:t.$oid))):el.push("/".concat("preview"===$?"generated":"edit"===$?"edit":"live","/").concat(null==e?void 0:e.website_id,"/").concat(null==Y?void 0:Y.slug,"/").concat((null==e?void 0:e.slug)||(null==e?void 0:null===(l=e._id)||void 0===l?void 0:l.$oid)))},[eo,ea]=(0,i.useState)({blog:(null==G?void 0:null===(t=G.blockProps)||void 0===t?void 0:t.blog)||et((null==G?void 0:null===(l=G.blockProps)||void 0===l?void 0:l.html_content_json)||{})||""}),[es,en]=(0,i.useState)((null==G?void 0:G.static_article)&&!(null==G?void 0:null===(o=G.blockProps)||void 0===o?void 0:o.blog)||!1),[er,ed]=(0,i.useState)(!1),{regenInProgressEl:ec,updateSectionData:eB,editSectionMetaData:ex,uploadImage:em,setShowEditContentModal:ep,setEditSectionMetaData:eu,setEditContentFields:ev}=(0,i.useContext)(r.o)||{},eh=null!=ec&&!!ec.find(e=>"articleDetails"===e.key&&e.sectionId===(null==G?void 0:G.id)),eg=e=>{var t,l,_;null==ev||ev("author"===e?[{name:"author",placeholder:"Author",type:"texteditor",value:(null==G?void 0:null===(t=G.blockProps)||void 0===t?void 0:t.author)||"Author name XYZ",key:"blockProps.author",field_label:"Author"}]:"title"===e?[{name:"title",placeholder:"Title",type:"texteditor",value:(null==G?void 0:G.blockProps.title)||"",key:"blockProps.title",field_label:"Title"}]:"date"===e?[{name:"date",placeholder:"Date",type:"texteditor",value:(null==G?void 0:null===(l=G.blockProps)||void 0===l?void 0:l.date)||"",key:"blockProps?.date",field_label:"Date"}]:[]),null==ep||ep(!0),null==eu||eu({pageId:null==G?void 0:G.page_id,websiteId:null==G?void 0:G.website_id,articleId:null==G?void 0:null===(_=G._id)||void 0===_?void 0:_.$oid,editBaseData:!1,slot:"articles"})},ey=e=>{null==eB||eB({published:e},void 0,!1,"articles",null==G?void 0:G._id.$oid),ed(!1)},eb=e=>()=>{var t,l,_;let i="";i=window&&!g.EB.includes(window.location.host)?"".concat(window.location.origin,"/").concat(null==Y?void 0:Y.slug,"/").concat((null==G?void 0:G.slug)||(null==G?void 0:null===(t=G._id)||void 0===t?void 0:t.$oid)):"".concat((null==window?void 0:null===(l=window.location)||void 0===l?void 0:l.origin)||"https://butternut.ai","/").concat("preview"===$?"generated":"edit"===$?"edit":"live","/").concat((null==G?void 0:G.website_id)||"","/").concat((null==Y?void 0:Y.slug)||"","/").concat((null==G?void 0:G.slug)||(null==G?void 0:null===(_=G._id)||void 0===_?void 0:_.$oid));let o="";"facebook"===e?o="https://www.facebook.com/sharer/sharer.php?u=".concat(i):"linkedin"===e?o="https://www.linkedin.com/shareArticle?mini=true&url=".concat(i,"&title=").concat(null==G?void 0:G.title):"twitter"===e?o="https://twitter.com/intent/tweet?url=".concat(i,"&text=").concat(null==G?void 0:G.title):"mail"===e&&(o="mailto:?body=".concat(i)),window&&window.open(o,"_blank")},[ef,ej]=(0,i.useState)(!1),ek=()=>{null==eB||eB({article_generated:!1,"blockProps.blog":""},void 0,!1,"articles",null==G?void 0:G._id.$oid)};return(0,_.jsx)(_.Fragment,{children:G?(0,_.jsxs)("div",{className:"section-vertical-padding B__mx-auto _custom-container-max-width B__max-w-[90%] lg:B__max-w-[700px] xl:B__max-w-[900px]  global_css B__text-primary",children:["live"!==$?(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__gap-4",children:[(0,_.jsxs)("div",{className:"B__flex B__gap-2 B__items-center B__text-[#5959FF] B__cursor-pointer B__text-sm lg:B__text-base",onClick:()=>{window&&!g.EB.includes(window.location.host)?el.push("/".concat(null==Y?void 0:Y.slug)):el.push("/".concat("preview"===$?"generated":"edit"===$?"edit":"live","/").concat(null==G?void 0:G.website_id,"/").concat(null==Y?void 0:Y.slug))},children:[(0,_.jsx)(e_.BMs,{className:"B__text-xl lg:B__text-2xl"}),(0,_.jsx)("span",{children:"Back"})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-end B__items-center B__flex-wrap B__gap-4",children:[!(null==G?void 0:G.static_article)&&(0,_.jsx)("button",{className:"B__text-sm B__px-3 lg:B__px-5 B__py-1 lg:B__py-2 B__border B__border-[#5959FF] B__rounded-md B__font-bold B__text-[#5959FF]",onClick:ek,children:"Regenerate"}),(0,_.jsx)("button",{className:"B__text-sm B__px-3 lg:B__px-5 B__py-1 lg:B__py-2 B__border B__border-[#5959FF] B__rounded-md B__font-bold B__text-[#5959FF]",onClick:()=>{ee(!0)},children:"SEO Settings"}),(0,_.jsx)("button",{className:"B__text-sm B__px-3 lg:B__px-5 B__py-1 lg:B__py-2 B__border B__border-[#5959FF] B__rounded-md B__font-bold B__text-[#5959FF]",onClick:()=>{if(window){var e;window.open("/live/".concat(null==G?void 0:G.website_id,"/").concat(null==Y?void 0:Y.slug,"/").concat((null==G?void 0:G.slug)||(null==G?void 0:null===(e=G._id)||void 0===e?void 0:e.$oid)),"_blank")}},children:"Preview"}),(0,_.jsx)("div",{className:"B__relative",children:(0,_.jsxs)("div",{className:"B__text-sm B__pl-3 lg:B__pl-5 B__gap-2 B__rounded-md B__font-bold B__text-white B__bg-butternut-button  B__flex B__items-center B__select-none B__border B__border-[#5959ff] B__relative",children:[(0,_.jsx)("span",{className:"B__font-bold B__text-base",children:"Status :"}),(0,_.jsxs)("select",{className:" B__py-2 B__px-3 B__pr-7 B__rounded-md B__outline-none B__cursor-pointer B__bg-butternut-button B__text-white B__appearance-none publish-select",name:"status",onChange:e=>{"Draft"===e.target.value?ey(!1):ey(!0)},defaultValue:(null==G?void 0:G.published)?"Published":"Draft",children:[(0,_.jsx)("option",{value:"Draft",className:"B__text-sm B__font-medium B__px-3 B__py-2 B__cursor-pointer selection:B__bg-white",children:"Draft"}),(0,_.jsx)("option",{value:"Published",className:"B__text-sm B__font-medium B__px-3 B__py-2 B__cursor-pointer",children:"Published"})]}),(0,_.jsx)("div",{className:"B__absolute B__z-10 B__right-2 B__top-1/2 B__-translate-y-1/2 B__text-white B__font-bold",children:(0,_.jsx)(e_.RiI,{})})]})}),(0,_.jsx)(oB,{showModal:X,handleClose:()=>{ee(!1)},article:G,viewMode:$,pageData:Y})]})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"B__text-secondary B__font-secondary B__text-left B__mx-auto B__text-lg B__break-words B__mt-4 B__flex B__items-center B__group/date",children:[(0,D.ZP)((null==G?void 0:null===(a=G.blockProps)||void 0===a?void 0:a.date)||""),"live"!==$&&(0,_.jsx)("span",{className:"B__cursor-pointer B__ml-1 lg:B__invisible group-hover/date:B__visible",onClick:()=>eg("date"),children:(0,_.jsx)(b.vPQ,{className:"B__text-lg B__text-[#5959FF]"})})]}),(0,_.jsxs)("h1",{className:"B__text-left B__text-primary B__font-bold B__font-[Lato] B__mx-auto B__text-2xl lg:B__text-[1.75rem] xl:B__text-4xl 2xl:B__text-[2.75rem] B__relative B__break-words B__mt-4 lg:B__max-w-[95%] lg:B__mx-0 B__flex B__items-center B__group/title",style:{lineHeight:1.1},children:[(0,D.ZP)((null==G?void 0:null===(s=G.blockProps)||void 0===s?void 0:s.title)||""),"live"!==$&&(0,_.jsx)("span",{className:"B__cursor-pointer B__ml-1 lg:B__invisible group-hover/title:B__visible",onClick:()=>eg("title"),children:(0,_.jsx)(b.vPQ,{className:"B__text-lg B__text-[#5959FF]"})})]}),"live"!==$||(null==G?void 0:null===(c=G.blockProps)||void 0===c?void 0:c.author)?(0,_.jsxs)("div",{className:"B__text-secondary B__font-secondary B__text-left B__mx-auto B__text-lg B__break-words B__my-4 B__flex B__items-center B__group/author",children:[(0,D.ZP)((null==G?void 0:null===(B=G.blockProps)||void 0===B?void 0:B.author)||"Author name XYZ"),"live"!==$&&(0,_.jsx)("span",{className:"B__cursor-pointer B__ml-1 lg:B__invisible group-hover/author:B__visible",onClick:()=>eg("author"),children:(0,_.jsx)(b.vPQ,{className:"B__text-lg B__text-[#5959FF]"})})]}):(0,_.jsx)(_.Fragment,{}),!(null==G?void 0:G.static_article)&&(0,_.jsx)(S.Z,{articleId:G._id.$oid,sectionLocation:"page",slot:"articles",type:$,style:{zIndex:"unset"},regenrateBtn:{updateType:"key",key:"blockProps.img",keywords:(null==G?void 0:null===(x=G.blockProps)||void 0===x?void 0:x.img_keywords)||"",isImg:!0},uploadBtn:{fields:[{name:"img",placeholder:"Upload your image",type:"file",value:"",field_label:"Upload your image",key:"blockProps.img"}]},children:(0,_.jsx)("img",{alt:(0,J.s9)((null==G?void 0:null===(m=G.blockProps)||void 0===m?void 0:m.img)||""),src:null==G?void 0:null===(p=G.blockProps)||void 0===p?void 0:p.img,height:300,width:350,className:"B__w-full B__h-full B__max-h-[500px] B__object-cover B__object-center B__mt-10 B__mb-10"})}),(0,_.jsxs)("div",{className:"react-quill-editor-blog",children:["live"!==$&&es?(0,_.jsxs)("div",{className:"B__w-full B__bg-surface",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-end B__items-center B__gap-2 B__py-3.5 B__sticky B__top-[calc(var(--navbar-height)*1px+10px)] B__z-10 B__bg-surface",children:[(0,_.jsx)("button",{className:"B__px-7 B__py-2.5 B__rounded-md B__text-[#5959FF] B__font-semibold B__text-base B__border B__border-[#5959FF] B__bg-surface",onClick:()=>{en(!1)},children:"Cancel"}),(0,_.jsx)("button",{className:"B__bg-butternut-button B__px-7 B__py-2.5 B__rounded-md B__text-white B__font-semibold B__text-base",onClick:()=>{let e={"blockProps.blog":null==eo?void 0:eo.blog};null==eB||eB(e,void 0,!1,"articles",null==G?void 0:G._id.$oid),en(!1)},children:"Save"})]}),(0,_.jsx)(od.Z,{field:{name:"blog",placeholder:"Write your own blog here",type:"texteditor",value:(null==G?void 0:null===(u=G.blockProps)||void 0===u?void 0:u.blog)||et((null==G?void 0:null===(v=G.blockProps)||void 0===v?void 0:v.html_content_json)||{})||"",key:"blockProps.blog",field_label:""},handleChange:e=>{var t;ea({blog:null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value})},regenerateHandler:()=>{},toggleIcons:e=>{},values:eo,editSectionMetaData:ex,regenerateWithPrompt:()=>{},uploadImage:em}),(0,_.jsxs)("div",{className:"B__flex B__justify-start B__items-center B__gap-2",children:[(0,_.jsx)("button",{className:"B__px-7 B__py-2.5 B__rounded-md B__text-[#5959FF] B__font-semibold B__text-base B__border B__border-[#5959FF]",onClick:()=>{en(!1)},children:"Cancel"}),(0,_.jsx)("button",{className:"B__bg-butternut-button B__px-7 B__py-2.5 B__rounded-md B__text-white B__font-semibold B__text-base",onClick:()=>{let e={"blockProps.blog":null==eo?void 0:eo.blog};null==eB||eB(e,void 0,!1,"articles",null==G?void 0:G._id.$oid),en(!1)},children:"Save"})]})]}):(0,_.jsxs)("div",{className:"B__relative",children:["live"!==$&&(0,_.jsx)("div",{className:"B__flex B__justify-end B__items-center",children:(0,_.jsxs)("button",{className:"B__bg-butternut-button B__px-3.5 B__py-2.5 B__rounded-md B__flex B__justify-center B__items-center B__gap-2 B__text-white",onClick:()=>{en(e=>!e)},children:[(0,_.jsx)(b.vPQ,{size:20,className:"B__text-2xl B__text-white"}),"Edit"]})}),(0,_.jsx)("div",{className:"".concat(eh?"blur":""," B__mt-5"),children:(0,D.ZP)((null==G?void 0:null===(h=G.blockProps)||void 0===h?void 0:h.blog)?null==G?void 0:null===(y=G.blockProps)||void 0===y?void 0:y.blog:et((null==G?void 0:null===(f=G.blockProps)||void 0===f?void 0:f.html_content_json)||{})||"")})]}),("live"!==$||(null==G?void 0:null===(j=G.blockProps)||void 0===j?void 0:j.facebookShare)||(null==G?void 0:null===(k=G.blockProps)||void 0===k?void 0:k.twitterShare)||(null==G?void 0:null===(w=G.blockProps)||void 0===w?void 0:w.linkedinShare)||(null==G?void 0:null===(N=G.blockProps)||void 0===N?void 0:N.mailShare))&&(0,_.jsxs)("div",{className:"".concat((null==G?void 0:null===(P=G.blockProps)||void 0===P?void 0:P.facebookShare)||(null==G?void 0:null===(I=G.blockProps)||void 0===I?void 0:I.twitterShare)||(null==G?void 0:null===(C=G.blockProps)||void 0===C?void 0:C.linkedinShare)||(null==G?void 0:null===(Z=G.blockProps)||void 0===Z?void 0:Z.mailShare)?"":"B__opacity-70"," B__flex B__justify-start B__gap-3 lg:B__gap-4 B__items-center B__my-4 lg:B__my-8 B__mb-9 lg:B__mb-14 B__relative B__group/socialicons"),children:[(0,_.jsx)("div",{className:"B__text-xl B__font-semibold",children:"Share :"}),("live"!==$||(null==G?void 0:null===(T=G.blockProps)||void 0===T?void 0:T.facebookShare))&&(0,_.jsxs)("span",{className:"".concat((null==G?void 0:null===(L=G.blockProps)||void 0===L?void 0:L.facebookShare)?"":"B__opacity-70"," B__px-3 B__text-xl B__cursor-pointer"),onClick:eb("facebook"),children:[(0,_.jsx)(e_.tBk,{})," "]}),("live"!==$||(null==G?void 0:null===(F=G.blockProps)||void 0===F?void 0:F.linkedinShare))&&(0,_.jsxs)("span",{className:"".concat((null==G?void 0:null===(E=G.blockProps)||void 0===E?void 0:E.linkedinShare)?"":"B__opacity-70"," B__px-3 B__text-xl B__cursor-pointer"),onClick:eb("linkedin"),children:[(0,_.jsx)(e_.BUd,{})," "]}),("live"!==$||(null==G?void 0:null===(A=G.blockProps)||void 0===A?void 0:A.twitterShare))&&(0,_.jsx)("span",{className:"".concat((null==G?void 0:null===(H=G.blockProps)||void 0===H?void 0:H.twitterShare)?"":"B__opacity-70"," B__px-3 B__text-xl B__cursor-pointer"),onClick:eb("twitter"),children:(0,_.jsx)(e_.fWC,{})}),("live"!==$||(null==G?void 0:null===(z=G.blockProps)||void 0===z?void 0:z.mailShare))&&(0,_.jsx)("span",{className:"".concat((null==G?void 0:null===(M=G.blockProps)||void 0===M?void 0:M.mailShare)?"":"B__opacity-70"," B__px-3 B__text-xl B__cursor-pointer"),onClick:eb("mail"),children:(0,_.jsx)(d.ixJ,{})}),"live"!==$&&(0,_.jsx)("div",{className:"B__invisible group-hover/socialicons:B__visible B__cursor-pointer B__text-[#5959FF] B__rounded-md B__text-xl",onClick:()=>{ej(!0)},children:(0,_.jsx)(e_.fmQ,{})})]}),(0,_.jsx)(ox,{article:G,showModal:ef,handleClose:()=>{ej(!1)}})]}),((null==G?void 0:null===(U=G.blockProps)||void 0===U?void 0:U.showRelatedArticles)||"live"!==$)&&(null===(V=null==Q?void 0:Q.filter(e=>(null==e?void 0:e.article_generated)&&(null==e?void 0:e.published)&&e._id.$oid!==G._id.$oid))||void 0===V?void 0:V.length)?(0,_.jsxs)("div",{className:"B__mt-8",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between B__gap-2",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-start B__gap-2",children:[(0,_.jsx)("div",{className:"B__text-2xl B__font-semibold B__font-[Lato] ".concat((null==G?void 0:null===(R=G.blockProps)||void 0===R?void 0:R.showRelatedArticles)?"":"B__opacity-70"),children:"Related Posts"}),"live"!==$&&(0,_.jsx)(l5.Oe,{iconClassName:"!B__text-black",style:{border:"none",outline:"none"},show:(null==G?void 0:null===(W=G.blockProps)||void 0===W?void 0:W.showRelatedArticles)||!1,onClick:()=>{var e;null==eB||eB({"blockProps.showRelatedArticles":!(null==G?void 0:null===(e=G.blockProps)||void 0===e?void 0:e.showRelatedArticles)},void 0,!1,"articles",null==G?void 0:G._id.$oid)}})]}),(0,_.jsx)("div",{className:"B__underline B__font-medium B__cursor-pointer ".concat((null==G?void 0:null===(K=G.blockProps)||void 0===K?void 0:K.showRelatedArticles)?"":"B__opacity-70"),onClick:()=>{window&&!g.EB.includes(window.location.host)?el.push("/".concat(null==Y?void 0:Y.slug)):el.push("/".concat("preview"===$?"generated":"edit"===$?"edit":"live","/").concat(null==G?void 0:G.website_id,"/").concat(null==Y?void 0:Y.slug))},children:"See All"})]}),(0,_.jsx)("div",{className:"B__grid B__grid-cols-1 lg:B__grid-cols-2 xl:B__grid-cols-3 B__gap-4 B__mt-4 ".concat((null==G?void 0:null===(q=G.blockProps)||void 0===q?void 0:q.showRelatedArticles)?"":"B__opacity-70"),children:null===(O=null==Q?void 0:Q.filter(e=>(null==e?void 0:e.article_generated)&&(null==e?void 0:e.published)&&e._id.$oid!==G._id.$oid))||void 0===O?void 0:O.map((e,t)=>{var l,i,o;if(t<3)return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__p-4 B__rounded-md B__border B__border-[#e1e1e1] B__flex B__flex-col B__gap-3 B__cursor-pointer",onClick:ei(e),children:[(0,_.jsx)("img",{className:"B__w-full B__h-[250px] B__object-cover B__object-center",src:null==e?void 0:null===(l=e.blockProps)||void 0===l?void 0:null===(i=l.card)||void 0===i?void 0:i.img}),(0,_.jsx)("h4",{className:"B__font-main B__font-medium B__text-sm lg:B__text-base xl:B__text-lg B__break-words",children:(0,D.ZP)((null==e?void 0:null===(o=e.blockProps)||void 0===o?void 0:o.title)||"")})]},t)})})]}):(0,_.jsx)(_.Fragment,{})]}):(0,_.jsx)(_.Fragment,{})})},op=e=>{let{handleGenerateWithAi:t,handleGenerateStatic:l,limitExceeded:i}=e;return(0,_.jsx)("div",{className:"B__w-full B__h-[80vh] B__relative",children:(0,_.jsxs)("div",{className:"B__max-w-[500px] B__mx-auto B__relative B__top-1/2 B__-translate-y-1/2 B__rounded-3xl B__px-10 B__py-8 B__flex B__flex-col B__bg-card-surface",style:{boxShadow:"0px 25px 60px 0px #00000014"},children:[(0,_.jsx)("div",{className:"B__text-xl B__font-medium B__text-center B__text-primary",children:"Blog posts are one of the effective ways to Grow your audience "}),(0,_.jsxs)("div",{className:" B__flex B__flex-col B__justify-stretch B__mx-auto B__w-[80%]",children:[(0,_.jsx)("button",{className:"B__bg-white B__border B__border-[#5959FF] B__px-7 B__py-3 B__rounded-xl B__text-[#5959FF] B__text-sm B__font-bold B__mt-11 disabled:B__cursor-not-allowed disabled:B__opacity-60",disabled:i,onClick:l,children:"Write by your own"}),(0,_.jsxs)("button",{className:"B__flex  B__bg-gradient-to-b B__shadow-lg B__from-[#A028FF] B__to-[#0F51FC]  B__mt-3 B__text-white B__px-8  B__py-3 mobile:B__leading-auto B__leading-28 B__text-xm B__rounded-xl B__justify-center  B__font-bold disabled:B__cursor-not-allowed disabled:B__opacity-60",onClick:t,disabled:i,children:[(0,_.jsx)(w(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/starIcon.png",alt:(0,J.s9)("Generate"),width:20,height:20,className:"B__mr-4"}),"Generate with AI"]}),i&&(0,_.jsxs)("div",{className:"B__text-sm B__text-red-400 text-center my-2",children:["(Exceeded limit of blogs, upgrade your plan)"," ",(0,_.jsx)(p(),{href:"/contact",children:"Contact us"})]})]})]})})},ou=e=>{let{currentStep:t}=e,[l,o]=(0,i.useState)(t),a=(0,i.useRef)(null),{width:s}=lD(a);return(0,i.useEffect)(()=>{o(t)},[t]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__hidden lg:B__flex B__mt-8 B__justify-between B__items-center B__max-w-[89%] lg:B__max-w-3xl B__mx-auto B__py-10 B__relative B__z-10",ref:a,children:[,,,].fill(1).map((e,t)=>{var i;return(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-center B__justify-center B__relative B__bg-surface",children:[(0,_.jsx)("div",{className:" B__text-white B__rounded-full B__flex B__justify-center B__items-center B__h-10 B__w-10 B__text-lg B__font-medium B__font-[Lato] ".concat(t<l?"B__bg-butternut-button":"B__bg-[#D9D2F7]"),children:t+1}),t<2&&(null==a?void 0:null===(i=a.current)||void 0===i?void 0:i.clientWidth)?(0,_.jsx)("div",{className:"B__absolute B__h-1 B__left-0 B__z-[-1] B__border-t-4  ".concat(t+1<l?"B__border-[#5959FF]":"B__border-[#D9D2F7]"),style:{width:(s||1)/2}}):(0,_.jsx)(_.Fragment,{}),(0,_.jsx)("div",{className:"B__absolute B__-bottom-7 B__whitespace-nowrap B__text-base B__font-bold B__font-[Lato] B__text-primary",children:0===t?"Description":1===t?"Title Selection":"Layout"})]},t)})}),(0,_.jsx)("div",{className:"lg:B__hidden B__flex B__flex-wrap B__justify-center B__gap-1 B__items-center B__my-4",children:(0,_.jsxs)("div",{className:"B__flex B__flex-col B__items-center B__justify-center B__mt-7 B__w-full",children:[(0,_.jsxs)("div",{className:"B__relative B__w-full B__flex B__justify-center B__items-center",children:[(0,_.jsx)("div",{className:"B__h-[40px] B__w-[40px] B__rounded-full B__text-white B__bg-butternut-button B__flex B__justify-center B__items-center B__text-lg B__font-bold B__z-10 B__relative",children:l}),1===l?(0,_.jsx)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2 B__right-0 B__w-1/2 B__h-[5px] B__bg-[#D9D2F7] B__z-0"}):2===l?(0,_.jsx)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2 B__w-full B__h-[5px] B__bg-[#D9D2F7] B__z-0"}):(0,_.jsx)("div",{className:"B__absolute B__top-1/2 B__-translate-y-1/2 B__left-0 B__w-1/2 B__h-[5px] B__bg-[#D9D2F7] B__z-0"})]}),(0,_.jsxs)("div",{className:"B__w-1/2 B__mx-auto B__flex B__justify-center B__items-center B__mt-2 B__flex-col B__font-[Lato]",children:[(0,_.jsx)("div",{className:"B__font-bold B__text-xl B__text-center B__text-[#131332]",children:1===l?"Describe what your blog post is about":2===l?"Select one title":3===l?"Layout":""}),(0,_.jsx)("div",{className:"B__mt-2 B__text-slate-500 B__text-sm B__font-normal B__text-center",children:1===l?"In the next step we'll give you titles to choose from":2===l?"Pick one title for your blog":3===l?"Finalise sub-headings for your blog":""})]})]})})]})},ov=e=>{var t,l,o,a,s,n;let{handleSubmit:r,article:c,websiteData:B}=e,[x,m]=(0,i.useState)({topic:(null==c?void 0:c.topic)||"",keywords:(null==c?void 0:c.keywords)||"",voice:(null==c?void 0:c.voice)||[],...(null==c?void 0:c.target_audience)?{target_audience:null==c?void 0:c.target_audience}:{}}),[p,u]=(0,i.useState)({topic:"",keywords:""}),[v,h]=(0,i.useState)({voice:!1,target_audience:!1,location:!!(null==c?void 0:null===(t=c.target_audience)||void 0===t?void 0:null===(l=t.location)||void 0===l?void 0:l.length),context:!1}),[g,y]=(0,i.useState)(!1),f=e=>{u(t=>({...t,[e.target.name]:""})),m(t=>({...t,[e.target.name]:e.target.value}))},j=e=>{let t=[];if(x.voice){var l,_;t=(null==x?void 0:null===(l=x.voice)||void 0===l?void 0:l.includes(e.name))?null==x?void 0:null===(_=x.voice)||void 0===_?void 0:_.filter(t=>t!==e.name):[...null==x?void 0:x.voice,e.name]}else t=[e.name];m(e=>({...e,voice:t}))},[k,w]=(0,i.useState)(""),N=()=>{k&&(m(e=>{var t;return{...e,target_audience:{...null==e?void 0:e.target_audience,location:[...(null==e?void 0:null===(t=e.target_audience)||void 0===t?void 0:t.location)||[],k]}}}),w("")),y(!1)},P=()=>{let e=!0;return x.topic||(e=!1,u(e=>({...e,topic:"Please provide blog topic or idea"}))),x.keywords||(e=!1,u(e=>({...e,keywords:"Please provide keywords"}))),e},I=()=>{P()&&r({...x,brand_context:v.context})};return(0,_.jsxs)("div",{className:"B__max-w-[90%] lg:B__max-w-4xl xl:B__max-w-5xl 2xl:B__max-w-6xl B__mx-auto B__w-full lg:B__px-16 xl:B__px-20 2xl:B__px-24 B__py-12 lg:B__py-14 xl:B__py-16 2xl:B__py-20 B__rounded-3xl lg:B__bg-white lg:B__shadow-[0px_25px_60px_0px_#00000014]",children:[(0,_.jsx)("div",{className:"B__font-[Lato] B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-bold B__hidden lg:B__block",children:"Describe what your blog post is about"}),(0,_.jsx)("div",{className:"B__mt-2 B__font-[Lato] B__text-sm lg:B__text-base B__font-normal B__hidden lg:B__block",children:"In the next step we'll give you titles to choose from"}),(0,_.jsxs)("div",{className:"B__mt-5",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato]",children:"IDEA"}),(0,_.jsx)("textarea",{id:"topic",name:"topic",rows:3,placeholder:"Write Blog topic or idea...",className:"B__w-full B__px-6 B__py-4  placeholder:B__text-[#52525B] lg:placeholder:B__text-16 B__max-h-[128px] placeholder:B__text-base B__border B__rounded-2xl focus:B__outline-none focus:B__border-blue-500 B__mt-2",required:!0,onChange:f,style:{boxShadow:"0px 25px 60px 0px #00000014"},value:(null==x?void 0:x.topic)||""}),(null==p?void 0:p.topic)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==p?void 0:p.topic}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsxs)("div",{className:"B__mt-8",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__gap-3",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato]",children:"KEYWORDS"}),(0,_.jsx)("div",{className:"B__text-sm B__font-normal B__font-[Lato] B__italic B__hidden lg:B__block",children:"You can edit or add keywords in comma separated format"})]}),(0,_.jsx)("textarea",{id:"keywords",name:"keywords",rows:1,placeholder:"keywords...",className:"B__w-full B__px-6 B__py-4  placeholder:B__text-[#52525B] lg:placeholder:B__text-16 B__max-h-[128px] placeholder:B__text-base B__border B__rounded-2xl focus:B__outline-none focus:B__border-blue-500 B__mt-2",required:!0,onChange:f,value:(null==x?void 0:x.keywords)||"",style:{boxShadow:"0px 25px 60px 0px #00000014"}}),(0,_.jsx)("div",{className:"B__text-sm B__font-normal B__font-[Lato] B__italic lg:B__hidden B__text-end",children:"You can edit or add keywords in comma separated format"}),(null==p?void 0:p.keywords)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==p?void 0:p.keywords}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsxs)("div",{className:"B__pt-8 B__text-[#131332]",children:[(0,_.jsx)("div",{className:"B__text-sm B__font-bold B__font-[Lato]",children:"BRAND CONTEXT"}),(0,_.jsxs)("div",{className:"B__flex B__justify-start B__items-center B__gap-2 B__mt-3 B__cursor-pointer",onClick:()=>{h(e=>({...e,context:!0}))},children:[(null==v?void 0:v.context)?(0,_.jsx)(d.EMu,{className:"B__fill-[#5959FF] B__text-lg"}):(0,_.jsx)(d.waj,{className:"B__text-lg"}),(0,_.jsx)("div",{className:"B__font-[Lato] B__text-base B__font-normal",children:'Yes, add context of my business "'.concat(null==B?void 0:B.org_name,'"')})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-start B__items-center B__gap-2 B__mt-3 B__cursor-pointer",onClick:()=>{h(e=>({...e,context:!1}))},children:[(null==v?void 0:v.context)?(0,_.jsx)(d.waj,{className:"B__text-lg"}):(0,_.jsx)(d.EMu,{className:"B__fill-[#5959FF] B__text-lg"}),(0,_.jsx)("div",{className:"B__font-[Lato] B__text-base B__font-normal",children:"No, not required"})]})]}),(0,_.jsxs)("div",{className:"B__mt-8 lg:B__mt-10",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__gap-3 B__border-b B__border-[#13133225] B__pb-4",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato]",children:"BRAND VOICE"}),(0,_.jsx)("div",{className:"B__text-lg B__font-normal B__font-[Lato] B__cursor-pointer",onClick:()=>{h(e=>({...e,voice:!e.voice}))},children:(null==v?void 0:v.voice)?(0,_.jsx)(b.ego,{}):(0,_.jsx)(b.OvN,{})})]}),(0,_.jsx)("div",{className:"".concat((null==v?void 0:v.voice)?"B__flex":"B__hidden"," B__justify-start B__gap-3 B__flex-wrap B__items-center B__pt-5 B__pb-6"),children:[{name:"friendly",title:"Friendly"},{name:"professional",title:"Professional"},{name:"witty",title:"Witty"},{name:"heartfelt",title:"Heartfelt"},{name:"educational",title:"Educational"}].map((e,t)=>{var l;return(0,_.jsx)("button",{className:"B__px-3 B__py-2 B__rounded-lg B__text-sm B__cursor-pointer ".concat((null==x?void 0:null===(l=x.voice)||void 0===l?void 0:l.includes(e.name))?"B__bg-butternut-button B__text-white":"B__bg-[#00000010] B__text-[#131332]"),onClick:()=>j(e),children:e.title},t)})})]}),(0,_.jsxs)("div",{className:"B__mt-8 lg:B__mt-10",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__gap-3 B__border-b B__border-[#13133225] B__pb-4",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato]",children:"TARGET AUDIENCE"}),(0,_.jsx)("div",{className:"B__text-lg B__font-normal B__font-[Lato] B__cursor-pointer",onClick:()=>{h(e=>({...e,target_audience:!e.target_audience}))},children:(null==v?void 0:v.target_audience)?(0,_.jsx)(b.ego,{}):(0,_.jsx)(b.OvN,{})})]}),(0,_.jsxs)("div",{className:"".concat((null==v?void 0:v.target_audience)?"B__block":"B__hidden"," B__pt-6 B__pb-8"),children:[(0,_.jsxs)("div",{className:"B__flex B__flex-wrap B__items-center B__gap-9",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"B__text-sm B__font-bold B__font-[Lato]",children:"GENDER"}),(0,_.jsx)("div",{className:"B__flex B__justify-start B__items-center B__gap-2 B__flex-wrap B__mt-1",children:[{name:"male",title:"Male"},{name:"female",title:"Female"},{name:"Both",title:"Both"}].map((e,t)=>{var l;return(0,_.jsx)("button",{className:"B__px-3 B__py-2 B__rounded-lg B__text-sm B__cursor-pointer ".concat((null==x?void 0:null===(l=x.target_audience)||void 0===l?void 0:l.gender)===e.name?"B__bg-butternut-button B__text-white":"B__bg-[#00000010] B__text-[#131332]"),onClick:()=>{m(t=>({...t,target_audience:{...t.target_audience,gender:e.name}}))},children:e.title},t)})})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"B__text-sm B__font-bold B__font-[Lato]",children:"AGE GROUP"}),(0,_.jsx)("div",{className:"B__flex B__justify-start B__items-center B__gap-2 B__flex-wrap B__mt-1",children:[{name:"18-25",title:"18-25"},{name:"25-35",title:"25-35"},{name:"35-45",title:"35-45"},{name:"45+",title:"45+"},{name:"All",title:"All"}].map((e,t)=>{var l;return(0,_.jsx)("button",{className:"B__px-3 B__py-2 B__rounded-lg B__text-sm B__cursor-pointer ".concat((null==x?void 0:null===(l=x.target_audience)||void 0===l?void 0:l.age_group)===e.name?"B__bg-butternut-button B__text-white":"B__bg-[#00000010] B__text-[#131332]"),onClick:()=>{m(t=>({...t,target_audience:{...t.target_audience,age_group:e.name}}))},children:e.title},t)})})]})]}),(0,_.jsxs)("div",{className:"B__pt-8 B__text-[#131332]",children:[(0,_.jsx)("div",{className:"B__text-sm B__font-bold B__font-[Lato]",children:"LOCATION SPECIFIC"}),(0,_.jsxs)("div",{className:"B__flex B__justify-start B__items-center B__gap-2 B__mt-3 B__cursor-pointer",onClick:()=>{h(e=>({...e,location:!0}))},children:[(null==v?void 0:v.location)?(0,_.jsx)(d.EMu,{className:"B__fill-[#5959FF] B__text-lg"}):(0,_.jsx)(d.waj,{className:"B__text-lg"}),(0,_.jsx)("div",{className:"B__font-[Lato] B__text-base B__font-normal",children:"Yes, It will be location specific"})]}),(null==v?void 0:v.location)?(0,_.jsxs)("div",{className:"B__bg-[#f5f5f5] B__text-sm B__rounded-xl B__w-full B__p-3 B__px-4 B__flex B__flex-wrap B__justify-start B__items-center B__mt-3 B__gap-3",children:[null==x?void 0:null===(o=x.target_audience)||void 0===o?void 0:null===(a=o.location)||void 0===a?void 0:a.map((e,t)=>(0,_.jsxs)("div",{className:"B__relative B__px-4 B__py-2 B__rounded-lg B__text-sm B__text-white B__bg-butternut-button B__w-auto",children:[e,(0,_.jsx)("div",{className:"B__absolute B__top-0 B__right-0 B__-translate-y-1/2 B__translate-x-1/2 B__text-sm B__text-gray-800 B__bg-white B__p-0.5w B__rounded-full B__z-10 B__cursor-pointer",onClick:()=>{m(t=>{var l,_;return{...t,target_audience:{...null==t?void 0:t.target_audience,location:[...(null==t?void 0:null===(l=t.target_audience)||void 0===l?void 0:null===(_=l.location)||void 0===_?void 0:_.filter(t=>t!==e))||[]]}}})},children:(0,_.jsx)(d.FU5,{})})]},t)),(null==x?void 0:null===(s=x.target_audience)||void 0===s?void 0:null===(n=s.location)||void 0===n?void 0:n.length)&&!g?(0,_.jsx)("button",{className:"B__ml-2 B__p-2 B__text-white B__bg-butternut-button B__rounded-md",onClick:()=>{y(!0)},children:(0,_.jsx)(b.OvN,{className:"B__text-lg"})}):(0,_.jsxs)("div",{className:"B__flex B__gap-3 B__items-center",children:[(0,_.jsx)("input",{className:"B__px-3 B__py-1.5  placeholder:B__text-[#52525B] placeholder:B__text-sm B__border B__rounded-lg focus:B__outline-none focus:B__border-blue-500",name:"location",placeholder:"location",onChange:e=>{w(e.target.value)},value:k}),(0,_.jsx)("button",{className:"B__text-sm B__text-white B__bg-butternut-button B__rounded-lg B__font-medium B__px-3 B__py-1.5 disabled:B__opacity-70 disabled:B__cursor-not-allowed",onClick:N,disabled:!k,children:"Add"})]})]}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"B__flex B__justify-start B__items-center B__gap-2 B__mt-3 B__cursor-pointer",onClick:()=>{h(e=>({...e,location:!1}))},children:[(null==v?void 0:v.location)?(0,_.jsx)(d.waj,{className:"B__text-lg"}):(0,_.jsx)(d.EMu,{className:"B__fill-[#5959FF] B__text-lg"}),(0,_.jsx)("div",{className:"B__font-[Lato] B__text-base B__font-normal",children:"No, I don’t need it"})]})]})]}),(0,_.jsx)("div",{className:"B__mt-12 B__flex B__justify-end B__items-center B__w-full",children:(0,_.jsx)("button",{className:"B__px-12 B__py-3 B__rounded-lg B__text-sm B__font-bold B__bg-butternut-button B__text-white",onClick:I,children:"Next"})})]})]})};var oh=l(6970);let og=e=>{var t;let{article:l,handleRegenerateTitle:o,goBack:a,handleSubmit:s}=e,{setEditContentFields:n,setShowEditContentModal:c,setEditSectionMetaData:B,updateArticleData:x}=(0,i.useContext)(r.o)||{},[m,p]=(0,i.useState)({}),[u,v]=(0,i.useState)({}),[h,g]=(0,i.useState)({}),[y,f]=(0,i.useState)(0),j=e=>t=>{t.stopPropagation(),p(t=>({...t,[e]:!1}))},k=e=>t=>{t.stopPropagation(),p(t=>({...t,[e]:!0}))},w=e=>async t=>{var _;t.stopPropagation(),l&&h[e]&&await (null==x?void 0:x({["title_suggestions[".concat(e,"].title")]:h[e]},null==l?void 0:null===(_=l._id)||void 0===_?void 0:_.$oid)),p(t=>({...t,[e]:!1}))},N=e=>t=>{g(l=>({...l,[e]:t.target.value}))},P=e=>async t=>{t.stopPropagation(),v(t=>({...t,[e]:!0})),l&&await o(e,l._id.$oid),v(t=>({...t,[e]:!1}))};return(0,_.jsx)("div",{className:"B__max-w-[90%] lg:B__max-w-4xl xl:B__max-w-5xl 2xl:B__max-w-6xl B__mx-auto B__w-full lg:B__px-16 xl:B__px-20 2xl:B__px-24 B__py-12 lg:B__py-14 xl:B__py-16 2xl:B__py-20 B__rounded-3xl global_css lg:B__bg-white lg:B__shadow-[0px_25px_60px_0px_#00000014]",children:(null==l?void 0:l.title_suggestions)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__font-[Lato] B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-bold B__hidden lg:B__block",children:"Select one title "}),null==l?void 0:null===(t=l.title_suggestions)||void 0===t?void 0:t.map((e,t)=>(0,_.jsxs)("div",{className:"B__px-6 B__py-3 B__w-full B__border B__border-[#1313322a] B__rounded-xl B__my-4 B__flex B__flex-col lg:B__flex-row B__gap-3 B__flex-wrap B__justify-between lg:B__items-center B__cursor-pointer ".concat(y===t?"B__border B__border-[#5959FF] B__bg-[#3f1dd90f]":""," ").concat((null==u?void 0:u[t])?"blur":""),onClick:()=>{f(t)},style:{boxShadow:"0px 25px 60px 0px #00000014"},children:[(0,_.jsxs)("div",{className:" lg:B__w-[80%]",children:[(null==m?void 0:m[t])?(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 ",children:[(0,_.jsx)("input",{className:"B__w-full B__px-2 B__py-1.5 B__text-base placeholder:B__text-[#52525B] B__font-medium B__border B__rounded-md focus:B__outline-none focus:B__border-blue-500",name:"title",onChange:N(t),defaultValue:(null==e?void 0:e.title)||""}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2",children:[(0,_.jsx)("button",{className:"B__text-sm B__font-medium",onClick:j(t),children:(0,_.jsx)(d.FU5,{})})," ",(0,_.jsx)("button",{className:"B__bg-butternut-button B__font-medium B__text-sm B__px-3 B__py-1 B__rounded-md B__text-white disabled:B__opacity-80",disabled:!h[t],onClick:w(t),children:"Save"})]})]}):(0,_.jsxs)("span",{className:"B__flex ",children:[(0,_.jsxs)("span",{className:"B__font-medium B__text-base lg:B__text-lg",children:[(0,D.ZP)((null==e?void 0:e.title)||"")," "]}),(0,_.jsx)("span",{className:"B__w-1.5"}),(0,_.jsx)("span",{className:"B__cursor-pointer B__mt-1 B__hidden lg:B__block",onClick:k(t),children:(0,_.jsx)(b.vPQ,{className:"B__text-lg B__text-[#5959FF]"})})]}),(0,_.jsx)("div",{className:"B__mt-1 B__max-w-[80%]",children:(0,_.jsx)("span",{className:"B__text-xs B__font-normal B__font-[Lato] B__pb-2",children:(null==e?void 0:e.seo_explanation)?(0,_.jsxs)(_.Fragment,{children:["Seo explaination: ",null==e?void 0:e.seo_explanation]}):""})})]}),(0,_.jsx)("div",{className:"B__px-3 B__cursor-pointer B__hidden lg:B__block",onClick:P(t),children:(0,_.jsx)(b.Bw1,{className:"B__text-xl B__text-[#5959FF]"})}),(0,_.jsxs)("div",{className:"B__flex lg:B__hidden B__justify-end B__items-center B__gap-2",children:[(0,_.jsx)("span",{className:"B__cursor-pointer B__px-3",onClick:k(t),children:(0,_.jsx)(b.vPQ,{className:"B__text-xl B__text-[#5959FF]"})}),(0,_.jsx)("div",{className:"B__px-3 B__cursor-pointer",onClick:P(t),children:(0,_.jsx)(b.Bw1,{className:"B__text-xl B__text-[#5959FF]"})})]})]},t)),(0,_.jsxs)("div",{className:"B__mt-12 B__flex B__justify-between B__gap-4 B__items-center B__w-full",children:[(0,_.jsx)("button",{className:"B__px-12 B__py-3 B__rounded-lg B__text-sm B__font-bold B__bg-white B__border-[#5959FF] B__border B__text-[#5959FF]",onClick:a,children:"Back"}),(0,_.jsx)("button",{className:"B__px-12 B__py-3 B__rounded-lg B__text-sm B__font-bold B__bg-butternut-button B__text-white",onClick:()=>{var e;s(y,(null==l?void 0:null===(e=l._id)||void 0===e?void 0:e.$oid)||"")},children:"Next"})]})]}):(0,_.jsx)(_.Fragment,{})})},oy=e=>{var t,l;let{article:o,handleRegenerateHeading:a,goBack:s,handleSubmit:n,handleMoveParagraphHeading:B,handleDeleteHeading:x,addNewHeading:m}=e,p=null==o?void 0:null===(t=o.keywords_suggestions)||void 0===t?void 0:t.reduce((e,t)=>(t&&(e+=", "+t),e),""),{setEditContentFields:u,setShowEditContentModal:v,setEditSectionMetaData:h,updateArticleData:g}=(0,i.useContext)(r.o)||{},[y,f]=(0,i.useState)(0),[j,k]=(0,i.useState)({}),[w,N]=(0,i.useState)({}),[P,I]=(0,i.useState)({}),[C,Z]=(0,i.useState)(!1),[T,L]=(0,i.useState)(!1),[S,F]=(0,i.useState)({title:null==o?void 0:o.selected_title,keywords:((null==o?void 0:o.keywords)||"")+p}),[E,A]=(0,i.useState)({title:"",keywords:""}),H=e=>{A(t=>({...t,[e.target.name]:""})),F(t=>({...t,[e.target.name]:e.target.value}))},z=e=>t=>{t.stopPropagation(),k(t=>({...t,[e]:!1}))},U=e=>t=>{t.stopPropagation(),k(t=>({...t,[e]:!0}))},V=e=>async t=>{t.stopPropagation(),o&&P[e]&&await (null==g?void 0:g({["paragraph_suggestions[".concat(e,"].heading")]:P[e]},o._id.$oid)),k(t=>({...t,[e]:!1}))},R=e=>t=>{I(l=>({...l,[e]:t.target.value}))},W=async()=>{o&&await (null==g?void 0:g({selected_title:S.title,keywords:S.keywords},o._id.$oid)),o&&n(o._id.$oid)},K=e=>async t=>{t.stopPropagation(),N(t=>({...t,[e]:!0})),o&&await a(e,o._id.$oid),N(t=>({...t,[e]:!1}))},q=e=>async t=>{t.stopPropagation(),L(!1),o&&await x(e,o._id.$oid),N(t=>({...t,[e]:!1}))},O=async()=>{var e,t;(null==o?void 0:o.paragraph_suggestions)&&(null==o?void 0:null===(e=o.paragraph_suggestions)||void 0===e?void 0:e.length)>=6?L(!0):(Z(!0),await m((null==o?void 0:null===(t=o._id)||void 0===t?void 0:t.$oid)||""),Z(!1))};return(0,_.jsx)(_.Fragment,{children:o&&(0,_.jsxs)("div",{className:"B__max-w-[90%] lg:B__max-w-4xl xl:B__max-w-5xl 2xl:B__max-w-6xl B__mx-auto B__w-full lg:B__px-16 xl:B__px-20 2xl:B__px-24 B__py-12 lg:B__py-14 xl:B__py-16 2xl:B__py-20 B__rounded-3xl global_css lg:B__bg-white lg:B__shadow-[0px_25px_60px_0px_#00000014]",children:[(0,_.jsx)("div",{className:"B__font-[Lato] B__text-xl lg:B__text-2xl xl:B__text-3xl B__font-bold B__hidden lg:B__block",children:"Layout"}),(0,_.jsxs)("div",{className:"lg:B__mt-8",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato]",children:"TITLE"}),(0,_.jsx)("input",{id:"title",name:"title",placeholder:"Title...",className:"B__w-full B__px-6 B__py-4  placeholder:B__text-[#52525B] lg:placeholder:B__text-16 B__max-h-[128px] placeholder:B__text-base B__border B__rounded-2xl focus:B__outline-none focus:B__border-blue-500 B__mt-2",required:!0,defaultValue:null==o?void 0:o.selected_title,onChange:H,style:{boxShadow:"0px 25px 60px 0px #00000014"}}),(null==E?void 0:E.title)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==E?void 0:E.title}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsxs)("div",{className:"B__mt-8",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-between B__items-center B__gap-3",children:[(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato]",children:"SUGGESTED KEYWORDS"}),(0,_.jsx)("div",{className:"B__text-sm B__font-normal B__font-[Lato] B__italic B__hidden lg:B__block",children:"You can edit or add keywords in comma separated format"})]}),(0,_.jsx)("textarea",{id:"keywords",name:"keywords",rows:3,placeholder:"keywords...",className:"B__w-full B__px-6 B__py-4  placeholder:B__text-[#52525B] lg:placeholder:B__text-16 B__max-h-[128px] placeholder:B__text-base B__border B__rounded-2xl focus:B__outline-none focus:B__border-blue-500 B__mt-2",required:!0,defaultValue:((null==o?void 0:o.keywords)||"")+(p||""),onChange:H,style:{boxShadow:"0px 25px 60px 0px #00000014"}}),(0,_.jsx)("div",{className:"B__text-sm B__font-normal B__font-[Lato] B__italic lg:B__hidden B__text-end",children:"You can edit or add keywords in comma separated format"}),(null==E?void 0:E.keywords)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==E?void 0:E.keywords}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato] B__mt-10",children:"PARAGRAPH HEADERS"}),(0,_.jsx)("div",{className:"B__text-base B__font-bold B__font-[Lato] B__mt-2 B__text-[#5959FF] B__cursor-pointer ".concat(T?"":"B__cursor-pointer"),onClick:O,children:"+ Add paragraph header"}),T?(0,_.jsx)("p",{className:"B__text-left B__text-sm B__mt-1 B__text-red-400",children:"You can add upto 6 headings. To add this, delete an existing heading"}):(0,_.jsx)(_.Fragment,{}),C?(0,_.jsx)("div",{className:"B__px-14 B__py-4 B__w-full B__rounded-2xl B__my-4 B__flex B__flex-wrap B__justify-between B__items-center B__bg-[#3f1dd90f]  B__border B__border-[#5959FF] B__text-[#5959FF] B__font-normal B__italic B__text-lg B__font-[Lato]",style:{boxShadow:"0px 25px 60px 0px #00000014"},children:"Generating new heading..."}):(0,_.jsx)(_.Fragment,{}),(null==o?void 0:o.paragraph_suggestions)?(0,_.jsx)(_.Fragment,{children:null==o?void 0:null===(l=o.paragraph_suggestions)||void 0===l?void 0:l.map((e,t)=>{var l;return(0,_.jsxs)("div",{className:"B__px-5 B__py-2 B__w-full B__border B__border-[#1313322a] B__rounded-2xl B__my-4 B__flex B__flex-col lg:B__flex-row B__flex-wrap B__justify-between lg:B__items-center ".concat(y===t?"B__border B__border-[#5959FF]":""," ").concat((null==w?void 0:w[t])?"blur":""),onClick:()=>{f(t)},style:{boxShadow:"0px 25px 60px 0px #00000014"},children:[(0,_.jsxs)("div",{className:"lg:B__w-[70%] B__flex",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__mr-3",children:[0!==t?(0,_.jsx)("div",{className:"B__cursor-pointer",onClick:e=>{e.stopPropagation(),B(t,o._id.$oid,"up")},children:(0,_.jsx)(M.HTv,{className:"B__text-xl B__text-[#5959FF]"})}):(0,_.jsx)("div",{className:"B__w-[20px]"}),t!==((null==o?void 0:null===(l=o.paragraph_suggestions)||void 0===l?void 0:l.length)||0)-1?(0,_.jsx)("div",{className:"B__cursor-pointer",onClick:e=>{e.stopPropagation(),B(t,o._id.$oid,"down")},children:(0,_.jsx)(M.CSs,{className:"B__text-xl B__text-[#5959FF]"})}):(0,_.jsx)("div",{className:"B__w-[20px]"})]}),(0,_.jsxs)("div",{className:"B__w-[85%]",children:[(null==j?void 0:j[t])?(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2 ",children:[(0,_.jsx)("input",{className:"B__w-full B__px-2 B__py-1.5 B__text-base placeholder:B__text-[#52525B] B__font-medium B__border B__rounded-md focus:B__outline-none focus:B__border-blue-500",name:"heading",onChange:R(t),defaultValue:(null==e?void 0:e.heading)||""}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__gap-2",children:[(0,_.jsx)("button",{className:"B__text-sm B__font-medium",onClick:z(t),children:(0,_.jsx)(d.FU5,{})})," ",(0,_.jsx)("button",{className:"B__bg-butternut-button B__font-medium B__text-sm B__px-3 B__py-1 B__rounded-md B__text-white disabled:B__opacity-80",disabled:!P[t],onClick:V(t),children:"Save"})]})]}):(0,_.jsxs)("span",{className:"B__flex",children:[(0,_.jsxs)("span",{className:"B__font-medium B__text-base lg:B__text-lg B__font-[Lato]",children:[(0,D.ZP)((null==e?void 0:e.heading)||"")," "]}),(0,_.jsx)("span",{className:"B__w-1"}),(0,_.jsx)("span",{className:"B__cursor-pointer B__mt-1 B__hidden lg:B__block",onClick:U(t),children:(0,_.jsx)(b.vPQ,{className:"B__text-lg B__text-[#5959FF]"})})]}),(0,_.jsx)("div",{className:"B__mt-1 B__max-w-[90%]",children:(0,_.jsx)("span",{className:"B__text-xs B__font-normal B__font-[Lato] B__pb-2",children:(null==e?void 0:e.seo_keywords)?(0,_.jsxs)(_.Fragment,{children:["Seo keywords: ",null==e?void 0:e.seo_keywords]}):""})})]})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-end B__mt-3 lg:B__mt-0 B__items-center B__gap-3",children:[(0,_.jsx)("span",{className:"B__cursor-pointer B__pl-3 B__pr-2",onClick:U(t),children:(0,_.jsx)(b.vPQ,{className:"B__text-lg B__text-[#5959FF]"})}),(0,_.jsx)("div",{className:"B__pl-2 B__pr-2 B__cursor-pointer",onClick:K(t),children:(0,_.jsx)(b.Bw1,{className:"B__text-xl B__text-[#5959FF]"})}),(0,_.jsx)("div",{className:"B__pr-3 B__cursor-pointer",onClick:q(t),children:(0,_.jsx)(c.qy0,{className:"B__text-2xl B__text-[#ff4820]"})})]})]},t)})}):(0,_.jsx)(_.Fragment,{}),(0,_.jsxs)("div",{className:"B__mt-12 B__flex B__justify-between B__gap-4 B__items-center B__w-full",children:[(0,_.jsx)("button",{className:"B__px-12 B__py-3 B__rounded-lg B__text-sm B__font-bold B__bg-white B__border-[#5959FF] B__border B__text-[#5959FF]",onClick:s,children:"Back"}),(0,_.jsx)("button",{className:"B__px-12 B__py-3 B__rounded-lg B__text-sm B__font-bold B__bg-butternut-button B__text-white",onClick:W,children:"Generate Blog"})]})]})})};var ob=l(28192),of=l.n(ob);let oj=e=>{let{websiteData:t,type:l,websiteId:o,articles:a,pageData:s,slug:d,slug2:c}=e,[B,x]=(0,i.useState)(0),[m,p]=(0,i.useState)(a||[]),[u,v]=(0,i.useState)(c||""),[h,b]=(0,i.useState)(""),[f,j]=(0,i.useState)(!1),[k,w]=(0,i.useState)({}),N=(0,n.useRouter)(),{refetchArticlesData:P}=(0,i.useContext)(r.o)||{},I=(0,i.useRef)(null),C=e=>{window&&!g.EB.includes(window.location.host)?N.push("/".concat(null==s?void 0:s.slug,"/").concat(e)):N.push("/".concat("preview"===l?"generated":"edit"===l?"edit":"live","/").concat(o,"/").concat(null==s?void 0:s.slug,"/").concat(e))},Z=async e=>{var t;b("Generating titles..."),(null==I?void 0:I.current)&&D();let l=null==m?void 0:m.find(e=>""!==u&&(e.slug===u||e._id.$oid===u)),{data:_}=await tm.Z.post("/v2/article-details",{query:{...e,website_id:o,page_id:s.page_id,article_id:null==l?void 0:null===(t=l._id)||void 0===t?void 0:t.$oid}});v(null==_?void 0:_.article_id),await (null==P?void 0:P()),x(2),b("")},T=async(e,t)=>{let{data:l}=await tm.Z.post("/v2/regenerate-suggested-title",{query:{website_id:o,page_id:s.page_id,article_id:t,index:e}});l&&await (null==P?void 0:P())},L=async(e,t)=>{let{data:l}=await tm.Z.post("/v2/regenerate-paragraph-heading",{query:{website_id:o,page_id:s.page_id,article_id:t,index:e}});l&&await (null==P?void 0:P())},S=async e=>{b("Generating Blog..."),j(!0),(null==I?void 0:I.current)&&D();try{let{data:t}=await tm.Z.post("/v2/generate-blog",{query:{website_id:o,page_id:s.page_id,article_id:e}});v(null==t?void 0:t.article_id),await (null==P?void 0:P());let{data:l,error:_}=await (0,oh.CX)(o,s.page_id),i=null==l?void 0:l.find(t=>{var l;return(null==t?void 0:null===(l=t._id)||void 0===l?void 0:l.$oid)===e||(null==t?void 0:t.slug)===e});C((null==i?void 0:i.slug)||(null==i?void 0:i._id.$oid)),b("Finalising Blog data..."),v(""),x(4)}catch(e){b(""),console.log(e)}},D=()=>{if(null==I?void 0:I.current){var e;null==I||null===(e=I.current)||void 0===e||e.scrollIntoView({block:"center"})}},F=async(e,t)=>{b("Generating paragraph headings..."),(null==I?void 0:I.current)&&D();let{data:l}=await tm.Z.post("/v2/generate-paragraph-headings",{query:{website_id:o,page_id:s.page_id,article_id:t,index:e}});v(null==l?void 0:l.article_id),await (null==P?void 0:P()),x(3),b("")},E=async(e,t,l)=>{let _=null==m?void 0:m.find(e=>e._id.$oid===t||e.slug===t);if(null==_?void 0:_.paragraph_suggestions){let i=(0,y.MB)(_.paragraph_suggestions,e,l),{data:a}=await tm.Z.post("/v2/edit-article-data",{query:{website_id:o,page_id:s.page_id,article_id:t},data:{paragraph_suggestions:i}});await (null==P?void 0:P())}},A=async(e,t)=>{let l=null==m?void 0:m.find(e=>e._id.$oid===t||e.slug===t);if(null==l?void 0:l.paragraph_suggestions){var _;let i=null==l?void 0:null===(_=l.paragraph_suggestions)||void 0===_?void 0:_.slice();i.splice(e,1);let{data:a}=await tm.Z.post("/v2/edit-article-data",{query:{website_id:o,page_id:s.page_id,article_id:t},data:{paragraph_suggestions:i}});await (null==P?void 0:P())}},H=async e=>{let t=null==m?void 0:m.find(t=>t._id.$oid===e||t.slug===e);if(null==t?void 0:t.paragraph_suggestions){let{data:t}=await tm.Z.post("/v2/add-paragraph-heading",{query:{website_id:o,page_id:s.page_id,article_id:e}});await (null==P?void 0:P())}},z=async()=>{if(!(null==k?void 0:k.limit_exceeded)){let{data:e}=await tm.Z.post("/v2/create-static-blog",{query:{website_id:o,page_id:s.page_id}});e&&C(null==e?void 0:e.article_id)}},M=()=>{new(of())("#loading_text_all",{strings:["Generating headings...","Generating content...","Picking the right layout for your business...","Optimising it for SEO...","Generating Blog..."],autoStart:!0,delay:150})},U=async()=>{try{let{data:e}=await tm.Z.get("/v2/check-article-limit",{params:{website_id:o}});w(e)}catch(e){}};return(0,i.useEffect)(()=>{f&&M()},[f]),(0,i.useEffect)(()=>{if(U(),a&&p(a),u&&!B){let e=null==a?void 0:a.find(e=>{var t;return(null==e?void 0:null===(t=e._id)||void 0===t?void 0:t.$oid)==u||(null==e?void 0:e.slug)===u});x((null==e?void 0:e.paragraph_suggestions)?3:(null==e?void 0:e.title_suggestions)?2:(null==e?void 0:e.topic)?1:0)}},[a]),(0,_.jsxs)("div",{className:"lg:B__bg-surface",children:[(0,_.jsx)("div",{className:"B__h-1 B__w-full",ref:I}),0===B?(0,_.jsx)(op,{handleGenerateWithAi:()=>{(null==k?void 0:k.limit_exceeded)||x(1)},handleGenerateStatic:z,limitExceeded:null==k?void 0:k.limit_exceeded}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ou,{currentStep:B}),(0,_.jsx)("div",{className:"B__mt-8"}),h||f?(0,_.jsxs)("div",{className:"B__py-28 lg:B__py-36 B__px-5 B__text-center B__text-lg B__font-semibold B__flex B__justify-center B__items-center B__flex-col",children:[(0,_.jsx)("lottie-player",{src:"/animation/lottie-loader.json",background:"transparent",speed:"1",style:{width:"150px",height:"150px",minWidth:"150px"},direction:"1",mode:"normal",autoplay:!0,loop:!0}),f?(0,_.jsxs)("div",{className:"B__p-4 B__px-10 B__font-[Lato] B__text-lg B__text-[#5959FF] B__font-semibold",children:[" ",(0,_.jsx)("p",{id:"loading_text_all"})]}):(0,_.jsx)("span",{className:" B__animate-pulse B__text-primary",children:h})]}):(0,_.jsx)(_.Fragment,{children:1===B?(0,_.jsx)(ov,{handleSubmit:Z,article:null==m?void 0:m.find(e=>""!==u&&(e.slug===u||e._id.$oid===u)),websiteData:t}):2===B?(0,_.jsx)(og,{article:null==m?void 0:m.find(e=>e.slug===u||e._id.$oid===u),handleRegenerateTitle:T,goBack:()=>x(1),handleSubmit:F}):3===B?(0,_.jsx)(oy,{article:null==m?void 0:m.find(e=>e.slug===u||e._id.$oid===u),handleRegenerateHeading:L,goBack:()=>x(2),handleSubmit:S,handleMoveParagraphHeading:E,handleDeleteHeading:A,addNewHeading:H}):(0,_.jsx)(_.Fragment,{})}),(0,_.jsx)("div",{className:"B__pt-8 lg:B__pt-14 xl:B__pt-20"})]})]})},ok=e=>{let{websiteData:t,websiteId:l,type:o,pageData:a,articles:s,slug2:n}=e,r=null==s?void 0:s.find(e=>e._id.$oid===n||e.slug===n),[d,c]=(0,i.useState)(!n&&!(null==s?void 0:s.length));return(0,_.jsx)("div",{children:!d&&(n||(null==s?void 0:s.length))&&(!n||(null==r?void 0:r.article_generated))||"live"===o?(0,_.jsx)(_.Fragment,{children:n?(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(om,{article:r,viewMode:o,pageData:a,allArticles:s})}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(os,{pageData:a,viewMode:o}),(0,_.jsx)(or,{articles:s,viewMode:o,websiteId:l,pageData:a,addArticle:()=>{c(!0)}})]})}):(0,_.jsx)(oj,{websiteData:t,pageData:a,type:o,websiteId:l,articles:s,slug2:n,slug:a.slug})})},ow=e=>{let{show:t,handleClose:l,handleSave:o}=e,a=e=>{e?g(n)&&(o(n,e),x(!1)):u({name:"Please enter page title"})},s={pages:{title:"PAGES",pages:[{title:"Services",type:"Services"},{title:"Clients",type:"Clients"},{title:"Contact Us",type:"Contact Us"},{title:"Gallery",type:"Gallery"},{title:"Testimonials",type:"Testimonials"},{title:"Portfolio",type:"Portfolio"},{title:"FAQs",type:"FAQs"},{title:"About Us",type:"About Us"},{title:"Book an appointment",type:"Book an appointment"},{title:"Team",type:"Team"},{title:"Pricing Page",type:"Pricing Page"},{title:"Blank Page",type:"Blank Page"},{title:"Blog Page",type:"Blog Page"},{title:"Menu",type:"Menu"},{title:"Reviews",type:"Reviews"}]}},[n,c]=(0,i.useState)(""),[B,x]=(0,i.useState)(!1),{websiteData:m}=(0,i.useContext)(r.o)||{},[p,u]=(0,i.useState)({}),[v,h]=(0,i.useState)({}),g=e=>{var t,l;let _=null==m?void 0:null===(t=m.pages)||void 0===t?void 0:t.find(t=>{var l,_,i,o,a;return(null===(l=null===(_=null===(i=t.slug)||void 0===i?void 0:i.trim())||void 0===_?void 0:_.toLocaleLowerCase())||void 0===l?void 0:l.replaceAll(" ","-"))===(null===(o=null===(a=e.trim())||void 0===a?void 0:a.toLocaleLowerCase())||void 0===o?void 0:o.replaceAll(" ","-"))}),i=null==m?void 0:null===(l=m.pages)||void 0===l?void 0:l.reduce((e,t)=>((null==t?void 0:t.page_type)==="blog"&&(e+=1),e),0);return _&&i&&i>0&&"Blog Page"===e?(u(e=>({...e,name:"Please upgrade to pro plan to add multiple blog pages"})),!1):!_||(u(e=>({...e,name:"This page already exists, choose a different name"})),!1)};return(0,_.jsx)(_.Fragment,{children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] md:B__w-[75%] lg:B__max-w-[666px]  2xl:B__max-w-[850px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded-xl B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none",children:[(0,_.jsx)("div",{className:"B__p-5 B__px-9",children:(0,_.jsxs)("div",{className:"B__flex B__items-start B__justify-center B__pb-5 B__border-b B__border-solid B__border-blueGray-200",children:[(0,_.jsx)("h3",{className:"B__text-xl lg:B__text-2xl B__font-bold B__mb-0",children:"Add Page"}),(0,_.jsx)("button",{className:"B__p-1 B__ml-auto B__bg-transparent B__border-0 B__text-black B__float-right B__text-3xl B__leading-none B__font-semibold B__outline-none focus:B__outline-none",onClick:l,children:(0,_.jsx)(d.FU5,{className:"B__text-2xl B__text-gray-600"})})]})}),(0,_.jsx)("div",{className:"B__relative B__flex-auto B__max-h-[70vh] B__overflow-y-auto B__pb-3 B__font-[Lato] custom-scrollbar-thin",children:(0,_.jsx)("div",{className:"B__pb-5 B__text-center ",children:B?(0,_.jsxs)("form",{className:"B__px-9",children:[(0,_.jsx)(_u.Z,{name:"name",handleChange:e=>{u(e=>({...e,name:""})),h({name:e.target.value})},placeholder:"Title of your page",type:"text",value:null==v?void 0:v.name,containerStyle:{marginBottom:"5px"}}),p.name?(0,_.jsx)("p",{className:"B__text-red-400 B__text-sm",children:p.name}):null]}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"B__px-9",children:Object.keys(s).map((e,t)=>(0,_.jsx)("div",{className:"",children:(0,_.jsx)("div",{className:"B__flex B__justify-start B__gap-3 B__flex-wrap B__items-center B__py-4",children:null==s?void 0:s[e].pages.map((e,t)=>(0,_.jsx)("button",{className:"B__px-3 B__py-2 B__rounded-lg B__text-sm B__cursor-pointer B__font-bold ".concat(n===e.type?"B__bg-butternut-button B__text-white":"B__bg-[#5959FF1a] B__text-[#5959FF]"," "),onClick:()=>c(e.type),children:e.title},t))})},t))})})})}),(0,_.jsxs)("div",{className:"B__flex B__justify-end B__items-center B__gap-3 B__mt-3 B__pb-5 B__px-9",children:[(0,_.jsxs)("button",{className:"B__text-[#131332] B__border B__border-[#131332] B__text-base B__font-bold B__px-5 B__py-2 B__rounded-md B__font-[Lato] ",onClick:()=>{x(!1),l()},children:["Close"," "]}),(0,_.jsx)("button",{className:"B__text-white B__bg-butternut-button B__text-base B__font-bold B__px-5 B__py-2 B__rounded-md B__font-[Lato] disabled:B__opacity-75",disabled:!n,onClick:()=>{B?a(v.name):"Blank Page"===n?x(!0):g(n)&&o(n)},children:"Save Changes"})]})]})})}),(0,_.jsx)("div",{className:"B__opacity-40 B__fixed B__inset-0 B__z-[999] B__bg-black"})]}):null})},oN=e=>{var t,l,o,a;let{websiteData:s,pageData:n,type:d,articles:c,slug2:x}=e,m=(0,i$.useRouter)(),[p,u]=(0,i.useState)(!1),[v,h]=(0,i.useState)(0),g=(0,i.useRef)(null),{addPage:y,undoHandler:b,redoHandler:f}=(0,i.useContext)(r.o)||{},j=e=>{u(!0),B.Z.generateWebsite(e).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.length)&&m.push("/generated/".concat(e.data[0]._id.$oid)),u(!1)})},k=e=>{var t,l,_,i;h(e=>e+1),j({org_name:(null==e?void 0:e.org_name)||(null==s?void 0:s.org_name),keywords:(null==e?void 0:e.keywords)||(null==s?void 0:s.keywords),regenerate_data:{count:(null==s?void 0:null===(t=s.regenerate_data)||void 0===t?void 0:t.count)&&!isNaN(parseInt(null==s?void 0:null===(l=s.regenerate_data)||void 0===l?void 0:l.count))?parseInt((null==s?void 0:null===(_=s.regenerate_data)||void 0===_?void 0:_.count)||"0")+1:1,reference_website:null==s?void 0:null===(i=s._id)||void 0===i?void 0:i.$oid}})},{height:w}=lD(g),[P,I]=(0,i.useState)(!1),C=()=>{I(!0)};return(0,_.jsxs)("div",{className:"B__w-full B__h-full B__relative B__bg-surface",children:[p?(0,_.jsx)(_.Fragment,{}):(0,_.jsxs)("main",{className:"",style:{margin:"0"},children:[(0,_.jsx)(ow,{show:P,handleClose:()=>I(!1),handleSave:async(e,t)=>{I(!1),null==y||y(e,t)}}),("preview"===d||"edit"===d)&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Z,{websiteId:s._id.$oid,type:d,onRegenerateWebsite:k,regenerateCount:(null==s?void 0:null===(t=s.regenerate_data)||void 0===t?void 0:t.count)||v,addPageHandler:C,redoHandler:f,undoHandler:b})}),(0,_.jsxs)("div",{className:"".concat(L()["site-wrapper"]," B__bg-surface"),style:{"--navbar-height":w},children:[(0,_.jsx)("div",{ref:g,children:oP(d,n,s,C)}),(null==n?void 0:n.page_type)=="blog"?(0,_.jsx)(ok,{websiteData:s,type:d,websiteId:s._id.$oid,pageData:n,articles:c,slug2:x}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(_.Fragment,{children:[(null===(l=s.layout.blockProps)||void 0===l?void 0:null===(o=l.sections)||void 0===o?void 0:o.active)?(0,_.jsx)(iG,{sections:n.sections,websiteId:s._id.$oid,type:d}):(0,_.jsx)(_.Fragment,{}),(null==s?void 0:null===(a=s.global_sections)||void 0===a?void 0:a.length)?(0,_.jsx)(iG,{sections:null==s?void 0:s.global_sections,websiteId:s._id.$oid,type:d,slot:"global_sections"}):(0,_.jsx)(_.Fragment,{})]}),("preview"===d||"edit"===d)&&s.pages[0].page_id===n.page_id&&!s.generatedHomeSections&&(0,_.jsx)(oa,{})]})]}),oI(d,n,s)]}),(0,_.jsx)(N.Z,{isLoading:p})]})},oP=(e,t,l,i)=>{var o;let a=null==l?void 0:null===(o=l.settings)||void 0===o?void 0:o.navbar_version,s=(null==l?void 0:l.pages[0].page_id)===t.page_id;if(s)switch(a){case"navbar_v1":default:return(0,_.jsx)(i3,{viewMode:e,page:t,websiteData:l,addPageHandler:i});case"navbar_v2":return(0,_.jsx)(i4,{viewMode:e,page:t,websiteData:l,addPageHandler:i});case"navbar_v3":return(0,_.jsx)(i6,{viewMode:e,page:t,websiteData:l,addPageHandler:i});case"navbar_v4":return(0,_.jsx)(i9,{viewMode:e,page:t,websiteData:l,addPageHandler:i});case"navbar_v5":return(0,_.jsx)(i8,{viewMode:e,page:t,websiteData:l,addPageHandler:i})}else switch(a){case"navbar_v1":default:return(0,_.jsx)(iX,{viewMode:e,page:t,websiteData:l,addPageHandler:i});case"navbar_v2":return(0,_.jsx)(i0,{viewMode:e,page:t,websiteData:l,addPageHandler:i});case"navbar_v3":return(0,_.jsx)(i1,{viewMode:e,page:t,websiteData:l,addPageHandler:i});case"navbar_v4":return(0,_.jsx)(i2,{viewMode:e,page:t,websiteData:l,addPageHandler:i});case"navbar_v5":return(0,_.jsx)(i5,{viewMode:e,page:t,websiteData:l,addPageHandler:i})}},oI=(e,t,l)=>{var i;let o=null==l?void 0:null===(i=l.settings)||void 0===i?void 0:i.footer_version;switch(o){case"footer_v1":default:return(0,_.jsx)(i7,{viewMode:e,page:t,websiteData:l});case"footer_v2":return(0,_.jsx)(oe,{viewMode:e,page:t,websiteData:l});case"footer_v3":return(0,_.jsx)(ot,{viewMode:e,page:t,websiteData:l});case"footer_v4":return(0,_.jsx)(ol,{viewMode:e,page:t,websiteData:l});case"footer_v5":return(0,_.jsx)(o_,{viewMode:e,page:t,websiteData:l});case"footer_v6":return(0,_.jsx)(oi,{viewMode:e,page:t,websiteData:l});case"footer_v7":return(0,_.jsx)(oo,{viewMode:e,page:t,websiteData:l})}},oC=(e,t)=>Object.entries(e).forEach(e=>{let[l,_]=e,i="".concat("--").concat(l);Array.isArray(_)||t.style.setProperty(i,_)});var oZ=l(19692);let oT=e=>{let{blockProps:t,id:l}=e,{html:o="",css:a="",javascript:s=""}=t,[n,r]=(0,i.useState)(1);return(0,i.useEffect)(()=>{if(document){let e=document.getElementById("custom-script-".concat(l,"-").concat(n-1));e&&e.remove()}},[n]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{id:"user-content",dangerouslySetInnerHTML:{__html:"<style>".concat(a,"</style>").concat(o)}}),(0,_.jsx)(tB(),{id:"custom-script-".concat(l,"-").concat(n),strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:s||""}},n)]})},oL=e=>{let{website:t}=e,[l,o]=(0,i.useState)(!1);return(0,_.jsxs)(_.Fragment,{children:[(0,y.rp)(t)?(0,_.jsx)(_.Fragment,{children:!l&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"B__justify-center B__items-center B__flex B__overflow-x-hidden B__overflow-y-auto B__fixed B__inset-0 B__z-[9999] B__outline-none focus:B__outline-none",children:(0,_.jsx)("div",{className:"B__relative B__my-6 B__mx-auto B__w-[85%] lg:B__min-w-[400px] B__max-w-[85%] md:B__max-w-[90%] lg:B__max-w-[650px] xl:B__max-w-[850px]",children:(0,_.jsxs)("div",{className:"B__border-0 B__rounded-3xl B__shadow-lg B__relative B__flex B__flex-col B__w-full B__bg-white B__outline-none focus:B__outline-none ",children:[(0,_.jsx)("div",{className:"B__flex B__items-start B__justify-center B__p-4 B__px-7 B__border-0 B__border-solid B__border-blueGray-200 B__pt-12",children:(0,_.jsx)("h3",{className:"B__text-lg md:B__text-2xl lg:B__text-3xl B__font-black B__mb-0 B__text-[#5959FF] B__font-[Lato]",children:"Upgrade to Butternut AI Pro"})}),(0,_.jsx)("div",{className:"B__relative B__flex-auto B__max-h-[80vh] B__overflow-y-auto",children:(0,_.jsxs)("div",{className:"B__p-3 B__flex B__flex-col B__items-center",children:[(0,_.jsx)("div",{className:"B__text-center B__font-normal B__text-[#5F6774] B__text-lg lg:B__text-xl B__mx-auto B__max-w-[75%]",children:"Your free trial has ended. Unlock the full potential of your website with our Pro features!."}),(0,_.jsxs)("div",{className:"B__mx-auto B__max-w-[75%] B__my-7 lg:B__my-9 B__flex B__w-full B__flex-col lg:B__flex-row B__justify-between B__items-center B__gap-4 B__font-semibold",children:[(0,_.jsxs)("div",{className:"B__flex B__justify-center B__flex-col B__gap-5",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-start B__gap-5",children:[(0,_.jsx)("img",{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/disabled-popup-img1.png",className:"B__max-w-6 B__max-h-6"}),(0,_.jsx)("span",{className:"B__text-[#1b1e28] B__font-[Lato] B__text-base lg:B__text-lg",children:"Al-powered edits and blogs"})]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-start B__gap-5",children:[(0,_.jsx)("img",{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/disabled-popup-img2.png",className:"B__max-w-6 B__max-h-6"}),(0,_.jsx)("span",{className:"B__text-[#1b1e28] B__font-[Lato] B__text-base lg:B__text-lg",children:"Advanced customization"})]})]}),(0,_.jsxs)("div",{className:"B__flex B__justify-center B__flex-col B__gap-5",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-start B__gap-5",children:[(0,_.jsx)("img",{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/disabled-popup-img3.png",className:"B__max-w-6 B__max-h-6"}),(0,_.jsx)("span",{className:"B__text-[#1b1e28] B__font-[Lato] B__text-base lg:B__text-lg",children:"Unlimited access"})]}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-start B__gap-5",children:[(0,_.jsx)("img",{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/disabled-popup-img4.png",className:"B__max-w-6 B__max-h-6"}),(0,_.jsx)("span",{className:"B__text-[#1b1e28] B__font-[Lato] B__text-base lg:B__text-lg",children:"Priority support"})]})]})]}),(0,_.jsxs)("div",{className:"B__my-5 B__w-[90%] B__rounded-lg B__py-5 lg:B__py-6 B__px-10 lg:B__px-14",style:{background:"linear-gradient(180deg, #FFF3FE 35.5%, #F7F0FF 76%)"},children:[(0,_.jsx)("div",{className:"B__text-[#000000]  B__font-normal B__text-center B__text-base",children:'"Butternut Al Pro transformed my presence. It\'s like having a professional web designer on demand!"'}),(0,_.jsx)("div",{className:" B__font-semibold B__text-[#131620] B__text-base lg:B__text-lg B__text-center B__mt-3",children:"- Alex M., Entrepreneur"})]}),(0,_.jsx)("button",{className:"B__bg-butternut-button B__text-white B__px-6 md:B__px-14 lg:B__px-20 xl:B__px-28  B__py-2 B__rounded-md B__mx-auto B__font-bold B__text-lg B__font-[Lato] B__mt-4 B__w-[90%]",onClick:()=>{o(!0)},style:{background:"linear-gradient(180deg, #A028FF 10.19%, #0F51FC 132.03%)"},children:"Upgrade to Pro"}),(0,_.jsxs)("div",{className:"B__flex B__w-full B__justify-center B__items-center B__text-[#232A38] B__font-semibold B__font-[Lato] B__text-base B__mx-auto B__max-w-[90%] B__pt-8 B__pb-8",children:[(0,_.jsx)("span",{className:"B__cursor-pointer",children:"Learn More"}),(0,_.jsx)("div",{className:"B__border-r B__border-[#232A38] B__h-[14px] B__mx-3"}),(0,_.jsx)("span",{className:"B__cursor-pointer",onClick:()=>{window&&window.open("/contact","_blank")},children:"Contact Support"})]})]})})]})})}),(0,_.jsx)("div",{className:"B__opacity-60 B__fixed B__inset-0 B__z-[999] B__bg-black"})]})}):null,(0,_.jsx)(s.Z,{show:l,handleClose:()=>o(!1),mode:"login",websiteId:t._id.$oid})]})},oS=e=>{let{custom_scripts:t}=e;return(0,i.useEffect)(()=>{t.forEach(e=>{let{src:t,type:l,placement:_}=e,i=document.createElement("script");return t&&(i.src=t,i.async="async"===l,i.defer="defer"===l),"head"===_?document.head.appendChild(i):document.body.appendChild(i),()=>{"head"===_?document.head.removeChild(i):document.body.removeChild(i)}})},[t]),null},oD=e=>{let{custom_scripts:t}=e;return(0,i.useEffect)(()=>{let e=[];return t.forEach(t=>{let{code:l,placement:_}=t;if(l){let t=document.createElement("div");t.innerHTML=l;let i=Array.from(t.querySelectorAll("script"));i.forEach(t=>{let l=document.createElement("script");t.src?(l.src=t.src,l.async=t.async,l.defer=t.defer):l.innerHTML=t.innerHTML,"head"===_?document.head.appendChild(l):document.body.appendChild(l),e.push(l)})}}),()=>{e.forEach(e=>e.remove())}},[t]),null},oF=e=>{let{custom_scripts:t}=e;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(oS,{custom_scripts:(null==t?void 0:t.filter(e=>e.src))||[]}),(0,_.jsx)(oD,{custom_scripts:(null==t?void 0:t.filter(e=>e.code))||[]})]})},oE=e=>{var t,l,o,s,n,d,c,B,x,m,p,u,v,h,b,f,j,k,w,N,P,I,C,Z,T,L,S,D,F,E,A,H,z,M,U,V,R,W,K,q,O,G,$,Y,J,Q;let{data:X,websiteId:ee,slug:et,type:el,articles:e_,slug2:ei,fullUrl:eo}=e,[ea,es]=(0,i.useState)(X),[en,er]=(0,i.useState)(e_||[]),[ed,ec]=(0,i.useState)(et?X.pages.find(e=>e.slug===et)||null:X.pages[0]),eB=(0,i.useRef)(null),[ex,em]=(0,i.useState)(!1),ep=(0,i.useRef)(null),[eu,ev]=(0,i.useState)({});(0,i.useEffect)(()=>{ea&&(ec(et?ea.pages.find(e=>e.slug===et)||null:ea.pages[0]),(null==ea?void 0:ea.generatedPages)&&(null==ea?void 0:ea.generatedHiddenPages)||ex||"preview"!==el&&"edit"!==el?eb():ey())},[JSON.stringify(ea),et,ei]),(0,i.useEffect)(()=>{e_&&er(e_||[])},[et,ei]),(0,i.useEffect)(()=>{var e;ee&&ea&&ee!==(null==ea?void 0:null===(e=ea._id)||void 0===e?void 0:e.$oid)&&(eh(),eb())},[ee]),(0,i.useEffect)(()=>{if(null==ep?void 0:ep.current){var e;oC({...g.jF,...(null==ea?void 0:ea.styles)?{...ea.styles,...(0,y.tS)((null==ea?void 0:null===(e=ea.theme)||void 0===e?void 0:e.theme_color)||"#000000")}:{},...eu},ep.current)}},[ep,null==ea?void 0:ea.styles,eu]);let eh=async()=>{let{data:e,error:t}=await (0,oh.pV)(ee);e&&es(e)},eg=async()=>{if(null==ed?void 0:ed.page_id){let{data:e,error:t}=await (0,oh.CX)(ee,null==ed?void 0:ed.page_id);e&&er(e)}},ey=()=>{null===eB.current&&(eB.current=setInterval(()=>{eh()},15e3))},eb=()=>{eB.current&&(clearInterval(eB.current),eB.current=null)},ef=null==ea?void 0:null===(t=ea.pages)||void 0===t?void 0:t.reduce((e,t)=>{var l;return null==t||null===(l=t.sections)||void 0===l||l.map(t=>{e||"googleanalytics_v1"!==t.type||(e=t)}),e},null),ej=(null==ea?void 0:null===(l=ea.layout)||void 0===l?void 0:null===(o=l.blockProps)||void 0===o?void 0:null===(s=o.favicon)||void 0===s?void 0:s.active)&&(null==ea?void 0:null===(n=ea.layout)||void 0===n?void 0:null===(d=n.blockProps)||void 0===d?void 0:null===(c=d.favicon)||void 0===c?void 0:c.url)?null==ea?void 0:null===(B=ea.layout)||void 0===B?void 0:null===(x=B.blockProps)||void 0===x?void 0:null===(m=x.favicon)||void 0===m?void 0:m.url:(null==ea?void 0:null===(p=ea.layout)||void 0===p?void 0:null===(u=p.blockProps)||void 0===u?void 0:null===(v=u.logo)||void 0===v?void 0:v.active)&&(null==ea?void 0:null===(h=ea.layout)||void 0===h?void 0:null===(b=h.blockProps)||void 0===b?void 0:null===(f=b.logo)||void 0===f?void 0:f.url)?null==ea?void 0:null===(j=ea.layout)||void 0===j?void 0:null===(k=j.blockProps)||void 0===k?void 0:null===(w=k.logo)||void 0===w?void 0:w.url:"https://butternut.ai/favicon.png",ek=(()=>{var e,t,l,_,i,o,a,s,n,r;let d={title:"",description:"",favicon_url:"",metaImage:""};if((null==ed?void 0:ed.page_type)==="blog"&&ei){let i=null==e_?void 0:e_.find(e=>e._id.$oid===ei||e.slug===ei);d.title=(null==i?void 0:null===(e=i.meta)||void 0===e?void 0:e.title)||(null==i?void 0:i.title)||"",d.description=(null==i?void 0:null===(t=i.meta)||void 0===t?void 0:t.description)||(null==i?void 0:i.keywords)||"",d.favicon_url=(null==i?void 0:null===(l=i.blockProps)||void 0===l?void 0:null===(_=l.card)||void 0===_?void 0:_.img)||ej}else d.title=(null==ed?void 0:null===(i=ed.meta)||void 0===i?void 0:i.title)||ea.org_name||"",d.description=(null==ed?void 0:null===(o=ed.meta)||void 0===o?void 0:o.description)||(null==ea?void 0:ea.keywords)||"",d.favicon_url=ej,d.metaImage=(null==ed?void 0:null===(a=ed.meta)||void 0===a?void 0:a.metaImage)||(null==ea?void 0:null===(s=ea.layout)||void 0===s?void 0:null===(n=s.blockProps)||void 0===n?void 0:null===(r=n.metaImage)||void 0===r?void 0:r.url)||"";return d})();return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(a(),{children:[(0,_.jsx)("link",{rel:"icon",href:ek.favicon_url}),(0,_.jsx)("link",{rel:"canonical",href:eo}),(0,_.jsx)("link",{rel:"apple-touch-icon",href:ek.favicon_url}),(0,_.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,_.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,_.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Libre+Bodoni:ital,wght@0,400..700;1,400..700&family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap",rel:"stylesheet"}),(0,_.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Alegreya:ital,wght@0,400..900;1,400..900&family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Assistant:wght@200..800&family=Bebas+Neue&family=Cabin:ital,wght@0,400..700;1,400..700&family=Cinzel:wght@400..900&family=Dosis:wght@200..800&family=Exo:ital,wght@0,100..900;1,100..900&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Karla:ital,wght@0,200..800;1,200..800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Oswald:wght@200..700&family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Rokkitt:ital,wght@0,100..900;1,100..900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap",rel:"stylesheet"}),(0,_.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap",rel:"stylesheet"}),(0,_.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Dancing+Script:wght@400..700&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Great+Vibes&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Oswald:wght@200..700&family=Pacifico&family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap",rel:"stylesheet"}),(0,_.jsx)("title",{children:ea.org_name}),(0,_.jsx)("meta",{name:"keywords",content:null==ea?void 0:ea.keywords}),(0,_.jsx)("meta",{name:"description",content:ek.description}),(0,_.jsx)("meta",{property:"og:title",content:ek.title}),(0,_.jsx)("meta",{property:"og:description",content:ek.description}),(0,_.jsx)("meta",{property:"og:image",content:ek.metaImage||ek.favicon_url}),(0,_.jsx)("meta",{property:"og:type",content:"website"}),(0,_.jsx)("meta",{property:"og:site_name",content:ea.org_name}),(0,_.jsx)("meta",{property:"og:image:secure_url",content:ek.metaImage||ek.favicon_url}),(0,_.jsx)("meta",{property:"og:image:type",content:"image/png"}),(0,_.jsx)("meta",{property:"og:image:width",content:"300"}),(0,_.jsx)("meta",{property:"og:image:height",content:"300"}),(0,_.jsx)("meta",{property:"twitter:title",content:ek.title}),(0,_.jsx)("meta",{property:"twitter:description",content:ek.description}),(0,_.jsx)("meta",{property:"twitter:image",content:ek.metaImage||ek.favicon_url}),(0,_.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,_.jsx)("meta",{property:"og:url",content:eo}),(null==ea?void 0:null===(N=ea.seo_config)||void 0===N?void 0:null===(P=N[0])||void 0===P?void 0:P.google_verification_id)?(0,_.jsx)("meta",{name:"google-site-verification",content:null==ea?void 0:null===(I=ea.seo_config)||void 0===I?void 0:null===(C=I[0])||void 0===C?void 0:C.google_verification_id}):(0,_.jsx)(_.Fragment,{})]}),(null==ea?void 0:ea.custom_scripts)?(0,_.jsx)(oF,{custom_scripts:null==ea?void 0:ea.custom_scripts}):(0,_.jsx)(_.Fragment,{}),(null==ea?void 0:null===(Z=ea.seo_config)||void 0===Z?void 0:null===(T=Z[0])||void 0===T?void 0:T.google_analytics)||ef&&(null==ef?void 0:null===(L=ef.blockProps)||void 0===L?void 0:L.googleId)?(0,_.jsx)(oZ.GoogleAnalytics,{gaId:(null==ea?void 0:null===(S=ea.seo_config)||void 0===S?void 0:null===(D=S[0])||void 0===D?void 0:D.google_analytics)||(null==ef?void 0:null===(F=ef.blockProps)||void 0===F?void 0:F.googleId)}):null,(null==ea?void 0:null===(E=ea.seo_config)||void 0===E?void 0:null===(A=E[0])||void 0===A?void 0:A.google_tag_manager_id)?(0,_.jsx)(oZ.GoogleTagManager,{gtmId:null==ea?void 0:null===(H=ea.seo_config)||void 0===H?void 0:null===(z=H[0])||void 0===z?void 0:z.google_tag_manager_id}):null,(0,_.jsxs)("div",{ref:ep,className:"".concat((null==ea?void 0:null===(M=ea.styles)||void 0===M?void 0:M["container-width"])==="small"?"max-width-variable-small":(null==ea?void 0:null===(U=ea.styles)||void 0===U?void 0:U["container-width"])==="large"?"max-width-variable-large":""),children:[(0,_.jsx)("div",{dangerouslySetInnerHTML:{__html:"".concat((null==ea?void 0:ea.styles["fontSize-base"])?"<style>html { font-size: ".concat((null==eu?void 0:eu["fontSize-base"])||(null==ea?void 0:ea.styles["fontSize-base"]),";}</style>"):"")}}),(0,_.jsx)(r.R,{websiteData:ea,setWebsiteData:es,pageId:null==ed?void 0:ed.page_id,refetchWebsiteData:eh,refetchArticlesData:eg,setAddingPage:em,type:el,articles:en,styleChanges:eu,setStyleChanges:ev,children:(null==ea?void 0:null===(V=ea.layout)||void 0===V?void 0:V.type)==="layout_v1"&&ed?(0,_.jsx)(oN,{websiteData:ea,pageData:ed,type:(0,y.rp)(ea)?"live":el,articles:en,slug2:ei}):(0,_.jsx)(_.Fragment,{})}),(null==ea?void 0:null===(R=ea.layout)||void 0===R?void 0:null===(W=R.blockProps)||void 0===W?void 0:null===(K=W.whatsapp_button)||void 0===K?void 0:K.active)?(0,_.jsx)(oT,{id:Date.now().toString(),blockProps:{html:g.pC.html,css:g.pC.css,javascript:null===(q=g.pC.javascript)||void 0===q?void 0:q.replaceAll("app_constant_wpnumber",null==ea?void 0:null===(O=ea.layout)||void 0===O?void 0:null===(G=O.blockProps)||void 0===G?void 0:null===($=G.whatsapp_button)||void 0===$?void 0:$.value).replaceAll("app_constant_wpmessage",(null==ea?void 0:null===(Y=ea.layout)||void 0===Y?void 0:null===(J=Y.blockProps)||void 0===J?void 0:null===(Q=J.whatsapp_button)||void 0===Q?void 0:Q.message)||"Hi")}}):(0,_.jsx)(_.Fragment,{}),ea&&"live"!==el&&(0,_.jsx)(oL,{website:ea})]})]})};var oA=oE},88283:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return S},default:function(){return D}});var _=l(85893),i=l(9008),o=l.n(i),a=l(25675),s=l.n(a),n=l(67294);l(37442),l(4298),l(41664),l(14585),l(14852),l(47355),l(83277),l(46442),l(16310),l(11163),l(39332),l(28192),l(72028),l(4202),l(59005);var r=l(3817),d=l(14558),c=l(65654);let B=()=>(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"B__container",children:(0,_.jsxs)("div",{className:"lg:B__py-32 B__pt-[85px] B__pb-75 B__flex B__flex-col B__text-center B__justify-center B__items-center",children:[(0,_.jsxs)("h1",{className:"lg:B__text-section-title title mobile:B__text-4xl B__text-32 lg:B__mb-6 B__mb-12 B__text-primary sm:B__text-3xl B__text-2xl B__font-Young-Serif B__leading-snug B__title-underline",children:["Our Customers Don","’","t",(0,_.jsx)("br",{}),"Need Anyone Else"]}),(0,_.jsx)("p",{className:"lg:B__text-para-text mobile:B__max-w-[700px] B__max-w-[270px] B__text-base B__mb-[38px] B__text-primary B__text-opacity-80",children:"No need to hire expensive designers, copywriters, web developers, or SEO agencies. Experience hassle-free website building."}),(0,_.jsx)(s(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/servicesImg.gif",alt:"Example Image",className:"lg:B__max-w-[890px] mobile:B__inline-block B__hidden B__max-w-full",width:"890",height:"470"}),(0,_.jsx)(s(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/serviceImg-mobile.gif",alt:"Example Image",className:"lg:B__max-w-[890px] B__inline-block mobile:B__hidden B__max-w-full",width:"890",height:"470"})]})})}),x=()=>{let[e,t]=(0,n.useState)([{title:"Very powerful AI",review:"Haven't seen such a brilliant use case of AI. Previously, I'd hire Webflow developers and scramble for copy, imagery, and SEO assistance. Butternut AI has been a game-changer.",name:"Ritu Raj",designation:"CEO, Rejoy Health (YC W21)",image:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/raj.png"},{title:"Saved me $40k",review:"I was quoted $40,000 and 3 months by a top agency in NY. My wife told me about this platform and I was live within a few minutes of discovering Butternut AI. It's been an incredible money and time saver!",name:"John Weiner",designation:"Business Owner",image:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/john.png"},{title:"Absolutely INSANE",review:"Is this for real? I have been trying to build my dad’s new website for his trucking company but it has been an uphill task. Butternut.ai gave me the perfect website in 5 mins. I just can’t stop telling everyone about it.",name:"Amanda Joe",designation:"Management Consultant",image:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/amanda.png"}]);return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"B__bg-[#FCFCFC] lg:B__pt-32 lg:B__pb-[103px] B__pt-90 B__pb-24",children:(0,_.jsxs)("div",{className:"B__container B__px-6",children:[(0,_.jsx)("div",{className:"B__flex B__flex-col B__text-center B__justify-center B__items-center",children:(0,_.jsx)("h1",{className:"lg:B__text-section-title lg:B__mb-20 B__mb-12 title mobile:B__text-4xl B__text-primary mobile:B__max-w-full B__max-w-[327px] B__mx-auto sm:B__text-3xl B__text-32 B__font-Young-Serif B__leading-snug B__title-underline",children:"Our happy clients say about us"})}),(0,_.jsxs)("div",{className:"B__grid B__grid-cols-1 md:B__grid-cols-2 lg:B__grid-cols-3 B__relative B__max-w-[1228px] lg:B__w-full  B__w-full lg:B__gap-10 B__gap-4 B__mx-auto",children:[e.map((e,t)=>(0,_.jsx)("div",{className:"review-card B__z-10 B__relative B__max-w-full B__bg-white mobile:B__py-[32px] mobile:B__px-[38px] B__py-6 B__px-7 shadow-reviewshadow  B__rounded-2xl B__overflow-hidden B__flex B__space-y-2",children:(0,_.jsxs)("div",{className:"review-body B__flex B__flex-col",children:[(0,_.jsx)("div",{className:"review-rating lg:B__text-2xl B__text-xl B__text-primary B__font-bold B__flex B__gap-1",children:e.title}),(0,_.jsx)("div",{className:"reviewborder"}),(0,_.jsx)("p",{className:"review-text lg:B__text-base B__text-base B__text-gray-600 B__leading-28 B__mb-6 lg:B__mb-10",children:e.review}),(0,_.jsxs)("div",{className:"B__flex B__items-center B__mt-auto B__gap-5",children:[(0,_.jsx)("div",{className:"B__w-[70px] B__min-w-[70px] B__rounded-full",children:(0,_.jsx)(s(),{src:e.image,alt:"Avatar",width:"70",height:"70",className:"B__w-full B__h-[70px] B__rounded-full"})}),(0,_.jsxs)("div",{className:"B__w",children:[(0,_.jsx)("div",{className:"review-author B__font-bold B__text-16",children:e.name}),(0,_.jsx)("p",{className:"B__text-[#52525B] B__text-[14px]",children:e.designation})]})]})]},t)},t)),(0,_.jsxs)("div",{className:"B__opacity-40",children:[(0,_.jsx)("div",{className:"review-boxoneshadow"}),(0,_.jsx)("div",{className:"review-boxtwoshadow"}),(0,_.jsx)("div",{className:"review-boxthreeshadow"})]})]})]})})})},m=()=>(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"overflow-hidden",children:(0,_.jsxs)("div",{className:"B__grid lg:B__py-32 md:B__py-24 B__max-w-[1049px] B__py-12 xl:B__w-2/3 lg:B__w-full B__mx-auto B__grid-cols-12 B__gap-4",children:[(0,_.jsx)("div",{className:"B__col-span-12 mobile:B__pt-10 B__pt-90 md:B__col-span-6 mobile:B__px-0 B__px-6",children:(0,_.jsxs)("div",{className:"mobile:B__py-4 B__py-0  B__px-4",children:[(0,_.jsxs)("h1",{className:"lg:B__text-section-title title md:B__text-4xl lg:B__mb-4 B__mb-4 B__text-primary sm:B__text-3xl B__text-32 B__font-Young-Serif B__leading-snug B__title-underline B__text-center lg:B__text-left",children:["Fast and easy",(0,_.jsx)("br",{})," to use"]}),(0,_.jsx)("p",{className:"lg:B__text-20 B__text-gray-600 B__mb-[30px] B__text-18 mobile:B__leading-auto B__leading-28 mobile:B__max-w-[400px] B__max-w-full B__text-center lg:B__text-left B__mx-auto lg:B__mx-0",children:"Butternut's intuitive platform allows anyone to become a website developer. Create unique, engaging websites in three simple steps"}),(0,_.jsxs)("a",{href:"#homeLayout",className:"B__flex  B__bg-gradient-to-b B__shadow-lg B__from-[#A028FF] B__to-[#0F51FC]  lg:B__mt-10 B__mt-6 B__text-white B__max-w-max mobile:B__px-7 B__px-6 B__py-4 mobile:B__leading-auto B__leading-28 mobile:B__text-2xl B__text-18 B__rounded-[16px]  B__font-bold mobile:B__max-w-auto B__mx-auto lg:B__mx-0",children:[(0,_.jsx)(s(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/starIcon.png",alt:"Picture of the author",width:28,height:29,className:"B__mr-4"}),"Try for Free"]})]})}),(0,_.jsx)("div",{className:"B__col-span-12 B__flex mobile:B__justify-center B__justify-start md:B__col-span-6",children:(0,_.jsxs)("div",{className:"mobile:B__p-8 B__relative B__flex B__justify-center B__w-full",children:[(0,_.jsx)("div",{className:"B__absolute B__z-0 B__left-0 mobile:B__top-0 B__top-[5%]  B__h-full B__w-full",children:(0,_.jsx)(s(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/usetousebg.svg",alt:"Example Image",className:"B__h-full B__w-full mobile:B__scale-100 B__scale-x-110 custom-shadow",width:"20",height:"20"})}),(0,_.jsx)("div",{className:"B__bg-white B__rounded-3xl B__border-[#f2f2f2] B__border B__z-10 mobile:B__px-4 mobile:B__py-5 B__px-8 B__py-[52px] B__border-opacity-10 B__flex B__items-center lg:B__px-[45px] lg:B__min-h-[444px] lg:B__max-h-[444px] lg:B__py-[60px] lg:B__max-w-[408px] lg:B__min-w-[408px] mobile:B__max-w-[285px] B__w-full B__max-w-full mobile:B__mt-0 B__mt-12",children:(0,_.jsxs)("ol",{className:"B__list-decimal B__flex B__flex-col lg:B__gap-14 B__gap-10 B__pl-0 B__mb-0",children:[(0,_.jsxs)("li",{className:"B__mb-2 B__flex B__items-center",children:[(0,_.jsx)("div",{className:"B__bg-[#4742FE] B__h-6 B__min-w-[2rem] B__min-h-[2rem] B__w-6  B__rounded-full B__flex B__items-center B__justify-center B__text-white B__font-semibold B__mr-[22px] B__text-[16px]",children:"1"}),(0,_.jsx)("span",{className:"B__text-butternut-primary lg:B__text-[20px] B__leading-snug B__text-base",children:"Enter the name of your business"})]}),(0,_.jsxs)("li",{className:"B__mb-2 B__flex B__items-center",children:[(0,_.jsx)("div",{className:"B__bg-[#4742FE] B__h-6 B__min-w-[2rem] B__min-h-[2rem] B__w-6  B__rounded-full B__flex B__items-center B__justify-center B__text-white B__font-semibold B__mr-[22px] B__text-[16px]",children:"2"}),(0,_.jsx)("span",{className:"B__text-butternut-primary lg:B__text-[20px]  B__leading-snug B__text-base",children:"Submit keywords describing your business"})]}),(0,_.jsxs)("li",{className:"B__flex B__items-center",children:[(0,_.jsx)("div",{className:"B__bg-[#4742FE] B__h-6 B__min-w-[2rem] B__min-h-[2rem] B__w-6 B__rounded-full B__flex B__items-center B__justify-center B__text-white B__font-semibold B__mr-[22px] B__text-[16px]",children:"3"}),(0,_.jsx)("span",{className:"B__text-butternut-primary lg:B__text-[20px] B__leading-snug B__text-base",children:"Click generate to get your website ready in seconds!"})]})]})})]})})]})})});var p=l(47463),u=l(61319),v=l(48842),h=l(22920);let g=()=>{let[e,t]=(0,n.useState)(!1),[l,i]=(0,n.useState)({name:"",email:"",message:""}),[o,a]=(0,n.useState)({name:"",email:"",message:""}),r=e=>{var t;(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.name)&&(a(t=>({...t,[e.target.name]:""})),i(t=>({...t,[e.target.name]:e.target.value})))},[d,c]=(0,n.useState)(!1),[B,x]=(0,n.useState)(!1),m=async e=>{x(!0);try{await v.Z.post("/v2/contact-us-email",e),c(!0)}catch(e){h.Am.error("Something went wrong, Please try again later.")}x(!1)},p=()=>{var e;let t=!0;return(null==l?void 0:l.name)||(a(e=>({...e,name:"Please provide your name"})),t=!1),(null==l?void 0:l.email)?/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}/.test(null==l?void 0:l.email)||(a(e=>({...e,email:"Please enter valid email address"})),t=!1):(a(e=>({...e,email:"Please provide your email address"})),t=!1),(null==l?void 0:l.message)?(null==l?void 0:null===(e=l.message)||void 0===e?void 0:e.length)>700&&(a(e=>({...e,message:"Maximum 700 characters allowed."})),t=!1):(a(e=>({...e,message:"Please provide your message"})),t=!1),t},g=()=>{p()&&m(l)};return(0,_.jsxs)("div",{id:"getintouch",className:"B__container B__px-6 B__mx-auto  B__pt-[90px] mobile:B__pb-[130px] B__pb-[50px] B__p-4 B__flex B__flex-col B__text-center B__justify-center B__items-center",children:[(0,_.jsxs)("section",{className:"B__mb-[30px] lg:B__mb-[68px]",children:[(0,_.jsx)("h2",{className:"lg:B__text-section-title title md:B__text-4xl lg:B__mb-6 B__mb-4 B__text-primary sm:B__text-3xl B__text-32 B__font-Young-Serif B__leading-snug B__title-underline",children:"Get in touch"}),(0,_.jsxs)("p",{className:"lg:B__text-20 B__text-18 mobile:B__leading-auto B__leading-28 mobile:B__max-w-[450px] B__max-w-[270px] B__text-primary B__text-opacity-80",children:["Have any questions? Write to us on ",(0,_.jsx)("a",{href:"mailto:hello@butternut.ai",children:"hello@butternut.ai"})," or fill the form below"]})]}),(0,_.jsx)("div",{className:"lg:B__max-w-[460px] lg:B__w-[460px] B__w-full B__mx-auto B__bg-white lg:B__px-[42px] B__px-[18px] B__py-[24px] lg:B__pt-[48px] lg:B__pb-[42px] B__rounded-3xl B__shadow-3xl",children:d?(0,_.jsx)("div",{className:"B__py-8 B__text-xl B__font-medium",children:"Message sent successfully, We'll get back to you soon."}):(0,_.jsxs)("form",{children:[(0,_.jsxs)("div",{className:"lg:B__mb-[32px] B__mb-[24px]",children:[(0,_.jsx)("input",{placeholder:"Name",type:"text",id:"name",name:"name",className:"B__w-full B__px-6 B__py-2 B__min-h-[54px] lg:placeholder:B__text-16 placeholder:B__text-base placeholder:B__text-[#52525B] B__border B__rounded-2xl focus:B__outline-none focus:B__border-blue-500",onChange:r}),(null==o?void 0:o.name)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==o?void 0:o.name}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsxs)("div",{className:"lg:B__mb-[32px] B__mb-[24px]",children:[(0,_.jsx)("input",{placeholder:"Email Address",type:"text",id:"email",name:"email",className:"B__w-full B__px-4 B__py-3 B__border B__min-h-[54px] placeholder:B__text-[#52525B] lg:placeholder:B__text-16 placeholder:B__text-base B__rounded-2xl focus:B__outline-none focus:B__border-blue-500",onChange:r}),(null==o?void 0:o.email)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==o?void 0:o.email}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsxs)("div",{className:"lg:B__mb-[32px] B__mb-[24px]",children:[(0,_.jsx)("textarea",{id:"message",name:"message",rows:4,placeholder:"Your Message",className:"B__w-full B__px-6 B__py-4  placeholder:B__text-[#52525B] lg:placeholder:B__text-16 B__max-h-[128px] placeholder:B__text-base B__border B__rounded-2xl focus:B__outline-none focus:B__border-blue-500",required:!0,onChange:r}),(null==o?void 0:o.message)?(0,_.jsx)("p",{className:"B__text-left B__text-red-400",children:null==o?void 0:o.message}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)("button",{type:"button",className:"B__bg-black B__min-h-[54px] B__text-16 B__text-white B__font-bold B__px-4 B__rounded-2xl hover:B__bg-gray-800 B__w-full B__transition B__duration-300 B__py-3 disabled:B__cursor-not-allowed",onClick:g,disabled:d||B,children:"Send"})]})}),(0,_.jsxs)("div",{className:"B__flex B__flex-row B__w-full mobile:B__my-6 B__my-[14px] B__items-center lg:B__max-w-[460px] lg:B__w-[460px]",children:[(0,_.jsx)("hr",{className:"B__border-gray-200 B__relative B__z-0 B__flex-1 B__text-[16px] B__block B__border-opacity-50"}),(0,_.jsx)("span",{className:"B__z-10 B__relative  B__w-16 B__text-gray-500  B__text-base",children:"Or"}),(0,_.jsx)("hr",{className:"B__border-gray-200 B__relative B__z-0 B__text-[16px] B__flex-1 B__block B__border-opacity-50"})]}),(0,_.jsx)("div",{className:"lg:B__max-w-[460px] lg:B__w-[460px] B__w-full B__mx-auto B__bg-white lg:B__py-4 B__py-[8px] mobile:B__border-none B__border B__border-opacity-10 lg:B__min-h-[96px] lg:B__px-6  B__px-3 B__rounded-3xl B__shadow-3xl",children:(0,_.jsxs)("button",{type:"button",className:"B__flex B__gap-4 sm:B__gap-8 B__flex-row B__justify-center B__relative B__w-full  B__border-black B__text-base sm:B__text-2xl B__bg-white B__items-center B__text-black B__transition B__duration-300",onClick:()=>{t(!0)},children:[(0,_.jsx)(s(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/AppoIcon.svg",className:"B__relative B__left-2 sm:B__left-5 mobile:B__max-w-[62px] B__max-w-[47px]",alt:"Picture of the author",width:62,height:40}),(0,_.jsx)("span",{className:"B__px-4 lg:B__px-8 B__w-auto B__text-xl sm:B__text-2xl B__font-semibold B__text-center",children:"Book a Call"})]})}),(0,_.jsx)(u.Z,{showModal:e,handleClose:()=>{t(!1)}})]})},y=()=>{let[e,t]=(0,n.useState)(0),[l,i]=(0,n.useState)([{question:"When should I opt for a paid plan?",answer:"Once you are ready to link your domain to your generated website, you should get a paid plan."},{question:"Do I need to buy hosting or SSL?",answer:"No, it is all covered under your $15/mo pro plan."},{question:"How is your AI able to generate a customized website?",answer:"Our AI model is trained on millions of websites. It intelligently understands the business category and target demographic based on keywords and IP address."},{question:"Can I upload my own images?",answer:"Yes. You can also regenerate the images by clicking on the regenerate button. You can even enter keywords to get better images."},{question:"Can I write my own content?",answer:"Yes. You can regenerate content as well if you don’t like it."},{question:"Is there a limit to the number of websites I can create with Butternut.ai?",answer:"No, there are no limitations on the number of websites you can create with Butternut.ai. Whether you need one website or multiple, Butternut.ai has you covered."},{question:"How many websites are covered in the pro plan?",answer:"Your pro plan entitles you to linking one custom domain with your website. If you want to make multiple websites, you can subscribe to multiple plans."},{question:"Can I cancel my subscription at any time?",answer:"Yes, you can cancel your subscription at any time."},{question:"Is Butternut.ai suitable for all types of businesses?",answer:"Yes, Butternut.ai is designed to cater to businesses of all sizes and industries. Whether you're a small startup or a large enterprise, Butternut.ai can help you create a professional website quickly and effortlessly."}]),[o,a]=(0,n.useState)(!1);return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{id:"FAQ",className:"B__relative mobile:B__bg-gradient-to-b mobile:B__to-[rgba(253,68,65,0.06)]  B__py-16 mobile:B__from-white  lg:B__pb-32 lg:B__pt-8 mobile:B__py-16 B__pb-16  B__h-full ",children:[(0,_.jsx)("div",{className:"B__container B__z-10 B__relative B__px-6",children:(0,_.jsxs)("div",{className:"B__grid  B__grid-cols-12  xl:B__max-w-[1104px] lg:B__w-11/12 B__mx-auto B__gap-4",children:[(0,_.jsx)("div",{className:"B__col-span-12 lg:B__col-span-6",children:(0,_.jsx)("div",{className:"lg:B__p-4 lg:B__pl-0 lg:B__pr-0 mobile:B__p-0",children:(0,_.jsx)("h1",{className:"lg:B__text-section-title mobile:B__max-w-full B__max-w-[240px] title md:B__text-4xl lg:B__mb-6 B__mb-4 B__text-primary sm:B__text-3xl B__text-32 B__font-Young-Serif B__leading-snug B__title-underline B__mx-auto lg:B__mx-0 B__text-center lg:B__text-left",children:"Discover the most common questions."})})}),(0,_.jsxs)("div",{className:"B__col-span-12 lg:B__col-span-6 lg:B__px-0",children:[(o?l:l.slice(0,3)).map((l,i)=>(0,_.jsxs)("div",{className:"lg:B__max-w-[536px]  B__mx-auto B__border B__border-gray B__bg-white lg:B__p-[26px] md:B__p-[20px] B__px-[30px] B__py-5 lg:B__py-[28px] B__rounded-3xl B__shadow-3xl B__mb-4",children:[(0,_.jsxs)("div",{className:"B__flex B__items-center B__justify-between ",children:[(0,_.jsx)("p",{className:"B__text-primary B__font-bold lg:B__text-[21px] mobile:B__leading-[32px] B__leading-[20px] B__text-base B__mb-0 B__w-[calc(100%-50px)]",children:l.question}),(0,_.jsx)("button",{onClick:()=>t(e===i?null:i),className:"B__w-[20px] B__text-20 B__font-normal B__py-2",children:(0,_.jsx)(s(),{src:e===i?"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/minus.svg":"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/plus.svg",className:"B__relative B__w-[20px] B__h-[20px]",alt:"Collapse",width:20,height:20})})]}),e===i&&(0,_.jsx)("p",{className:"lg:B__text-base B__text-sm B__leading-[26px] B__text-gray-600 lg:B__mt-6 B__mt-4 B__pr-5",children:l.answer})]},i)),(0,_.jsx)("div",{className:"lg:B__max-w-[536px]  B__mx-auto  B__p-6 B__pl-0 B__rounded-lg B__pb-0",children:(0,_.jsx)("button",{className:"B__text-black B__font-bold  lg:B__text-[16px] B__text-base B__border-b-2 B__pb-1 B__border-black hover:B__border-b hover:B__border-black B__transition B__duration-300 B__mx-auto lg:B__mx-0 B__text-center lg:B__text-left B__flex B__justify-center lg:B__justify-start",onClick:()=>{a(e=>!e)},children:o?"Close questions":"Check all common questions"})})]})]})}),(0,_.jsx)("div",{className:"B__absolute mobile:B__hidden B__z-0 B__w-full B__bottom-0 B__left-0",children:(0,_.jsx)(s(),{src:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/discover-more-question.svg",alt:"Picture of the author",className:"w-full",width:20,height:20})})]})})};var b=l(90445),f=l(86529);l(50384);let j=e=>{let{goToSlide:t,next:l,previous:i,currentIndex:o,totalItems:a}=e,s=()=>{l()},n=()=>{i()};return(0,_.jsxs)("div",{className:"B__border-b B__bg-gray B__flex B__w[40%]  B__relative",children:[(0,_.jsx)("div",{className:"B__border-b",children:(0,_.jsx)("div",{className:"B__absolute  B__left-4 B__-mt-[16px] B__w-[30px] B__flex B__justify-center B__items-center B__h-[30px] B__rounded-full  B__bg-[#e0e0f6] B__text-[#000] B__font-bold lg:B__text-2xl B__text-base",children:(o+a)%a+1})}),(0,_.jsx)("button",{className:"B__absolute B__right-16 B__z-10 B__border B__border-gray B__rounded-full B__w-8 B__-mt-4 B__bg-white B__h-8 B__flex B__justify-center B__items-center",onClick:()=>n(),children:(0,_.jsx)("i",{className:"fa fa-angle-left B__text-gray-400","aria-hidden":"true"})}),(0,_.jsx)("button",{className:"B__absolute B__right-[10px] B__z-10 B__border B__border-gray B__rounded-full B__-mt-4 B__w-8 B__h-8  B__bg-white B__flex B__justify-center B__items-center",onClick:()=>s(),children:(0,_.jsx)("i",{className:"fa fa-angle-right B__text-gray-400","aria-hidden":"true"})})]})},k=e=>{let{data:t}=e,l=(0,n.useRef)(null),[i,o]=(0,n.useState)(0),a=(e,t)=>{o(t.currentSlide)};return(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"h-10",children:(0,_.jsx)(j,{currentIndex:i,totalItems:t.length,goToSlide:e=>{var t;return null==l?void 0:null===(t=l.current)||void 0===t?void 0:t.goToSlide(e)},next:()=>{var e;return null==l?void 0:null===(e=l.current)||void 0===e?void 0:e.next()},previous:()=>{var e;return null==l?void 0:null===(e=l.current)||void 0===e?void 0:e.previous()}})}),(0,_.jsx)(f.default,{afterChange:a,infinite:!0,arrows:!1,ref:l,responsive:{desktop:{breakpoint:{max:3e3,min:1024},items:1},tablet:{breakpoint:{max:1024,min:464},items:1},mobile:{breakpoint:{max:464,min:0},items:1}},autoPlaySpeed:5e3,autoPlay:!0,customTransition:"transform 500ms ease-in-out",children:t.map((e,t)=>(0,_.jsxs)("div",{style:{width:"100%"},className:" B__col-span-12 md:B__h-auto B__h-full md:B__col-span-4 B__flex B__flex-col B__p-4",children:[(0,_.jsxs)("div",{className:"B__p-4 B__min-h-[120px]",children:[(0,_.jsx)("h1",{className:"lg:B__text-5xl md:B__text-4xl lg:B__mb-6 B__mb-4 B__text-primary sm:B__text-3xl B__text-32 B__font-Young-Serif B__leading-snug B__title-underline",children:e.title}),(0,_.jsx)("p",{className:"B__text-base md:B__text-lg B__text-gray-600 B__mb-0",children:e.sub_title})]}),(0,_.jsx)("div",{className:"B__w-[100%] B__relative B__mt-4",children:(0,_.jsxs)("div",{className:"B__h-full B__relative B__w-full B__p-4 B__flex B__items-center",children:[(0,_.jsx)("div",{className:"B__flex B__items-center B__w-full",children:(0,_.jsx)("div",{className:"B__rounded-3xl B__bg-opacity-20 B__border-opacity-30 B__text-3xl B__font-bold B__z-10  B__bg-white B__w-full B__mx-auto",children:(null==e?void 0:e.lottieFileSrc)?(0,_.jsx)("lottie-player",{src:null==e?void 0:e.lottieFileSrc,background:"transparent",speed:"1",style:{width:"90%",height:"250px",minWidth:"90%",marginLeft:"auto",marginRight:"auto"},direction:"1",mode:"normal",autoplay:!0}):(0,_.jsx)(s(),{src:e.image||"",alt:"Slider",className:"B__w-full",width:"570",height:"375"})})}),(0,_.jsx)("div",{className:"bgbox B__hidden B__absolute B__top-1/2 B__-translate-y-1/2 B__left-0 B__mx-auto B__z-0 B__right-0 B__h-full B__w-full"})]})})]},t))})]})};var w=l(5152),N=l.n(w);let P=N()(()=>Promise.all([l.e(8802),l.e(6137),l.e(8561)]).then(l.bind(l,98561)),{loadableGenerated:{webpack:()=>[98561]},ssr:!1}),I=()=>{let e=[{title:"Web and Mobile Responsive",sub_title:"Your website design is fully optimized for desktop, tablet, and mobile screens.",image:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/slider_1.svg",lottieFileSrc:"https://lottie.host/caff03b4-7998-4b35-be67-2379ad97bbfc/bpPHn9yax8.json"},{title:"AI Powered",sub_title:"Our proprietary AI understands your business category and target audience to create the perfect website for your needs.",image:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/ai.png"},{title:"Fully Customisable",sub_title:"Edit all components, text and images in seconds to suit your brand voice.",image:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/animation.gif"},{title:"Built in SEO",sub_title:"Full SEO optimization to ensure you rank on top of Google search.",image:"https://s3.amazonaws.com/media-prod.butternut.ai/static-images/seo.png"}];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"sliderweb B__hidden",children:(0,_.jsx)(P,{data:e})}),(0,_.jsx)("div",{className:"slidermobile B__hidden",children:(0,_.jsx)(k,{data:e})})]})},C=()=>(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("div",{className:"B__bg-slate-950",children:(0,_.jsx)("div",{className:"B__container B__px-6",children:(0,_.jsxs)("div",{id:"pricing",className:"B__flex  lg:B__px-0 B__mx-auto  lg:B__pb-32 mobile:B__py-12 B__pb-32 B__flex-col B__text-center B__max-w-[1122px] B__justify-center B__items-center",children:[(0,_.jsx)("h2",{className:"B__w-full lg:B__text-[2.6rem] md:B__text-4xl mobile:B__text-left B__text-center B__font-young-serif sm:B__text-3xl B__text-32 mobile:B__max-w-full B__max-w-[260px] B__leading-snug B__title-underline B__font-Young-Serif lg:B__mt-28 mobile:B__mt-6 B__mt-12 B__text-white",children:"Why are businesses switching to Butternut AI?"}),(0,_.jsxs)("div",{className:"B__flex B__flex-row mobile:B__justify-between B__justify-center lg:B__flex-nowrap B__flex-wrap mobile:B__gap-6 B__gap-[62px] mobile:B__mt-16 B__mt-11 mobile:B__max-w-full B__max-w-[264px]",children:[(0,_.jsxs)("div",{className:"B__bg-transparent lg:B__w-1/3 B__shadow-md B__flex-grow mobile:B__pr-10 B__pr-0 mobile:B__text-left B__text-center",children:[(0,_.jsx)("h2",{className:"mobile:B__text-section-title B__text-40 title B__font-bold B__bg-gradient-to-b B__from-[#A028FF] B__to-[#0F51FC] B__text-transparent B__bg-clip-text B__font-young-serif",children:"100x"}),(0,_.jsx)("p",{className:"B__text-white B__pt-6 B__opacity-80 lg:B__text-20 B__text-base lg:B__border-r B__border-[#52525B]",children:"Faster than any platform or developers."})]}),(0,_.jsxs)("div",{className:"B__bg-transparent lg:B__w-1/3 B__rounded-md B__shadow-md lg:B__mx-auto  mobile:B__text-left B__text-center B__flex-grow mobile:B__pr-10 B__pr-0 mobile:B__max-w-max B__max-w-[264px]",children:[(0,_.jsx)("h2",{className:"mobile:B__text-section-title B__text-40 title B__font-bold B__bg-gradient-to-b B__from-[#A028FF] B__to-[#0F51FC] B__text-transparent B__bg-clip-text B__font-young-serif",children:"1/30th"}),(0,_.jsx)("p",{className:"B__text-white B__pt-5 B__opacity-80 lg:B__text-20 B__text-base lg:B__border-r B__border-[#52525B]",children:"The price of an agency or developer."})]}),(0,_.jsxs)("div",{className:"B__bg-transparent lg:B__w-1/3 B__rounded-md B__shadow-md mobile:B__text-left B__text-center B__lex-grow mobile:B__pr-10 B__pr-0 mobile:B__max-w-full B__max-w-[264px]",children:[(0,_.jsx)("h2",{className:"mobile:B__text-section-title B__text-40 title B__font-bold B__bg-gradient-to-b  B__from-[#A028FF] B__to-[#0F51FC] B__text-transparent B__bg-clip-text B__font-young-serif",children:"Full"}),(0,_.jsx)("p",{className:"B__text-white B__pt-6 B__opacity-80 lg:B__text-20 B__text-base",children:"Control with you, without reliance on anyone else."})]})]})]})})})});function Z(){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(o(),{children:[(0,_.jsx)("title",{children:"Butternut AI"}),(0,_.jsx)("meta",{name:"description",content:"Butternut AI"}),(0,_.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Young+Serif&display=swap",rel:"stylesheet"}),(0,_.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"}),(0,_.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),(0,_.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,_.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),(0,_.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Alegreya:ital,wght@0,400..900;1,400..900&family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Assistant:wght@200..800&family=Bebas+Neue&family=Cabin:ital,wght@0,400..700;1,400..700&family=Cinzel:wght@400..900&family=Dosis:wght@200..800&family=Exo:ital,wght@0,100..900;1,100..900&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Karla:ital,wght@0,200..800;1,200..800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Oswald:wght@200..700&family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Rokkitt:ital,wght@0,100..900;1,100..900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap",rel:"stylesheet"}),(0,_.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"}),(0,_.jsx)("link",{rel:"icon",href:"/favicon.png"}),(0,_.jsx)("meta",{name:"robots",content:"index,follow"}),(0,_.jsx)("meta",{name:"keywords",content:"Butternut AI"}),(0,_.jsx)("meta",{name:"description",content:"Butternut AI"}),(0,_.jsx)("meta",{property:"og:title",content:"Butternut AI"}),(0,_.jsx)("meta",{property:"og:description",content:"Butternut AI"}),(0,_.jsx)("meta",{name:"image",property:"og:image",content:"/favicon.png"}),(0,_.jsx)("meta",{property:"twitter:title",content:"Butternut AI"}),(0,_.jsx)("meta",{property:"twitter:description",content:"Butternut AI"}),(0,_.jsx)("meta",{property:"twitter:image",content:"/favicon.png"}),(0,_.jsx)("meta",{property:"og:url",content:"https://butternut.ai/"})]}),(0,_.jsxs)("div",{className:"home-v2 B__overflow-x-hidden",children:[(0,_.jsx)(d.Z,{page:"home"}),(0,_.jsx)(c.Z,{}),(0,_.jsx)(I,{}),(0,_.jsx)(B,{}),(0,_.jsx)(x,{}),(0,_.jsx)(m,{}),(0,_.jsx)(p.Z,{}),(0,_.jsx)(C,{}),(0,_.jsx)(g,{}),(0,_.jsx)(y,{}),(0,_.jsx)(b.Z,{page:"home"})]})]})}l(99036).u_.twMergeConfig={prefix:"B__"};let T=e=>{let{websiteId:t,data:l,slug:i,fullUrl:a}=e;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(o(),{children:(0,_.jsx)("meta",{name:"robots",content:"index,follow"})}),(0,_.jsx)(r.Z,{data:l,type:"live",websiteId:t,slug:i,fullUrl:a})]})},L=e=>{let{siteType:t,websiteId:l,data:i,slug:o,fullUrl:a}=e;return"butternut"===t?(0,_.jsx)(Z,{}):(0,_.jsx)(T,{websiteId:l,slug:o,data:i,fullUrl:a})};var S=!0,D=L},42338:function(e,t,l){"use strict";var _=l(48842);let i=e=>_.Z.post("/contact_us",e),o=e=>_.Z.post("/v2/contact-us-custom",e),a=e=>_.Z.post("/v2/contact-us-ssl",e);t.Z={contactUs:i,contactUsCustom:o,contactUsSSL:a}},21287:function(e,t,l){"use strict";var _=l(48842);let i=e=>_.Z.post("/v2/subscribe-newsletter",{email:e.email,website_id:e.websiteId}),o=e=>_.Z.get("/v2/protected/get-website-subscribers",{params:{website_id:e}}),a=()=>_.Z.get("/v2/admin/get-all-subscribers"),s=e=>_.Z.get("/v2/protected/download-website-subscribers",{params:{website_id:e}});t.Z={subscribe:i,getWebsiteSubscribers:o,getAllSubscribers:a,downloadSubscribersCsv:s}},20891:function(e,t,l){"use strict";l.d(t,{AA:function(){return o},Vw:function(){return i},m8:function(){return a}});var _=l(48842);let i=async e=>{try{let t=await _.Z.get("/v2/custom-code-fetch-data",{params:{website_id:e}});return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},o=async e=>{try{let t=await _.Z.post("/v2/chatbot-response",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},a=(e,t)=>_.Z.get("/v2/custom-code-download-csv",{params:{website_id:e,elementName:t}})},14852:function(e,t,l){"use strict";l.d(t,{C:function(){return i}});var _=l(9473);let i=_.v9},57781:function(e,t,l){"use strict";l.d(t,{W:function(){return i}});var _=l(99036);let i=(0,_.tv)({base:"B__grid B__grid-cols-1 md:B__grid-cols-2 B__gap-7 lg:B__gap-11 xl:B__gap-16 2xl:B__gap-20",variants:{gridSize:{1:"lg:B__grid-cols-1",2:"lg:B__grid-cols-2 lg:B__max-w-[600px]",3:"lg:B__grid-cols-3",4:"lg:B__grid-cols-4 lg:B__gap-4 xl:B__gap-6 2xl:B__gap-8"}}})},59429:function(e,t,l){"use strict";l.d(t,{Ds:function(){return s},FX:function(){return function e(t){var l={};for(var _ in t)if(t.hasOwnProperty(_)){if("object"==typeof t[_]&&null!==t[_]){var i=e(t[_]);for(var o in i)i.hasOwnProperty(o)&&(l[_+"."+o]=i[o])}else l[_]=t[_]}return l}},U2:function(){return r},e$:function(){return d},jv:function(){return n},mg:function(){return a},q7:function(){return o}});var _=l(40221);let i={maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0},o=async e=>{let t=await (0,_.Z)(e,i),l=URL.createObjectURL(t);return[l,t]},a=(e,t)=>l=>l>=e&&l<=t,s=function(e){let t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var _=arguments.length,i=Array(_),o=0;o<_;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>{e(...i)},l)}},n=e=>{try{return new URL(e),!0}catch(e){return!1}},r=(e,t,l)=>{if(!e)return l;let _=t.replace(/\[(\w+)\]/g,".$1.").split(".").filter(Boolean),i=_.reduce((e,t)=>e&&e[t],e);return void 0===i?l:i},d=(e,t)=>!!e&&void 0!==r(e,t)},89415:function(e,t,l){"use strict";l.d(t,{BE:function(){return s},CN:function(){return m},F3:function(){return y},MB:function(){return n},N5:function(){return a},TU:function(){return o},at:function(){return c},jv:function(){return r},pi:function(){return h},q6:function(){return x},rp:function(){return u},tS:function(){return d}});var _=l(81354),i=l.n(_);let o=(e,t,l,_,i)=>{let o=l.replace(/\?\./g,".").split("."),a=JSON.parse(JSON.stringify(e)),s=a,{websiteId:n,pageId:r,sectionId:d}=t;if("section"!==i&&"page"!==i){if(d){let e=s.pages.findIndex(e=>e.id===r);if(-1===e)return console.error("Section with ID ".concat(d," not found in page with ID ").concat(r)),a;s=s.pages[e].sections.find(e=>e.id===d)}else if(r){let e=s.pages.findIndex(e=>e.page_id===r);if(-1===e)return console.error("Page with ID ".concat(r," not found")),a;s=s.pages[e]}}for(let e=0;e<o.length;e++){let t=o[e];if(/\[\d+\]/.test(t)){let[l,i]=t.split(/[\[\]]/).filter(Boolean);if(s[l]&&Array.isArray(s[l])){let t=parseInt(i,10);if(!isNaN(t)&&t>=0&&t<s[l].length)e===o.length-1?s[l][t]=_:s=s[l][t];else{console.error("Invalid array index: ".concat(i));break}}else{console.error("Property ".concat(l," is missing or not an array"));break}}else void 0!==s[t]?e===o.length-1?s[t]=_:s=s[t]:e===o.length-1?s[t]=_:s[t]={}}return a},a=(e,t,l)=>{let _=l.replace(/\?\./g,".").split("."),i=e,{websiteId:o,pageId:a,sectionId:s}=t;if(s){let e=i.pages.findIndex(e=>e.id===a);if(-1===e)return console.error("Section with ID ".concat(s," not found in page with ID ").concat(a)),null;i=i.pages[e].sections.find(e=>e.id===s)}else if(a&&!i.page_id&&i.pages){let e=i.pages.findIndex(e=>e.id===a);if(-1===e)return console.error("Page with ID ".concat(a," not found")),null;i=i.pages[e]}for(let e=0;e<_.length;e++){let t=_[e];if(/\[\d+\]/.test(t)){let[e,l]=t.split(/[\[\]]/).filter(Boolean);if(!(i[e]&&Array.isArray(i[e])))return console.error("Property ".concat(e," is missing or not an array")),null;{let t=parseInt(l,10);if(isNaN(t)||!(t>=0)||!(t<i[e].length))return console.error("Invalid array index: ".concat(l)),null;i=i[e][t]}}else{if(void 0===i[t])return console.error("Property ".concat(t," is missing")),null;i=i[t]}}return i},s=(e,t,l)=>{let _=e.findIndex(e=>e.id===t);if(-1!==_){let t="up"===l?_-1:_+1;t>=0&&t<e.length?[e[_],e[t]]=[e[t],e[_]]:console.log("Cannot move beyond array boundaries.")}else console.log("Element not found in the array.");return e},n=(e,t,l)=>{if(-1!==t){let _="up"===l?t-1:t+1;_>=0&&_<e.length?[e[t],e[_]]=[e[_],e[t]]:console.log("Cannot move beyond array boundaries.")}else console.log("Element not found in the array.");return e},r=e=>{try{return new URL(e),!0}catch(e){return!1}},d=e=>{try{if(e)return{"color-nav":"#ffffff","color-nav-scrolled":"#ffffff","color-button-primary":"#ffffff","background-color-nav":e,"background-color-nav-scrolled":e,"background-color-primary":e,"background-color-button-primary":e,"background-color-primary-light":e+"59","background-color-primary-light-20":e+"20","background-color-secondary":e+"1a","background-color-secondary-dark":e,"background-color-secondary-lighter":e+"4d","border-color-primary":e+"4d","border-color-primary-light":e+"4d"};return{}}catch(e){return{}}},c=e=>{try{if(!e.color||!e.bgColor)return{};{let t={"color-head":e.color,"color-primary":e.color,"color-main":e.color,"color-main-light":B(e.color,12)+"b3","color-secondary":B(e.color,75),"background-color-shade":B(e.bgColor,5)+"e6","background-color-shade-light":e.bgColor+"e6","background-color-shade-dark":B(e.bgColor,-32),"background-color-secondary":B(e.bgColor,90)+"1a","background-color-surface":e.bgColor,"background-color-surface-80":e.bgColor+"a3"};return t}}catch(e){return{}}},B=(e,t)=>{("#ffffff"===e||"#000000"===e)&&(t=-t);let l=(e.charAt(0),e);if("#"!==l.charAt(0))return e;let _=l.replace(/^#/,"");if(3!==_.length&&6!==_.length&&8!==_.length)return e;let i=3===_.length?_[0]+_[0]+_[1]+_[1]+_[2]+_[2]:_,o=8===i.length&&i[6]+i[7],[a,s,n]=i.match(/.{2}/g)||[0,0,0];[a,s,n]=["number"==typeof a?a+t:parseInt(a,16)+t,"number"==typeof s?s+t:parseInt(s,16)+t,"number"==typeof n?n+t:parseInt(n,16)+t],a=Math.max(Math.min(255,a),0).toString(16),s=Math.max(Math.min(255,s),0).toString(16),n=Math.max(Math.min(255,n),0).toString(16);let r=(a.length<2?"0":"")+a,d=(s.length<2?"0":"")+s,c=(n.length<2?"0":"")+n;return"#".concat(r).concat(d).concat(c).concat(o||"")},x=e=>{let t=i().enc.Base64.parse("xYuTao+1JYlwcfLvt0sKn//uzPq0CG5ctbpTwHLJbW8="),l=i().enc.Base64.parse("skzgnDx3wlcSDgPDoWv+AQ=="),_=i().AES.encrypt(JSON.stringify(e),t,{iv:l});return _.toString()},m=e=>{let t=e.replace("#","");if(console.log(e),6!==t.length)throw Error("Invalid hex color provided.");let l=parseInt(t.slice(0,2),16),_=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16),o=.299*l+.587*_+.114*i;return console.log(o),o>186?"#000000":"#ffffff"},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,l=new Date(e),_=new Date,i=_.getTime()-l.getTime();return i/864e5>t},u=e=>{var t,l,_,i;return(null==e?void 0:null===(t=e.website_config)||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.status)!=="active"&&(null===(_=e.createdAt)||void 0===_||!_.$date||!!p(null===(i=e.createdAt)||void 0===i?void 0:i.$date,60))},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(let _ in e)if(e.hasOwnProperty(_)){let i=t?"".concat(t,".").concat(_):_;"object"!=typeof e[_]||null===e[_]||Array.isArray(e[_])?Array.isArray(e[_])?e[_].forEach((e,t)=>{let _="".concat(i,"[").concat(t,"]");"object"==typeof e&&null!==e?v(e,_,l):l[_]=e}):l[i]=e[_]:v(e[_],i,l)}return l},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"months";try{let l;let _=new Date(e),i=new Date;if("days"===t){let e=i.getTime()-_.getTime();l=Math.floor(e/864e5)}else if("months"===t){let e=i.getFullYear()-_.getFullYear(),t=i.getMonth()-_.getMonth();l=12*e+t,i.getDate()<_.getDate()&&(l-=1)}else l=1;return l<=0&&(l=1),l}catch(e){return 1}},g=(e,t)=>{e(),setTimeout(()=>{g(e,t)},t)},y=(e,t)=>{let l=[];for(let _=0;_<e.length;_+=t)l.push(e.slice(_,_+t));return l}},16102:function(e){e.exports={bbutton:"BButton_bbutton__pNmmw"}},51813:function(e){e.exports={modalDialog:"BModal_modalDialog__dp6jM"}},54720:function(e){e.exports={imgContainer:"BannerSection_imgContainer__JOsNe"}},98187:function(e){e.exports={container:"ClientsSection_container__j8TqB",separator:"ClientsSection_separator__zYkLQ"}},83099:function(e){e.exports={grid:"GallerySection_grid__uby0z",grid_column:"GallerySection_grid_column__VNKTx"}},38452:function(e){e.exports={icon:"HoverIcon_icon__VE6bW",iconText:"HoverIcon_iconText__EpA9e",showText:"HoverIcon_showText__n4jBu",button:"HoverIcon_button__hRrTZ"}},14142:function(e){e.exports={quoteBorder:"QuotesSection_quoteBorder__e3BMN",authorTextContainer:"QuotesSection_authorTextContainer__6Chz_"}},98997:function(e){e.exports={regenBtnDropdown:"RegenerateBtn_regenBtnDropdown__060S_",regenCancelBtn:"RegenerateBtn_regenCancelBtn__9QwmR",keywordsContainer:"RegenerateBtn_keywordsContainer__5_cW9",keywordsStaticContainer:"RegenerateBtn_keywordsStaticContainer__Xf0Lf"}},71353:function(e){e.exports={sliding_radio:"SlidingRadioButton_sliding_radio__V979O",sliding_indicator:"SlidingRadioButton_sliding_indicator__9eWMf"}},98713:function(e){e.exports={preview:"Template_preview__UR1We",edit:"Template_edit__VaSd4",live:"Template_live__IpybO",featuerItemContainer:"Template_featuerItemContainer__1lvoB",logo_image:"Template_logo_image__FOKSq",logo_image_visible:"Template_logo_image_visible__h3Z7Z",feature3_img_container:"Template_feature3_img_container__JlGWY",services_var_1_container:"Template_services_var_1_container__mLtzg",team_var_1_container:"Template_team_var_1_container__4JMM1",services_var_5_container:"Template_services_var_5_container__gj44f",services_var_1_column:"Template_services_var_1_column__nae__",team_var_1_outer:"Template_team_var_1_outer__RW39o",team_var_1_column:"Template_team_var_1_column__ecRL_",services_var_6_column:"Template_services_var_6_column__9p3zA",services_var_1_subcard:"Template_services_var_1_subcard__TlVmJ",services_var_2_text:"Template_services_var_2_text__7QzOA",card_heading:"Template_card_heading__29nZG",services_var_4_card_heading:"Template_services_var_4_card_heading__tzqMY",pb5:"Template_pb5__3mJsa",pt0:"Template_pt0__R0rQO",mt4:"Template_mt4__L_ShA",column:"Template_column__nTQM9",testimonial_column:"Template_testimonial_column__U6hfW",container:"Template_container__zeSEL",container_2:"Template_container_2__qveMI",galleryContainer:"Template_galleryContainer__4pgPr",iconButton:"Template_iconButton__589a7",editContainer:"Template_editContainer__2V_gd",editHoverContainer:"Template_editHoverContainer__1bqyO",editHoverContainerGallery:"Template_editHoverContainerGallery__4UAqp",editContainerGallery:"Template_editContainerGallery__PQ3BU",hideSectionBtn:"Template_hideSectionBtn__HXpZF",editBackgroundBtn:"Template_editBackgroundBtn__oOzwC",regenerateBackgroundBtn:"Template_regenerateBackgroundBtn__8qMKb",addSectionBtn:"Template_addSectionBtn__j6UfG",textEditorBtn:"Template_textEditorBtn__xN3OZ",editSectionTitleButton:"Template_editSectionTitleButton__v0Kt2",tabTitle:"Template_tabTitle__nDayK",searchBtn:"Template_searchBtn__pENh5",button:"Template_button__hLeBL",heading:"Template_heading__BQOre",navlist:"Template_navlist__A8MCq",features_var_2_heading:"Template_features_var_2_heading__ZOu_B",section_title:"Template_section_title__ZLVVX",services_var_2_heading:"Template_services_var_2_heading__ysi0k","site-wrapper":"Template_site-wrapper__XLEpB",offcanvas:"Template_offcanvas__2NuR9",navbar:"Template_navbar__G7Q4k",scrolled:"Template_scrolled__o8kH1","nav-container":"Template_nav-container__zvKwI","header-logo":"Template_header-logo__BNuGW","header-logo-nav-available":"Template_header-logo-nav-available__wKrAl","hero-cover":"Template_hero-cover__jtHnX","hero-container":"Template_hero-container__oyDgk","hero-content":"Template_hero-content__i14V5","hero-heading":"Template_hero-heading__AVQqf","hero-subtexts":"Template_hero-subtexts__CLvMS",section:"Template_section__2XKNa",services_container:"Template_services_container__cvRD2",services_var_7_container:"Template_services_var_7_container__ywbPX",services_card:"Template_services_card__gXFAF",services_description:"Template_services_description__vcqrf",services_var_4_description:"Template_services_var_4_description__GTm_T",features_var_1_wrapper:"Template_features_var_1_wrapper__L8vdH",features_subtitle:"Template_features_subtitle__JtjZE",features_description:"Template_features_description__YrBL7",featuresTextWrapper:"Template_featuresTextWrapper___0TsW",featuresTextWrapper_var_1:"Template_featuresTextWrapper_var_1__yO2jd",features_var_1_images:"Template_features_var_1_images__2Mbem",testimonialsText:"Template_testimonialsText__m_rpZ",quote_var_1_quote:"Template_quote_var_1_quote___Jhlt",quote_var_1_authors:"Template_quote_var_1_authors__pUFD_",quotes_var_2_cover:"Template_quotes_var_2_cover__FJoXa",newsletter_heading:"Template_newsletter_heading__vI8iA",contacts_description:"Template_contacts_description__QRtyw",contacts_main:"Template_contacts_main__lzWsg",contacts_item:"Template_contacts_item__ZFMUe",contacts_info:"Template_contacts_info__SF3NH",contacts_input:"Template_contacts_input__GYWIT",faqWrapper:"Template_faqWrapper__O7Goy",faq_question_text:"Template_faq_question_text__OICTW",faq_answer_text:"Template_faq_answer_text__SWKMO",testimonial_card:"Template_testimonial_card__GI4cn",services_var_3_card:"Template_services_var_3_card__kYorA",testimonial_row:"Template_testimonial_row__uS6ko",testimonial_description:"Template_testimonial_description__v83Xt",section_spacing:"Template_section_spacing__kKCSr",aboutus_body:"Template_aboutus_body__K3Y7C",aboutUs_body:"Template_aboutUs_body__9m_66","text-section":"Template_text-section__kQh1b","text-section-content":"Template_text-section-content__dwaar","text-section-heading":"Template_text-section-heading__lRP4m","text-section-subheading":"Template_text-section-subheading__IPrVF","text-section-paragraph":"Template_text-section-paragraph__j9hTy",footer:"Template_footer__b5ewH",footer_main:"Template_footer_main__6BgRy",footer_text:"Template_footer_text__CQAve",modal_label:"Template_modal_label__qJuo3",modal_input:"Template_modal_input__yhXfq",modal_textarea:"Template_modal_textarea__JDryC",text_editor:"Template_text_editor__Nny1l",bpopup_label:"Template_bpopup_label__qTs_B",imageContainer:"Template_imageContainer__Cqiq9",bpopup_label_container:"Template_bpopup_label_container__HCAxG",bpopup_success_text:"Template_bpopup_success_text__d7GpI",uploadSearchedImage:"Template_uploadSearchedImage__W2e7W",editLineContainer:"Template_editLineContainer__04AIE",minContainer:"Template_minContainer__3ylXJ",hidescrollbar:"Template_hidescrollbar__a6T7G",services_var_1_img:"Template_services_var_1_img__bBpFB",column_md8:"Template_column_md8__WqwUg"}},91598:function(e){e.exports={itemContaier:"Testimonials1_itemContaier__FryB6",container:"Testimonials1_container__6PSRJ"}},59371:function(e){e.exports={itemContainer:"Testimonials2_itemContainer__ha7VY"}},65495:function(e){e.exports={itemContainer:"Testimonials3_itemContainer__3Q_gA",container:"Testimonials3_container__bjfdz"}},96940:function(e){e.exports={container:"Testimonials4_container__APJS4",testimonialTxt:"Testimonials4_testimonialTxt__2xffM"}},77585:function(e){e.exports={container:"Testimonials5_container__cjDD2"}},55041:function(e){e.exports={card:"Testimonials6_card__k8anN"}},21811:function(e){e.exports={container:"Text3_container__EzebR"}},42480:function(){}},function(e){e.O(0,[1228,7466,2013,5445,4617,2937,5937,6158,7237,5640,7442,6310,4111,1354,6884,5971,1471,8239,3052,939,6119,8335,9977,7448,9774,2888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]);