1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2093,2267,3549],{2093:(e,t,l)=>{l.r(t),l.d(t,{Video:()=>p});var o=l(6029),a=l(32),s=l.n(a),n=l(32988),r=l.n(n),c=l(5438),i=l(71024),d=l.n(i),u=l(55729),h=l(65762),m=l(73549);let v=d()(()=>l.e(6619).then(l.bind(l,16619)),{loadableGenerated:{webpack:()=>[16619]},ssr:!1}),p=e=>{let{block:t}=e,{attrs:l}=t,{className:a,url:n,fullWidth:i,inModal:d,isCover:p,triggerId:g,alignment:b,boxColors:w,alignmentBox:x="bottom",borderRadius:k=!0}=l,_=(0,u.useRef)(null),[j,f]=(0,u.useState)(!1),[y,N]=(0,u.useState)(""),C=()=>{d&&f(!0)};(0,h.h)(g,!1,C);let S="wp-block-kaktus-blocks-video";if(!n)return null;let E=async e=>{if("vimeo"===e.substring(8,13))try{let t=await s().get("https://vimeo.com/api/v2/video/".concat(e.substring(18),".json"));N(t.data[0].thumbnail_large)}catch(e){console.log(e),N("")}else if("youtube"===e.substring(12,19)){let t=new URLSearchParams(new URL(e).search).get("v"),l="https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg"),o=new Image;o.src=l,o.onload=function(){N(l)},o.onerror=function(){N("https://img.youtube.com/vi/".concat(t,"/hqdefault.jpg"))}}};(0,u.useEffect)(()=>{E(n)},[n]);let L=b?{right:"right"===b?0:void 0,left:"left"===b?0:void 0,bottom:"bottom"===x?0:void 0,top:"top"===x?0:void 0,backgroundColor:w,borderRadius:!0===k?"0.5rem":void 0}:{};return(0,o.jsx)("div",{className:r()(S,a,{"container-full-width":i,"is-style-cover":p}),children:(0,o.jsx)("div",{className:r()("".concat(S,"__container"),{container:i}),children:d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{ref:_,className:"".concat(S,"__player z-[8]"),url:n,width:"100%",height:"100%",onClick:C,controls:!0,light:!y||y}),(0,o.jsx)("div",{style:L,className:"".concat(S,"__box-shadow wp-kaktus-box-shadow absolute z-0 m-[-20px] h-[80%] w-[70%]")}),j&&(0,o.jsx)(m.Modal,{block:{attrs:{}},modalClassName:"".concat(S,"__modal"),onClose:()=>f(!1),visible:!0,modalRender:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"kaktus-modal-close",onClick:()=>f(!1),children:(0,o.jsx)(c.u,{className:"w-20 h-20"})}),(0,o.jsx)(v,{className:"".concat(S,"__player"),url:n,width:"100%",height:"100%",controls:!0,playing:!0})]})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{className:"".concat(S,"__player z-10"),url:n,width:"100%",height:"100%",controls:!0}),(0,o.jsx)("div",{style:L,className:"".concat(S,"__box-shadow wp-kaktus-box-shadow absolute z-0 m-[-20px] h-[80%] w-[70%]")})]})})})}},2267:(e,t,l)=>{l.r(t),l.d(t,{ProductDetailsDescription:()=>h});var o=l(6029),a=l(32988),s=l.n(a),n=l(50556),r=l(81278);l(55729);var c=l(2093),i=l(71033);let d=e=>{var t,l,a,d,u;let{data:h,currentVariation:m,block:v,className:p=""}=e,g=(0,n.a)(),b=(0,r.useRouter)(),w=null==b?void 0:b.locale,x=(0,i.Zu)(),k=null==g||null==(t=g.ProductPage)?void 0:t.description,{renderType:_="all"}=null==v?void 0:v.attrs,j=null!=(u=null==h||null==(a=h.product_translations)||null==(l=a[w])?void 0:l.description)?u:null==h?void 0:h.description;return k?(0,o.jsx)(k,{block:v,data:h,currentVariation:m}):(0,o.jsxs)("div",{className:s()("kc-product-description",p),children:[(0,o.jsx)("h3",{className:"sr-only",children:"Description"}),("default"===_||"all"===_)&&(0,o.jsx)("div",{className:"kc-product-description__text text-normal leading-[150%] [&>*>strong]:!font-semibold [&>*]:!m-0",dangerouslySetInnerHTML:{__html:j}}),("video"===_||"all"===_)&&(null==h?void 0:h.video_url)&&(0,o.jsx)("div",{className:"md:w-1/2",children:(0,o.jsx)(c.Video,{...{block:{attrs:{url:null==h?void 0:h.video_url}}}})}),("blocks"===_||"all"===_)&&(null==h||null==(d=h.description_blocks)?void 0:d.map((e,t)=>(0,o.jsx)(x,{postInfo:null,extraProps:{},block:e},t)))]})};var u=l(79427);let h=e=>{let{block:t}=e,{currentVariation:l,product:a}=(0,u.Wr)();return(null==a?void 0:a.description)?(0,o.jsx)(d,{data:a,block:t,currentVariation:l}):null}},41563:(e,t,l)=>{l.d(t,{e:()=>a});var o=l(71033);l(64118),l(33601);let a=()=>(0,o.mS)("API_URL")||""},56576:(e,t,l)=>{l.d(t,{BQ:()=>a});var o=l(42491);l(41563);let a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=(0,o.S)("/wp-json/kaktus-json/blocks/post/".concat(e).concat(t?"?get_icon_slugs=1":"")),a=await fetch(l);return await a.json()||null}},65762:(e,t,l)=>{l.d(t,{h:()=>a});var o=l(55729);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,[a,s]=(0,o.useState)(t),[n,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>
1{if(e){let t="trigger-".concat(e),o=e=>{let o=document.querySelector(".".concat(t));o&&(e.target==o||o.contains(e.target))&&(s(!a),l&&l())};if(document.querySelector(".".concat(t)))return r(!0),document.addEventListener("click",o),()=>document.removeEventListener("click",o);r(!1)}},[e,a,l]),[a,s,n]}},73549:(e,t,l)=>{l.r(t),l.d(t,{Modal:()=>p});var o=l(6029),a=l(39283),s=l(71033),n=l(7658),r=l(65762),c=l(32988),i=l.n(c),d=l(75745),u=l(55729),h=l(99095),m=l(56576);let v=async e=>{let t=e?JSON.parse(e):[],l=t.length?t[0]:null;return l?await (0,m.BQ)(l):[]},p=e=>{let t=(0,s.Zu)(),{block:l,postInfo:c,extraProps:m,children:p,visible:g,onClose:b,modalClassName:w,modalRender:x,noContainer:k,onClickPrev:_,onClickNext:j}=e,{attrs:f}=l,{className:y,postIds:N,variation:C,triggerId:S,anchorTitle:E,center:L}=f,[R,P]=(0,r.h)(S),q=()=>{if(R){P(!1);let{hash:e}=window.location;e&&e.length&&history.replaceState(null,null," ")}},I=()=>{let{hash:e}=window.location;if(E&&e&&e.startsWith("#modal-")){let t=e.replace("#modal-","");(t=t.split("-tab-")[0])===(0,a.jw)(E)&&P(!0)}};(0,u.useEffect)(()=>{I()},[]),(0,u.useEffect)(()=>{let e=()=>{I()};return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]);let z=[];"query"===C&&(z=(0,h.useQuery)(["query-modal",f],()=>(async()=>await v(N))()).data);let V="query"===C?z:l.innerBlocks,A=!!_||!!j,B="wp-block-kaktus-blocks-modal",D=e=>"".concat(B,"__").concat(e);return(0,o.jsx)("div",{className:i()(B,y),children:(0,o.jsx)("div",{className:D("inner-blocks"),children:(0,o.jsxs)(d.A,{wrapClassName:i()({"rc-dialog-center":L}),className:i()({container:!k},w),visible:g||R,animation:A?void 0:"zoom",maskAnimation:A?void 0:"fade",onClose:b?()=>b(q):q,modalRender:x,closeIcon:(0,o.jsx)(n.$,{slug:"close"}),children:[A&&(0,o.jsxs)("div",{className:D("arrows"),children:[(0,o.jsx)("div",{className:i()(D("arrows__prev"),{[D("arrows__disabled")]:!_}),onClick:_?()=>_(q):void 0,children:(0,o.jsx)(n.$,{slug:"chevron-left"})}),(0,o.jsx)("div",{className:i()(D("arrows__next"),{[D("arrows__disabled")]:!j}),onClick:j?()=>j(q):void 0,children:(0,o.jsx)(n.$,{slug:"chevron-right"})})]}),V&&V.map((e,l)=>(0,o.jsx)(t,{block:e,postInfo:c,extraProps:m},l)),p]})})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.