"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[56],{24:(e,t,a)=>{a.d(t,{a:()=>r});const r={wrapper:"F9BIf6oU",wrapperFullWidth:"O7QAQS0U",wrapperMobileSwipe:"GlNVEFPj",wrapperWithoutPadding:"vu4ZMh_c",wrapperWithoutTopMargin:"TIPLNuPR",wrapperWithoutBottomMargin:"Eerj8eZ_"}},212:(e,t,a)=>{var r=a(1),i=a(4),n=a(23),p=a(3);const{wrapper:s,wrapperHeading:o,wrapperAccordion:l,wrapperAccordionOpen:g,wrapperAccordionContent:c}={wrapper:"OibgVRGM",wrapperHeading:"hfgFZw5j",wrapperAccordion:"Y1sV5XyQ",wrapperAccordionContent:"ATlwYFaf",wrapperAccordionOpen:"q3SqZFMo"},d=({content:e,heading:t,open:a=!1,borderColor:n})=>{const[d,m]=(0,i.useState)(a);return(0,r.jsxs)("div",Object.assign({className:s,onClick:()=>m(!d),style:{borderColor:n}},{children:[(0,r.jsx)("p",Object.assign({className:o},{children:t})),(0,r.jsx)("div",Object.assign({className:(0,p.c)(l,d&&g)},{children:(0,r.jsx)("div",{className:c,dangerouslySetInnerHTML:{__html:e}})}))]}))};var m=a(13);const{wrapper:w,wrapperImageNarrow:h,wrapperImageWide:u,wrapperGapMedium:x,wrapperGapLarge:b,wrapperMedia:C,wrapperMediaAdapt:j,wrapperMediaSmall:I,wrapperMediaImage:T,wrapperMediaIframe:y,wrapperContent:k,wrapperContentButton:S,wrapperContentImage:M,wrapperContentHeading:W,wrapperContentHeadingMedium:N,wrapperContentHeadingLarge:O,wrapperContentHeadingExtraLarge:f,wrapperContentSubheading:v,wrapperContentText:_,wrapperContentTextCenter:F,wrapperContentTextRight:H,wrapperContentFirst:A}={wrapper:"FbkFGIZv",wrapperMedia:"FoGISBpL",wrapperMediaAdapt:"AzhXLnJZ",wrapperMediaIframe:"XHrLfCu5",wrapperMediaSmall:"GKkEeaGg",wrapperMediaImage:"vEQVq0I4",wrapperContent:"TGoBiKfy",wrapperContentButton:"wN6S60Xi",wrapperContentImage:"iKTsSrEJ",wrapperContentHeading:"BAx2mzoN",wrapperContentHeadingMedium:"Cnj6TS13",wrapperContentHeadingLarge:"kgxYhzZu",wrapperContentHeadingExtraLarge:"qsRinfTp",wrapperContentSubheading:"_TSsMTdg",wrapperContentText:"XuuHxWaQ",wrapperContentTextCenter:"FXIISZKU",wrapperContentTextRight:"ofxbRc2q",wrapperImageNarrow:"_8x5v6WY",wrapperImageWide:"iMFaNTs0",wrapperGapMedium:"VgNmBgwF",wrapperGapLarge:"a7SrMOL8",wrapperContentFirst:"b0vPObPA"};(0,a(6).createEntrypoint)("image-with-text",(({useVideo:e,imageUrl:t,videoUrl:a,shopifyVideoUrl:s,autoplay:o,styleSettings:{disableBottomSpacing:l,disableTopSpacing:g,backgroundColor:c,textColor:B,borderColor:L},layout:{fullWidth:G,desktopImageWidth:P,columnSpacing:E,desktopImagePlacement:V,desktopContentAlignment:Z,imageHeight:U},content:q,customStyles:z})=>{const[R,X]=(0,p.d)({threshold:.1,triggerOnce:!0}),Q=(0,p.e)(s||a),K=Q.includes("youtube.com");return(0,i.useEffect)((()=>{X&&(0,m.a)("ImageWithTextImpression",{label:"ImageWithText impression"})}),[X]),(0,r.jsxs)(n.a,Object.assign({disableTopSpacing:g,disableBottomSpacing:l,fullWidth:G},{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:z}}),(0,r.jsxs)("div",Object.assign({className:(0,p.c)(w,"small"===P&&h,"large"===P&&u,"medium"===E&&x,"large"===E&&b),style:{color:B,backgroundColor:c}},{children:[(0,r.jsx)("div",Object.assign({ref:R,className:(0,p.c)(C,"small"===U&&I,"adapt"===U&&j,"adapt"===U&&K&&y)},{children:e?K?(0,r.jsx)("iframe",{className:T,src:Q+"?loop=1&mute=1&playlist=_9VUPq3SxOc&iv_load_policy=3&disablekb=1&controls=1&playsinline=1"+(o?"&autoplay=1":""),title:"",frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0}):(0,r.jsx)("video",{className:T,playsInline:!0,"webkit-playsinline":!0,loop:!0,controls:!0,preload:"metadata",autoPlay:o,muted:o,src:Q}):(0,r.jsx)("img",{className:T,src:t,alt:"image",onClick:()=>{(0,m.a)("ImageWithTextImageClick",{label:"ImageWithText image click"})}})})),(0,r.jsx)("div",Object.assign({className:(0,p.c)(k,"text-center"===Z&&F,"text-right"===Z&&H,"text_first"===V&&A)},{children:q.map((e=>"collapsible_tab"===e.type?(0,r.jsx)(d,Object.assign({},e.settings,{borderColor:L}),e.settings.heading):"image"===e.type?(0,r.jsx)("div",Object.assign({className:M},{children:(0,r.jsx)("img",{className:M,src:e.settings.image,alt:"content-image",onClick:()=>{(0,m.a)("ImageWithTextImageClick",{label:"ImageWithText image click"})}})}),e.settings.image):"button"===e.type?(0,r.jsx)("a",Object.assign({href:e.settings.button_link,className:S,style:{backgroundColor:B},onClick:()=>{(0,m.a)("ImageWithTextClickButton",{label:"ImageWithText button click"})}},{children:e.settings.button_text}),e.settings.button_text):"space"===e.type?(0,r.jsx)("div",{style:{height:e.settings.height}},e.settings.height+"space"):"subheading"===e.type?(0,r.jsx)("p",Object.assign({className:v,onClick:()=>{(0,m.a)("ImageWithTextClick",{label:"ImageWithText text click"})}},{children:e.settings.text}),e.settings.text):"text"===e.type?(0,r.jsx)("div",{className:_,dangerouslySetInnerHTML:{__html:e.settings.text},onClick:()=>{(0,m.a)("ImageWithTextClick",{label:"ImageWithText text click"})}},e.settings.text):"heading"===e.type?(0,r.jsx)("h3",Object.assign({className:(0,p.c)(W,"h3"===e.settings.heading_size&&N,"h2"===e.settings.heading_size&&O,"h1"===e.settings.heading_size&&f)},{children:e.settings.text}),e.settings.text):null))}))]}))]}))}))},23:(e,t,a)=>{a.d(t,{a:()=>d});var r=a(1),i=a(24),n=a(3);const{wrapper:p,wrapperFullWidth:s,wrapperMobileSwipe:o,wrapperWithoutPadding:l,wrapperWithoutTopMargin:g,wrapperWithoutBottomMargin:c}=i.a,d=({disableBottomSpacing:e,disableTopSpacing:t,disablePadding:a=!1,mobileSwipe:i=!1,fullWidth:d,children:m})=>(0,r.jsx)("div",Object.assign({className:(0,n.c)(p,t&&g,e&&c,d&&s,i&&o,a&&d&&l)},{children:m}))}},e=>{e.O(0,[1,2,3,5,4,6,7,8,10],(()=>(212,e(e.s=212)))),e.O()}]);