PageSourceSearch

https://icaas.org/_next/static/chunks/6719.1b810ccc4dcfc2ca.js

js icaas.org collected 2026-10-05 19:51:20 UTC 11,127 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5fdec754-897b-43cc-a75d-46a9944ef080",e._sentryDebugIdIdentifier="sentry-dbid-5fdec754-897b-43cc-a75d-46a9944ef080")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5114,6719],{66719:(e,t,o)=>{o.r(t),o.d(t,{default:()=>w});var l=o(54568),n=o(7620);let a=(0,o(82752).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var r=o(97743),i=o(20128),s=o(75415),d=o(29837),c=o(58248),u=o(21844);function h(e,t){let{background:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("youtube"===e){let e="https://www.youtube-nocookie.com/embed/".concat(t);return o?"".concat(e,"?autoplay=1&mute=1&loop=1&playlist=").concat(t,"&controls=0&playsinline=1&rel=0&modestbranding=1"):"".concat(e,"?autoplay=1&playsinline=1&rel=0&modestbranding=1&iv_load_policy=3&color=white")}let l="https://player.vimeo.com/video/".concat(t);return o?"".concat(l,"?background=1&autoplay=1&muted=1&loop=1"):"".concat(l,"?autoplay=1&title=0&byline=0&portrait=0&dnt=1")}var m=o(89134),y=o(77168);let b={"16:9":"aspect-video","4:3":"aspect-[4/3]","1:1":"aspect-square","9:16":"aspect-[9/16]"},g={medium:"60vh",large:"80vh",full:"100vh"},v={none:0,light:.25,medium:.45,dark:.65};function x(){return(0,l.jsx)("span",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-white/90 shadow-lg transition group-hover:scale-105",children:(0,l.jsx)(a,{className:"h-7 w-7 translate-x-0.5 text-gray-900",fill:"currentColor"})})}function f(e){let{config:t,parsed:o,poster:a,isEditMode:i,updateField:m,setTextColor:g}=e,{t:v}=(0,r.b)(),[f,p]=(0,n.useState)(!1),w=b[t.aspectRatio]||b["16:9"],C="full"===t.width?"w-full":"mx-auto max-w-4xl",j=!!o&&!i,N=i||t.eyebrow||t.heading||t.body;return(0,l.jsx)("section",{className:"px-6 py-12 md:py-16",children:(0,l.jsxs)("div",{className:C,children:[N&&(0,l.jsxs)("div",{className:"mb-8 text-center",children:[(0,l.jsx)(d.A,{as:"span",value:t.eyebrow,onChange:e=>m("eyebrow",e),className:"mb-3 inline-block text-xs font-semibold uppercase tracking-widest",style:{color:(0,y.Nx)(t,"eyebrow","--site-color-accent")},placeholder:"Eyebrow (optional)",maxLength:80,colorKey:"eyebrow",colorValue:(0,y.sT)(t,"eyebrow"),themeColor:"var(--site-color-accent)",onChangeColor:i?e=>g("eyebrow",e):void 0,onResetColor:i?()=>g("eyebrow",void 0):void 0}),(0,l.jsx)(d.A,{as:"h2",value:t.heading,onChange:e=>m("heading",e),className:"text-3xl font-bold tracking-tight md:text-4xl",style:{color:(0,y.Nx)(t,"heading","--site-color-fg")},placeholder:"Heading (optional)",maxLength:200,rich:!0,colorKey:"heading",colorValue:(0,y.sT)(t,"heading"),themeColor:"var(--site-color-fg)",onChangeColor:i?e=>g("heading",e):void 0,onResetColor:i?()=>g("heading",void 0):void 0}),(0,l.jsx)(d.A,{as:"p",value:t.body,onChange:e=>m("body",e),className:"mt-3 leading-relaxed",style:{color:(0,y.Nx)(t,"body","--site-color-muted")},placeholder:"Body (optional)",maxLength:2e3,rich:!0,colorKey:"body",colorValue:(0,y.sT)(t,"body"),themeColor:"var(--site-color-muted)",onChangeColor:i?e=>g("body",e):void 0,onResetColor:i?()=>g("body",void 0):void 0})]}),(0,l.jsx)("div",{className:"relative overflow-hidden rounded-2xl bg-black ".concat(w),children:f&&o?(0,l.jsx)("iframe",{className:"absolute inset-0 h-full w-full",src:h(o.provider,o.id,{background:!1}),title:(0,u.Ul)(t.heading)||v("sections.video.iframeTitle","Video"),allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0}):(0,l.jsxs)(l.Fragment,{children:[a?(0,l.jsx)(s.A,{src:a,alt:"",className:"absolute inset-0 h-full w-full object-cover",fallback:(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-900"})}):(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-900"}),j?(0,l.jsx)("button",{type:"button","aria-label":v("sections.video.play","Play video"),onClick:()=>p(!0),className:"group absolute inset-0 flex items-center justify-center",children:(0,l.jsx)(x,{})}):(0,l.jsx)("div",{"aria-hidden":"true",className:"group absolute inset-0 flex items-center justify-center",children:(0,l.jsx)(x,{})})]})}),t.caption&&(0,l.jsx)("p",{className:"mt-3 text-center text-sm",style:{color:"var(--site-color-muted)"},children:(0,l.jsx)(c.A,{value:t.caption})}),i&&!o&&(0,l.jsx)("p",{className:"mt-3 text-center text-xs text-gray-400",children:"Paste a YouTube or Vimeo link in the Inspector."})]})})}function p(e){var t;let{config:o,parsed:a,poster:r,updateField:i,isEditMode:c,setTextColor:u}
1=e,b=function(){let[e,t]=(0,n.useState)(()=>!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);return(0,n.useEffect)(()=>{var e;if(!window.matchMedia)return;let o=window.matchMedia("(prefers-reduced-motion: reduce)"),l=()=>t(o.matches);return null==(e=o.addEventListener)||e.call(o,"change",l),()=>{var e;return null==(e=o.removeEventListener)?void 0:e.call(o,"change",l)}},[]),e}(),x=!!a&&!c&&!b,f=g[o.height]||g.large,p=null!=(t=v[o.overlay])?t:v.medium;return(0,l.jsxs)("section",{className:"relative flex items-center justify-center overflow-hidden",style:{minHeight:"var(--preview-hero-min-height, ".concat(f,")")},children:[r?(0,l.jsx)(s.A,{src:r,alt:"",className:"absolute inset-0 h-full w-full object-cover",fallback:(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-900"})}):(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-900"}),x&&(0,l.jsx)("iframe",{className:"pointer-events-none absolute left-1/2 top-1/2 h-[56.25vw] min-h-full w-[177.78vh] min-w-full -translate-x-1/2 -translate-y-1/2",src:h(a.provider,a.id,{background:!0}),title:"","aria-hidden":"true",tabIndex:-1,allow:"autoplay; fullscreen"}),p>0&&(0,l.jsx)("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(0,0,0,".concat(p,")")}}),(0,l.jsxs)("div",{className:"relative z-10 mx-auto max-w-3xl px-6 text-center text-white",children:[(0,l.jsx)(d.A,{as:"span",value:o.eyebrow,onChange:e=>i("eyebrow",e),className:"mb-4 inline-block text-xs font-semibold uppercase tracking-widest",style:{color:(0,y.sT)(o,"eyebrow")},placeholder:"Eyebrow (optional)",maxLength:80,colorKey:"eyebrow",colorValue:(0,y.sT)(o,"eyebrow"),onChangeColor:c?e=>u("eyebrow",e):void 0,onResetColor:c?()=>u("eyebrow",void 0):void 0}),(0,l.jsx)(d.A,{as:"h2",value:o.heading,onChange:e=>i("heading",e),className:"mb-4 text-4xl font-bold tracking-tight md:text-5xl",placeholder:"Heading",maxLength:200,rich:!0,style:{color:(0,y.sT)(o,"heading")},colorKey:"heading",colorValue:(0,y.sT)(o,"heading"),onChangeColor:c?e=>u("heading",e):void 0,onResetColor:c?()=>u("heading",void 0):void 0}),(0,l.jsx)(d.A,{as:"p",value:o.body,onChange:e=>i("body",e),className:"mx-auto max-w-xl text-lg opacity-90",placeholder:"Body (optional)",maxLength:2e3,rich:!0,style:{color:(0,y.sT)(o,"body")},colorKey:"body",colorValue:(0,y.sT)(o,"body"),onChangeColor:c?e=>u("body",e):void 0,onResetColor:c?()=>u("body",void 0):void 0}),(o.buttons||[]).length>0&&(0,l.jsx)("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:o.buttons.slice(0,2).map((e,t)=>{let o="secondary"===e.style?"rounded-full border border-white/70 px-6 py-2.5 text-sm font-semibold text-white":"rounded-full bg-white px-6 py-2.5 text-sm font-semibold text-gray-900";return c?(0,l.jsx)("span",{className:"".concat(o," cursor-default"),children:e.label},t):(0,l.jsx)("a",{href:(0,m.v)(e.link),className:o,children:e.label},t)})})]})]})}function w(e){var t,o,n;let{config:a}=e,{getImageUrl:s}=(0,r.b)(),d=(0,i.Zx)(),c=!!d,u=function(e){if(!e||"string"!=typeof e)return null;let t=e.trim(),o=t.match(/(?:youtube\.com\/(?:watch\?(?:[^#]*&)?v=|embed\/|shorts\/)|youtu\.be\/)([\w-]+)/);if(o)return{provider:"youtube",id:o[1]};let l=t.match(/vimeo\.com\/(?:video\/)?(\d{6,})/);return l?{provider:"vimeo",id:l[1]}:null}(a.videoUrl),h=u?(t=u.provider,o=u.id,(n=a.posterUrl)?n:"youtube"===t&&o?"https://i.ytimg.com/vi/".concat(o,"/hqdefault.jpg"):null):a.posterUrl||null,m={config:a,parsed:u,poster:h?s(h):null,isEditMode:c,updateField:(e,t)=>{var o;return null==d||null==(o=d.onUpdateConfig)?void 0:o.call(d,{...a,[e]:t})},setTextColor:(e,t)=>{var o;return null==d||null==(o=d.onUpdateConfig)?void 0:o.call(d,(0,y.dE)(a,e,t))}};return"background"===a.layout?(0,l.jsx)(p,{...m}):(0,l.jsx)(f,{...m})}},75415:(e,t,o)=>{o.d(t,{A:()=>a});var l=o(54568),n=o(7620);function a(e){let{src:t,fallback:o=null,onError:a,alt:r="",...i}=e,[s,d]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{d(!1)},[t]),!t||s)?o:(0,l.jsx)("img",{...i,src:t,alt:r,onError:e=>{"function"==typeof a&&a(e),d(!0)}})}}
1,77168:(e,t,o)=>{o.d(t,{Nx:()=>u,dE:()=>m,sT:()=>h});let l={heading:"headingColor",subheading:"subheadingColor"},n=[12,12,16];function a(e){if("string"!=typeof e)return;let t=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(e.trim());if(!t)return;let o=t[1].length<=4?t[1].split("").map(e=>e+e).join(""):t[1];return[parseInt(o.slice(0,2),16),parseInt(o.slice(2,4),16),parseInt(o.slice(4,6),16),8===o.length?parseInt(o.slice(6,8),16)/255:1]}function r(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function i(e){return .2126*r(e[0])+.7152*r(e[1])+.0722*r(e[2])}function s(e,t){return[e[0]*e[3]+t[0]*(1-e[3]),e[1]*e[3]+t[1]*(1-e[3]),e[2]*e[3]+t[2]*(1-e[3])]}function d(e,t,o){var r,d,c;if((null==o?void 0:o.templateId)!=="studio"||(null==e||null==(r=e.textColors)?void 0:r[t])!==void 0||(null==e||null==(d=e.textStyles)?void 0:d["".concat(t,"ColorMode")])==="custom")return!1;let u=l[t],h=u&&a(null==e||null==(c=e.textStyles)?void 0:c[u]);if(!h)return!1;let m=function(e){let t=null==e?void 0:e.backgroundImage,o=(null==t?void 0:t.type)==="solid"&&a(t.solidColor);return o?s(o,n):n}(e);return 4.5>function(e,t){let o=i(e),l=i(t);return(Math.max(o,l)+.05)/(Math.min(o,l)+.05)}(s(h,m),m)}function c(e,t){var o,l,n;return(null==e||null==(o=e.textStyles)?void 0:o.headingColor)==="#000000"&&(null==e||null==(l=e.textStyles)?void 0:l.subheadingColor)==="#4b5563"&&(!t||(null==e||null==(n=e.textStyles)?void 0:n["".concat(t,"ColorMode")])!=="custom")}function u(e,t,o,n){var a,r;let i=null==e||null==(a=e.textColors)?void 0:a[t];if(i)return i;let s=l[t];return s&&!c(e,t)&&!d(e,t,n)&&(null==e||null==(r=e.textStyles)?void 0:r[s])?e.textStyles[s]:"var(".concat(o,")")}function h(e,t,o){var n,a;let r=null==e||null==(n=e.textColors)?void 0:n[t];if(r)return r;let i=l[t];if(i&&!c(e,t)&&!d(e,t,o)&&(null==e||null==(a=e.textStyles)?void 0:a[i]))return e.textStyles[i]}function m(e,t,o){let n={...(null==e?void 0:e.textColors)||{}};o?n[t]=o:delete n[t];let a=null==e?void 0:e.textStyles;c(e)&&("custom"!==(a={...a}).headingColorMode&&delete a.headingColor,"custom"!==a.subheadingColorMode&&delete a.subheadingColor);let r=l[t];return r&&(null==a?void 0:a[r])!==void 0&&(a===(null==e?void 0:e.textStyles)&&(a={...a}),delete a[r]),{...e,textColors:n,...a!==(null==e?void 0:e.textStyles)?{textStyles:a}:{}}}}}]);

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.