{"version":3,"file":"SkinReset.DyYO2H1u.mjs","names":["useRef","useState","useCallback","e","e","t","n","n","r","e","t","A","O","t","x","V","b","Children","useRef","useMemo","useState","useCallback","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","Image1","useState","useRef","useMemo","useCallback","startTransition","_Fragment","__esmMin","oe","ie","le$1","z","init_ssg_sandbox_shims","te","ne","x","window","fe","j$1","init_npm_react_dom_18_3_1","l","_e","Ha","pe","p","c","J","init_jsx_runtime","ce$1","init_npm_react_18_3_1","de","motion","useInView","useTransform","useReducedMotion","MotionConfigContext","frame","animate","LayoutGroup","init_framer_motion_DhsWWWsN","useMotionValue","getFonts","withCSS","init_framer_B6PCHH0A","cx","SmartComponentScopedContainer","RenderTarget","useVariantState","useLocaleInfo","Image$1","useIsStaticRenderer","ComponentViewportProvider","addFonts","useComponentViewport","ControlType","BeforeAfter","props","ref","pos","setPos","startAt","dragging","setDragging","update","el","rect","pct","clientX","onPointerDown","onPointerMove","stop","beforeSrc","before","after","afterSrc","beforeFilter","simulateBefore","label","side","text","radius","afterLabel","beforeLabel","init_BeforeAfter","addPropertyControls","noopReturn","init_index_es","t","init_index_es$1","init_index_es$2","__rest","r","n","o","init_tslib_es6","n$1","init_dist","init_index_es$3","resolveElements","inView$1","s","a","U","getElementSize","notifyTarget","q","notifyAll","createResizeObserver","resizeElement","K","createWindowResizeHandler","G","_","resizeWindow","resize","dispatchPointerEvent","dispatchViewEvent","W","L","D","M","k","asTransformCssVar","B","testAnimation","C","$","R","se","mouseEvent","ce","init_index_es$4","onPointerUp","Ticker","fadeOptions","sizingOptions","paddingValue","paddingPerSide","paddingTop","paddingRight","paddingBottom","paddingLeft","padding","currentTarget","isCanvas","writingDirection","useWritingDirection","filteredSlots","slots","numChildren","hasChildren","offset","resolvedDirection","getTickerResolvedDirection","direction","isHorizontal","transformer","directionTransformers","parentRef","childrenRef","size","setSize","clonedChildren","dupedChildren","duplicateBy","opacity","MAX_DUPLICATED_ITEMS","measure","parentLength","start","childrenLength","gap","childrenStyles","initialResize","contentSize","index","widthType","child","heightType","Wrapper","isInView","i","childIndex","animateToValue","isHover","isReducedMotion","listRef","animationRef","speed","hoverFactor","playOrPause","hidden","fadeDirection","fadeWidthStart","fadeWidth","fadeWidthEnd","fadeMask","fadeAlpha","clamp","fadeInset","containerStyle","fadeContent","overflow","isValidNumber","alignment","style","placeholderStyles","emojiStyles","titleStyles","subtitleStyles","init_Ticker","innerRef","inView","current","orig","num","min","max","value","addPropertyOverrides","variants","nextOverrides","variant","overrides","TickerFonts","cycleOrder","serializationHash","variantClassNames","transition1","Transition","humanReadableVariantMap","Variants","getProps","createLayoutDependency","FramerimQxwEMT2","init_imQxwEMT2","config","transition","contextValue","fallbackRef","refBinding","defaultLayoutId","restProps","layoutDependency","scopingClassNames","layoutId","gestureHandlers","className","classNames","baseVariant","gestureVariant","canHoverFinePointer","prefersReducedMotionNow","AnimatedCTALabel","lineHeightPx","active","CTA_SPRING","AnimatedCTAButton","setActive","canHover","defaultAnswers","dispatchOpenSkinReset","OPEN_EVENT","isEmailValid","hasAnswer","answers","question","checkIcon","navy","SkinResetCTA","integrated","\"containerType\"","title","buttonLabel","textColor","cream","headingFont","bodyFont","body","buttonFont","meta","SkinResetExperience","isStatic","isOpen","setIsOpen","showGuideConfirmation","setShowGuideConfirmation","knownEmail","setKnownEmail","setAnswers","step","setStep","submitting","setSubmitting","submitError","setSubmitError","resultReady","setResultReady","deliveryConfirmed","setDeliveryConfirmed","mobile","setMobile","canvasMobile","previewMobile","scrollYRef","lastFocusedRef","dialogRef","openedOnMountRef","submitLockRef","submitSuccessRef","prefersReducedMotion","activeQuestions","questions","currentQuestion","totalSteps","stepLabel","progressRatio","openFlow","email","closeFlow","onResize","handler","detail","event","GUIDE_SUCCESS_EVENT","previewOpen","bodyStyle","oldOverflow","oldPosition","oldTop","oldWidth","onKeyDown","focusable","focusableSelector","next","setAnswer","prev","key","toggleMulti","source","existing","has","option","item","maxSelect","goNext","goPrev","submitAll","payload","SKINRESET_WEBHOOK_URL","summaryList","content","showGuideConfirmationView","previewGuideConfirmation","viewMobile","animatedStyle","primaryText","concern","selected","overlay","withOpenSkinReset","triggerClick","Component","withGuideButtonMotion","wrapperRef","wrapper","target","node","stopAnim","inner","originalChildren","originalAriaLabel","htmlTarget","originalTransform","originalTransition","clip","stack","line1","line2","onEnter","controls","onLeave","onDown","onUp","concernsImages","init_SkinReset"],"sources":["https:/framerusercontent.com/modules/I8lPkDCKq1nORxqRPL1X/09zEl9htwMEPBuDd6w1L/BeforeAfter.js","https:/ga.jspm.io/npm:@motionone/utils@10.14.0/dist/index.es.js","https:/ga.jspm.io/npm:@motionone/easing@10.12.0/dist/index.es.js","https:/ga.jspm.io/npm:@motionone/animation@10.12.0/dist/index.es.js","https:/ga.jspm.io/npm:tslib@2.4.0/tslib.es6.js","https:/ga.jspm.io/npm:hey-listen@1.0.8/dist/index.js","https:/ga.jspm.io/npm:@motionone/generators@10.12.0/dist/index.es.js","https:/ga.jspm.io/npm:@motionone/dom@10.12.0/dist/index.es.js","https:/framerusercontent.com/modules/B2xAlJLcN0gOnt11mSPw/plhC5PVnCMllW5QXjFK5/Ticker.js","https:/framerusercontent.com/modules/aAix7GVDcPM6UyD8g6UC/NM1OzPKN5fL7cSr77xNJ/imQxwEMT2.js","https:/framerusercontent.com/modules/7Th3cQ6YUenr7p049Ota/8nyJw7sJxyjXXdZPSRnW/SkinReset.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useState,useCallback}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Before / After comparison slider.\n * Drag the handle (mouse or touch) to reveal the before image.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 480\n * @framerIntrinsicHeight 560\n */export default function BeforeAfter(props){const{before,after,beforeLabel,afterLabel,simulateBefore,radius,startAt}=props;const ref=useRef(null);const[pos,setPos]=useState(Math.min(Math.max(startAt,5),95));const[dragging,setDragging]=useState(false);const update=useCallback(clientX=>{const el=ref.current;if(!el)return;const rect=el.getBoundingClientRect();const pct=(clientX-rect.left)/rect.width*100;setPos(Math.min(Math.max(pct,3),97));},[]);const onPointerDown=e=>{e.target.setPointerCapture?.(e.pointerId);setDragging(true);update(e.clientX);};const onPointerMove=e=>{if(dragging)update(e.clientX);};const stop=()=>setDragging(false);const beforeSrc=before?.src??after?.src;const afterSrc=after?.src;const beforeFilter=simulateBefore&&(!before?.src||before?.src===after?.src)?\"saturate(0.82) brightness(0.94) contrast(0.96) sepia(0.12)\":\"none\";const label=(text,side)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:14,[side]:14,padding:\"6px 12px\",borderRadius:9,fontFamily:\"'Satoshi', sans-serif\",fontSize:12,fontWeight:500,letterSpacing:.3,color:\"#FFFFFF\",background:\"rgba(15,18,22,0.45)\",backdropFilter:\"blur(8px)\",WebkitBackdropFilter:\"blur(8px)\",pointerEvents:\"none\",userSelect:\"none\"},children:text});if(!afterSrc){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",background:\"#EEF1F4\",borderRadius:radius,fontFamily:\"sans-serif\",fontSize:13,color:\"#4A525C\"},children:\"Add an After image\"});}return /*#__PURE__*/_jsxs(\"div\",{ref:ref,onPointerDown:onPointerDown,onPointerMove:onPointerMove,onPointerUp:stop,onPointerCancel:stop,onPointerLeave:stop,style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:radius,overflow:\"hidden\",cursor:dragging?\"grabbing\":\"grab\",touchAction:\"none\",userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"img\",{src:afterSrc,alt:afterLabel,draggable:false,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,clipPath:`inset(0 ${100-pos}% 0 0)`},children:/*#__PURE__*/_jsx(\"img\",{src:beforeSrc,alt:beforeLabel,draggable:false,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",filter:beforeFilter}})}),label(beforeLabel,\"left\"),label(afterLabel,\"right\"),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,bottom:0,left:`${pos}%`,width:2,background:\"rgba(255,255,255,0.9)\",transform:\"translateX(-1px)\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:`${pos}%`,transform:\"translate(-50%, -50%)\",width:44,height:44,borderRadius:22,background:\"rgba(255,255,255,0.92)\",boxShadow:\"0 4px 16px rgba(15,18,22,0.25)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"#0F1216\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"polyline\",{points:\"9 6 3 12 9 18\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"15 6 21 12 15 18\"})]})})]});}BeforeAfter.defaultProps={beforeLabel:\"Before\",afterLabel:\"After\",simulateBefore:true,radius:18,startAt:50};addPropertyControls(BeforeAfter,{before:{type:ControlType.ResponsiveImage,title:\"Before\"},after:{type:ControlType.ResponsiveImage,title:\"After\"},beforeLabel:{type:ControlType.String,title:\"Before label\",defaultValue:\"Before\"},afterLabel:{type:ControlType.String,title:\"After label\",defaultValue:\"After\"},simulateBefore:{type:ControlType.Boolean,title:\"Demo filter\",defaultValue:true},startAt:{type:ControlType.Number,title:\"Start at\",min:5,max:95,defaultValue:50,unit:\"%\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:40,defaultValue:18}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BeforeAfter\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"480\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"560\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BeforeAfter.map","function addUniqueItem(t,e){-1===t.indexOf(e)&&t.push(e)}function removeItem(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const clamp=(t,e,n)=>Math.min(Math.max(n,t),e);const t={duration:.3,delay:0,endDelay:0,repeat:0,easing:\"ease\"};const isNumber=t=>\"number\"===typeof t;const isEasingList=t=>Array.isArray(t)&&!isNumber(t[0]);const wrap=(t,e,n)=>{const o=e-t;return((n-t)%o+o)%o+t};function getEasingForSegment(t,e){return isEasingList(t)?t[wrap(0,t.length,e)]:t}const mix=(t,e,n)=>-n*t+n*e+t;const noop=()=>{};const noopReturn=t=>t;const progress=(t,e,n)=>e-t===0?1:(n-t)/(e-t);function fillOffset(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const s=progress(0,e,o);t.push(mix(n,1,s))}}function defaultOffset(t){const e=[0];fillOffset(e,t-1);return e}function interpolate(t,e=defaultOffset(t.length),n=noopReturn){const o=t.length;const s=o-e.length;s>0&&fillOffset(e,s);return s=>{let f=0;for(;f<o-2;f++)if(s<e[f+1])break;let r=clamp(0,1,progress(e[f],e[f+1],s));const c=getEasingForSegment(n,f);r=c(r);return mix(t[f],t[f+1],r)}}const isCubicBezier=t=>Array.isArray(t)&&isNumber(t[0]);const isEasingGenerator=t=>\"object\"===typeof t&&Boolean(t.createAnimation);const isFunction=t=>\"function\"===typeof t;const isString=t=>\"string\"===typeof t;const e={ms:t=>1e3*t,s:t=>t/1e3};\n/*\n  Convert velocity into velocity per second\n\n  @param [number]: Unit per frame\n  @param [number]: Frame duration in ms\n*/function velocityPerSecond(t,e){return e?t*(1e3/e):0}export{addUniqueItem,clamp,defaultOffset,t as defaults,fillOffset,getEasingForSegment,interpolate,isCubicBezier,isEasingGenerator,isEasingList,isFunction,isNumber,isString,mix,noop,noopReturn,progress,removeItem,e as time,velocityPerSecond,wrap};\n\n//# sourceMappingURL=index.es.js.map","import{noopReturn as t,clamp as n}from\"@motionone/utils\";const calcBezier=(t,n,e)=>(((1-3*e+3*n)*t+(3*e-6*n))*t+3*n)*t;const e=1e-7;const i=12;function binarySubdivide(t,n,o,r,c){let u;let a;let s=0;do{a=n+(o-n)/2;u=calcBezier(a,r,c)-t;u>0?o=a:n=a}while(Math.abs(u)>e&&++s<i);return a}function cubicBezier(n,e,i,o){if(n===e&&i===o)return t;const getTForX=t=>binarySubdivide(t,0,1,n,i);return t=>0===t||1===t?t:calcBezier(getTForX(t),e,o)}const steps=(t,e=\"end\")=>i=>{i=\"end\"===e?Math.min(i,.999):Math.max(i,.001);const o=i*t;const r=\"end\"===e?Math.floor(o):Math.ceil(o);return n(0,1,r/t)};export{cubicBezier,steps};\n\n//# sourceMappingURL=index.es.js.map","import{noopReturn as t,defaults as i,isEasingGenerator as e,isEasingList as s,interpolate as a}from\"@motionone/utils\";import{cubicBezier as n,steps as r}from\"@motionone/easing\";const o={ease:n(.25,.1,.25,1),\"ease-in\":n(.42,0,1,1),\"ease-in-out\":n(.42,0,.58,1),\"ease-out\":n(0,0,.58,1)};const h=/\\((.*?)\\)/;function getEasingFunction(i){if(\"function\"===typeof i)return i;if(Array.isArray(i))return n(...i);if(o[i])return o[i];if(i.startsWith(\"steps\")){const t=h.exec(i);if(t){const i=t[1].split(\",\");return r(parseFloat(i[0]),i[1].trim())}}return t}class Animation{constructor(n,r=[0,1],{easing:o,duration:h=i.duration,delay:u=i.delay,endDelay:l=i.endDelay,repeat:m=i.repeat,offset:c,direction:p=\"normal\"}={}){this.startTime=null;this.rate=1;this.t=0;this.cancelTimestamp=null;this.easing=t;this.duration=0;this.totalDuration=0;this.repeat=0;this.playState=\"idle\";this.finished=new Promise(((t,i)=>{this.resolve=t;this.reject=i}));o=o||i.easing;if(e(o)){const t=o.createAnimation(r,(()=>\"0\"),true);o=t.easing;void 0!==t.keyframes&&(r=t.keyframes);void 0!==t.duration&&(h=t.duration)}this.repeat=m;this.easing=s(o)?t:getEasingFunction(o);this.updateDuration(h);const d=a(r,c,s(o)?o.map(getEasingFunction):t);this.tick=t=>{var i;u=u;let e=0;e=void 0!==this.pauseTime?this.pauseTime:(t-this.startTime)*this.rate;this.t=e;e/=1e3;e=Math.max(e-u,0);\"finished\"===this.playState&&void 0===this.pauseTime&&(e=this.totalDuration);const s=e/this.duration;let a=Math.floor(s);let r=s%1;!r&&s>=1&&(r=1);1===r&&a--;const o=a%2;(\"reverse\"===p||\"alternate\"===p&&o||\"alternate-reverse\"===p&&!o)&&(r=1-r);const h=e>=this.totalDuration?1:Math.min(r,1);const m=d(this.easing(h));n(m);const c=void 0===this.pauseTime&&(\"finished\"===this.playState||e>=this.totalDuration+l);if(c){this.playState=\"finished\";null===(i=this.resolve)||void 0===i?void 0:i.call(this,m)}else\"idle\"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))};this.play()}play(){const t=performance.now();this.playState=\"running\";void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t);this.cancelTimestamp=this.startTime;this.pauseTime=void 0;this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState=\"paused\";this.pauseTime=this.t}finish(){this.playState=\"finished\";this.tick(0)}stop(){var t;this.playState=\"idle\";void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId);null===(t=this.reject)||void 0===t?void 0:t.call(this,false)}cancel(){this.stop();this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t;this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}export{Animation,getEasingFunction};\n\n//# sourceMappingURL=index.es.js.map","var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])};return extendStatics(e,t)};function __extends(e,t){if(\"function\"!==typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var __assign=function(){__assign=Object.assign||function __assign(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};return __assign.apply(this,arguments)};function __rest(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&\"function\"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function __decorate(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"===typeof Reflect&&\"function\"===typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function __param(e,t){return function(r,n){t(r,n,e)}}function __metadata(e,t){if(\"object\"===typeof Reflect&&\"function\"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))}function __generator(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:verb(0),throw:verb(1),return:verb(2)},\"function\"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function verb(e){return function(t){return step([e,t])}}function step(a){if(r)throw new TypeError(\"Generator is already executing.\");while(i)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;(n=0,o)&&(a=[2&a[0],o.value]);switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}o[2]&&i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var e=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:true,get:function(){return t[r]}});Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r);e[n]=t[r]};function __exportStar(t,r){for(var n in t)\"default\"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)}function __values(e){var t=\"function\"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"===typeof e.length)return{next:function(){e&&n>=e.length&&(e=void 0);return{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function __read(e,t){var r=\"function\"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{while((void 0===t||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}\n/** @deprecated */function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}\n/** @deprecated */function __spreadArrays(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function __spreadArray(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)if(n||!(o in t)){n||(n=Array.prototype.slice.call(t,0,o));n[o]=t[o]}return e.concat(n||Array.prototype.slice.call(t))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,r){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var n,o=r.apply(e,t||[]),a=[];return n={},verb(\"next\"),verb(\"throw\"),verb(\"return\"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||resume(e,t)}))})}function resume(e,t){try{step(o[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof __await?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume(\"next\",e)}function reject(e){resume(\"throw\",e)}function settle(e,t){(e(t),a.shift(),a.length)&&resume(a[0][0],a[0][1])}}function __asyncDelegator(e){var t,r;return t={},verb(\"next\"),verb(\"throw\",(function(e){throw e})),verb(\"return\"),t[Symbol.iterator]=function(){return this},t;function verb(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:\"return\"===n}:o?o(t):t}:o}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=\"function\"===typeof __values?__values(e):e[Symbol.iterator](),t={},verb(\"next\"),verb(\"throw\"),verb(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function verb(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){t=e[r](t),settle(n,o,t.done,t.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}}function __makeTemplateObject(e,t){Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t;return e}var t=Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:true,value:t})}:function(e,t){e.default=t};function __importStar(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)\"default\"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);t(n,r);return n}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,r,n){if(\"a\"===r&&!n)throw new TypeError(\"Private accessor was defined without a getter\");if(\"function\"===typeof t?e!==t||!n:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return\"m\"===r?n:\"a\"===r?n.call(e):n?n.value:t.get(e)}function __classPrivateFieldSet(e,t,r,n,o){if(\"m\"===n)throw new TypeError(\"Private method is not writable\");if(\"a\"===n&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(\"function\"===typeof t?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return\"a\"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function __classPrivateFieldIn(e,t){if(null===t||\"object\"!==typeof t&&\"function\"!==typeof t)throw new TypeError(\"Cannot use 'in' operator on non-object\");return\"function\"===typeof e?t===e:e.has(t)}export{__assign,__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter,__classPrivateFieldGet,__classPrivateFieldIn,__classPrivateFieldSet,e as __createBinding,__decorate,__exportStar,__extends,__generator,__importDefault,__importStar,__makeTemplateObject,__metadata,__param,__read,__rest,__spread,__spreadArray,__spreadArrays,__values};\n\n//# sourceMappingURL=tslib.es6.js.map","var n={};Object.defineProperty(n,\"__esModule\",{value:true});n.warning=function(){};n.invariant=function(){};const e=n.__esModule,t=n.warning,r=n.invariant;export default n;export{e as __esModule,r as invariant,t as warning};\n\n//# sourceMappingURL=index.js.map","import{velocityPerSecond as e,time as t}from\"@motionone/utils\";const s=5;function calcGeneratorVelocity(t,n,r){const a=Math.max(n-s,0);return e(r-t(a),n-a)}const n={stiffness:100,damping:10,mass:1};const calcDampingRatio=(e=n.stiffness,t=n.damping,s=n.mass)=>t/(2*Math.sqrt(e*s));function hasReachedTarget(e,t,s){return e<t&&s>=t||e>t&&s<=t}const spring=({stiffness:e=n.stiffness,damping:s=n.damping,mass:r=n.mass,from:a=0,to:o=1,velocity:c=0,restSpeed:i=2,restDistance:h=.5}={})=>{c=c?t.s(c):0;const u={done:false,hasReachedTarget:false,current:a,target:o};const d=o-a;const f=Math.sqrt(e/r)/1e3;const l=calcDampingRatio(e,s,r);let g;if(l<1){const e=f*Math.sqrt(1-l*l);g=t=>o-Math.exp(-l*f*t)*((l*f*d-c)/e*Math.sin(e*t)+d*Math.cos(e*t))}else g=e=>o-Math.exp(-f*e)*(d+(f*d-c)*e);return e=>{u.current=g(e);const t=0===e?c:calcGeneratorVelocity(g,e,u.current);const s=Math.abs(t)<=i;const n=Math.abs(o-u.current)<=h;u.done=s&&n;u.hasReachedTarget=hasReachedTarget(a,o,u.current);return u}};const glide=({from:e=0,velocity:s=0,power:n=.8,decay:r=.325,bounceDamping:a,bounceStiffness:o,changeTarget:c,min:i,max:h,restDistance:u=.5,restSpeed:d})=>{r=t.ms(r);const f={hasReachedTarget:false,done:false,current:e,target:e};const isOutOfBounds=e=>void 0!==i&&e<i||void 0!==h&&e>h;const nearestBoundary=e=>void 0===i?h:void 0===h||Math.abs(i-e)<Math.abs(h-e)?i:h;let l=n*s;const g=e+l;const m=void 0===c?g:c(g);f.target=m;m!==g&&(l=m-e);const calcDelta=e=>-l*Math.exp(-e/r);const calcLatest=e=>m+calcDelta(e);const applyFriction=e=>{const t=calcDelta(e);const s=calcLatest(e);f.done=Math.abs(t)<=u;f.current=f.done?m:s};let p;let M;const checkCatchBoundary=e=>{if(isOutOfBounds(f.current)){p=e;M=spring({from:f.current,to:nearestBoundary(f.current),velocity:calcGeneratorVelocity(calcLatest,e,f.current),damping:a,stiffness:o,restDistance:u,restSpeed:d})}};checkCatchBoundary(0);return e=>{let t=false;if(!M&&void 0===p){t=true;applyFriction(e);checkCatchBoundary(e)}if(void 0!==p&&e>p){f.hasReachedTarget=true;return M(e-p)}f.hasReachedTarget=false;!t&&applyFriction(e);return f}};const r=10;const a=1e4;function pregenerateKeyframes(e){let t;let s=r;let n=e(0);const o=[n.current];while(!n.done&&s<a){n=e(s);o.push(n.done?n.target:n.current);void 0===t&&n.hasReachedTarget&&(t=s);s+=r}const c=s-r;1===o.length&&o.push(n.current);return{keyframes:o,duration:c/1e3,overshootDuration:(null!==t&&void 0!==t?t:c)/1e3}}export{calcGeneratorVelocity,glide,pregenerateKeyframes,spring};\n\n//# sourceMappingURL=index.es.js.map","import{MotionValue as e}from\"@motionone/types\";import{noopReturn as t,addUniqueItem as n,isCubicBezier as o,defaults as i,isEasingGenerator as s,isNumber as r,time as a,isEasingList as c,noop as l,removeItem as f,mix as u,getEasingForSegment as d,isString as g,defaultOffset as m,fillOffset as h,progress as p,velocityPerSecond as v,interpolate as y}from\"@motionone/utils\";import{Animation as w,getEasingFunction as E}from\"@motionone/animation\";import{__rest as b}from\"tslib\";import{invariant as S}from\"hey-listen\";import{pregenerateKeyframes as A,calcGeneratorVelocity as O,spring as x,glide as V}from\"@motionone/generators\";const z=new WeakMap;function getAnimationData(e){z.has(e)||z.set(e,{transforms:[],values:new Map});return z.get(e)}function getMotionValue(t,n){t.has(n)||t.set(n,new e);return t.get(n)}const W=[\"\",\"X\",\"Y\",\"Z\"];const L=[\"translate\",\"scale\",\"rotate\",\"skew\"];const T={x:\"translateX\",y:\"translateY\",z:\"translateZ\"};const D={syntax:\"<angle>\",initialValue:\"0deg\",toDefaultUnit:e=>e+\"deg\"};const M={translate:{syntax:\"<length-percentage>\",initialValue:\"0px\",toDefaultUnit:e=>e+\"px\"},rotate:D,scale:{syntax:\"<number>\",initialValue:1,toDefaultUnit:t},skew:D};const k=new Map;const asTransformCssVar=e=>`--motion-${e}`;const B=[\"x\",\"y\",\"z\"];L.forEach((e=>{W.forEach((t=>{B.push(e+t);k.set(asTransformCssVar(e+t),M[e])}))}));const compareTransformOrder=(e,t)=>B.indexOf(e)-B.indexOf(t);const j=new Set(B);const isTransform=e=>j.has(e);const addTransformToElement=(e,t)=>{T[t]&&(t=T[t]);const{transforms:o}=getAnimationData(e);n(o,t);e.style.transform=buildTransformTemplate(o)};const buildTransformTemplate=e=>e.sort(compareTransformOrder).reduce(transformListToString,\"\").trim();const transformListToString=(e,t)=>`${e} ${t}(var(${asTransformCssVar(t)}))`;const isCssVar=e=>e.startsWith(\"--\");const P=new Set;function registerCssVariable(e){if(!P.has(e)){P.add(e);try{const{syntax:t,initialValue:n}=k.has(e)?k.get(e):{};CSS.registerProperty({name:e,inherits:false,syntax:t,initialValue:n})}catch(e){}}}const convertEasing=e=>o(e)?cubicBezierAsString(e):e;const cubicBezierAsString=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`;const testAnimation=e=>document.createElement(\"div\").animate(e,{duration:.001});const C={cssRegisterProperty:()=>\"undefined\"!==typeof CSS&&Object.hasOwnProperty.call(CSS,\"registerProperty\"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,\"animate\"),partialKeyframes:()=>{try{testAnimation({opacity:[1]})}catch(e){return false}return true},finished:()=>Boolean(testAnimation({opacity:[0,1]}).finished)};const $={};const R={};for(const e in C)R[e]=()=>{void 0===$[e]&&($[e]=C[e]());return $[e]};function hydrateKeyframes(e,t){for(let n=0;n<e.length;n++)null===e[n]&&(e[n]=n?e[n-1]:t());return e}const keyframesList=e=>Array.isArray(e)?e:[e];function getStyleName(e){T[e]&&(e=T[e]);return isTransform(e)?asTransformCssVar(e):e}const H={get:(e,t)=>{t=getStyleName(t);let n=isCssVar(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&0!==n){const e=k.get(t);e&&(n=e.initialValue)}return n},set:(e,t,n)=>{t=getStyleName(t);isCssVar(t)?e.style.setProperty(t,n):e.style[t]=n}};function stopAnimation(e,t=true){if(e&&\"finished\"!==e.playState)try{if(e.stop)e.stop();else{t&&e.commitStyles();e.cancel()}}catch(e){}}function getDevToolsRecord(){return window.__MOTION_DEV_TOOLS_RECORD}function animateStyle(e,t,n,o={}){const f=getDevToolsRecord();const u=false!==o.record&&f;let d;let{duration:g=i.duration,delay:m=i.delay,endDelay:h=i.endDelay,repeat:p=i.repeat,easing:v=i.easing,direction:y,offset:E,allowWebkitAcceleration:b=false}=o;const S=getAnimationData(e);let A=R.waapi();const O=isTransform(t);O&&addTransformToElement(e,t);const x=getStyleName(t);const V=getMotionValue(S.values,x);const z=k.get(x);stopAnimation(V.animation,!(s(v)&&V.generator)&&false!==o.record);return()=>{const readInitialValue=()=>{var t,n;return null!==(n=null!==(t=H.get(e,x))&&void 0!==t?t:null===z||void 0===z?void 0:z.initialValue)&&void 0!==n?n:0};let i=hydrateKeyframes(keyframesList(n),readInitialValue);if(s(v)){const e=v.createAnimation(i,readInitialValue,O,x,V);v=e.easing;void 0!==e.keyframes&&(i=e.keyframes);void 0!==e.duration&&(g=e.duration)}isCssVar(x)&&(R.cssRegisterProperty()?registerCssVariable(x):A=false);if(A){z&&(i=i.map((e=>r(e)?z.toDefaultUnit(e):e)));1!==i.length||R.partialKeyframes()&&!u||i.unshift(readInitialValue());const t={delay:a.ms(m),duration:a.ms(g),endDelay:a.ms(h),easing:c(v)?void 0:convertEasing(v),direction:y,iterations:p+1,fill:\"both\"};d=e.animate({[x]:i,offset:E,easing:c(v)?v.map(convertEasing):void 0},t);d.finished||(d.finished=new Promise(((e,t)=>{d.onfinish=e;d.oncancel=t})));const n=i[i.length-1];d.finished.then((()=>{H.set(e,x,n);d.cancel()})).catch(l);b||(d.playbackRate=1.000001)}else if(O){i=i.map((e=>\"string\"===typeof e?parseFloat(e):e));1===i.length&&i.unshift(parseFloat(readInitialValue()));const render=t=>{z&&(t=z.toDefaultUnit(t));H.set(e,x,t)};d=new w(render,i,Object.assign(Object.assign({},o),{duration:g,easing:v}))}else{const t=i[i.length-1];H.set(e,x,z&&r(t)?z.toDefaultUnit(t):t)}u&&f(e,t,i,{duration:g,delay:m,easing:v,repeat:p,offset:E},\"motion-one\");V.setAnimation(d);return d}}const getOptions=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function resolveElements(e,t){var n;if(\"string\"===typeof e)if(t){null!==(n=t[e])&&void 0!==n?n:t[e]=document.querySelectorAll(e);e=t[e]}else e=document.querySelectorAll(e);else e instanceof Element&&(e=[e]);return Array.from(e||[])}const createAnimation=e=>e();const withControls=(e,t,n=i.duration)=>new Proxy({animations:e.map(createAnimation).filter(Boolean),duration:n,options:t},I);const getActiveAnimation=e=>e.animations[0];const I={get:(e,t)=>{const n=getActiveAnimation(e);switch(t){case\"duration\":return e.duration;case\"currentTime\":return a.s((null===n||void 0===n?void 0:n[t])||0);case\"playbackRate\":case\"playState\":return null===n||void 0===n?void 0:n[t];case\"finished\":e.finished||(e.finished=Promise.all(e.animations.map(selectFinished)).catch(l));return e.finished;case\"stop\":return()=>{e.animations.forEach((e=>stopAnimation(e)))};case\"forEachNative\":return t=>{e.animations.forEach((n=>t(n,e)))};default:return\"undefined\"===typeof(null===n||void 0===n?void 0:n[t])?void 0:()=>e.animations.forEach((e=>e[t]()))}},set:(e,t,n)=>{switch(t){case\"currentTime\":n=a.ms(n);case\"currentTime\":case\"playbackRate\":for(let o=0;o<e.animations.length;o++)e.animations[o][t]=n;return true}return false}};const selectFinished=e=>e.finished;function stagger(e=.1,{start:t=0,from:n=0,easing:o}={}){return(i,s)=>{const a=r(n)?n:getFromIndex(n,s);const c=Math.abs(a-i);let l=e*c;if(o){const t=s*e;const n=E(o);l=n(l/t)*t}return t+l}}function getFromIndex(e,t){if(\"first\"===e)return 0;{const n=t-1;return\"last\"===e?n:n/2}}function resolveOption(e,t,n){return\"function\"===typeof e?e(t,n):e}function animate(e,t,n={}){e=resolveElements(e);const o=e.length;const i=[];for(let s=0;s<o;s++){const r=e[s];for(const e in t){const a=getOptions(n,e);a.delay=resolveOption(a.delay,s,o);const c=animateStyle(r,e,t[e],a);i.push(c)}}return withControls(i,n,n.duration)}function calcNextTime(e,t,n,o){var i;return r(t)?t:t.startsWith(\"-\")||t.startsWith(\"+\")?Math.max(0,e+parseFloat(t)):\"<\"===t?n:null!==(i=o.get(t))&&void 0!==i?i:e}function eraseKeyframes(e,t,n){for(let o=0;o<e.length;o++){const i=e[o];if(i.at>t&&i.at<n){f(e,i);o--}}}function addKeyframes(e,t,n,o,i,s){eraseKeyframes(e,i,s);for(let r=0;r<t.length;r++)e.push({value:t[r],at:u(i,s,o[r]),easing:d(n,r)})}function compareByTime(e,t){return e.at===t.at?null===e.value?1:-1:e.at-t.at}function timeline(e,t={}){var n;const o=createAnimationsFromTimeline(e,t);const i=o.map((e=>animateStyle(...e))).filter(Boolean);return withControls(i,t,null===(n=o[0])||void 0===n?void 0:n[3].duration)}function createAnimationsFromTimeline(e,t={}){var{defaultOptions:n={}}=t,o=b(t,[\"defaultOptions\"]);const r=[];const a=new Map;const c={};const l=new Map;let f=0;let u=0;let d=0;for(let t=0;t<e.length;t++){const o=e[t];if(g(o)){l.set(o,u);continue}if(!Array.isArray(o)){l.set(o.name,calcNextTime(u,o.at,f,l));continue}const[r,p,v={}]=o;void 0!==v.at&&(u=calcNextTime(u,v.at,f,l));let y=0;const w=resolveElements(r,c);const E=w.length;for(let e=0;e<E;e++){const t=w[e];const o=getElementSequence(t,a);for(const t in p){const r=getValueSequence(t,o);let a=keyframesList(p[t]);const c=getOptions(v,t);let{duration:l=n.duration||i.duration,easing:f=n.easing||i.easing}=c;if(s(f)){const e=isTransform(t);S(2===a.length||!e,\"spring must be provided 2 keyframes within timeline\");const n=f.createAnimation(a,(()=>\"0\"),e);f=n.easing;void 0!==n.keyframes&&(a=n.keyframes);void 0!==n.duration&&(l=n.duration)}const g=resolveOption(v.delay,e,E)||0;const w=u+g;const b=w+l;let{offset:A=m(a.length)}=c;1===A.length&&0===A[0]&&(A[1]=1);const O=length-a.length;O>0&&h(A,O);1===a.length&&a.unshift(null);addKeyframes(r,a,f,A,w,b);y=Math.max(g+l,y);d=Math.max(b,d)}}f=u;u+=y}a.forEach(((e,t)=>{for(const s in e){const a=e[s];a.sort(compareByTime);const c=[];const l=[];const f=[];for(let e=0;e<a.length;e++){const{at:t,value:n,easing:o}=a[e];c.push(n);l.push(p(0,d,t));f.push(o||i.easing)}if(0!==l[0]){l.unshift(0);c.unshift(c[0]);f.unshift(\"linear\")}if(1!==l[l.length-1]){l.push(1);c.push(null)}r.push([t,s,c,Object.assign(Object.assign(Object.assign({},n),{duration:d,easing:f,offset:l}),o)])}}));return r}function getElementSequence(e,t){!t.has(e)&&t.set(e,{});return t.get(e)}function getValueSequence(e,t){t[e]||(t[e]=[]);return t[e]}function createGeneratorEasing(e){const t=new WeakMap;return(n={})=>{const o=new Map;const getGenerator=(t=0,i=100,s=0,r=false)=>{const a=`${t}-${i}-${s}-${r}`;o.has(a)||o.set(a,e(Object.assign({from:t,to:i,velocity:s,restSpeed:r?.05:2,restDistance:r?.01:.5},n)));return o.get(a)};const getKeyframes=e=>{t.has(e)||t.set(e,A(e));return t.get(e)};return{createAnimation:(e,t,n,o,i)=>{var s,r;let a;const c=e.length;let l=n&&c<=2&&e.every(isNumberOrNull);if(l){const n=e[c-1];const l=1===c?null:e[0];let f=0;let u=0;const d=null===i||void 0===i?void 0:i.generator;if(d){const{animation:t,generatorStartTime:n}=i;const o=(null===t||void 0===t?void 0:t.startTime)||n||0;const r=(null===t||void 0===t?void 0:t.currentTime)||performance.now()-o;const a=d(r).current;u=null!==(s=l)&&void 0!==s?s:a;(1===c||2===c&&null===e[0])&&(f=O((e=>d(e).current),r,a))}else u=null!==(r=l)&&void 0!==r?r:parseFloat(t());const g=getGenerator(u,n,f,null===o||void 0===o?void 0:o.includes(\"scale\"));const m=getKeyframes(g);a=Object.assign(Object.assign({},m),{easing:\"linear\"});if(i){i.generator=g;i.generatorStartTime=performance.now()}}else{const e=getKeyframes(getGenerator(0,100));a={easing:\"ease\",duration:e.overshootDuration}}return a}}}}const isNumberOrNull=e=>\"string\"!==typeof e;const N=createGeneratorEasing(x);const F=createGeneratorEasing(V);const U={any:0,all:1};function inView$1(e,t,{root:n,margin:o,amount:i=\"any\"}={}){if(\"undefined\"===typeof IntersectionObserver)return()=>{};const s=resolveElements(e);const r=new WeakMap;const onIntersectionChange=e=>{e.forEach((e=>{const n=r.get(e.target);if(e.isIntersecting!==Boolean(n))if(e.isIntersecting){const n=t(e);\"function\"===typeof n?r.set(e.target,n):a.unobserve(e.target)}else if(n){n(e);r.delete(e.target)}}))};const a=new IntersectionObserver(onIntersectionChange,{root:n,rootMargin:o,threshold:\"number\"===typeof i?i:U[i]});s.forEach((e=>a.observe(e)));return()=>a.disconnect()}const q=new WeakMap;let K;function getElementSize(e,t){if(t){const{inlineSize:e,blockSize:n}=t[0];return{width:e,height:n}}return e instanceof SVGElement&&\"getBBox\"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function notifyTarget({target:e,contentRect:t,borderBoxSize:n}){var o;null===(o=q.get(e))||void 0===o?void 0:o.forEach((o=>{o({target:e,contentSize:t,get size(){return getElementSize(e,n)}})}))}function notifyAll(e){e.forEach(notifyTarget)}function createResizeObserver(){\"undefined\"!==typeof ResizeObserver&&(K=new ResizeObserver(notifyAll))}function resizeElement(e,t){K||createResizeObserver();const n=resolveElements(e);n.forEach((e=>{let n=q.get(e);if(!n){n=new Set;q.set(e,n)}n.add(t);null===K||void 0===K?void 0:K.observe(e)}));return()=>{n.forEach((e=>{const n=q.get(e);null===n||void 0===n?void 0:n.delete(t);(null===n||void 0===n?void 0:n.size)||(null===K||void 0===K?void 0:K.unobserve(e))}))}}const G=new Set;let _;function createWindowResizeHandler(){_=()=>{const e={width:window.innerWidth,height:window.innerHeight};const t={target:window,size:e,contentSize:e};G.forEach((e=>e(t)))};window.addEventListener(\"resize\",_)}function resizeWindow(e){G.add(e);_||createWindowResizeHandler();return()=>{G.delete(e);!G.size&&_&&(_=void 0)}}function resize(e,t){return\"function\"===typeof e?resizeWindow(e):resizeElement(e,t)}const Z=50;const createAxisInfo=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0});const createScrollInfo=()=>({time:0,x:createAxisInfo(),y:createAxisInfo()});const X={x:{length:\"Width\",position:\"Left\"},y:{length:\"Height\",position:\"Top\"}};function updateAxisInfo(e,t,n,o){const i=n[t];const{length:s,position:r}=X[t];const a=i.current;const c=n.time;i.current=e[\"scroll\"+r];i.scrollLength=e[\"scroll\"+s]-e[\"client\"+s];i.offset.length=0;i.offset[0]=0;i.offset[1]=i.scrollLength;i.progress=p(0,i.scrollLength,i.current);const l=o-c;i.velocity=l>Z?0:v(i.current-a,l)}function updateScrollInfo(e,t,n){updateAxisInfo(e,\"x\",t,n);updateAxisInfo(e,\"y\",t,n);t.time=n}function calcInset(e,t){let n={x:0,y:0};let o=e;while(o&&o!==t)if(o instanceof HTMLElement){n.x+=o.offsetLeft;n.y+=o.offsetTop;o=o.offsetParent}else if(o instanceof SVGGraphicsElement&&\"getBBox\"in o){const{top:e,left:t}=o.getBBox();n.x+=t;n.y+=e;while(o&&\"svg\"!==o.tagName)o=o.parentNode}return n}const Y={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};const J={start:0,center:.5,end:1};function resolveEdge(e,t,n=0){let o=0;void 0!==J[e]&&(e=J[e]);if(g(e)){const t=parseFloat(e);e.endsWith(\"px\")?o=t:e.endsWith(\"%\")?e=t/100:e.endsWith(\"vw\")?o=t/100*document.documentElement.clientWidth:e.endsWith(\"vh\")?o=t/100*document.documentElement.clientHeight:e=t}r(e)&&(o=t*e);return n+o}const Q=[0,0];function resolveOffset(e,t,n,o){let i=Array.isArray(e)?e:Q;let s=0;let a=0;if(r(e))i=[e,e];else if(g(e)){e=e.trim();i=e.includes(\" \")?e.split(\" \"):[e,J[e]?e:\"0\"]}s=resolveEdge(i[0],n,o);a=resolveEdge(i[1],t);return s-a}const ee={x:0,y:0};function resolveOffsets(e,t,n){let{offset:o=Y.All}=n;const{target:i=e,axis:s=\"y\"}=n;const r=\"y\"===s?\"height\":\"width\";const a=i!==e?calcInset(i,e):ee;const c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:i.clientWidth,height:i.clientHeight};const l={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let f=!t[s].interpolate;const u=o.length;for(let e=0;e<u;e++){const n=resolveOffset(o[e],l[r],c[r],a[s]);f||n===t[s].interpolatorOffsets[e]||(f=true);t[s].offset[e]=n}if(f){t[s].interpolate=y(m(u),t[s].offset);t[s].interpolatorOffsets=[...t[s].offset]}t[s].progress=t[s].interpolate(t[s].current)}function measure(e,t=e,n){n.x.targetOffset=0;n.y.targetOffset=0;if(t!==e){let o=t;while(o&&o!=e){n.x.targetOffset+=o.offsetLeft;n.y.targetOffset+=o.offsetTop;o=o.offsetParent}}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth;n.y.targetLength=t===e?t.scrollHeight:t.clientHeight;n.x.containerLength=e.clientWidth;n.y.containerLength=e.clientHeight}function createOnScrollHandler(e,t,n,o={}){const i=o.axis||\"y\";return{measure:()=>measure(e,o.target,n),update:t=>{updateScrollInfo(e,n,t);(o.offset||o.target)&&resolveOffsets(e,n,o)},notify:\"function\"===typeof t?()=>t(n):scrubAnimation(t,n[i])}}function scrubAnimation(e,n){e.pause();e.forEachNative(((e,{easing:n})=>{var o,i;if(e.updateDuration){n||(e.easing=t);e.updateDuration(1)}else{const t={duration:1e3};n||(t.easing=\"linear\");null===(i=null===(o=e.effect)||void 0===o?void 0:o.updateTiming)||void 0===i?void 0:i.call(o,t)}}));return()=>{e.currentTime=n.progress}}const te=new WeakMap;const ne=new WeakMap;const oe=new WeakMap;const getEventTarget=e=>e===document.documentElement?window:e;function scroll(e,t={}){var{container:n=document.documentElement}=t,o=b(t,[\"container\"]);let i=oe.get(n);if(!i){i=new Set;oe.set(n,i)}const s=createScrollInfo();const r=createOnScrollHandler(n,e,s,o);i.add(r);if(!te.has(n)){const listener=()=>{const e=performance.now();for(const e of i)e.measure();for(const t of i)t.update(e);for(const e of i)e.notify()};te.set(n,listener);const e=getEventTarget(n);window.addEventListener(\"resize\",listener,{passive:true});n!==document.documentElement&&ne.set(n,resize(n,listener));e.addEventListener(\"scroll\",listener,{passive:true})}const a=te.get(n);const c=requestAnimationFrame(a);return()=>{var t;\"function\"!==typeof e&&e.stop();cancelAnimationFrame(c);const o=oe.get(n);if(!o)return;o.delete(r);if(o.size)return;const i=te.get(n);te.delete(n);if(i){getEventTarget(n).removeEventListener(\"scroll\",i);null===(t=ne.get(n))||void 0===t?void 0:t();window.removeEventListener(\"resize\",i)}}}function hasChanged(e,t){return typeof e!==typeof t||(Array.isArray(e)&&Array.isArray(t)?!shallowCompare(e,t):e!==t)}function shallowCompare(e,t){const n=t.length;if(n!==e.length)return false;for(let o=0;o<n;o++)if(t[o]!==e[o])return false;return true}function isVariant(e){return\"object\"===typeof e}function resolveVariant(e,t){return isVariant(e)?e:e&&t?t[e]:void 0}let ie;function processScheduledAnimations(){if(!ie)return;const e=ie.sort(compareByDepth).map(fireAnimateUpdates);e.forEach(fireNext);e.forEach(fireNext);ie=void 0}function scheduleAnimation(e){if(ie)n(ie,e);else{ie=[e];requestAnimationFrame(processScheduledAnimations)}}function unscheduleAnimation(e){ie&&f(ie,e)}const compareByDepth=(e,t)=>e.getDepth()-t.getDepth();const fireAnimateUpdates=e=>e.animateUpdates();const fireNext=e=>e.next();const motionEvent=(e,t)=>new CustomEvent(e,{detail:{target:t}});function dispatchPointerEvent(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}function dispatchViewEvent(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:n}}))}const se={isActive:e=>Boolean(e.inView),subscribe:(e,{enable:t,disable:n},{inViewOptions:o={}})=>{const{once:i}=o,s=b(o,[\"once\"]);return inView$1(e,(o=>{t();dispatchViewEvent(e,\"viewenter\",o);if(!i)return t=>{n();dispatchViewEvent(e,\"viewleave\",t)}}),s)}};const mouseEvent=(e,t,n)=>o=>{if(!o.pointerType||\"mouse\"===o.pointerType){n();dispatchPointerEvent(e,t,o)}};const re={isActive:e=>Boolean(e.hover),subscribe:(e,{enable:t,disable:n})=>{const o=mouseEvent(e,\"hoverstart\",t);const i=mouseEvent(e,\"hoverend\",n);e.addEventListener(\"pointerenter\",o);e.addEventListener(\"pointerleave\",i);return()=>{e.removeEventListener(\"pointerenter\",o);e.removeEventListener(\"pointerleave\",i)}}};const ae={isActive:e=>Boolean(e.press),subscribe:(e,{enable:t,disable:n})=>{const onPointerUp=t=>{n();dispatchPointerEvent(e,\"pressend\",t);window.removeEventListener(\"pointerup\",onPointerUp)};const onPointerDown=n=>{t();dispatchPointerEvent(e,\"pressstart\",n);window.addEventListener(\"pointerup\",onPointerUp)};e.addEventListener(\"pointerdown\",onPointerDown);return()=>{e.removeEventListener(\"pointerdown\",onPointerDown);window.removeEventListener(\"pointerup\",onPointerUp)}}};const ce={inView:se,hover:re,press:ae};const le=[\"initial\",\"animate\",...Object.keys(ce),\"exit\"];const fe=new WeakMap;function createMotionState(e={},t){let n;let o=t?t.getDepth()+1:0;const i={initial:true,animate:true};const s={};const r={};for(const n of le)r[n]=\"string\"===typeof e[n]?e[n]:null===t||void 0===t?void 0:t.getContext()[n];const a=false===e.initial?\"animate\":\"initial\";let c=resolveVariant(e[a]||r[a],e.variants)||{},f=b(c,[\"transition\"]);const u=Object.assign({},f);function*animateUpdates(){var t,o;const s=f;f={};const r={};for(const n of le){if(!i[n])continue;const s=resolveVariant(e[n]);if(s)for(const n in s)if(\"transition\"!==n){f[n]=s[n];r[n]=getOptions(null!==(o=null!==(t=s.transition)&&void 0!==t?t:e.transition)&&void 0!==o?o:{},n)}}const a=new Set([...Object.keys(f),...Object.keys(s)]);const c=[];a.forEach((e=>{var t;void 0===f[e]&&(f[e]=u[e]);if(hasChanged(s[e],f[e])){null!==(t=u[e])&&void 0!==t?t:u[e]=H.get(n,e);c.push(animateStyle(n,e,f[e],r[e]))}}));yield;const d=c.map((e=>e())).filter(Boolean);if(!d.length)return;const g=f;n.dispatchEvent(motionEvent(\"motionstart\",g));Promise.all(d.map((e=>e.finished))).then((()=>{n.dispatchEvent(motionEvent(\"motioncomplete\",g))})).catch(l)}const setGesture=(e,t)=>()=>{i[e]=t;scheduleAnimation(d)};const updateGestureSubscriptions=()=>{for(const t in ce){const o=ce[t].isActive(e);const i=s[t];if(o&&!i)s[t]=ce[t].subscribe(n,{enable:setGesture(t,true),disable:setGesture(t,false)},e);else if(!o&&i){i();delete s[t]}}};const d={update:t=>{if(n){e=t;updateGestureSubscriptions();scheduleAnimation(d)}},setActive:(e,t)=>{if(n){i[e]=t;scheduleAnimation(d)}},animateUpdates:animateUpdates,getDepth:()=>o,getTarget:()=>f,getOptions:()=>e,getContext:()=>r,mount:e=>{S(Boolean(e),\"Animation state must be mounted with valid Element\");n=e;fe.set(n,d);updateGestureSubscriptions();return()=>{fe.delete(n);unscheduleAnimation(d);for(const e in s)s[e]()}},isMounted:()=>Boolean(n)};return d}function createStyles(e){const t={};const n=[];for(let o in e){const i=e[o];if(isTransform(o)){T[o]&&(o=T[o]);n.push(o);o=asTransformCssVar(o)}let s=Array.isArray(i)?i[0]:i;const a=k.get(o);a&&(s=r(i)?a.toDefaultUnit(i):i);t[o]=s}n.length&&(t.transform=buildTransformTemplate(n));return t}const camelLetterToPipeLetter=e=>`-${e.toLowerCase()}`;const camelToPipeCase=e=>e.replace(/[A-Z]/g,camelLetterToPipeLetter);function createStyleString(e={}){const t=createStyles(e);let n=\"\";for(const e in t){n+=e.startsWith(\"--\")?e:camelToPipeCase(e);n+=`: ${t[e]}; `}return n}export{Y as ScrollOffset,animate,animateStyle,createMotionState,createStyleString,createStyles,getAnimationData,getStyleName,F as glide,inView$1 as inView,fe as mountedStates,resize,scroll,N as spring,stagger,H as style,timeline,withControls};\n\n//# sourceMappingURL=index.es.js.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{Children,useLayoutEffect,useEffect,useState,useRef,useMemo,useCallback,cloneElement,startTransition,forwardRef,useImperativeHandle}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useReducedMotion,LayoutGroup,useInView,useMotionValue,useTransform,motion,frame}from\"framer-motion\";import{resize}from\"@motionone/dom\";const MAX_DUPLICATED_ITEMS=100;const directionTransformers={left:offset=>`translateX(-${offset}px)`,right:offset=>`translateX(${offset}px)`,top:offset=>`translateY(-${offset}px)`,bottom:offset=>`translateY(${offset}px)`};/**\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 200\n *\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function Ticker(props){/* Props */let{slots=[],gap,padding,paddingPerSide,paddingTop,paddingRight,paddingBottom,paddingLeft,speed,hoverFactor,direction,alignment,sizingOptions,fadeOptions,style}=props;const{fadeContent,overflow,fadeWidth,fadeInset,fadeAlpha}=fadeOptions;const{widthType,heightType}=sizingOptions;const paddingValue=paddingPerSide?`${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`:`${padding}px`;/* Checks */const currentTarget=RenderTarget.current();const isCanvas=currentTarget===RenderTarget.canvas||currentTarget===RenderTarget.export;const writingDirection=useWritingDirection();// Remove empty slots (such as hidden layers)\nconst filteredSlots=slots.filter(Boolean);const numChildren=Children.count(filteredSlots);const hasChildren=numChildren>0;const offset=useMotionValue(0);const resolvedDirection=getTickerResolvedDirection(direction===true?\"left\":direction,writingDirection);const isHorizontal=resolvedDirection===\"left\"||resolvedDirection===\"right\";const transformer=directionTransformers[resolvedDirection];const transform=useTransform(offset,transformer);/* Refs and State */const parentRef=useRef(null);const childrenRef=useMemo(()=>{return[{current:null},{current:null}];},[]);const[size,setSize]=useState({parent:null,children:null});/* Arrays */let clonedChildren=null;let dupedChildren=[];/* Duplicate value */let duplicateBy=0;let opacity=0;if(isCanvas){duplicateBy=numChildren?Math.floor(10/numChildren):0;opacity=1;}if(!isCanvas&&hasChildren&&size.parent){duplicateBy=Math.round(size.parent/size.children*2)+1;duplicateBy=Math.min(duplicateBy,MAX_DUPLICATED_ITEMS);opacity=1;}/* Measure parent and child */const measure=useCallback(()=>{if(hasChildren&&parentRef.current){const parentLength=isHorizontal?parentRef.current.offsetWidth:parentRef.current.offsetHeight;const start=childrenRef[0].current?isHorizontal?childrenRef[0].current.offsetLeft:childrenRef[0].current.offsetTop:0;const end=childrenRef[1].current?isHorizontal?childrenRef[1].current.offsetLeft+childrenRef[1].current.offsetWidth:childrenRef[1].current.offsetTop+childrenRef[1].current.offsetHeight:0;const childrenLength=end-start+gap;startTransition(()=>{setSize({parent:parentLength,children:childrenLength});});}},[]);const childrenStyles=isCanvas?{contentVisibility:\"auto\"}:{};/* Add refs to first and last child */if(hasChildren){// TODO: These conditional hooks will be unsafe if hasChildren ever changes outside the canvas.\nif(!isCanvas){/**\n             * Track whether this is the initial resize event. By default this will fire on mount,\n             * which we do in the useEffect. We should only fire it on subsequent resizes.\n             */let initialResize=useRef(true);useLayoutEffect(()=>{frame.read(measure,false,true);return resize(parentRef.current,({contentSize})=>{if(!initialResize.current&&(contentSize.width||contentSize.height)){frame.read(measure,false,true);}initialResize.current=false;});},[]);}clonedChildren=Children.map(filteredSlots,(child,index)=>{let ref;if(index===0){ref=childrenRef[writingDirection===\"rtl\"&&isHorizontal?1:0];}if(index===filteredSlots.length-1){ref=childrenRef[writingDirection===\"rtl\"&&isHorizontal?0:1];}const size={width:widthType?child.props?.width:\"100%\",height:heightType?child.props?.height:\"100%\"};return /*#__PURE__*/_jsx(LayoutGroup,{inherit:\"id\",children:/*#__PURE__*/_jsx(Wrapper,{ref:ref,style:size,children:/*#__PURE__*/cloneElement(child,{style:{...child.props?.style,...size,flexShrink:0,...childrenStyles},layoutId:child.props.layoutId?child.props.layoutId+\"-original-\"+index:undefined},child.props?.children)})});});}const isInView=isCanvas?true:useInView(parentRef);if(!isCanvas){for(let i=0;i<duplicateBy;i++){dupedChildren=dupedChildren.concat(Children.map(filteredSlots,(child,childIndex)=>{const size={width:widthType?child.props?.width:\"100%\",height:heightType?child.props?.height:\"100%\",willChange:!isInView?undefined:\"transform\"};return /*#__PURE__*/_jsx(LayoutGroup,{inherit:\"id\",children:/*#__PURE__*/_jsx(Wrapper,{style:size,children:/*#__PURE__*/cloneElement(child,{key:i+\" \"+childIndex,style:{...child.props?.style,width:widthType?child.props?.width:\"100%\",height:heightType?child.props?.height:\"100%\",flexShrink:0,...childrenStyles},layoutId:child.props.layoutId?child.props.layoutId+\"-dupe-\"+i:undefined},child.props?.children)},i+\"li\"+childIndex)},i+\"lg\"+childIndex);}));}}const animateToValue=size.children+size.children*Math.round(size.parent/size.children);const initialTime=useRef(null);const prevTime=useRef(null);const xOrY=useRef(0);const isHover=useRef(false);const isReducedMotion=useReducedMotion();const listRef=useRef(null);const animationRef=useRef(null);/**\n     * Setup animations\n     */if(!isCanvas){useEffect(()=>{if(isReducedMotion||!animateToValue||!speed){return;}animationRef.current=listRef.current.animate({transform:[transformer(0),transformer(animateToValue)]},{duration:Math.abs(animateToValue)/speed*1e3,iterations:Infinity,iterationStart:writingDirection===\"rtl\"?1:0,easing:\"linear\"});return()=>animationRef.current.cancel();},[hoverFactor,animateToValue,speed,writingDirection]);const playOrPause=useCallback(()=>{if(!animationRef.current)return;const hidden=document.hidden;if(isInView&&!hidden&&animationRef.current.playState===\"paused\"){animationRef.current.play();}else if((!isInView||hidden)&&animationRef.current.playState===\"running\"){animationRef.current.pause();}},[isInView]);useEffect(()=>{playOrPause();},[isInView,hoverFactor,animateToValue,speed]);useEffect(()=>{document.addEventListener(\"visibilitychange\",playOrPause);return()=>{document.removeEventListener(\"visibilitychange\",playOrPause);};},[playOrPause]);}/* Fades */const fadeDirection=isHorizontal?\"to right\":\"to bottom\";const fadeWidthStart=fadeWidth/2;const fadeWidthEnd=100-fadeWidth/2;const fadeInsetStart=clamp(fadeInset,0,fadeWidthStart);const fadeInsetEnd=100-fadeInset;const fadeMask=`linear-gradient(${fadeDirection}, rgba(0, 0, 0, ${fadeAlpha}) ${fadeInsetStart}%, rgba(0, 0, 0, 1) ${fadeWidthStart}%, rgba(0, 0, 0, 1) ${fadeWidthEnd}%, rgba(0, 0, 0, ${fadeAlpha}) ${fadeInsetEnd}%)`;/* Empty state */if(!hasChildren){return /*#__PURE__*/_jsxs(\"section\",{style:placeholderStyles,children:[/*#__PURE__*/_jsx(\"div\",{style:emojiStyles,children:\"✨\"}),/*#__PURE__*/_jsx(\"p\",{style:titleStyles,children:\"Connect to Content\"}),/*#__PURE__*/_jsx(\"p\",{style:subtitleStyles,children:\"Add layers or components to infinitely loop on your page.\"})]});}return /*#__PURE__*/_jsx(\"section\",{style:{...containerStyle,opacity:opacity,WebkitMaskImage:fadeContent?fadeMask:undefined,maskImage:fadeContent?fadeMask:undefined,overflow:overflow?\"visible\":\"hidden\",padding:paddingValue},ref:parentRef,children:/*#__PURE__*/_jsxs(motion.ul,{ref:listRef,style:{...containerStyle,gap:gap,top:direction===\"bottom\"&&isValidNumber(animateToValue)?-animateToValue:undefined,left:direction===\"right\"&&isValidNumber(animateToValue)?animateToValue*(writingDirection===\"rtl\"?1:-1):undefined,placeItems:alignment,position:\"relative\",flexDirection:isHorizontal?\"row\":\"column\",...style,willChange:isCanvas||!isInView?\"auto\":\"transform\",transform:transformer(0)},onMouseEnter:()=>{isHover.current=true;if(animationRef.current){// TODO Replace with updatePlaybackRate when Chrome bugs sorted\nanimationRef.current.playbackRate=hoverFactor;}},onMouseLeave:()=>{isHover.current=false;if(animationRef.current){// TODO Replace with updatePlaybackRate when Chrome bugs sorted\nanimationRef.current.playbackRate=1;}},children:[clonedChildren,dupedChildren]})});}const Wrapper=/*#__PURE__*/forwardRef(({children,...props},ref)=>{const innerRef=useRef();const inView=useInView(innerRef);useImperativeHandle(ref,()=>innerRef.current);useEffect(()=>{const current=innerRef.current;if(!current)return;// for a11y: Manage tabIndex on focusable descendants & aria-hidden on the parent.\nif(inView){current.querySelectorAll(\"button,a\").forEach(el=>{const orig=el.dataset.origTabIndex;if(orig)el.tabIndex=orig;else el.removeAttribute(\"tabIndex\");});}else{current.querySelectorAll(\"button,a\").forEach(el=>{const orig=el.getAttribute(\"tabIndex\");if(orig)el.dataset.origTabIndex=orig;el.tabIndex=-1;});}},[inView]);return /*#__PURE__*/_jsx(\"li\",{...props,\"aria-hidden\":!inView,ref:innerRef,children:children});});/* Default Properties */Ticker.defaultProps={gap:10,padding:10,sizingOptions:{widthType:true,heightType:true},fadeOptions:{fadeContent:true,overflow:false,fadeWidth:25,fadeAlpha:0,fadeInset:0},direction:true};/* Property Controls */addPropertyControls(Ticker,{slots:{type:ControlType.Array,title:\"Children\",control:{type:ControlType.ComponentInstance}},speed:{type:ControlType.Number,title:\"Speed\",min:0,max:1e3,defaultValue:100,unit:\"%\",displayStepper:true,step:5},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"left\",\"right\",\"top\",\"bottom\"],optionIcons:[\"direction-left\",\"direction-right\",\"direction-up\",\"direction-down\"],optionTitles:[\"Left\",\"Right\",\"Top\",\"Bottom\"],defaultValue:\"left\",displaySegmentedControl:true},alignment:{type:ControlType.Enum,title:\"Align\",options:[\"flex-start\",\"center\",\"flex-end\"],optionIcons:{direction:{right:[\"align-top\",\"align-middle\",\"align-bottom\"],left:[\"align-top\",\"align-middle\",\"align-bottom\"],top:[\"align-left\",\"align-center\",\"align-right\"],bottom:[\"align-left\",\"align-center\",\"align-right\"]}},defaultValue:\"center\",displaySegmentedControl:true},gap:{type:ControlType.Number,title:\"Gap\"},padding:{title:\"Padding\",type:ControlType.FusedNumber,toggleKey:\"paddingPerSide\",toggleTitles:[\"Padding\",\"Padding per side\"],valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0},sizingOptions:{type:ControlType.Object,title:\"Sizing\",controls:{widthType:{type:ControlType.Boolean,title:\"Width\",enabledTitle:\"Auto\",disabledTitle:\"Stretch\",defaultValue:true},heightType:{type:ControlType.Boolean,title:\"Height\",enabledTitle:\"Auto\",disabledTitle:\"Stretch\",defaultValue:true}}},fadeOptions:{type:ControlType.Object,title:\"Clipping\",controls:{fadeContent:{type:ControlType.Boolean,title:\"Fade\",defaultValue:true},overflow:{type:ControlType.Boolean,title:\"Overflow\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false,hidden(props){return props.fadeContent===true;}},fadeWidth:{type:ControlType.Number,title:\"Width\",defaultValue:25,min:0,max:100,unit:\"%\",hidden(props){return props.fadeContent===false;}},fadeInset:{type:ControlType.Number,title:\"Inset\",defaultValue:0,min:0,max:100,unit:\"%\",hidden(props){return props.fadeContent===false;}},fadeAlpha:{type:ControlType.Number,title:\"Opacity\",defaultValue:0,min:0,max:1,step:.05,hidden(props){return props.fadeContent===false;}}}},hoverFactor:{type:ControlType.Number,title:\"Hover\",min:0,max:1,unit:\"x\",defaultValue:1,step:.1,displayStepper:true,description:\"Slows down the speed while you are hovering.\"}});/* Placeholder Styles */const containerStyle={display:\"flex\",width:\"100%\",height:\"100%\",maxWidth:\"100%\",maxHeight:\"100%\",placeItems:\"center\",margin:0,padding:0,listStyleType:\"none\",textIndent:\"none\"};/* Styles */const placeholderStyles={display:\"flex\",width:\"100%\",height:\"100%\",placeContent:\"center\",placeItems:\"center\",flexDirection:\"column\",color:\"#96F\",background:\"rgba(136, 85, 255, 0.1)\",fontSize:11,overflow:\"hidden\",padding:\"20px 20px 30px 20px\"};const emojiStyles={fontSize:32,marginBottom:10};const titleStyles={margin:0,marginBottom:10,fontWeight:600,textAlign:\"center\"};const subtitleStyles={margin:0,opacity:.7,maxWidth:150,lineHeight:1.5,textAlign:\"center\"};/* Clamp function, used for fadeInset */const clamp=(num,min,max)=>Math.min(Math.max(num,min),max);const isValidNumber=value=>typeof value===\"number\"&&!isNaN(value);function useWritingDirection(){if(!window||!window.document||!window.document.documentElement)return\"ltr\";return window.document.documentElement.dir===\"rtl\"?\"rtl\":\"ltr\";}function getTickerResolvedDirection(direction,writingDirection){if(writingDirection!==\"rtl\")return direction;if(direction===\"left\")return\"right\";if(direction===\"right\")return\"left\";return direction;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Ticker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Ticker.map","// Generated by Framer (8a671e2)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,Image as Image1,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import Ticker from\"https://framerusercontent.com/modules/B2xAlJLcN0gOnt11mSPw/plhC5PVnCMllW5QXjFK5/Ticker.js\";const TickerFonts=getFonts(Ticker);const cycleOrder=[\"K1bUNPNUZ\",\"mideCR84V\",\"gPrdjTCWy\"];const serializationHash=\"framer-SF7Wd\";const variantClassNames={gPrdjTCWy:\"framer-v-9gkx72\",K1bUNPNUZ:\"framer-v-1cxkfki\",mideCR84V:\"framer-v-fxeuo2\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Desktop:\"K1bUNPNUZ\",Phone:\"gPrdjTCWy\",Tablet:\"mideCR84V\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"K1bUNPNUZ\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"K1bUNPNUZ\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1cxkfki\",className,classNames),\"data-framer-name\":\"Desktop\",layoutDependency:layoutDependency,layoutId:\"K1bUNPNUZ\",ref:refBinding,style:{...style},...addPropertyOverrides({gPrdjTCWy:{\"data-framer-name\":\"Phone\"},mideCR84V:{\"data-framer-name\":\"Tablet\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-ggsyzd-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"vLD57Dcas-container\",nodeId:\"vLD57Dcas\",rendersWithMotion:true,scopeId:\"imQxwEMT2\",children:/*#__PURE__*/_jsx(Ticker,{alignment:\"center\",direction:\"left\",fadeOptions:{fadeAlpha:0,fadeContent:true,fadeInset:0,fadeWidth:25,overflow:false},gap:64,height:\"100%\",hoverFactor:1,id:\"vLD57Dcas\",layoutId:\"vLD57Dcas\",padding:4,paddingBottom:4,paddingLeft:4,paddingPerSide:false,paddingRight:4,paddingTop:4,sizingOptions:{heightType:true,widthType:true},slots:[/*#__PURE__*/_jsx(Image1,{background:{alt:\"\",fit:\"fill\",pixelHeight:1996,pixelWidth:1996,positionX:\"center\",positionY:\"center\",sizes:\"66px\",src:\"https://framerusercontent.com/images/JThpO6dQK7cJPl58jyGeMumf5aM.png?width=1996&height=1996\"},className:\"framer-1l5fs6g\",\"data-framer-name\":\"BABTAC Membership Mark\",layoutDependency:layoutDependency,layoutId:\"gwJV_DI4F\",style:{borderBottomLeftRadius:\"100%\",borderBottomRightRadius:\"100%\",borderTopLeftRadius:\"100%\",borderTopRightRadius:\"100%\"}}),/*#__PURE__*/_jsx(Image1,{background:{alt:\"\",fit:\"fill\",pixelHeight:3e3,pixelWidth:3e3,positionX:\"center\",positionY:\"center\",sizes:\"66px\",src:\"https://framerusercontent.com/images/mSx4PbmrHjb4zEcngGoLkhxu2M.png?width=3000&height=3000\"},className:\"framer-wkannh\",\"data-framer-name\":\"CIBTAC Membership Mark\",layoutDependency:layoutDependency,layoutId:\"aocRZ2fOp\",style:{borderBottomLeftRadius:\"100%\",borderBottomRightRadius:\"100%\",borderTopLeftRadius:\"100%\",borderTopRightRadius:\"100%\"}}),/*#__PURE__*/_jsx(Image1,{background:{alt:\"\",fit:\"fill\",pixelHeight:627,pixelWidth:2508,positionX:\"center\",positionY:\"center\",sizes:\"196px\",src:\"https://framerusercontent.com/images/IpD5IwNmLfsjfIiozSnoXZQAQ.png?width=2508&height=627\"},className:\"framer-qd28o3\",\"data-framer-name\":\"Vitality Logo\",layoutDependency:layoutDependency,layoutId:\"sUo_9RDB5\"})],speed:44,style:{height:\"100%\",width:\"100%\"},width:\"100%\",...addPropertyOverrides({gPrdjTCWy:{gap:30},mideCR84V:{gap:38}},baseVariant,gestureVariant)})})})})})})});});const css=[\".framer-SF7Wd.framer-16tx0xc, .framer-SF7Wd .framer-16tx0xc { display: block; }\",\".framer-SF7Wd.framer-1cxkfki { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: 74px; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: 1200px; }\",\".framer-SF7Wd .framer-ggsyzd-container { flex: none; height: 74px; position: relative; width: 100%; }\",\".framer-SF7Wd .framer-1l5fs6g, .framer-SF7Wd .framer-wkannh { height: 66px; overflow: var(--overflow-clip-fallback, clip); position: relative; width: 66px; will-change: var(--framer-will-change-override, transform); }\",\".framer-SF7Wd .framer-qd28o3 { height: 49px; mix-blend-mode: multiply; overflow: var(--overflow-clip-fallback, clip); position: relative; width: 196px; will-change: var(--framer-will-change-filter-override, filter); }\",\".framer-SF7Wd.framer-v-fxeuo2.framer-1cxkfki { width: 810px; }\",\".framer-SF7Wd.framer-v-9gkx72.framer-1cxkfki { width: 390px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 30\n * @framerIntrinsicWidth 1200\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"mideCR84V\":{\"layout\":[\"fixed\",\"fixed\"]},\"gPrdjTCWy\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerimQxwEMT2=withCSS(Component,css,\"framer-SF7Wd\");export default FramerimQxwEMT2;FramerimQxwEMT2.displayName=\"Content/Client Logos\";FramerimQxwEMT2.defaultProps={height:30,width:1200};addPropertyControls(FramerimQxwEMT2,{variant:{options:[\"K1bUNPNUZ\",\"mideCR84V\",\"gPrdjTCWy\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerimQxwEMT2,[{explicitInter:true,fonts:[]},...TickerFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerimQxwEMT2\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"30\",\"framerAutoSizeImages\":\"true\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"1200\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"mideCR84V\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"gPrdjTCWy\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./imQxwEMT2.map","// User request: Refine SkinReset.tsx with a reusable questionnaire host, CTA component, and overrides including real form fields/hidden inputs, progress bar, stronger accessibility/focus handling, canvas in-flow preview behavior, and honest local snapshot behavior when webhook is not configured.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer}from\"framer\";import{animate,motion}from\"framer-motion\";const OPEN_EVENT=\"skinreset:open\";const GUIDE_SUCCESS_EVENT=\"skinreset:guide-success\";const SKINRESET_WEBHOOK_URL=\"https://hook.eu2.make.com/h315qsu9ytobrli7jhq5ak2q9ywld9oo\";const CTA_SPRING={type:\"spring\",stiffness:500,damping:60,mass:1,delay:0};function canHoverFinePointer(){if(typeof window===\"undefined\"||typeof window.matchMedia!==\"function\")return false;return window.matchMedia(\"(hover: hover) and (pointer: fine)\").matches;}function prefersReducedMotionNow(){if(typeof window===\"undefined\"||typeof window.matchMedia!==\"function\")return false;return window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;}function AnimatedCTALabel(props){const{label,lineHeightPx,active}=props;return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",height:lineHeightPx,overflow:\"hidden\",lineHeight:`${lineHeightPx}px`,alignItems:\"flex-start\"},children:/*#__PURE__*/_jsxs(motion.span,{style:{display:\"flex\",flexDirection:\"column\",lineHeight:`${lineHeightPx}px`},animate:{y:active?-lineHeightPx:0},transition:CTA_SPRING,children:[/*#__PURE__*/_jsx(\"span\",{children:label}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,children:label})]})});}function AnimatedCTAButton(props){const{label,style,className,type=\"button\",disabled,onClick}=props;const[active,setActive]=useState(false);const canHover=canHoverFinePointer()&&!prefersReducedMotionNow();const labelLineHeight=18;return /*#__PURE__*/_jsx(motion.button,{className:className,type:type,disabled:disabled,\"aria-label\":label,onClick:onClick,onPointerEnter:()=>{if(canHover)startTransition(()=>setActive(true));},onPointerLeave:()=>{if(canHover)startTransition(()=>setActive(false));},whileTap:{scale:.98},style:style,children:/*#__PURE__*/_jsx(AnimatedCTALabel,{label:label,lineHeightPx:labelLineHeight,active:active})});}const concernsImages=[\"https://framerusercontent.com/images/rVaQL8InBHXUhkSZ5EGAlOsVYec.jpg?width=1432&height=1433&kb=156\",\"https://framerusercontent.com/images/fnf2EaoRbHGt5yAsZwWV4aq6Fhw.jpg?width=726&height=675&kb=173\",\"https://framerusercontent.com/images/CemAmujGSYdOrNXgpdwDP8juUQ.png?width=397&height=513&kb=332\",\"https://framerusercontent.com/images/yLuhuQthqKJDOC5tosUUUYpPyxg.jpg?width=500&height=500&kb=119\",\"https://framerusercontent.com/images/ITd6w3qGd5CHMD0RBB3igYkPWc.jpg?width=1133&height=992&kb=336\",\"https://framerusercontent.com/images/xROD8z1wUCWGSzAu8sMj4q3c.webp?width=1100&height=733&kb=76\",\"https://framerusercontent.com/images/wLp7fI0MJdVJ4Kuo1CEFHeSV7fM.webp?width=1920&height=1420&kb=1131\",\"https://framerusercontent.com/images/rl6cxn8TITm78zG6Qim0azOJHs.jpg?width=640&height=427&kb=26\"];const questions=[{key:\"skin_concerns\",heading:\"What are your top skin concerns?\",subheading:\"Select up to 3 options\",type:\"multi\",maxSelect:3,options:[{label:\"Discolouration / uneven tone\",image:concernsImages[0]},{label:\"Fine lines / wrinkles\",image:concernsImages[1]},{label:\"Loss of firmness / elasticity\",image:concernsImages[2]},{label:\"Uneven texture\",image:concernsImages[3]},{label:\"Redness\",image:concernsImages[4]},{label:\"Large pores\",image:concernsImages[5]},{label:\"Dark circles\",image:concernsImages[6]},{label:\"Spots / breakouts\",image:concernsImages[7]}]},{key:\"skin_type\",heading:\"What best describes your skin type?\",type:\"single\",options:[{label:\"Dry\",image:\"https://framerusercontent.com/images/s3ndq0IA500VJJvvJzryZ8jRo6s.jpg?width=457&height=290&kb=68\"},{label:\"Oily\",image:\"https://framerusercontent.com/images/CVurChiDG4yCsQtVRQ8AoZFbfU.jpg?width=2560&height=1920&kb=363\"},{label:\"Combination\",image:\"https://framerusercontent.com/images/uCTMTQudn4qy7W0vQ6xuHb2WBg8.jpg?width=594&height=357&kb=75\"},{label:\"Balanced\",image:\"https://framerusercontent.com/images/7J88upXc237uQWmcpdMwjH1Uc.jpg?width=1346&height=1646&kb=353\"}]},{key:\"sensitivity\",heading:\"How easily does your skin become irritated?\",type:\"single\",options:[{label:\"Rarely\"},{label:\"Sometimes\"},{label:\"Often\"}]},{key:\"age_bracket\",heading:\"Which age bracket are you in?\",type:\"single\",options:[{label:\"Under 25\"},{label:\"25 to 34\"},{label:\"35 to 44\"},{label:\"45 to 54\"},{label:\"55 to 64\"},{label:\"65+\"}]},{key:\"actives_experience\",heading:\"How experienced are you with active skincare ingredients?\",type:\"single\",options:[{label:\"Never used them\"},{label:\"Have some experience\"},{label:\"I regularly use acids or retinoids\"}]},{key:\"routine_barriers\",heading:\"What’s the biggest thing getting in the way of a good skincare routine?\",subheading:\"Select up to 2 options\",type:\"multi\",maxSelect:2,options:[{label:\"I don’t know which products to buy\"},{label:\"I don’t know which ingredients I need\"},{label:\"Skincare feels too complicated\"},{label:\"I don’t have time for a long routine\"},{label:\"I struggle to stay consistent\"},{label:\"I don’t want to spend a fortune\"},{label:\"I’m worried about irritating my skin\"}]},{key:\"gender\",heading:\"How do you identify?\",type:\"single\",options:[{label:\"Female\"},{label:\"Male\"},{label:\"Non binary\"},{label:\"Prefer not to say\"}]},{key:\"email\",heading:\"Where should I send your Skin Reset?\",type:\"email\"}];function defaultAnswers(email=\"\"){return{skin_concerns:[],skin_type:\"\",sensitivity:\"\",age_bracket:\"\",actives_experience:\"\",routine_barriers:[],gender:\"\",email};}const focusableSelector='button:not([disabled]), [href], input:not([disabled]):not([type=\"hidden\"]), [tabindex]:not([tabindex=\"-1\"])';function dispatchOpenSkinReset(email=\"\"){if(typeof window!==\"undefined\"){window.dispatchEvent(new CustomEvent(OPEN_EVENT,{detail:{email}}));}}function isEmailValid(value){return/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value.trim());}function hasAnswer(question,answers){const value=answers[question.key];if(Array.isArray(value))return value.length>0;if(question.type===\"email\")return isEmailValid(value);return Boolean(value);}function checkIcon(navy){return /*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20 7L10 17L4 11\",stroke:navy,strokeWidth:\"2.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}export function SkinResetCTA(props){const{title,buttonLabel,body,meta,integrated,background,navy,cream,textColor,headingFont,bodyFont,buttonFont,style}=props;if(integrated){return /*#__PURE__*/_jsxs(\"section\",{className:\"skinreset-cta-integrated\",style:{position:\"relative\",width:\"100%\",[\"containerType\"]:\"inline-size\",height:\"auto\",boxSizing:\"border-box\",...style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .skinreset-cta-integrated {\n                        border-top: 1px solid rgba(24,33,45,0.12);\n                        padding-top: 16px;\n                    }\n                    @media (max-width: 809px) {\n                        .skinreset-cta-integrated {\n                            border-top: none;\n                            padding: 32px 0 12px;\n                        }\n                        .skinreset-cta-integrated-row {\n                            flex-direction: column !important;\n                            align-items: center;\n                        }\n                        .skinreset-cta-integrated-heading {\n                            text-align: center;\n                        }\n                        .skinreset-cta-integrated-button {\n                            width: 100%;\n                        }\n                    }\n                    @container (max-width: 440px) {\n                        .skinreset-cta-integrated-row {\n                            flex-direction: column !important;\n                            align-items: center;\n                        }\n                        .skinreset-cta-integrated-heading {\n                            text-align: center;\n                        }\n                        .skinreset-cta-integrated-button {\n                            width: 100%;\n                        }\n                    }\n                `}),/*#__PURE__*/_jsxs(\"div\",{className:\"skinreset-cta-integrated-row\",style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:16},children:[/*#__PURE__*/_jsx(\"h3\",{className:\"skinreset-cta-integrated-heading\",style:{margin:0,fontFamily:\"DM Sans, sans-serif\",fontWeight:400,fontSize:20,lineHeight:1.35,color:navy},children:title}),/*#__PURE__*/_jsx(AnimatedCTAButton,{className:\"skinreset-cta-integrated-button\",label:buttonLabel,type:\"button\",onClick:()=>dispatchOpenSkinReset(\"\"),style:{border:\"none\",borderRadius:8,height:52,padding:\"0 20px\",background:\"#333333\",color:\"#FFFFFF\",fontFamily:\"DM Sans, sans-serif\",fontWeight:400,fontSize:16,lineHeight:1,cursor:\"pointer\",whiteSpace:\"nowrap\"}})]})]});}return /*#__PURE__*/_jsxs(\"section\",{style:{position:\"relative\",width:\"100%\",fontFamily:\"DM Sans, sans-serif\",fontSize:16,lineHeight:1.5,display:\"flex\",flexDirection:\"column\",gap:14,background,color:textColor,border:`1px solid ${cream}`,borderRadius:24,padding:24,boxSizing:\"border-box\",...style},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontFamily:\"Instrument Serif, serif\",fontWeight:400,...headingFont,color:navy},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,...bodyFont,color:textColor},children:body}),/*#__PURE__*/_jsx(AnimatedCTAButton,{label:buttonLabel,type:\"button\",onClick:()=>dispatchOpenSkinReset(\"\"),style:{border:\"none\",borderRadius:999,padding:\"14px 20px\",cursor:\"pointer\",background:navy,color:\"#FFFFFF\",width:\"max-content\",maxWidth:\"100%\",whiteSpace:\"normal\",minHeight:48,...buttonFont}}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,...bodyFont,color:textColor,opacity:.8,fontSize:12,lineHeight:\"1.4em\"},children:meta})]});}addPropertyControls(SkinResetCTA,{title:{type:ControlType.String,defaultValue:\"Not sure where to start?\"},buttonLabel:{type:ControlType.String,defaultValue:\"Take the 2 minute Skin Reset\"},body:{type:ControlType.String,displayTextArea:true,defaultValue:\"Get an instant snapshot of your skin type, concerns and where to focus first.\"},meta:{type:ControlType.String,defaultValue:\"Takes about 2 minutes \\xb7 Instant result\"},integrated:{type:ControlType.Boolean,defaultValue:false},background:{type:ControlType.Color,defaultValue:\"#FFFFFF\"},navy:{type:ControlType.Color,defaultValue:\"rgb(24,33,45)\"},cream:{type:ControlType.Color,defaultValue:\"var(--token-9447dd15-8cee-4a81-93f5-8b6738e7461a)\"},textColor:{type:ControlType.Color,defaultValue:\"rgb(24,33,45)\"},headingFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"24px\",variant:\"Regular\",letterSpacing:\"-0.03em\",lineHeight:\"1.1em\"}},bodyFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},buttonFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SkinResetExperience(props){const{previewOpen,previewGuideConfirmation,previewMobile,background,navy,primaryText,cream,webhookURL,style}=props;void webhookURL;const isStatic=useIsStaticRenderer();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[isOpen,setIsOpen]=useState(false);const[showGuideConfirmation,setShowGuideConfirmation]=useState(false);const[knownEmail,setKnownEmail]=useState(\"\");const[answers,setAnswers]=useState(defaultAnswers(\"\"));const[step,setStep]=useState(0);const[submitting,setSubmitting]=useState(false);const[submitError,setSubmitError]=useState(\"\");const[resultReady,setResultReady]=useState(false);const[deliveryConfirmed,setDeliveryConfirmed]=useState(false);const[mobile,setMobile]=useState(false);const canvasMobile=isCanvas||isStatic?previewMobile:mobile;const scrollYRef=useRef(0);const lastFocusedRef=useRef(null);const dialogRef=useRef(null);const openedOnMountRef=useRef(false);const submitLockRef=useRef(false);const submitSuccessRef=useRef(false);const prefersReducedMotion=typeof window!==\"undefined\"&&typeof window.matchMedia===\"function\"&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const activeQuestions=useMemo(()=>{const hasKnown=Boolean(knownEmail.trim());return hasKnown?questions.filter(q=>q.key!==\"email\"):questions;},[knownEmail]);const currentQuestion=activeQuestions[step];const totalSteps=activeQuestions.length;const stepLabel=`${Math.min(step+1,totalSteps)} of ${totalSteps}`;const progressRatio=totalSteps<=0?0:Math.min((step+1)/totalSteps,1);const openFlow=useCallback((email=\"\")=>{lastFocusedRef.current=typeof document!==\"undefined\"?document.activeElement:null;startTransition(()=>{setKnownEmail(email);setAnswers(defaultAnswers(email));setStep(0);setSubmitError(\"\");setResultReady(false);setDeliveryConfirmed(false);submitSuccessRef.current=false;setIsOpen(true);});},[]);const closeFlow=useCallback(()=>{startTransition(()=>{setIsOpen(false);setShowGuideConfirmation(false);});if(typeof document!==\"undefined\"){window.setTimeout(()=>{lastFocusedRef.current?.focus?.();},0);}},[]);useEffect(()=>{if(typeof window===\"undefined\")return;const onResize=()=>startTransition(()=>setMobile(window.innerWidth<800));onResize();window.addEventListener(\"resize\",onResize);return()=>window.removeEventListener(\"resize\",onResize);},[]);useEffect(()=>{if(typeof window===\"undefined\")return;const handler=event=>{const detail=event.detail;openFlow(detail?.email??\"\");};window.addEventListener(OPEN_EVENT,handler);return()=>window.removeEventListener(OPEN_EVENT,handler);},[openFlow]);useEffect(()=>{if(typeof window===\"undefined\")return;const handler=event=>{const detail=event.detail;startTransition(()=>{setKnownEmail(detail?.email??\"\");setShowGuideConfirmation(true);});};window.addEventListener(GUIDE_SUCCESS_EVENT,handler);return()=>window.removeEventListener(GUIDE_SUCCESS_EVENT,handler);},[]);useEffect(()=>{if(typeof window===\"undefined\"||isCanvas)return;const path=window.location.pathname;if(path===\"/skin-reset\"&&!openedOnMountRef.current){openedOnMountRef.current=true;openFlow(\"\");}},[isCanvas,openFlow]);useEffect(()=>{if(isCanvas&&previewOpen){startTransition(()=>setIsOpen(true));}},[isCanvas,previewOpen]);useEffect(()=>{if(!isOpen&&!showGuideConfirmation||typeof document===\"undefined\"||isCanvas)return;scrollYRef.current=window.scrollY;const bodyStyle=document.body.style;const oldOverflow=bodyStyle.overflow;const oldPosition=bodyStyle.position;const oldTop=bodyStyle.top;const oldWidth=bodyStyle.width;bodyStyle.overflow=\"hidden\";bodyStyle.position=\"fixed\";bodyStyle.top=`-${scrollYRef.current}px`;bodyStyle.width=\"100%\";const onKeyDown=event=>{if(event.key===\"Escape\"){event.preventDefault();closeFlow();return;}if(event.key!==\"Tab\"||!dialogRef.current)return;const focusable=Array.from(dialogRef.current.querySelectorAll(focusableSelector));if(focusable.length===0)return;const index=focusable.indexOf(document.activeElement);const next=event.shiftKey?index<=0?focusable.length-1:index-1:index===-1||index===focusable.length-1?0:index+1;event.preventDefault();focusable[next]?.focus();};document.addEventListener(\"keydown\",onKeyDown);window.setTimeout(()=>dialogRef.current?.querySelector(focusableSelector)?.focus(),0);return()=>{document.removeEventListener(\"keydown\",onKeyDown);bodyStyle.overflow=oldOverflow;bodyStyle.position=oldPosition;bodyStyle.top=oldTop;bodyStyle.width=oldWidth;window.scrollTo(0,scrollYRef.current);};},[closeFlow,isCanvas,isOpen,showGuideConfirmation]);const setAnswer=useCallback((key,value)=>{startTransition(()=>{setAnswers(prev=>({...prev,[key]:value}));setSubmitError(\"\");});},[]);const toggleMulti=useCallback((key,option,maxSelect)=>{const source=answers[key];const existing=Array.isArray(source)?source:[];const has=existing.includes(option);let next=existing;if(has)next=existing.filter(item=>item!==option);else if(existing.length<maxSelect)next=[...existing,option];setAnswer(key,next);},[answers,setAnswer]);const goNext=useCallback(()=>{if(!currentQuestion)return;if(!hasAnswer(currentQuestion,answers))return;if(step>=totalSteps-1)return;startTransition(()=>setStep(s=>s+1));},[answers,currentQuestion,step,totalSteps]);const goPrev=useCallback(()=>{if(step<=0)return;startTransition(()=>setStep(s=>s-1));},[step]);const submitAll=useCallback(async()=>{if(submitting||submitLockRef.current||submitSuccessRef.current||deliveryConfirmed)return;submitLockRef.current=true;const payload={email:(answers.email||knownEmail).trim(),skin_concerns:[...answers.skin_concerns],skin_type:answers.skin_type,sensitivity:answers.sensitivity,age_bracket:answers.age_bracket,actives_experience:answers.actives_experience,routine_barriers:[...answers.routine_barriers],gender:answers.gender};const allRequiredQuestions=activeQuestions.every(question=>hasAnswer(question,payload));if(!allRequiredQuestions){startTransition(()=>setSubmitError(\"Please complete every question before continuing.\"));submitLockRef.current=false;return;}if(!knownEmail&&!isEmailValid(payload.email)){startTransition(()=>setSubmitError(\"Please enter a valid email address\"));submitLockRef.current=false;return;}startTransition(()=>{setSubmitting(true);setSubmitError(\"\");});try{const backupRequest=fetch(\"https://submit-form.com/Ym2FA58S2\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\",Accept:\"application/json\"},body:JSON.stringify(payload)});void backupRequest.catch(()=>{});}catch(error){}try{const response=await fetch(SKINRESET_WEBHOOK_URL,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(payload)});if(!response.ok)throw new Error(\"Webhook failed\");submitSuccessRef.current=true;startTransition(()=>{setSubmitting(false);setResultReady(true);setDeliveryConfirmed(true);});submitLockRef.current=false;}catch(error){startTransition(()=>{setSubmitting(false);setSubmitError(\"We couldn't submit right now. Please try again.\");});submitLockRef.current=false;}},[activeQuestions,answers,deliveryConfirmed,hasAnswer,knownEmail,submitting]);const summaryList=useMemo(()=>{return[{label:\"Skin type\",value:answers.skin_type||\"\"},{label:\"Concerns\",value:answers.skin_concerns.length?answers.skin_concerns.join(\", \"):\"\"},{label:\"Sensitivity\",value:answers.sensitivity?`${answers.sensitivity} becomes irritated`:\"\"},{label:\"Skincare experience\",value:answers.actives_experience||\"\"},{label:\"What’s getting in your way\",value:answers.routine_barriers.length?answers.routine_barriers.join(\", \"):\"\"}];},[answers]);const content=useMemo(()=>{const showGuideConfirmationView=showGuideConfirmation||(isCanvas||isStatic)&&previewGuideConfirmation;const viewMobile=canvasMobile;if(!currentQuestion&&!showGuideConfirmationView)return null;const animatedStyle=prefersReducedMotion?undefined:{transition:\"opacity 180ms ease, transform 180ms ease\"};return /*#__PURE__*/_jsx(\"div\",{className:\"skinreset-scope\",style:{position:\"relative\",width:\"100%\",fontFamily:\"DM Sans, sans-serif\",fontSize:16,lineHeight:1.5,color:primaryText,display:\"flex\",justifyContent:\"center\",alignItems:\"stretch\"},children:showGuideConfirmationView?/*#__PURE__*/_jsxs(\"div\",{ref:dialogRef,role:\"dialog\",\"aria-modal\":\"true\",style:{position:\"relative\",width:viewMobile?\"100%\":\"min(680px, 100%)\",maxWidth:680,maxHeight:\"90dvh\",overflowY:\"auto\",background:\"#FFFFFF\",borderRadius:20,boxSizing:\"border-box\",padding:viewMobile?24:28,display:\"flex\",flexDirection:\"column\",gap:14,...animatedStyle},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"Close\",onClick:closeFlow,style:{position:\"absolute\",top:10,right:10,width:48,height:48,minWidth:48,border:\"none\",background:\"transparent\",color:navy,fontSize:28,cursor:\"pointer\"},children:\"\\xd7\"}),/*#__PURE__*/_jsx(\"h3\",{className:\"sr-heading\",style:{margin:0,marginRight:48,fontFamily:\"Instrument Serif, serif\",color:navy,fontSize:viewMobile?32:42,lineHeight:1.02,fontWeight:400},children:\"Your Skin Reset Guide Is On The Way\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:primaryText,fontSize:16,fontFamily:\"DM Sans, sans-serif\"},children:\"A simple, easy to follow guide to healthier skin is on its way to your inbox now.\"}),/*#__PURE__*/_jsxs(\"div\",{style:{background:cream,borderRadius:16,padding:14,display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsx(\"h4\",{style:{margin:0,color:navy,fontSize:20,fontFamily:\"DM Sans, sans-serif\",fontWeight:400},children:\"Not sure where to start?\"}),/*#__PURE__*/_jsx(AnimatedCTAButton,{label:\"Take the 2 Minute Quiz\",type:\"button\",onClick:()=>{startTransition(()=>setShowGuideConfirmation(false));openFlow(knownEmail);},style:{border:\"none\",borderRadius:999,padding:\"12px 16px\",background:navy,color:\"#fff\",cursor:\"pointer\",width:\"max-content\",fontFamily:\"DM Sans, sans-serif\",fontWeight:400,fontSize:16,minHeight:48}})]})]}):currentQuestion?/*#__PURE__*/_jsxs(\"div\",{ref:dialogRef,role:\"dialog\",\"aria-modal\":\"true\",style:{position:\"relative\",width:\"min(980px, 100%)\",height:viewMobile?\"100dvh\":\"min(92dvh, 880px)\",background:\"#FFFFFF\",borderRadius:viewMobile?0:24,display:\"flex\",flexDirection:\"column\",overflow:\"hidden\",...animatedStyle},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                            .skinreset-scope * { box-sizing: border-box; }\n                            .skinreset-scope .sr-heading { font-family: \"Instrument Serif\", serif; font-weight: 400; }\n                            .skinreset-option:hover { border-color: rgba(24,33,45,0.45); }\n                            .skinreset-option:focus-visible, .skinreset-btn:focus-visible, .skinreset-input:focus-visible {\n                                outline: 2px solid ${navy};\n                                outline-offset: 2px;\n                            }\n                        `}),/*#__PURE__*/_jsxs(\"div\",{style:{position:viewMobile?\"sticky\":\"relative\",top:0,zIndex:2,background:\"#FFFFFF\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",padding:\"16px 18px\",borderBottom:`1px solid ${cream}`},children:[/*#__PURE__*/_jsx(\"strong\",{style:{color:navy},children:stepLabel}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:closeFlow,style:{border:\"none\",background:\"transparent\",fontSize:28,lineHeight:1,color:navy,cursor:\"pointer\",minWidth:48,minHeight:48},\"aria-label\":\"Close\",children:\"\\xd7\"})]}),/*#__PURE__*/_jsxs(\"form\",{onSubmit:event=>{event.preventDefault();if(resultReady)return;if(step===totalSteps-1){return;}else{goNext();}},style:{flex:1,minHeight:0,overflowY:\"auto\",padding:24,display:\"flex\",flexDirection:\"column\",gap:18},children:[/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"skin_concerns\",value:answers.skin_concerns.join(\"|\")}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"skin_type\",value:answers.skin_type}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"sensitivity\",value:answers.sensitivity}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"age_bracket\",value:answers.age_bracket}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"actives_experience\",value:answers.actives_experience}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"routine_barriers\",value:answers.routine_barriers.join(\"|\")}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"gender\",value:answers.gender}),currentQuestion.type!==\"email\"?/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"email\",value:answers.email||knownEmail}):null,resultReady?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"h2\",{className:\"sr-heading\",style:{margin:0,color:navy,fontSize:viewMobile?32:42,lineHeight:1.02},children:\"Your Skin Reset Snapshot\"}),/*#__PURE__*/_jsxs(\"div\",{style:{background:cream,borderRadius:16,padding:16,color:navy},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:12,opacity:.75},children:\"Skin type\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"6px 0 0\",fontSize:24,fontWeight:600},children:answers.skin_type||\"Not selected\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:8},children:(answers.skin_concerns.length?answers.skin_concerns:[\"No concerns selected\"]).map(concern=>/*#__PURE__*/_jsx(\"span\",{style:{borderRadius:999,padding:\"8px 12px\",border:`1px solid ${cream}`,fontSize:14},children:concern},concern))}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:viewMobile?\"repeat(1,minmax(0,1fr))\":\"repeat(2,minmax(0,1fr))\",gap:10},children:summaryList.filter(item=>item.label!==\"Skin type\"&&item.label!==\"Concerns\").map(item=>/*#__PURE__*/_jsxs(\"div\",{style:{border:`1px solid ${cream}`,borderRadius:14,padding:12},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:12,opacity:.75},children:item.label}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"6px 0 0\",fontSize:16},children:item.value||\"Not selected\"})]},item.label))}),/*#__PURE__*/_jsx(\"h3\",{style:{margin:\"12px 0 0\",color:navy},children:\"What Next?\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:primaryText},children:\"Your straightforward, easy to follow guide is on its way to your inbox.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:primaryText},children:\"It covers the best steps for you to take.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:primaryText},children:\"Check it out and send me a message if you have any questions 👍\"})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"h2\",{className:\"sr-heading\",style:{margin:0,color:navy,fontSize:viewMobile?32:42,lineHeight:1.02},children:currentQuestion.heading}),currentQuestion.subheading?/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:primaryText,fontSize:16,fontFamily:\"DM Sans\"},children:currentQuestion.subheading}):null,currentQuestion.type===\"email\"?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"input\",{className:\"skinreset-input\",value:answers.email,onChange:event=>setAnswer(\"email\",event.target.value),type:\"email\",name:\"email\",autoComplete:\"email\",required:true,placeholder:\"you@example.com\",style:{borderRadius:14,border:`1px solid ${cream}`,padding:\"14px 16px\",fontSize:16,color:navy,minHeight:48}}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:12,color:primaryText},children:\"By submitting this form, you might receive some other emails from me in future. You can opt out at any time. For more information, see our privacy policy.\"})]}):/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:currentQuestion.options?.some(x=>x.image)?viewMobile?\"repeat(2,minmax(0,1fr))\":\"repeat(4,minmax(0,1fr))\":\"repeat(1,minmax(0,1fr))\",gap:12,alignItems:\"stretch\"},children:currentQuestion.options?.map(option=>{const value=answers[currentQuestion.key];const selected=Array.isArray(value)?value.includes(option.label):value===option.label;return /*#__PURE__*/_jsxs(\"button\",{className:\"skinreset-option\",type:\"button\",onClick:()=>{if(currentQuestion.type===\"multi\"){toggleMulti(currentQuestion.key,option.label,currentQuestion.maxSelect??1);}else{setAnswer(currentQuestion.key,option.label);}},style:{border:selected?`2px solid ${navy}`:\"2px solid transparent\",borderRadius:16,background:\"#FFFFFF\",textAlign:\"left\",padding:10,cursor:\"pointer\",display:\"flex\",flexDirection:\"column\",gap:8,color:primaryText,minHeight:currentQuestion.options?.some(x=>x.image)&&!viewMobile?230:undefined,justifyContent:\"space-between\"},\"aria-pressed\":selected,children:[option.image?/*#__PURE__*/_jsx(\"img\",{src:option.image,alt:\"\",style:{width:\"100%\",aspectRatio:\"4 / 3\",objectFit:\"cover\",borderRadius:16}}):null,/*#__PURE__*/_jsxs(\"span\",{style:{display:\"flex\",alignItems:\"center\",gap:8,minHeight:48},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:20,height:20,borderRadius:999,border:`1px solid ${cream}`,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,background:selected?\"rgba(24,33,45,0.08)\":\"transparent\"},children:selected?checkIcon(navy):null}),option.label]})]},option.label);})}),submitError?/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:\"#A32020\"},children:submitError.replace(/-/g,\" \")}):null]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"sticky\",bottom:0,borderTop:`1px solid ${cream}`,background:\"#FFFFFF\",padding:\"14px 18px\",display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\",justifyContent:\"center\",gap:10},children:[/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:primaryText},children:stepLabel}),/*#__PURE__*/_jsx(\"div\",{style:{height:6,borderRadius:999,background:\"rgba(24,33,45,0.12)\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:`${progressRatio*100}%`,height:\"100%\",borderRadius:999,background:navy,transition:prefersReducedMotion?\"none\":\"width 220ms ease\"}})})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:8,flexWrap:\"wrap\",width:\"100%\"},children:!resultReady?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{className:\"skinreset-btn\",type:\"button\",onClick:goPrev,disabled:step<=0,style:{border:`1px solid ${cream}`,borderRadius:999,padding:\"10px 16px\",background:\"#fff\",color:navy,opacity:step<=0?.45:1,minHeight:48,flex:viewMobile?\"1 1 0\":undefined},children:\"Previous\"}),step===totalSteps-1?/*#__PURE__*/_jsx(\"button\",{className:\"skinreset-btn\",type:\"button\",onClick:submitAll,disabled:submitting||!hasAnswer(currentQuestion,answers),style:{border:\"none\",borderRadius:999,padding:\"10px 16px\",background:navy,color:\"#fff\",minHeight:48,flex:viewMobile?\"1 1 0\":undefined},children:submitting?\"Submitting...\":\"Show Me My Skin Reset\"}):/*#__PURE__*/_jsx(\"button\",{className:\"skinreset-btn\",type:\"button\",onClick:goNext,disabled:!hasAnswer(currentQuestion,answers),style:{border:\"none\",borderRadius:999,padding:\"10px 16px\",background:navy,color:\"#fff\",opacity:hasAnswer(currentQuestion,answers)?1:.45,minHeight:48,flex:viewMobile?\"1 1 0\":undefined},children:\"Continue\"})]}):/*#__PURE__*/_jsx(\"button\",{className:\"skinreset-btn\",type:\"button\",onClick:closeFlow,style:{border:\"none\",borderRadius:999,padding:\"10px 16px\",background:navy,color:\"#fff\",minHeight:48},children:\"Close\"})})]})]}):null});},[activeQuestions,answers,closeFlow,cream,currentQuestion,deliveryConfirmed,goNext,goPrev,hasAnswer,knownEmail,mobile,canvasMobile,navy,openFlow,prefersReducedMotion,progressRatio,primaryText,resultReady,showGuideConfirmation,previewGuideConfirmation,step,stepLabel,submitAll,submitError,submitting,summaryList,toggleMulti,totalSteps,setAnswer]);if(isCanvas||isStatic){return previewOpen||previewGuideConfirmation?/*#__PURE__*/_jsx(\"div\",{style:{...style},children:content}):/*#__PURE__*/_jsx(\"div\",{style:{...style}});}const overlay=(isOpen||showGuideConfirmation)&&typeof document!==\"undefined\"?/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",inset:0,zIndex:2147483647,background:\"rgba(0,0,0,0.52)\",display:\"flex\",justifyContent:\"center\",alignItems:mobile?showGuideConfirmation?\"center\":\"stretch\":\"center\",padding:mobile?showGuideConfirmation?16:0:24},children:content}),document.body):null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",...style},children:overlay});}addPropertyControls(SkinResetExperience,{previewOpen:{type:ControlType.Boolean,defaultValue:false},previewGuideConfirmation:{type:ControlType.Boolean,defaultValue:false},previewMobile:{type:ControlType.Boolean,defaultValue:false},background:{type:ControlType.Color,defaultValue:\"#FFFFFF\"},navy:{type:ControlType.Color,defaultValue:\"rgb(24,33,45)\"},primaryText:{type:ControlType.Color,defaultValue:\"rgb(24,33,45)\"},cream:{type:ControlType.Color,defaultValue:\"var(--token-9447dd15-8cee-4a81-93f5-8b6738e7461a)\"},webhookURL:{type:ControlType.String,defaultValue:\"\",placeholder:\"https://...\"}});export function withOpenSkinReset(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const triggerClick=event=>{props.onClick?.(event);dispatchOpenSkinReset(\"\");};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:triggerClick});});}export function withGuideButtonMotion(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const wrapperRef=useRef(null);useEffect(()=>{const wrapper=wrapperRef.current;if(!wrapper)return;const candidates=Array.from(wrapper.querySelectorAll('button, input[type=\"submit\"]'));const target=candidates.find(node=>{if(node.tagName===\"INPUT\"){return node.value?.trim()===\"Get The Free Skin Reset Guide\";}return node.textContent?.trim()===\"Get The Free Skin Reset Guide\";});if(!target)return;const canHover=canHoverFinePointer()&&!prefersReducedMotionNow();const lineHeight=18;let stopAnim=null;let inner=null;let originalChildren=[];const originalAriaLabel=target.getAttribute(\"aria-label\");const htmlTarget=target;const originalTransform=htmlTarget.style.transform;const originalTransition=htmlTarget.style.transition;htmlTarget.style.transition=\"transform 120ms ease\";if(target.tagName!==\"INPUT\"){if(target.querySelector('[data-skinreset-guide-label=\"true\"]'))return;const label=target.textContent?.trim()??\"Get The Free Skin Reset Guide\";originalChildren=Array.from(target.childNodes);const clip=document.createElement(\"span\");clip.setAttribute(\"data-skinreset-guide-label\",\"true\");clip.style.display=\"inline-flex\";clip.style.height=`${lineHeight}px`;clip.style.overflow=\"hidden\";clip.style.lineHeight=`${lineHeight}px`;clip.setAttribute(\"aria-label\",label);const stack=document.createElement(\"span\");stack.style.display=\"flex\";stack.style.flexDirection=\"column\";stack.style.lineHeight=`${lineHeight}px`;const line1=document.createElement(\"span\");line1.textContent=label;const line2=document.createElement(\"span\");line2.textContent=label;line2.setAttribute(\"aria-hidden\",\"true\");stack.appendChild(line1);stack.appendChild(line2);clip.appendChild(stack);target.textContent=\"\";target.appendChild(clip);inner=stack;}const onEnter=()=>{if(!canHover||!inner)return;stopAnim?.();const controls=animate(inner,{y:-lineHeight},CTA_SPRING);stopAnim=()=>controls.stop();};const onLeave=()=>{if(inner){stopAnim?.();const controls=animate(inner,{y:0},CTA_SPRING);stopAnim=()=>controls.stop();}target.style.transform=\"\";};const onDown=()=>{target.style.transform=\"scale(0.98)\";};const onUp=()=>{target.style.transform=\"\";};target.addEventListener(\"pointerenter\",onEnter);target.addEventListener(\"pointerleave\",onLeave);target.addEventListener(\"pointerdown\",onDown);target.addEventListener(\"pointerup\",onUp);target.addEventListener(\"pointercancel\",onUp);return()=>{stopAnim?.();target.removeEventListener(\"pointerenter\",onEnter);target.removeEventListener(\"pointerleave\",onLeave);target.removeEventListener(\"pointerdown\",onDown);target.removeEventListener(\"pointerup\",onUp);target.removeEventListener(\"pointercancel\",onUp);htmlTarget.style.transform=originalTransform;htmlTarget.style.transition=originalTransition;if(target.tagName!==\"INPUT\"){const clip=target.querySelector('[data-skinreset-guide-label=\"true\"]');if(clip){target.textContent=\"\";originalChildren.forEach(child=>target.appendChild(child));}}if(originalAriaLabel===null)target.removeAttribute(\"aria-label\");else target.setAttribute(\"aria-label\",originalAriaLabel);};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:wrapperRef,style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}export function withGuideConfirmation(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const wrapperRef=useRef(null);const pendingEmailRef=useRef(\"\");const pendingRef=useRef(false);const confirmedRef=useRef(false);const[pending,setPending]=useState(false);const[confirmed,setConfirmed]=useState(false);const[error,setError]=useState(\"\");const originalButtonLabelRef=useRef(\"\");useEffect(()=>{const wrapper=wrapperRef.current;if(!wrapper)return;const onSubmitCapture=event=>{const target=event.target;if(!target||target.tagName!==\"FORM\")return;if(pendingRef.current||confirmedRef.current){event.preventDefault();event.stopPropagation();return;}const input=target.querySelector('input[type=\"email\"], input[name=\"email\"]');pendingEmailRef.current=input?.value?.trim()??\"\";};const onSubmitting=event=>{if(pendingRef.current||confirmedRef.current)return;const detail=event.detail;if(detail?.email)pendingEmailRef.current=detail.email;pendingRef.current=true;confirmedRef.current=false;startTransition(()=>{setPending(true);setConfirmed(false);setError(\"\");});};const onResult=event=>{const detail=event.detail;const email=detail?.email?.trim()||pendingEmailRef.current;pendingEmailRef.current=email;if(detail?.ok){pendingRef.current=false;confirmedRef.current=true;startTransition(()=>{setPending(false);setConfirmed(true);setError(\"\");});if(typeof window!==\"undefined\"){window.dispatchEvent(new CustomEvent(GUIDE_SUCCESS_EVENT,{detail:{email}}));}return;}pendingRef.current=false;confirmedRef.current=false;startTransition(()=>{setPending(false);setConfirmed(false);setError(\"Something went wrong. Please try again.\");});};wrapper.addEventListener(\"submit\",onSubmitCapture,true);wrapper.addEventListener(\"skinreset:guide-submitting\",onSubmitting);wrapper.addEventListener(\"skinreset:guide-result\",onResult);return()=>{wrapper.removeEventListener(\"submit\",onSubmitCapture,true);wrapper.removeEventListener(\"skinreset:guide-submitting\",onSubmitting);wrapper.removeEventListener(\"skinreset:guide-result\",onResult);};},[]);useEffect(()=>{pendingRef.current=pending;confirmedRef.current=confirmed;},[pending,confirmed]);useEffect(()=>{const wrapper=wrapperRef.current;if(!wrapper)return;const submitControl=wrapper.querySelector('button[type=\"submit\"], input[type=\"submit\"]');if(!submitControl)return;const htmlEl=submitControl;if(!originalButtonLabelRef.current){originalButtonLabelRef.current=submitControl.tagName===\"INPUT\"?submitControl.value:submitControl.textContent?.trim()??\"\";}htmlEl.disabled=pending||confirmed;if(submitControl.tagName===\"INPUT\"){const input=submitControl;input.value=pending?\"Sending...\":originalButtonLabelRef.current;}else{submitControl.textContent=pending?\"Sending...\":originalButtonLabelRef.current;}},[pending,confirmed]);return /*#__PURE__*/_jsxs(\"div\",{ref:wrapperRef,style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(Component,{ref:ref,...props}),error?/*#__PURE__*/_jsx(\"div\",{role:\"alert\",style:{marginTop:8,color:\"#A32020\",fontSize:14},children:error}):null]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SkinResetExperience\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"withOpenSkinReset\":{\"type\":\"reactHoc\",\"name\":\"withOpenSkinReset\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGuideConfirmation\":{\"type\":\"reactHoc\",\"name\":\"withGuideConfirmation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SkinResetCTA\":{\"type\":\"reactComponent\",\"name\":\"SkinResetCTA\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGuideButtonMotion\":{\"type\":\"reactHoc\",\"name\":\"withGuideButtonMotion\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\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