1import{c as P,r as Y,j as n}from"./preload-helper-pGM20HTl.js";import{p as ee,F as fe}from"./index-B5UtO8ns.js";import{a as me,b as pe}from"./honeypot-DvMUSKAJ.js";import{o as ge,u as ve,a as be}from"./components-l0W42ySR.js";import{d as ye}from"./mergeMeta-DsSAg4yt.js";import{h as ke,p as we}from"./handleCache-umEOCHVN.js";import{u as xe}from"./loader-B0rw9O5r.js";import{m as je,c as Te}from"./motion-B6WPpABr.js";import"./SanityImage-CA3CKBOn.js";import"./lru-cache-DbK9v9jx.js";import"./index-4d1suxpw.js";import"./resolveEditInfo-CkL6yx9w.js";import"./projectDetails-kEH6YTdk.js";import"./frame-BoJ9ysBG.js";var V={},te={},re={},J={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.Direction=void 0,function(c){c.Right="to right",c.Left="to left",c.Down="to bottom",c.Up="to top"}(r.Direction||(r.Direction={}))})(J);(function(r){var c=P&&P.__spreadArray||function(a,o,l){if(l||arguments.length===2)for(var b=0,y=o.length,g;b<y;b++)(g||!(b in o))&&(g||(g=Array.prototype.slice.call(o,0,b)),g[b]=o[b]);return a.concat(g||Array.prototype.slice.call(o))};Object.defineProperty(r,"__esModule",{value:!0}),r.useThumbOverlap=r.assertUnreachable=r.voidFn=r.getTrackBackground=r.replaceAt=r.schd=r.translate=r.getClosestThumbIndex=r.translateThumbs=r.getPaddingAndBorder=r.getMargin=r.checkInitialOverlap=r.checkValuesAgainstBoundaries=r.checkBoundaries=r.isVertical=r.relativeValue=r.normalizeValue=r.isStepDivisible=r.isTouchEvent=r.getStepDecimals=void 0;var s=Y,e=J,t=function(a){var o=a.toString().split(".")[1];return o?o.length:0};r.getStepDecimals=t;function i(a){return a.touches&&a.touches.length||a.changedTouches&&a.changedTouches.length}r.isTouchEvent=i;function u(a,o,l){var b=(o-a)/l,y=8,g=Number(b.toFixed(y));return parseInt(g.toString(),10)===g}r.isStepDivisible=u;function d(a,o,l,b,y,g,T){var x=1e11;if(a=Math.round(a*x)/x,!g){var E=T[o-1],O=T[o+1];if(E&&E>a)return E;if(O&&O<a)return O}if(a>b)return b;if(a<l)return l;var U=Math.floor(a*x-l*x)%Math.floor(y*x),A=Math.floor(a*x-Math.abs(U)),z=U===0?a:A/x,_=Math.abs(U/x)<y/2?z:z+y,q=(0,r.getStepDecimals)(y);return parseFloat(_.toFixed(q))}r.normalizeValue=d;function h(a,o,l){return(a-o)/(l-o)}r.relativeValue=h;function j(a){return a===e.Direction.Up||a===e.Direction.Down}r.isVertical=j;function v(a,o,l){if(o>=l)throw new RangeError("min (".concat(o,") is equal/bigger than max (").concat(l,")"));if(a<o)throw new RangeError("value (".concat(a,") is smaller than min (").concat(o,")"));if(a>l)throw new RangeError("value (".concat(a,") is bigger than max (").concat(l,")"))}r.checkBoundaries=v;function m(a,o,l){return a<o?o:a>l?l:a}r.checkValuesAgainstBoundaries=m;function f(a){if(!(a.length<2)&&!a.slice(1).every(function(o,l){return a[l]<=o}))throw new RangeError("values={[".concat(a,"]} needs to be sorted when allowOverlap={false}"))}r.checkInitialOverlap=f;function D(a){var o=window.getComputedStyle(a);return{top:parseInt(o["margin-top"],10),bottom:parseInt(o["margin-bottom"],10),left:parseInt(o["margin-left"],10),right:parseInt(o["margin-right"],10)}}r.getMargin=D;function k(a){var o=window.getComputedStyle(a);return{top:parseInt(o["padding-top"],10)+parseInt(o["border-top-width"],10),bottom:parseInt(o["padding-bottom"],10)+parseInt(o["border-bottom-width"],10),left:parseInt(o["padding-left"],10)+parseInt(o["border-left-width"],10),right:parseInt(o["padding-right"],10)+parseInt(o["border-right-width"],10)}}r.getPaddingAndBorder=k;function S(a,o,l){var b=l?-1:1;a.forEach(function(y,g){return I(y,b*o[g].x,o[g].y)})}r.translateThumbs=S;function C(a,o,l,b){for(var y=0,g=L(a[0],o,l,b),T=1;T<a.length;T++){var x=L(a[T],o,l,b);x<g&&(g=x,y=T)}return y}r.getClosestThumbIndex=C;function I(a,o,l){a.style.transform="translate(".concat(o,"px, ").concat(l,"px)")}r.translate=I;var M=function(a){var o=[],l=null,b=function(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];o=y,!l&&(l=requestAnimationFrame(function(){l=null,a.apply(void 0,o)}))};return b};r.schd=M;function N(a,o,l){var b=a.slice(0);return b[o]=l,b}r.replaceAt=N;function H(a){var o=a.values,l=a.colors,b=a.min,y=a.max,g=a.direction,T=g===void 0?e.Direction.Right:g,x=a.rtl,E=x===void 0?!1:x;E&&T===e.Direction.Right?T=e.Direction.Left:E&&e.Direction.Left&&(T=e.Direction.Right);var O=o.slice(0).sort(function(A,z){return A-z}).map(function(A){return(A-b)/(y-b)*100}),U=O.reduce(function(A,z,_){return"".concat(A,", ").concat(l[_]," ").concat(z,"%, ").concat(l[_+1]," ").concat(z,"%")},"");return"linear-gradient(".concat(T,", ").concat(l[0]," 0%").concat(U,", ").concat(l[l.length-1]," 100%)")}
1r.getTrackBackground=H;function K(){}r.voidFn=K;function F(a){throw new Error("Didn't expect to get here")}r.assertUnreachable=F;var p=function(a,o,l,b,y){y===void 0&&(y=function(T){return T});var g=Math.ceil(c([a],Array.from(a.children),!0).reduce(function(T,x){var E=Math.ceil(x.getBoundingClientRect().width);if(x.innerText&&x.innerText.includes(l)&&x.childElementCount===0){var O=x.cloneNode(!0);O.innerHTML=y(o.toFixed(b)),O.style.visibility="hidden",document.body.appendChild(O),E=Math.ceil(O.getBoundingClientRect().width),document.body.removeChild(O)}return E>T?E:T},a.getBoundingClientRect().width));return g},B=function(a,o,l,b,y,g,T){T===void 0&&(T=function(O){return O});var x=[],E=function(O){var U=p(l[O],b[O],y,g,T),A=o[O].x;o.forEach(function(z,_){var q=z.x,$=p(l[_],b[_],y,g,T);O!==_&&(A>=q&&A<=q+$||A+U>=q&&A+U<=q+$)&&(x.includes(_)||(x.push(O),x.push(_),x=c(c([],x,!0),[O,_],!1),E(_)))})};return E(a),Array.from(new Set(x.sort()))},W=function(a,o,l,b,y,g){b===void 0&&(b=.1),y===void 0&&(y=" - "),g===void 0&&(g=function(_){return _});var T=(0,r.getStepDecimals)(b),x=(0,s.useState)({}),E=x[0],O=x[1],U=(0,s.useState)(g(o[l].toFixed(T))),A=U[0],z=U[1];return(0,s.useEffect)(function(){if(a){var _=a.getThumbs();if(_.length<1)return;var q={},$=a.getOffsets(),X=B(l,$,_,o,y,T,g),ne=g(o[l].toFixed(T));if(X.length){var G=X.reduce(function(Z,se,oe,ce){return Z.length?c(c([],Z,!0),[$[ce[oe]].x],!1):[$[ce[oe]].x]},[]);if(Math.min.apply(Math,G)===$[l].x){var ae=[];X.forEach(function(Z){ae.push(o[Z].toFixed(T))}),ne=Array.from(new Set(ae.sort(function(Z,se){return parseFloat(Z)-parseFloat(se)}))).map(g).join(y);var de=Math.min.apply(Math,G),ie=Math.max.apply(Math,G),he=_[X[G.indexOf(ie)]].getBoundingClientRect().width;q.left="".concat(Math.abs(de-(ie+he))/2,"px"),q.transform="translate(-50%, 0)"}else q.visibility="hidden"}z(ne),O(q)}},[a,o]),[A,E]};r.useThumbOverlap=W;function L(a,o,l,b){var y=a.getBoundingClientRect(),g=y.left,T=y.top,x=y.width,E=y.height;return j(b)?Math.abs(l-(T+E/2)):Math.abs(o-(g+x/2))}})(re);var Me=P&&P.__extends||function(){var r=function(c,s){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},r(c,s)};return function(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");r(c,s);function e(){this.constructor=c}c.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}}(),Oe=P&&P.__createBinding||(Object.create?function(r,c,s,e){e===void 0&&(e=s);var t=Object.getOwnPropertyDescriptor(c,s);(!t||("get"in t?!c.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return c[s]}}),Object.defineProperty(r,e,t)}:function(r,c,s,e){e===void 0&&(e=s),r[e]=c[s]}),De=P&&P.__setModuleDefault||(Object.create?function(r,c){Object.defineProperty(r,"default",{enumerable:!0,value:c})}:function(r,c){r.default=c}),Re=P&&P.__importStar||function(r){if(r&&r.__esModule)return r;var c={};if(r!=null)for(var s in r)s!=="default"&&Object.prototype.hasOwnProperty.call(r,s)&&Oe(c,r,s);return De(c,r),c},ue=P&&P.__spreadArray||function(r,c,s){if(s||arguments.length===2)for(var e=0,t=c.length,i;e<t;e++)(i||!(e in c))&&(i||(i=Array.prototype.slice.call(c,0,e)),i[e]=c[e]);return r.concat(i||Array.prototype.slice.call(c))};Object.defineProperty(te,"__esModule",{value:!0});var Q=Re(Y),w=re,R=J,_e=["ArrowRight","ArrowUp","k","PageUp"],Se=["ArrowLeft","ArrowDown","j","PageDown"],Ee=function(r){Me(c,r);function c(s){var e=r.call(this,s)||this;if(e.trackRef=Q.createRef(),e.thumbRefs=[],e.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(e.props.values.length).fill(0).map(function(t,i){return i}),isChanged:!1,markOffsets:[]},e.getOffsets=function(){var t=e.props,i=t.direction,u=t.values,d=t.min,h=t.max,j=e.trackRef.current,v=j.getBoundingClientRect(),m=(0,w.getPaddingAndBorder)(j);return e.getThumbs().map(function(f,D){var k={x:0,y:0},S=f.getBoundingClientRect(),C=(0,w.getMargin)(f);switch(i){case R.Direction.Right:return k.x=(C.left+m.left)*-1,k.y=((S.height-v.height)/2+m.top)*-1,k.x+=v.width*(0,w.relativeValue)(u[D],d,h)-S.width/2,k;case R.Direction.Left:return k.x=(C.right+m.right)*-1,k.y=((S.height-v.height)/2+m.top)*-1,k.x+=v.width-v.width*(0,w.relativeValue)(u[D],d,h)-S.width/2,k;case R.Direction.Up:return k.x=((S.width-v.width)/2+C.left+m.left)*-1,k.y=-m.left,k.y+=v.height-v.height*(0,w.relativeValue)(u[D],d,h)-S.height/2,k;case R.Direction.Down:return k.x=((S.width-v.width)/2+C.left+m.left)*-1,k.y=-m.left,k.y+=v.height*(0,w.relativeValue)(u[D],d,h)-S.height/2,k;default:return(0,w.assertUnreachable)(i)}})},e.getThumbs=function(){return e.trackRef&&e.trackRef.current?Array.from(e.trackRef.current.children).filter(function(t){return t.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},e.getTargetIndex=function(t){return e.getThumbs().findIndex(function(i){return i===t.target||i.contains(t.target)})},e.addTouchEvents=function(t){document.addEventListener("touchmove",e.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",e.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",e.schdOnEnd,{passive:!1})},e.addMouseEvents=function(t){document.addEventListener("mousemove",e.schdOnMouseMove),document.addEventListener("mouseup",e.schdOnEnd)},e.onMouseDownTrack=function(t){var i;if(t.button===0)if(t.persist(),t.preventDefault(),e.addMouseEvents(t.nativeEvent),e.props.values.length>
11&&e.props.draggableTrack){if(e.thumbRefs.some(function(d){var h;return(h=d.current)===null||h===void 0?void 0:h.contains(t.target)}))return;e.setState({draggedTrackPos:[t.clientX,t.clientY]},function(){return e.onMove(t.clientX,t.clientY)})}else{var u=(0,w.getClosestThumbIndex)(e.thumbRefs.map(function(d){return d.current}),t.clientX,t.clientY,e.props.direction);(i=e.thumbRefs[u].current)===null||i===void 0||i.focus(),e.setState({draggedThumbIndex:u},function(){return e.onMove(t.clientX,t.clientY)})}},e.onResize=function(){(0,w.translateThumbs)(e.getThumbs(),e.getOffsets(),e.props.rtl),e.calculateMarkOffsets()},e.onTouchStartTrack=function(t){var i;if(t.persist(),e.addTouchEvents(t.nativeEvent),e.props.values.length>1&&e.props.draggableTrack){if(e.thumbRefs.some(function(d){var h;return(h=d.current)===null||h===void 0?void 0:h.contains(t.target)}))return;e.setState({draggedTrackPos:[t.touches[0].clientX,t.touches[0].clientY]},function(){return e.onMove(t.touches[0].clientX,t.touches[0].clientY)})}else{var u=(0,w.getClosestThumbIndex)(e.thumbRefs.map(function(d){return d.current}),t.touches[0].clientX,t.touches[0].clientY,e.props.direction);(i=e.thumbRefs[u].current)===null||i===void 0||i.focus(),e.setState({draggedThumbIndex:u},function(){return e.onMove(t.touches[0].clientX,t.touches[0].clientY)})}},e.onMouseOrTouchStart=function(t){if(!e.props.disabled){var i=(0,w.isTouchEvent)(t);if(!(!i&&t.button!==0)){var u=e.getTargetIndex(t);u!==-1&&(i?e.addTouchEvents(t):e.addMouseEvents(t),e.setState({draggedThumbIndex:u,thumbZIndexes:e.state.thumbZIndexes.map(function(d,h){return h===u?Math.max.apply(Math,e.state.thumbZIndexes):d<=e.state.thumbZIndexes[u]?d:d-1})}))}}},e.onMouseMove=function(t){t.preventDefault(),e.onMove(t.clientX,t.clientY)},e.onTouchMove=function(t){t.preventDefault(),e.onMove(t.touches[0].clientX,t.touches[0].clientY)},e.onKeyDown=function(t){var i=e.props,u=i.values,d=i.onChange,h=i.step,j=i.rtl,v=i.direction,m=e.state.isChanged,f=e.getTargetIndex(t.nativeEvent),D=j||v===R.Direction.Left||v===R.Direction.Down?-1:1;f!==-1&&(_e.includes(t.key)?(t.preventDefault(),e.setState({draggedThumbIndex:f,isChanged:!0}),d((0,w.replaceAt)(u,f,e.normalizeValue(u[f]+D*(t.key==="PageUp"?h*10:h),f)))):Se.includes(t.key)?(t.preventDefault(),e.setState({draggedThumbIndex:f,isChanged:!0}),d((0,w.replaceAt)(u,f,e.normalizeValue(u[f]-D*(t.key==="PageDown"?h*10:h),f)))):t.key==="Tab"?e.setState({draggedThumbIndex:-1},function(){m&&e.fireOnFinalChange()}):m&&e.fireOnFinalChange())},e.onKeyUp=function(t){var i=e.state.isChanged;e.setState({draggedThumbIndex:-1},function(){i&&e.fireOnFinalChange()})},e.onMove=function(t,i){var u=e.state,d=u.draggedThumbIndex,h=u.draggedTrackPos,j=e.props,v=j.direction,m=j.min,f=j.max,D=j.onChange,k=j.values,S=j.step,C=j.rtl;if(d===-1&&h[0]===-1&&h[1]===-1)return null;var I=e.trackRef.current;if(!I)return null;var M=I.getBoundingClientRect(),N=(0,w.isVertical)(v)?M.height:M.width;if(h[0]!==-1&&h[1]!==-1){var H=t-h[0],K=i-h[1],F=0;switch(v){case R.Direction.Right:case R.Direction.Left:F=H/N*(f-m);break;case R.Direction.Down:case R.Direction.Up:F=K/N*(f-m);break;default:(0,w.assertUnreachable)(v)}if(C&&(F*=-1),Math.abs(F)>=S/2){for(var p=0;p<e.thumbRefs.length;p++){if(k[p]===f&&Math.sign(F)===1||k[p]===m&&Math.sign(F)===-1)return;var B=k[p]+F;B>f?F=f-k[p]:B<m&&(F=m-k[p])}for(var W=k.slice(0),p=0;p<e.thumbRefs.length;p++)W=(0,w.replaceAt)(W,p,e.normalizeValue(k[p]+F,p));e.setState({draggedTrackPos:[t,i]}),D(W)}}else{var L=0;switch(v){case R.Direction.Right:L=(t-M.left)/N*(f-m)+m;break;case R.Direction.Left:L=(N-(t-M.left))/N*(f-m)+m;break;case R.Direction.Down:L=(i-M.top)/N*(f-m)+m;break;case R.Direction.Up:L=(N-(i-M.top))/N*(f-m)+m;break;default:(0,w.assertUnreachable)(v)}C&&(L=f+m-L),Math.abs(k[d]-L)>=S/2&&D((0,w.replaceAt)(k,d,e.normalizeValue(L,d)))}},e.normalizeValue=function(t,i){var u=e.props,d=u.min,h=u.max,j=u.step,v=u.allowOverlap,m=u.values;return(0,w.normalizeValue)(t,i,d,h,j,v,m)},e.onEnd=function(t){if(t.preventDefault(),document.removeEventListener("mousemove",e.schdOnMouseMove),document.removeEventListener("touchmove",e.schdOnTouchMove),document.removeEventListener("mouseup",e.schdOnEnd),document.removeEventListener("touchend",e.schdOnEnd),document.removeEventListener("touchcancel",e.schdOnEnd),e.state.draggedThumbIndex===-1&&e.state.draggedTrackPos[0]===-1&&e.state.draggedTrackPos[1]===-1)return null;e.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){e.fireOnFinalChange()})},e.fireOnFinalChange=function(){e.setState({isChanged:!1});var t=e.props,i=t.onFinalChange,u=t.values;i&&i(u)},e.updateMarkRefs=function(t){if(!t.renderMark){e.numOfMarks=void 0,e.markRefs=void 0;return}e.numOfMarks=(t.max-t.min)/e.props.step,e.markRefs=[];for(var i=0;i<e.numOfMarks+1;i++)e.markRefs[i]=Q.createRef()},e.calculateMarkOffsets=function(){if(!(!e.props.renderMark||!e.trackRef||!e.numOfMarks||!e.markRefs||e.trackRef.current===null)){for(var t=window.getComputedStyle(e.trackRef.current),i=parseInt(t.width,10),u=parseInt(t.height,10),d=parseInt(t.paddingLeft,10),h=parseInt(t.paddingTop,10),j=[],v=0;v<e.numOfMarks+1;v++){var m=9999,f=9999;if(e.markRefs[v].current){var D=e.markRefs[v].current.getBoundingClientRect();m=D.height,f=D.width}e.props.direction===R.Direction.Left||e.props.direction===R.Direction.Right?j.push([Math.round(i/e.numOfMarks*v+d-f/2),-Math.round((m-u)/2)]):j.push([Math.round(u/e.numOfMarks*v+h-m/2),-Math.round((f-i)/2)])}e.setState({markOffsets:j})}},s.step===0)throw new Error('"step" property should be a positive number');
1return e.schdOnMouseMove=(0,w.schd)(e.onMouseMove),e.schdOnTouchMove=(0,w.schd)(e.onTouchMove),e.schdOnEnd=(0,w.schd)(e.onEnd),e.thumbRefs=s.values.map(function(){return Q.createRef()}),e.updateMarkRefs(s),e}return c.prototype.componentDidMount=function(){var s=this,e=this.props,t=e.values,i=e.min,u=e.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",s.onResize)},unobserve:function(){return window.removeEventListener("resize",s.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,w.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(d){return(0,w.checkBoundaries)(d,s.props.min,s.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,w.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),t.forEach(function(d){(0,w.isStepDivisible)(i,d,u)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},c.prototype.componentDidUpdate=function(s,e){var t=this.props,i=t.max,u=t.min,d=t.step,h=t.values,j=t.rtl;(s.max!==i||s.min!==u||s.step!==d)&&this.updateMarkRefs(this.props),(0,w.translateThumbs)(this.getThumbs(),this.getOffsets(),j),(s.max!==i||s.min!==u||s.step!==d||e.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),h.forEach(function(v){(0,w.isStepDivisible)(u,v,d)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},c.prototype.componentWillUnmount=function(){var s={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,s),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},c.prototype.render=function(){var s=this,e=this.props,t=e.renderTrack,i=e.renderThumb,u=e.renderMark,d=u===void 0?function(){return null}:u,h=e.values,j=e.min,v=e.max,m=e.allowOverlap,f=e.disabled,D=this.state,k=D.draggedThumbIndex,S=D.thumbZIndexes,C=D.markOffsets;return t({props:{style:{transform:"scale(1)",cursor:k>-1?"grabbing":this.props.draggableTrack?(0,w.isVertical)(this.props.direction)?"ns-resize":"ew-resize":h.length===1&&!f?"pointer":"inherit"},onMouseDown:f?w.voidFn:this.onMouseDownTrack,onTouchStart:f?w.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:f,children:ue(ue([],C.map(function(I,M,N){return d({props:{style:s.props.direction===R.Direction.Left||s.props.direction===R.Direction.Right?{position:"absolute",left:"".concat(I[0],"px"),marginTop:"".concat(I[1],"px")}:{position:"absolute",top:"".concat(I[0],"px"),marginLeft:"".concat(I[1],"px")},key:"mark".concat(M),ref:s.markRefs[M]},index:M})}),!0),h.map(function(I,M){var N=s.state.draggedThumbIndex===M;return i({index:M,value:I,isDragged:N,props:{style:{position:"absolute",zIndex:S[M],cursor:f?"inherit":N?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:M,tabIndex:f?void 0:0,"aria-valuemax":m?v:h[M+1]||v,"aria-valuemin":m?j:h[M-1]||j,"aria-valuenow":I,draggable:!1,ref:s.thumbRefs[M],role:"slider",onKeyDown:f?w.voidFn:s.onKeyDown,onKeyUp:f?w.voidFn:s.onKeyUp}})}),!0)})},c.defaultProps={step:1,direction:R.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},c}(Q.Component);te.default=Ee;(function(r){var c=P&&P.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};
1Object.defineProperty(r,"__esModule",{value:!0}),r.checkValuesAgainstBoundaries=r.relativeValue=r.useThumbOverlap=r.Direction=r.getTrackBackground=r.Range=void 0;var s=c(te);r.Range=s.default;var e=re;Object.defineProperty(r,"getTrackBackground",{enumerable:!0,get:function(){return e.getTrackBackground}}),Object.defineProperty(r,"useThumbOverlap",{enumerable:!0,get:function(){return e.useThumbOverlap}}),Object.defineProperty(r,"relativeValue",{enumerable:!0,get:function(){return e.relativeValue}}),Object.defineProperty(r,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return e.checkValuesAgainstBoundaries}});var t=J;Object.defineProperty(r,"Direction",{enumerable:!0,get:function(){return t.Direction}})})(V);const Ce=({width:r="100",height:c="100",fill:s="#381C75"})=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 54.6 54.6","aria-hidden":"true",children:[n.jsx("polygon",{fill:s,points:"22.9,32.1 18.3,27.3 14.7,30.8 23.4,39.7 39.9,17.9 35.9,14.9 "}),n.jsx("path",{fill:s,d:"M27.3,49.6C15,49.6,5,39.6,5,27.3S15,5,27.3,5s22.3,10,22.3,22.3S39.6,49.6,27.3,49.6z M27.3,0 C12.2,0,0,12.2,0,27.3s12.2,27.3,27.3,27.3s27.3-12.2,27.3-27.3S42.3,0,27.3,0z"})]}),le=Ce,Ie=({setFormSuccess:r})=>{var H,K,F;const c=ge(),[s,e]=Y.useState(!1),[t,i]=Y.useState([3,9]),[u,d]=Y.useState([50,100]),[h,j]=Y.useState("months"),[v,m]=Y.useState("k"),[f,D]=Y.useState(""),k=c.state!=="idle",S=c.state==="idle"&&((H=c.data)==null?void 0:H.errors)&&((K=c==null?void 0:c.data)==null?void 0:K.errors.length)>0,C=c.state==="idle"&&((F=c.data)==null?void 0:F.ok);Y.useEffect(()=>{C&&(window.scroll(0,0),r(!0))},[C,r]);const I=()=>{e(!s)},M=()=>{t[0]===1?j("month"):j("months")},N=()=>{u[1]===250?m("k+"):m("k")};return n.jsxs("div",{className:`hire-form ${C?"success":""}`,id:"form_wrap",children:[n.jsx("svg",{width:"0",height:"0",children:n.jsx("defs",{children:n.jsxs("clipPath",{id:"myClip",children:[n.jsx("rect",{y:"2",width:"2",height:"9.1"}),n.jsx("rect",{x:"12",y:"2",width:"2",height:"9.1"}),n.jsx("rect",{x:"6",width:"2",height:"13"})]})})}),n.jsxs("div",{className:"container",children:[n.jsx("p",{className:"intro",children:"The following questions serve as a starting point to our process so we can better understand your needs."}),n.jsxs(c.Form,{id:"contactForm",action:"/hire-us",method:"POST",autoComplete:"off",children:[n.jsx(me,{}),n.jsx(pe,{}),n.jsxs("fieldset",{className:"groupfield",children:[n.jsx("legend",{className:"field-label h6",children:"Did someone refer you to us?"}),n.jsxs("div",{className:"field flushed radio-group",children:[n.jsxs("label",{className:"radio inline",children:[n.jsx("input",{type:"radio",checked:s===!1,onChange:I,name:"referred",value:"Yes"}),n.jsxs("span",{className:"outer",children:[n.jsx("span",{className:"icon",children:n.jsx(le,{width:"13",height:"13",fill:"#ff285b"})}),"Yes"]})]}),n.jsxs("label",{className:"radio inline",children:[n.jsx("input",{type:"radio",checked:s===!0,onChange:I,name:"referred",value:"No"}),n.jsxs("span",{className:"outer",children:[n.jsx("span",{className:"icon",children:n.jsx(le,{width:"13",height:"13",fill:"#ff285b"})}),"No"]})]})]}),n.jsxs("div",{className:s?"field hideRef":"field showRef",children:[n.jsx("input",{type:"text",name:"referred",id:"referred",placeholder:" "}),n.jsx("label",{htmlFor:"referred",children:"Who referred you?"})]})]}),n.jsxs("div",{className:"groupfield",children:[n.jsxs("label",{className:"field-label h6",htmlFor:"about",children:["Tell us about your project ",n.jsx("span",{children:"(required)"})]}),n.jsx("textarea",{name:"about",id:"about",placeholder:"Please let us know a bit about your organization and your goals..."})]}),n.jsxs("fieldset",{className:"groupfield timeline-fieldset",children:[n.jsxs("legend",{className:"field-label h6",children:["Your Timeline ",n.jsx("span",{children:"(required)"})]}),n.jsxs("div",{className:"timeline",children:[n.jsx(V.Range,{values:t,step:1,min:1,max:24,allowOverlap:!1,onFinalChange:M,onChange:p=>{i(p)},renderTrack:({props:p,children:B})=>n.jsx("div",{onMouseDown:p.onMouseDown,onTouchStart:p.onTouchStart,children:n.jsx("div",{ref:p.ref,className:"input-track",style:{background:V.getTrackBackgroun
1d({values:t,colors:["#cccccc","#ff285b","#cccccc"],min:1,max:24,direction:V.Direction.Right})},children:B})}),renderThumb:({index:p,props:B})=>n.jsxs("div",{className:"input-slider","aria-labelledby":`timeline-input-label-${p}`,...B,children:[n.jsx("div",{className:"input-slider__inner"}),n.jsx("div",{className:"input-text-label",id:`timeline-input-label-${p}`,children:`${t[p]} ${p===0?h:"months"}`})]})}),n.jsx("input",{type:"number",hidden:!0,value:t[0],name:"timelineLow",readOnly:!0}),n.jsx("input",{type:"number",hidden:!0,value:t[1],name:"timelineHigh",readOnly:!0})]})]}),n.jsxs("fieldset",{className:"groupfield budget-fieldset",children:[n.jsx("legend",{className:"field-label h6 noPadding",children:"Your Budget"}),n.jsx("p",{children:"If you aren't sure, including a range will help us understand your goals."}),n.jsxs("div",{className:"price",children:[n.jsx(V.Range,{values:u,step:5,min:25,max:250,allowOverlap:!1,onFinalChange:N,onChange:p=>d(p),renderTrack:({props:p,children:B})=>n.jsx("div",{onMouseDown:p.onMouseDown,onTouchStart:p.onTouchStart,children:n.jsx("div",{ref:p.ref,className:"input-track",style:{background:V.getTrackBackground({values:u,colors:["#cccccc","#ff285b","#cccccc"],min:25,max:250,direction:V.Direction.Right})},children:B})}),renderThumb:({index:p,props:B})=>n.jsxs("div",{className:"price-input-slider","aria-labelledby":`price-input-label-${p}`,...B,children:[n.jsx("div",{className:"input-slider__inner"}),n.jsx("div",{className:"input-text-label",id:`price-input-label-${p}`,children:`$${u[p]}${p===1?v:"k"}`})]})}),n.jsx("input",{type:"number",hidden:!0,value:u[0],name:"priceLow",readOnly:!0}),n.jsx("input",{type:"number",hidden:!0,value:u[1],name:"priceHigh",readOnly:!0})]})]}),n.jsxs("fieldset",{className:"groupfield",children:[n.jsx("legend",{className:"field-label h6",children:"How can we reach you?"}),n.jsxs("div",{className:"field",children:[n.jsx("input",{type:"text",name:"name",id:"name",placeholder:" ",required:!0}),n.jsxs("label",{htmlFor:"name",children:["Full Name ",n.jsx("span",{children:"(required)"})]})]}),n.jsxs("div",{className:"field",children:[n.jsx("input",{type:"email",name:"email",id:"email",placeholder:" ",required:!0}),n.jsxs("label",{htmlFor:"email",children:["Email ",n.jsx("span",{children:"(required)"})]})]}),n.jsxs("div",{className:"field",children:[n.jsx("input",{type:"text",name:"company",id:"company",placeholder:" ",required:!0}),n.jsxs("label",{htmlFor:"company",children:["Organization/Company ",n.jsx("span",{children:"(required)"})]})]}),n.jsxs("div",{className:"field",children:[n.jsx("input",{type:"text",name:"location",id:"location",placeholder:" ",required:!0}),n.jsxs("label",{htmlFor:"location",children:["Location ",n.jsx("span",{children:"(required)"})]})]})]}),n.jsxs("div",{className:"groupfield submit-field",children:[S&&n.jsx("div",{id:"toast",children:"Please fill out all required fields and try again."}),n.jsx("label",{className:"gotcha-field",htmlFor:"url",tabIndex:-1}),n.jsx("input",{className:"gotcha-field",autoComplete:"false",type:"text",id:"url",name:"url",placeholder:"Your url here",value:f,tabIndex:-1,onChange:p=>D(p.target.value)}),n.jsx("input",{type:"submit",name:"submit",id:"submit",value:k?"Submitting":"Submit",disabled:k||C||f!==""})]})]})]})]})},Ne=r=>{const[c,s]=Y.useState(!1);if(!r)return null;const{headline:e,description:t,confirmationText:i}=r;return n.jsxs("div",{className:`hire-us ${c?"hire-us--success":""}`,children:[n.jsx("div",{className:"topper-hire-us",children:n.jsxs("div",{className:"container",children:[e?n.jsx("h1",{id:"form_h1",children:c?n.jsxs(n.Fragment,{children:["Thank ",n.jsx("span",{children:"You"})]}):n.jsx(n.Fragment,{children:ee(e)})}):null,i&&c?n.jsx("p",{id:"form_success_p",children:ee(i)}):null,t&&!c?n.jsx("p",{id:"description",children:ee(t)}):null]})}),n.jsx(Ie,{setFormSuccess:s})]})},Fe=Ne,Ge=ye,Ae=async r=>await ke(r);Ae.hydrate=!0;const Qe=async({request:r,serverAction:c})=>{const s=new URL(r.url).pathname;return await we.removeItem(s,!0),await c()};function Je(){const{initial:r,query:c,params:s}=ve(),{data:e}=xe(c,s,{initial:r}),t=Te(.25,.46,.45,.94),i=be();return e?n.jsx(je.div,{initial:{opacity:0,y:"45px"}
1,animate:{opacity:1,y:"0"},exit:{opacity:0},transition:{ease:t,duration:.5,delay:.5},children:n.jsxs("div",{children:[(e==null?void 0:e.hireUsContent)&&n.jsx(Fe,{...e.hireUsContent}),n.jsx(fe,{pageData:e==null?void 0:e.pageFooterCTAFields})]})},i.pathname):null}export{Qe as clientAction,Ae as clientLoader,Je as default,Ge as meta};
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.