PageSourceSearch

https://instill-website.vercel.app/assets/post._slug-ByI5gIqy.js

js instill-website.vercel.app collected 2026-10-03 07:07:44 UTC 24,954 bytes, 6 lines download raw bytes

1import{r as V,j as c,T as gt,u as bt}from"./index-BrIrwkxK.js";import{u as wt}from"./BogDataContext-CTZPKrWi.js";import{M as kt}from"./Modal-DH2Wj3me.js";function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(y){return Object.getOwnPropertyDescriptor(t,y).enumerable})),r.push.apply(r,s)}return r}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Y(Object(r),!0).forEach(function(s){jt(t,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(r,s))})}return t}function jt(t,e,r){return(e=Ot(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ot(t){var e=vt(t,"string");return typeof e=="symbol"?e:e+""}function vt(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,e);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function z(t){return t._type==="span"&&"text"in t&&typeof t.text=="string"&&(typeof t.marks>"u"||Array.isArray(t.marks)&&t.marks.every(e=>typeof e=="string"))}function it(t){return typeof t._type=="string"&&t._type[0]!=="@"&&(!("markDefs"in t)||!t.markDefs||Array.isArray(t.markDefs)&&t.markDefs.every(e=>typeof e._key=="string"))&&"children"in t&&Array.isArray(t.children)&&t.children.every(e=>typeof e=="object"&&"_type"in e)}function ot(t){return it(t)&&"listItem"in t&&typeof t.listItem=="string"&&(typeof t.level>"u"||typeof t.level=="number")}function st(t){return t._type==="@list"}function at(t){return t._type==="@span"}function lt(t){return t._type==="@text"}const Q=["strong","em","code","underline","strike-through"];function It(t,e,r){if(!z(t)||!t.marks)return[];if(!t.marks.length)return[];const s=t.marks.slice(),y={};return s.forEach(m=>{y[m]=1;for(let p=e+1;p<r.length;p++){const x=r[p];if(x&&z(x)&&Array.isArray(x.marks)&&x.marks.indexOf(m)!==-1)y[m]++;else break}}),s.sort((m,p)=>_t(y,m,p))}function _t(t,e,r){const s=t[e],y=t[r];if(s!==y)return y-s;const m=Q.indexOf(e),p=Q.indexOf(r);return m!==p?m-p:e.localeCompare(r)}function Pt(t){var e,r;const{children:s}=t,y=(e=t.markDefs)!=null?e:[];if(!s||!s.length)return[];const m=s.map(It),p={_type:"@span",children:[],markType:"<unknown>"};let x=[p];for(let f=0;f<s.length;f++){const l=s[f];if(!l)continue;const O=m[f]||[];let u=1;if(x.length>1)for(u;u<x.length;u++){const g=((r=x[u])==null?void 0:r.markKey)||"",w=O.indexOf(g);if(w===-1)break;O.splice(w,1)}x=x.slice(0,u);let d=x[x.length-1];if(d){for(const g of O){const w=y==null?void 0:y.find(v=>v._key===g),b=w?w._type:g,I={_type:"@span",_key:l._key,children:[],markDef:w,markType:b,markKey:g};d.children.push(I),x.push(I),d=I}if(z(l)){const g=l.text.split(`
2`);for(let w=g.length;w-- >1;)g.splice(w,0,`
3`);d.children=d.children.concat(g.map(w=>({_type:"@text",text:w})))}else d.children=d.children.concat(l)}}return p.children}function Nt(t,e){const r=[];let s;for(let y=0;y<t.length;y++){const m=t[y];if(m){if(!ot(m)){r.push(m),s=void 0;continue}if(!s){s=W(m,y,e),r.push(s);continue}if(St(m,s)){s.children.push(m);continue}if((m.level||1)>s.level){const p=W(m,y,e);if(e==="html"){const x=s.children[s.children.length-1],f=J(J({},x),{},{children:[...x.children,p]});s.children[s.children.length-1]=f}else s.children.push(p);s=p;continue}if((m.level||1)<s.level){const p=r[r.length-1],x=p&&G(p,m);if(x){s=x,s.children.push(m);continue}s=W(m,y,e),r.push(s);continue}if(m.listItem!==s.listItem){const p=r[r.length-1],x=p&&G(p,{level:m.level||1});if(x&&x.listItem===m.listItem){s=x,s.children.push(m);continue}else{s=W(m,y,e),r.push(s);continue}}console.warn("Unknown state encountered for block",m),r.push(m)}}return r}function St(t,e){return(t.level||1)===e.level&&t.listItem===e.listItem}function W(t,e,r){return{_type:"@list",_key:`${t._key||`${e}`}-parent`,mode:r,level:t.level||1,listItem:t.listItem,children:[t]}}function G(t,e){const r=e.level||1,s=e.listItem||"normal",y=typeof e.listItem=="string";if(st(t)&&(t.level||1)===r&&y&&(t.listItem||"normal")===s)return t;if(!("children"in t))return;const m=t.children[t.children.length-1];return m&&!z(m)?G(m,e):void 0}function ct(t){let e="";
3return t.children.forEach(r=>{lt(r)?e+=r.text:at(r)&&(e+=ct(r))}),e}const Tt="html",Lt=["block","list","listItem","marks","types"],Mt=["listItem"],Ut=["_key"];function Z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(y){return Object.getOwnPropertyDescriptor(t,y).enumerable})),r.push.apply(r,s)}return r}function M(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Z(Object(r),!0).forEach(function(s){Ct(t,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(r,s))})}return t}function Ct(t,e,r){return(e=Dt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dt(t){var e=Et(t,"string");return typeof e=="symbol"?e:e+""}function Et(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,e);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function X(t,e){if(t==null)return{};var r,s,y=At(t,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(t);for(s=0;s<m.length;s++)r=m[s],e.includes(r)||{}.propertyIsEnumerable.call(t,r)&&(y[r]=t[r])}return y}function At(t,e){if(t==null)return{};var r={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(e.includes(s))continue;r[s]=t[s]}return r}const Rt={number:({children:t})=>c.jsx("ol",{children:t}),bullet:({children:t})=>c.jsx("ul",{children:t})},Ht=({children:t})=>c.jsx("li",{children:t}),$t=({children:t,value:e})=>c.jsx("a",{href:e==null?void 0:e.href,children:t}),Wt={textDecoration:"underline"},Bt={em:({children:t})=>c.jsx("em",{children:t}),strong:({children:t})=>c.jsx("strong",{children:t}),code:({children:t})=>c.jsx("code",{children:t}),underline:({children:t})=>c.jsx("span",{style:Wt,children:t}),"strike-through":({children:t})=>c.jsx("del",{children:t}),link:$t},$=(t,e)=>`[@portabletext/react] Unknown ${t}, specify a component for it in the \`components.${e}\` prop`,ft=t=>$(`block type "${t}"`,"types"),zt=t=>$(`mark type "${t}"`,"marks"),Ft=t=>$(`block style "${t}"`,"block"),qt=t=>$(`list style "${t}"`,"list"),Kt=t=>$(`list item style "${t}"`,"listItem");function Vt(t){console.warn(t)}const tt={display:"none"},Gt=({value:t,isInline:e})=>{const r=ft(t._type);return e?c.jsx("span",{style:tt,children:r}):c.jsx("div",{style:tt,children:r})},Xt=({markType:t,children:e})=>c.jsx("span",{className:`unknown__pt__mark__${t}`,children:e}),Yt=({children:t})=>c.jsx("p",{children:t}),Jt=({children:t})=>c.jsx("ul",{children:t}),Qt=({children:t})=>c.jsx("li",{children:t}),Zt=()=>c.jsx("br",{}),te={normal:({children:t})=>c.jsx("p",{children:t}),blockquote:({children:t})=>c.jsx("blockquote",{children:t}),h1:({children:t})=>c.jsx("h1",{children:t}),h2:({children:t})=>c.jsx("h2",{children:t}),h3:({children:t})=>c.jsx("h3",{children:t}),h4:({children:t})=>c.jsx("h4",{children:t}),h5:({children:t})=>c.jsx("h5",{children:t}),h6:({children:t})=>c.jsx("h6",{children:t})},et={types:{},block:te,marks:Bt,list:Rt,listItem:Ht,hardBreak:Zt,unknownType:Gt,unknownMark:Xt,unknownList:Jt,unknownListItem:Qt,unknownBlockStyle:Yt};function ee(t,e){const{block:r,list:s,listItem:y,marks:m,types:p}=e,x=X(e,Lt);return M(M({},t),{},{block:H(t,e,"block"),list:H(t,e,"list"),listItem:H(t,e,"listItem"),marks:H(t,e,"marks"),types:H(t,e,"types")},x)}function H(t,e,r){const s=e[r],y=t[r];return typeof s=="function"||s&&typeof y=="function"?s:s?M(M({},y),s):y}function K({value:t,components:e,listNestingMode:r,onMissingComponent:s=Vt}){const y=s||ne,m=Array.isArray(t)?t:[t],p=Nt(m,r||Tt),x=V.useMemo(()=>e?ee(et,e):et,[e]),f=V.useMemo(()=>re(x,y),[x,y]),l=p.map((O,u)=>f({node:O,index:u,isInline:!1,renderNode:f}));return c.jsx(c.Fragment,{children:l})}const re=(t,e)=>{function r(u){const{node:d,index:g,isInline:w}=u,b=d._key||`node-${g}`;return st(d)?m(d,g,b):ot(d)?y(d,g,b):at(d)?p(d,g,b):s(d)?O(d,g,b,w):it(d)?x(d,g,b,w):lt(d)?f(d,b):l(d,g,b,w)}function s(u){return u._type in t.types}function y(u,d,g){const w=rt({node:u,index:d,isInline:!1,renderNode:r}),b=t.listItem,I=(typeof b=="function"?b:b[u.listItem])||t.unknownListItem;if(I===t.unknownListItem){const P=u.listItem||"bullet";e(Kt(P),{type:P,nodeType:"listItemStyle"})}let v=w.children;if(u.style&&u.style!=="normal"){const{listItem:P}=u,C=X(u,Mt);v=r({node:C,index:d,isInline:!1})}return c.jsx(I,{value:u,index:d,isInline:!1,renderNode:r,children:v},g)}function m(u,d,g){const w=u.children.map((v,P)=>
3r({node:v._key?v:M(M({},v),{},{_key:`li-${d}-${P}`}),index:P,isInline:!1})),b=t.list,I=(typeof b=="function"?b:b[u.listItem])||t.unknownList;if(I===t.unknownList){const v=u.listItem||"bullet";e(qt(v),{nodeType:"listStyle",type:v})}return c.jsx(I,{value:u,index:d,isInline:!1,renderNode:r,children:w},g)}function p(u,d,g){const{markDef:w,markType:b,markKey:I}=u,v=t.marks[b]||t.unknownMark,P=u.children.map((C,F)=>r({node:C,index:F,isInline:!0}));return v===t.unknownMark&&e(zt(b),{nodeType:"mark",type:b}),c.jsx(v,{text:ct(u),value:w,markType:b,markKey:I,renderNode:r,children:P},g)}function x(u,d,g,w){const b=rt({node:u,index:d,isInline:w,renderNode:r}),{_key:I}=b,v=X(b,Ut),P=v.node.style||"normal",C=(typeof t.block=="function"?t.block:t.block[P])||t.unknownBlockStyle;return C===t.unknownBlockStyle&&e(Ft(P),{nodeType:"blockStyle",type:P}),c.jsx(C,M(M({},v),{},{value:v.node,renderNode:r}),g)}function f(u,d){if(u.text===`
4`){const g=t.hardBreak;return g?c.jsx(g,{},d):`
5`}return u.text}function l(u,d,g,w){const b={value:u,isInline:w,index:d,renderNode:r};e(ft(u._type),{nodeType:"block",type:u._type});const I=t.unknownType;return c.jsx(I,M({},b),g)}function O(u,d,g,w){const b={value:u,isInline:w,index:d,renderNode:r},I=t.types[u._type];return I?c.jsx(I,M({},b),g):null}return r};function rt(t){const{node:e,index:r,isInline:s,renderNode:y}=t,m=Pt(e).map((p,x)=>y({node:p,isInline:!0,index:x,renderNode:y}));return{_key:e._key||`block-${r}`,children:m,index:r,isInline:s,node:e}}function ne(){}var B={exports:{}},ie=B.exports,nt;function oe(){return nt||(nt=1,function(t,e){(function(r,s){t.exports=s()})(ie,function(){function r(){return r=Object.assign||function(i){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])}return i},r.apply(this,arguments)}function s(i,o){if(i){if(typeof i=="string")return y(i,o);var a=Object.prototype.toString.call(i).slice(8,-1);if(a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set")return Array.from(i);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return y(i,o)}}function y(i,o){(o==null||o>i.length)&&(o=i.length);for(var a=0,n=new Array(o);a<o;a++)n[a]=i[a];return n}function m(i,o){var a=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(a)return(a=a.call(i)).next.bind(a);if(Array.isArray(i)||(a=s(i))||o){a&&(i=a);var n=0;return function(){return n>=i.length?{done:!0}:{done:!1,value:i[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function x(i){var o=i.split("-"),a=o[1],n=o[2],j=o[3];if(!a||!n||!j)throw new Error("Malformed asset _ref '"+i+`'. Expected an id like "`+p+'".');var h=n.split("x"),k=h[0],_=h[1],T=+k,S=+_,N=isFinite(T)&&isFinite(S);if(!N)throw new Error("Malformed asset _ref '"+i+`'. Expected an id like "`+p+'".');return{id:a,width:T,height:S,format:j}}var f=function(o){var a=o;return a?typeof a._ref=="string":!1},l=function(o){var a=o;return a?typeof a._id=="string":!1},O=function(o){var a=o;return a&&a.asset?typeof a.asset.url=="string":!1};function u(i){if(!i)return null;var o;if(typeof i=="string"&&d(i))o={asset:{_ref:g(i)}};else if(typeof i=="string")o={asset:{_ref:i}};else if(f(i))o={asset:i};else if(l(i))o={asset:{_ref:i._id||""}};else if(O(i))o={asset:{_ref:g(i.asset.url)}};else if(typeof i.asset=="object")o=r({},i);else return null;var a=i;return a.crop&&(o.crop=a.crop),a.hotspot&&(o.hotspot=a.hotspot),w(o)}function d(i){return/^https?:\/\//.test(""+i)}function g(i){var o=i.split("/").slice(-1);return("image-"+o[0]).replace(/\.([a-z]+)$/,"-$1")}function w(i){if(i.crop&&i.hotspot)return i;var o=r({},i);return o.crop||(o.crop={left:0,top:0,bottom:0,right:0}),o.hotspot||(o.hotspot={x:.5,y:.5,height:1,width:1}),o}var b=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function I(i){var o=r({},i||{}),a=o.source;delete o.source;var n=u(a);if(!n)throw new Error("Unable to resolve image URL from source ("+JSON.stringify(a)+")");var j=n.asset._ref||n.asset._id||"",h=x(j),k=Math.round(n.crop.left*h.width),_=Math.round(n.crop.top*h.height),T={left:k,top:_,width:Math.round(h.width-n.crop.right*h.width-k),height:Math.round(h.height-n.crop.bottom*h.height-_)},S=n.hotspot.height*h.height/2,N=n.hotspot.width*h.width/2,E=n.hotspot.x*h.width,D=n.hotspot.y*h.height,L={left:E-N,top:D-S,right:E+N,bottom:D+S};return o.rect||o.focalPoint||o.ignoreImageParams||o.crop||(o=r({},o,P({crop:T,hotspot:L},o))),v(r({},o,{asset:h}))}function v(i){var o=(i.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),a=i.vanityName?"/"+i.vanityName:"",n=i.asset.id+"-"+i.asset.width+"x"+i.asset.height+"."+i.asset.format+a,j=o+"/images/"+i.projectId+"/"+i.dataset+"/"+n,h=[];if(i.rect){var k=i.rect,_=k.left,T=k.top,S=k.width,N=k.height,E=_!==0||T!==0||N!==i.asset.height||S!==i.asset.width;E&&h.push("rect="+_+","+T+","+S+","+N)}i.bg&&h.push("bg="+i.bg),i.focalPoint&&(h.push("fp-x="+i.focalPoint.x),h.push("fp-y="+i.focalPoint.y));
6var D=[i.flipHorizontal&&"h",i.flipVertical&&"v"].filter(Boolean).join("");return D&&h.push("flip="+D),b.forEach(function(L){var A=L[0],U=L[1];typeof i[A]<"u"?h.push(U+"="+encodeURIComponent(i[A])):typeof i[U]<"u"&&h.push(U+"="+encodeURIComponent(i[U]))}),h.length===0?j:j+"?"+h.join("&")}function P(i,o){var a,n=o.width,j=o.height;if(!(n&&j))return{width:n,height:j,rect:i.crop};var h=i.crop,k=i.hotspot,_=n/j,T=h.width/h.height;if(T>_){var S=Math.round(h.height),N=Math.round(S*_),E=Math.max(0,Math.round(h.top)),D=Math.round((k.right-k.left)/2+k.left),L=Math.max(0,Math.round(D-N/2));L<h.left?L=h.left:L+N>h.left+h.width&&(L=h.left+h.width-N),a={left:L,top:E,width:N,height:S}}else{var A=h.width,U=Math.round(A/_),yt=Math.max(0,Math.round(h.left)),xt=Math.round((k.bottom-k.top)/2+k.top),R=Math.max(0,Math.round(xt-U/2));R<h.top?R=h.top:R+U>h.top+h.height&&(R=h.top+h.height-U),a={left:yt,top:R,width:A,height:U}}return{width:n,height:j,rect:a}}var C=["clip","crop","fill","fillmax","max","scale","min"],F=["top","bottom","left","right","center","focalpoint","entropy"],ut=["format"];function ht(i){return i&&"config"in i?typeof i.config=="function":!1}function pt(i){return i&&"clientConfig"in i?typeof i.clientConfig=="object":!1}function mt(i){for(var o=b,a=m(o),n;!(n=a()).done;){var j=n.value,h=j[0],k=j[1];if(i===h||i===k)return h}return i}function dt(i){if(ht(i)){var o=i.config(),a=o.apiHost,n=o.projectId,j=o.dataset,h=a||"https://api.sanity.io";return new q(null,{baseUrl:h.replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:j})}if(pt(i)){var k=i.clientConfig,_=k.apiHost,T=k.projectId,S=k.dataset,N=_||"https://api.sanity.io";return new q(null,{baseUrl:N.replace(/^https:\/\/api\./,"https://cdn."),projectId:T,dataset:S})}return new q(null,i||{})}var q=function(){function i(a,n){this.options=void 0,this.options=a?r({},a.options||{},n||{}):r({},n||{})}var o=i.prototype;return o.withOptions=function(n){var j=n.baseUrl||this.options.baseUrl,h={baseUrl:j};for(var k in n)if(n.hasOwnProperty(k)){var _=mt(k);h[_]=n[k]}return new i(this,r({baseUrl:j},h))},o.image=function(n){return this.withOptions({source:n})},o.dataset=function(n){return this.withOptions({dataset:n})},o.projectId=function(n){return this.withOptions({projectId:n})},o.bg=function(n){return this.withOptions({bg:n})},o.dpr=function(n){return this.withOptions(n&&n!==1?{dpr:n}:{})},o.width=function(n){return this.withOptions({width:n})},o.height=function(n){return this.withOptions({height:n})},o.focalPoint=function(n,j){return this.withOptions({focalPoint:{x:n,y:j}})},o.maxWidth=function(n){return this.withOptions({maxWidth:n})},o.minWidth=function(n){return this.withOptions({minWidth:n})},o.maxHeight=function(n){return this.withOptions({maxHeight:n})},o.minHeight=function(n){return this.withOptions({minHeight:n})},o.size=function(n,j){return this.withOptions({width:n,height:j})},o.blur=function(n){return this.withOptions({blur:n})},o.sharpen=function(n){return this.withOptions({sharpen:n})},o.rect=function(n,j,h,k){return this.withOptions({rect:{left:n,top:j,width:h,height:k}})},o.format=function(n){return this.withOptions({format:n})},o.invert=function(n){return this.withOptions({invert:n})},o.orientation=function(n){return this.withOptions({orientation:n})},o.quality=function(n){return this.withOptions({quality:n})},o.forceDownload=function(n){return this.withOptions({download:n})},o.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},o.flipVertical=function(){return this.withOptions({flipVertical:!0})},o.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},o.fit=function(n){if(C.indexOf(n)===-1)throw new Error('Invalid fit mode "'+n+'"');return this.withOptions({fit:n})},o.crop=function(n){if(F.indexOf(n)===-1)throw new Error('Invalid crop mode "'+n+'"');return this.withOptions({crop:n})},o.saturation=function(n){return this.withOptions({saturation:n})},o.auto=function(n){if(ut.indexOf(n)===-1)throw new Error('Invalid auto mode "'+n+'"');return this.withOptions({auto:n})},o.pad=function(n){return this.withOptions({pad:n})},o.vanityName=function(n){return this.withOptions({vanityName:n})},o.frame=function(n){if(n!==1)throw new Error('Invalid frame value "'+n+'"');return this.withOptions({frame:n})},o.url=function(){return I(this.options)},o.toString=function(){return this.url()},i}();return dt})}(B)),B.exports}
6var se=oe();const ae=gt(se),le=ae({projectId:"mm1rajoz",dataset:"production"}),ce=t=>{var e;if(!((e=t==null?void 0:t.asset)!=null&&e._ref))return null;try{const r=le.image(t);return r?r.auto("format").fit("max"):null}catch(r){return console.error("Error generating image URL:",r),null}};function pe(){const{slug:t}=bt(),e=wt(t),[r,s]=V.useState(!1);if(!e)return null;const y=p=>{if((p==null?void 0:p.href)==="modal"){s(!0);return}},m=({value:p})=>{var l;const x=p;if(!((l=x==null?void 0:x.asset)!=null&&l._ref))return null;const f=ce(x);if(!f)return null;try{const O=f.width(800).url();return O?c.jsx("img",{src:O,alt:x.alt||" ",className:"w-full h-auto rounded-xl md:rounded-3xl",onError:u=>{console.error("Error loading image:",u),u.currentTarget.style.display="none"}}):null}catch(O){return console.error("Error generating image URL:",O),null}};return c.jsxs("div",{className:"w-full flex flex-col items-center pt-10 pb-16",children:[r&&c.jsx(kt,{onClose:()=>s(!1)}),c.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between items-end space-y-4 md:space-y-0 md:space-x-18 py-20 px-4 md:px-16",children:[c.jsxs("div",{className:"w-full md:w-1/2 flex flex-col text-black gap-4",children:[c.jsx("span",{className:"text-lg",children:"INSTILL BLOG"}),c.jsx("h1",{className:"text-5xl md:text-7xl",children:e.title})]}),c.jsx("div",{className:"w-full md:max-w-[420px] flex flex-col space-y-4 md:items-end",children:c.jsx("p",{className:"w-full text-base leading-8 text-left md:text-right",children:e.shortDescription})})]}),c.jsx("div",{className:"w-full md:w-[60vw] flex flex-col text-black gap-4 px-4 md:px-0",children:c.jsx("div",{className:"rich-text-content w-full flex flex-col gap-8",children:e.content.map((p,x)=>{if(p._type==="highlightContent"&&p.highlightContentRichText)return c.jsx("div",{className:"bg-[#f2efea] border-[#e8e4dc] p-8 rounded-xl md:rounded-3xl",children:c.jsx(K,{value:p.highlightContentRichText,components:{types:{image:m},block:{normal:({children:f,value:l})=>{var u;return((u=l==null?void 0:l.children)==null?void 0:u.some(d=>d.text&&d.text.trim()!==""))?c.jsx("p",{className:"text-base leading-8",children:f}):null},h2:({children:f})=>c.jsx("h2",{className:"text-3xl md:text-5xl pb-4",children:f}),h3:({children:f})=>c.jsx("h3",{className:"text-2xl md:text-3xl pb-4",children:f})},list:{bullet:({children:f})=>c.jsx("ul",{className:"list-disc pl-4 space-y-4 leading-6 md:leading-8 py-6 md:py-8",children:f}),number:({children:f})=>c.jsx("ol",{className:"list-decimal pl-4 space-y-4 leading-6 md:leading-8",children:f})},marks:{strong:({children:f})=>c.jsx("strong",{className:"font-semibold",children:f}),em:({children:f})=>c.jsx("em",{className:"italic",children:f}),link:({children:f,value:l})=>c.jsx("a",{href:(l==null?void 0:l.href)==="modal"?"#":l==null?void 0:l.href,className:"text-black underline",target:l!=null&&l.blank?"_blank":void 0,rel:l!=null&&l.blank?"noopener noreferrer":void 0,onClick:O=>{(l==null?void 0:l.href)==="modal"&&(O.preventDefault(),y(l))},children:f})}}})},x);if(p._type==="normalContent"&&p.normalContentRichText)return c.jsx("div",{children:c.jsx(K,{value:p.normalContentRichText,components:{types:{image:m},block:{normal:({children:f,value:l})=>{var u;return((u=l==null?void 0:l.children)==null?void 0:u.some(d=>d.text&&d.text.trim()!==""))?c.jsx("p",{className:"text-base leading-8 py-2 md:py-4",children:f}):null},h2:({children:f})=>c.jsx("h2",{className:"text-3xl md:text-5xl pb-2",children:f}),h3:({children:f})=>c.jsx("h3",{className:"text-2xl md:text-3xl pb-2",children:f})},list:{bullet:({children:f})=>c.jsx("ul",{className:"list-disc pl-6 space-y-4 leading-6 md:leading-8 py-6 md:py-8",children:f}),number:({children:f})=>c.jsx("ol",{className:"list-decimal pl-6 space-y-4 leading-6 md:leading-8 py-6 md:py-8",children:f})},marks:{strong:({children:f})=>c.jsx("strong",{className:"font-semibold",children:f}),em:({children:f})=>c.jsx("em",{className:"italic",children:f}),link:({children:f,value:l})=>c.jsx("a",{href:(l==null?void 0:l.href)==="modal"?"#":l==null?void 0:l.href,className:"text-black underline",target:l!=null&&l.blank?"_blank":void 0,rel:l!=null&&l.blank?"noopener noreferrer":void 0,onClick:O=>{(l==null?void 0:l.href)==="modal"&&(O.preventDefault(),y(l))},children:f})}}})},x);if(p._type==="ctaContent")return c.jsx("div",{className:"bg-[#f2efea] border-[#e8e4dc] flex text-center justify-center p-6 md:p-10 rounded-xl md:rounded-3xl",children:c.jsxs("div",{className:"w-full md:w-[70%] flex flex-col justify-center gap-4",children:[p.ctaRichText&&c.jsx(K,{value:p.ctaRichText,components:{types:{image:m},block:{normal:({children:f,value:l})=>{var u;return((u=l==null?void 0:l.children)==null?void 0:u.some(d=>d.text&&d.text.trim()!==""))?c.jsx("p",{className:"text-base leading-8",children:f}):null},h2:({children:f})=>c.jsx("h2",{className:"text-3xl font-semibold",children:f}),h3:({children:f})=>c.jsx("h3",{className:"text-2xl font-medium",children:f}),h4:({children:f})=>c.jsx("h4",{className:"text-xl font-medium",children:f})},list:{bullet:({children:f})=>c.jsx("ul",{className:"list-disc pl-6 space-y-4 leading-8",children:f}),number:({children:f})=>c.jsx("ol",{className:"list-decimal pl-6 space-y-4 leading-8",children:f})},marks:{strong:({children:f})=>c.jsx("strong",{className:"font-semibold",children:f}),em:({children:f})=>c.jsx("em",{className:"italic",children:f}),link:({children:f,value:l})=>c.jsx("a",{href:(l==null?void 0:l.href)==="modal"?"#":l==null?void 0:l.href,className:"text-black underline",target:l!=null&&l.blank?"_blank":void 0,rel:l!=null&&l.blank?"noopener noreferrer":void 0,onClick:O=>{(l==null?void 0:l.href)==="modal"&&(O.preventDefault(),y(l))},children:f})}}}),p.button&&c.jsx("div",{className:"mt-6 text-center",children:c.jsx("a",{href:p.button.buttonLink==="modal"?"#":p.button.buttonLink,className:"inline-block bg-white text-black px-6 py-3 rounded-lg hover:bg-[#e8e4dc] transition-colors",onClick:f=>{var l;
6((l=p.button)==null?void 0:l.buttonLink)==="modal"&&(f.preventDefault(),s(!0))},children:p.button.buttonText})})]})},x)})})})]})}export{pe as default};

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.