{"version":3,"file":"shared-lib.aJsFLzOC.mjs","names":["useMemo","useMemo","useState","useRef","useContext","css","css","useState","useMemo","_Fragment","useCallback","useRef","Input","css","isSampleBox"],"sources":["https:/framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js","https:/framerusercontent.com/modules/D4TWeLfcxT6Tysr2BlYg/iZjmqdxVx1EOiM3k1FaW/useOnNavigationTargetChange.js","https:/framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js","https:/framerusercontent.com/modules/D2Lz5CmnNVPZFFiZXalt/QaCzPbriZBfXWZIIycFI/colorFromToken.js","https:/framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js","https:/framerusercontent.com/modules/xDiQsqBGXzmMsv7AlEVy/uhunpMiNsbXxzjlXsg1y/useUniqueClassName.js","https:/framerusercontent.com/modules/ETACN5BJyFTSo0VVDJfu/NHRqowOiXkF9UwOzczF7/variantUtils.js","https:/framerusercontent.com/modules/eMBrwoqQK7h6mEeGQUH8/GuplvPJVjmxpk9zqOTcb/isBrowser.js","https:/framerusercontent.com/modules/v9AWX2URmiYsHf7GbctE/XxKAZ9KlhWqf5x1JMyyF/useOnChange.js","https:/framerusercontent.com/modules/kNDwabfjDEb3vUxkQlZS/fSIr3AOAYbGlfSPgXpYu/useAutoMotionValue.js","https:/framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/KqRXqunFjE6ufhpc7ZRu/useFontControls.js","https:/framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/m3q7puE2tbo1S2C0s0CT/useRenderTarget.js","https:/framerusercontent.com/modules/zGkoP8tPDCkoBzMdt5uq/0zFSjxIYliHxrQQnryFX/useControlledState.js","https:/framerusercontent.com/modules/5SM58HxZHxjjv7aLMOgQ/WXz9i6mVki0bBCrKdqB3/propUtils.js","https:/framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js","https:/framer.com/m/framer/default-utils.js","https:/framerusercontent.com/modules/o1PI5S8YtkA5bP5g4dFz/s801VqobGI0Gkh3K9b41/Embed.js","https:/framerusercontent.com/modules/FKjlkkesEAWIFVe41P7q/2u9wSWhrNnqVbYyLcKlG/CartContext.js","https:/framerusercontent.com/modules/qSonKgYKJYqX1FKpMMkU/sXDvF7NdsEJJ6naEX2bV/index.js","https:/framerusercontent.com/modules/yMTs8UlBKOGmYnpTzrsa/Uk4GEMW9fGrEyAh6EsQ1/Helpers.js","https:/framerusercontent.com/modules/MTeukpJRXUpDk0zWzfsS/7UR7LpeCypa02kgI5W5P/Button.js","https:/framerusercontent.com/modules/25YazU6Hd8f7w9jZewfA/yr6TUMS6THth6g56V2xX/Input.js","https:/framerusercontent.com/modules/soGQ6ibFzrUXlzLVGlRd/Z7AzoJ09boLERshrf62C/Utils.js","https:/framerusercontent.com/modules/f126IdWRw5Ciy1FygPLD/FXDhLrpcJdrVzGPajRnv/CartDialog.js","https:/framerusercontent.com/modules/5P0uP4UUibTuMeh0C1J8/WCb3VxorVPO4SrsPPQgN/siteMetadata.js"],"sourcesContent":["import { ControlType } from \"framer\";\nexport const fontStack = `\"Inter\", system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"`;\nexport const containerStyles = {\n    position: \"relative\",\n    width: \"100%\",\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const emptyStateStyle = {\n    ...containerStyles,\n    borderRadius: 6,\n    background: \"rgba(136, 85, 255, 0.3)\",\n    color: \"#85F\",\n    border: \"1px dashed #85F\",\n    flexDirection: \"column\"\n};\nexport const defaultEvents = {\n    onClick: {\n        type: ControlType.EventHandler\n    },\n    onMouseEnter: {\n        type: ControlType.EventHandler\n    },\n    onMouseLeave: {\n        type: ControlType.EventHandler\n    }\n};\nexport const fontSizeOptions = {\n    type: ControlType.Number,\n    title: \"Font Size\",\n    min: 2,\n    max: 200,\n    step: 1,\n    displayStepper: true\n};\nexport const fontControls = {\n    font: {\n        type: ControlType.Boolean,\n        title: \"Font\",\n        defaultValue: false,\n        disabledTitle: \"Default\",\n        enabledTitle: \"Custom\"\n    },\n    fontFamily: {\n        type: ControlType.String,\n        title: \"Family\",\n        placeholder: \"Inter\",\n        hidden: ({ font  })=>!font\n    },\n    fontWeight: {\n        type: ControlType.Enum,\n        title: \"Weight\",\n        options: [\n            100,\n            200,\n            300,\n            400,\n            500,\n            600,\n            700,\n            800,\n            900\n        ],\n        optionTitles: [\n            \"Thin\",\n            \"Extra-light\",\n            \"Light\",\n            \"Regular\",\n            \"Medium\",\n            \"Semi-bold\",\n            \"Bold\",\n            \"Extra-bold\",\n            \"Black\", \n        ],\n        hidden: ({ font  })=>!font\n    }\n};\n// @TODO check if we're missing anything here — there doesn't seem to be a reliable browser API for this\nexport const localeOptions = {\n    af: \"Afrikaans\",\n    sq: \"Albanian\",\n    an: \"Aragonese\",\n    ar: \"Arabic (Standard)\",\n    \"ar-dz\": \"Arabic (Algeria)\",\n    \"ar-bh\": \"Arabic (Bahrain)\",\n    \"ar-eg\": \"Arabic (Egypt)\",\n    \"ar-iq\": \"Arabic (Iraq)\",\n    \"ar-jo\": \"Arabic (Jordan)\",\n    \"ar-kw\": \"Arabic (Kuwait)\",\n    \"ar-lb\": \"Arabic (Lebanon)\",\n    \"ar-ly\": \"Arabic (Libya)\",\n    \"ar-ma\": \"Arabic (Morocco)\",\n    \"ar-om\": \"Arabic (Oman)\",\n    \"ar-qa\": \"Arabic (Qatar)\",\n    \"ar-sa\": \"Arabic (Saudi Arabia)\",\n    \"ar-sy\": \"Arabic (Syria)\",\n    \"ar-tn\": \"Arabic (Tunisia)\",\n    \"ar-ae\": \"Arabic (U.A.E.)\",\n    \"ar-ye\": \"Arabic (Yemen)\",\n    hy: \"Armenian\",\n    as: \"Assamese\",\n    ast: \"Asturian\",\n    az: \"Azerbaijani\",\n    eu: \"Basque\",\n    bg: \"Bulgarian\",\n    be: \"Belarusian\",\n    bn: \"Bengali\",\n    bs: \"Bosnian\",\n    br: \"Breton\",\n    my: \"Burmese\",\n    ca: \"Catalan\",\n    ch: \"Chamorro\",\n    ce: \"Chechen\",\n    zh: \"Chinese\",\n    \"zh-hk\": \"Chinese (Hong Kong)\",\n    \"zh-cn\": \"Chinese (PRC)\",\n    \"zh-sg\": \"Chinese (Singapore)\",\n    \"zh-tw\": \"Chinese (Taiwan)\",\n    cv: \"Chuvash\",\n    co: \"Corsican\",\n    cr: \"Cree\",\n    hr: \"Croatian\",\n    cs: \"Czech\",\n    da: \"Danish\",\n    nl: \"Dutch (Standard)\",\n    \"nl-be\": \"Dutch (Belgian)\",\n    en: \"English\",\n    \"en-au\": \"English (Australia)\",\n    \"en-bz\": \"English (Belize)\",\n    \"en-ca\": \"English (Canada)\",\n    \"en-ie\": \"English (Ireland)\",\n    \"en-jm\": \"English (Jamaica)\",\n    \"en-nz\": \"English (New Zealand)\",\n    \"en-ph\": \"English (Philippines)\",\n    \"en-za\": \"English (South Africa)\",\n    \"en-tt\": \"English (Trinidad & Tobago)\",\n    \"en-gb\": \"English (United Kingdom)\",\n    \"en-us\": \"English (United States)\",\n    \"en-zw\": \"English (Zimbabwe)\",\n    eo: \"Esperanto\",\n    et: \"Estonian\",\n    fo: \"Faeroese\",\n    fa: \"Farsi\",\n    fj: \"Fijian\",\n    fi: \"Finnish\",\n    fr: \"French (Standard)\",\n    \"fr-be\": \"French (Belgium)\",\n    \"fr-ca\": \"French (Canada)\",\n    \"fr-fr\": \"French (France)\",\n    \"fr-lu\": \"French (Luxembourg)\",\n    \"fr-mc\": \"French (Monaco)\",\n    \"fr-ch\": \"French (Switzerland)\",\n    fy: \"Frisian\",\n    fur: \"Friulian\",\n    gd: \"Gaelic (Scots)\",\n    \"gd-ie\": \"Gaelic (Irish)\",\n    gl: \"Galacian\",\n    ka: \"Georgian\",\n    de: \"German (Standard)\",\n    \"de-at\": \"German (Austria)\",\n    \"de-de\": \"German (Germany)\",\n    \"de-li\": \"German (Liechtenstein)\",\n    \"de-lu\": \"German (Luxembourg)\",\n    \"de-ch\": \"German (Switzerland)\",\n    el: \"Greek\",\n    gu: \"Gujurati\",\n    ht: \"Haitian\",\n    he: \"Hebrew\",\n    hi: \"Hindi\",\n    hu: \"Hungarian\",\n    is: \"Icelandic\",\n    id: \"Indonesian\",\n    iu: \"Inuktitut\",\n    ga: \"Irish\",\n    it: \"Italian (Standard)\",\n    \"it-ch\": \"Italian (Switzerland)\",\n    ja: \"Japanese\",\n    kn: \"Kannada\",\n    ks: \"Kashmiri\",\n    kk: \"Kazakh\",\n    km: \"Khmer\",\n    ky: \"Kirghiz\",\n    tlh: \"Klingon\",\n    ko: \"Korean\",\n    \"ko-kp\": \"Korean (North Korea)\",\n    \"ko-kr\": \"Korean (South Korea)\",\n    la: \"Latin\",\n    lv: \"Latvian\",\n    lt: \"Lithuanian\",\n    lb: \"Luxembourgish\",\n    mk: \"FYRO Macedonian\",\n    ms: \"Malay\",\n    ml: \"Malayalam\",\n    mt: \"Maltese\",\n    mi: \"Maori\",\n    mr: \"Marathi\",\n    mo: \"Moldavian\",\n    nv: \"Navajo\",\n    ng: \"Ndonga\",\n    ne: \"Nepali\",\n    no: \"Norwegian\",\n    nb: \"Norwegian (Bokmal)\",\n    nn: \"Norwegian (Nynorsk)\",\n    oc: \"Occitan\",\n    or: \"Oriya\",\n    om: \"Oromo\",\n    \"fa-ir\": \"Persian/Iran\",\n    pl: \"Polish\",\n    pt: \"Portuguese\",\n    \"pt-br\": \"Portuguese (Brazil)\",\n    pa: \"Punjabi\",\n    \"pa-in\": \"Punjabi (India)\",\n    \"pa-pk\": \"Punjabi (Pakistan)\",\n    qu: \"Quechua\",\n    rm: \"Rhaeto-Romanic\",\n    ro: \"Romanian\",\n    \"ro-mo\": \"Romanian (Moldavia)\",\n    ru: \"Russian\",\n    \"ru-mo\": \"Russian (Moldavia)\",\n    sz: \"Sami (Lappish)\",\n    sg: \"Sango\",\n    sa: \"Sanskrit\",\n    sc: \"Sardinian\",\n    sd: \"Sindhi\",\n    si: \"Singhalese\",\n    sr: \"Serbian\",\n    sk: \"Slovak\",\n    sl: \"Slovenian\",\n    so: \"Somani\",\n    sb: \"Sorbian\",\n    es: \"Spanish\",\n    \"es-ar\": \"Spanish (Argentina)\",\n    \"es-bo\": \"Spanish (Bolivia)\",\n    \"es-cl\": \"Spanish (Chile)\",\n    \"es-co\": \"Spanish (Colombia)\",\n    \"es-cr\": \"Spanish (Costa Rica)\",\n    \"es-do\": \"Spanish (Dominican Republic)\",\n    \"es-ec\": \"Spanish (Ecuador)\",\n    \"es-sv\": \"Spanish (El Salvador)\",\n    \"es-gt\": \"Spanish (Guatemala)\",\n    \"es-hn\": \"Spanish (Honduras)\",\n    \"es-mx\": \"Spanish (Mexico)\",\n    \"es-ni\": \"Spanish (Nicaragua)\",\n    \"es-pa\": \"Spanish (Panama)\",\n    \"es-py\": \"Spanish (Paraguay)\",\n    \"es-pe\": \"Spanish (Peru)\",\n    \"es-pr\": \"Spanish (Puerto Rico)\",\n    \"es-es\": \"Spanish (Spain)\",\n    \"es-uy\": \"Spanish (Uruguay)\",\n    \"es-ve\": \"Spanish (Venezuela)\",\n    sx: \"Sutu\",\n    sw: \"Swahili\",\n    sv: \"Swedish\",\n    \"sv-fi\": \"Swedish (Finland)\",\n    \"sv-sv\": \"Swedish (Sweden)\",\n    ta: \"Tamil\",\n    tt: \"Tatar\",\n    te: \"Teluga\",\n    th: \"Thai\",\n    tig: \"Tigre\",\n    ts: \"Tsonga\",\n    tn: \"Tswana\",\n    tr: \"Turkish\",\n    tk: \"Turkmen\",\n    uk: \"Ukrainian\",\n    hsb: \"Upper Sorbian\",\n    ur: \"Urdu\",\n    ve: \"Venda\",\n    vi: \"Vietnamese\",\n    vo: \"Volapuk\",\n    wa: \"Walloon\",\n    cy: \"Welsh\",\n    xh: \"Xhosa\",\n    ji: \"Yiddish\",\n    zu: \"Zulu\"\n};\n\nexport const __FramerMetadata__ = {\"exports\":{\"fontSizeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontStack\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./constants.map","import { useIsInCurrentNavigationTarget } from \"framer\";\nimport { useEffect } from \"react\";\nexport function useOnEnter(onEnter, enabled) {\n    return useOnSpecificTargetChange(true, onEnter, enabled);\n}\nexport function useOnExit(onExit, enabled) {\n    return useOnSpecificTargetChange(false, onExit, enabled);\n}\nfunction useOnSpecificTargetChange(goal, callback, enabled = true) {\n    const isInTarget = useIsInCurrentNavigationTarget();\n    useEffect(()=>{\n        if (enabled && isInTarget === goal) callback();\n    }, [\n        isInTarget\n    ]);\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useOnEnter\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnExit\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useOnNavigationTargetChange.map","import { useRef } from \"react\";\n/**\n * Creates a constant value over the lifecycle of a component.\n *\n * Even if `useMemo` is provided an empty array as its final argument, it doesn't offer\n * a guarantee that it won't re-run for performance reasons later on. By using `useConstant`\n * you can ensure that initialisers don't execute twice or more.\n */ export function useConstant(init) {\n    const ref = useRef(null);\n    if (ref.current === null) {\n        ref.current = init();\n    }\n    return ref.current;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useConstant\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useConstant.map","import { Color } from \"framer\";\nexport function colorFromToken(color) {\n    if (color.startsWith(\"var(--token-\")) return \"rgb\" + color.split(\") /*\")[0].split(\", rgb\")[1];\n    return color;\n}\nexport function colorTokentoValue(color) {\n    return Color(colorFromToken(color)).toValue();\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"colorFromToken\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorTokentoValue\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./colorFromToken.map","import { MotionValue } from \"framer\";\nexport const isMotionValue = (v)=>v instanceof MotionValue\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"isMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./isMotionValue.map","import * as React from \"react\";\nconst letters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\nconst l = ()=>letters[Math.floor(Math.random() * letters.length)]\n;\nexport const randomID = ()=>l() + l() + l() + l() + l() + l() + l() + l() + l()\n;\nfunction createUniqueClass(suffix) {\n    return `framer-${suffix}-${randomID()}`;\n}\nexport function useUniqueClassName(suffix, deps) {\n    const [className, setClassName] = React.useState(createUniqueClass(suffix));\n    React.useEffect(()=>{\n        setClassName(createUniqueClass(suffix));\n    }, [\n        suffix,\n        ...deps\n    ]);\n    return className;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useUniqueClassName\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useUniqueClassName.map","import { ControlType } from \"framer\";\n// I realize this only applies to select right now\n// but we can work on it in here\nexport function getVariantControls(Component, variant, additionalControls = {\n}) {\n    return {\n        [`${variant}TextColor`]: {\n            type: ControlType.Color,\n            title: \"Text Color\",\n            defaultValue: Component.defaultProps[`${variant}TextColor`],\n            hidden: (props)=>props.variant !== variant\n        },\n        [`${variant}IconColor`]: {\n            type: ControlType.Color,\n            title: \"Icon Color\",\n            defaultValue: Component.defaultProps[`${variant}IconColor`],\n            hidden: (props)=>props.variant !== variant\n        },\n        [`${variant}BackgroundColor`]: {\n            type: ControlType.Color,\n            title: \"Bg Color\",\n            defaultValue: Component.defaultProps[`${variant}BackgroundColor`],\n            hidden: (props)=>props.variant !== variant\n        },\n        [`${variant}BorderColor`]: {\n            type: ControlType.Color,\n            title: \"Border Color\",\n            defaultValue: Component.defaultProps[`${variant}BorderColor`],\n            hidden: (props)=>props.variant !== variant\n        },\n        [`${variant}BorderWidth`]: {\n            type: ControlType.Number,\n            title: \" \",\n            min: 0,\n            max: 5,\n            displayStepper: true,\n            defaultValue: Component.defaultProps[`${variant}BorderWidth`],\n            hidden: (props)=>props.variant !== variant\n        },\n        ...additionalControls\n    };\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"getVariantControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./variantUtils.map","import { useMemo } from \"react\";\nexport const isBrowserSafari = ()=>{\n    if (typeof navigator !== `undefined`) {\n        const userAgent = navigator.userAgent.toLowerCase();\n        const isSafari = (userAgent.indexOf(\"safari\") > -1 || userAgent.indexOf(\"framermobile\") > -1 || userAgent.indexOf(\"framerx\") > -1) && userAgent.indexOf(\"chrome\") < 0;\n        return isSafari;\n    } else return false;\n};\nexport const useIsBrowserSafari = ()=>useMemo(()=>isBrowserSafari()\n    , [])\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"useIsBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./isBrowser.map","import { useEffect } from \"react\";\n//@ts-ignore\nimport { isMotionValue } from \"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";\nexport function useOnChange(value, callback) {\n    useEffect(()=>// @ts-ignore this should be detected as a MV :shrug:\n        isMotionValue(value) ? value.onChange(callback) : undefined\n    );\n}\nexport function useMultiOnChange(values, handler) {\n    useEffect(()=>{\n        const subscriptions = values.map((value)=>value.onChange(handler)\n        );\n        return ()=>subscriptions.forEach((unsubscribe)=>unsubscribe()\n            )\n        ;\n    });\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"Subscriber\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnChange\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMultiOnChange\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useOnChange.map","import { useCallback, useEffect, useRef } from \"react\";\nimport { motionValue, animate, RenderTarget } from \"framer\";\n// @ts-ignore\nimport { isMotionValue } from \"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";\n// @ts-ignore\nimport { useConstant } from \"https://framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js\";\nexport function useAutoMotionValue(inputValue, options) {\n    var ref;\n    // Put options on a local ref\n    // Might wanna just memo instead but it works for now\n    const optionsRef = useRef(options);\n    const animation = useRef();\n    const didInitialMount = useRef(false);\n    const isOnCanvas = RenderTarget.current() === RenderTarget.canvas;\n    // in-progress - trying to figure out effect hooks\n    const onChangeDeps = (options === null || options === void 0 ? void 0 : options.onChangeDeps) ? options.onChangeDeps : [];\n    // Memoize the onChange handler\n    const onChange = useCallback(options === null || options === void 0 ? void 0 : options.onChange, [\n        ...onChangeDeps, \n    ]);\n    // Optionally scale the value from props\n    const transformer = useCallback((value)=>((ref = optionsRef.current) === null || ref === void 0 ? void 0 : ref.transform) ? optionsRef.current.transform(value) : value\n    , []);\n    // Create new MotionValue from inputValue\n    const value = useConstant(()=>isMotionValue(inputValue) ? inputValue : motionValue(transformer(inputValue))\n    );\n    // Setting value from prop change\n    useEffect(()=>{\n        if (!isMotionValue(inputValue) && didInitialMount.current) {\n            var ref1, ref2;\n            const newValue = transformer(inputValue);\n            (ref1 = animation.current) === null || ref1 === void 0 ? void 0 : ref1.stop();\n            // Call change callback\n            if (onChange) onChange(newValue, value);\n            // Trigger animation to new value\n            if (((ref2 = optionsRef.current) === null || ref2 === void 0 ? void 0 : ref2.animate) && !isOnCanvas) {\n                var ref3;\n                // @ts-ignore\n                animation.current = animate(value, newValue, (ref3 = optionsRef.current) === null || ref3 === void 0 ? void 0 : ref3.transition);\n            } else {\n                value.set(newValue);\n            }\n        }\n        didInitialMount.current = true;\n    }, [\n        inputValue,\n        ...onChangeDeps\n    ]);\n    return value;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useAutoMotionValue\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}","// @ts-ignore\nimport{fontStore}from\"framer\";import{useEffect}from\"react\";import{fontStack}from\"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";const fontWeights={100:\"Thin\",200:\"Extra-light\",300:\"Light\",400:\"Regular\",500:\"Medium\",600:\"Semi-bold\",700:\"Bold\",800:\"Extra-bold\",900:\"Black\"};export function useFontControls(props){const{fontFamily=\"Inter\",fontSize=16,fontWeight=400,font=false}=props;const fontWeightName=fontWeights[fontWeight];const customFontStack=`\"${fontFamily} ${fontWeightName}\", \"${fontFamily}\", ${fontStack}`;const fontFamilyStyle=fontFamily?{fontSize,fontWeight,fontFamily:customFontStack}:{fontSize,fontWeight};const fetchCustomFonts=async()=>{await fontStore.loadWebFontsFromSelectors([`CUSTOM;${fontFamily}`,`CUSTOM;${fontFamily} ${fontWeightName}`,`GF;${fontFamily}-${fontWeightName.toLowerCase()}`,]).catch(e=>console.error(e));};useEffect(()=>{if(font)fetchCustomFonts();},[font,fontFamily,fontWeight]);return fontFamilyStyle;}\nexport const __FramerMetadata__ = {\"exports\":{\"useFontControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useFontControls.map","import { useMemo } from \"react\";\nimport { RenderTarget } from \"framer\";\nexport function useRenderTarget() {\n    const currentRenderTarget = useMemo(()=>RenderTarget.current()\n    , []);\n    return currentRenderTarget;\n}\nexport function useIsInPreview() {\n    const inPreview = useMemo(()=>RenderTarget.current() === RenderTarget.preview\n    , []);\n    return inPreview;\n}\nexport function useIsOnCanvas() {\n    const onCanvas = useMemo(()=>RenderTarget.current() === RenderTarget.canvas\n    , []);\n    return onCanvas;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useIsInPreview\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsOnCanvas\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useRenderTarget.map","import * as React from \"react\";\nexport function useControlledState(value) {\n    const [controlledValue, setValue] = React.useState(value);\n    React.useEffect(()=>{\n        setValue(value);\n    }, [\n        value\n    ]);\n    return [\n        controlledValue,\n        setValue\n    ];\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useControlledState\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useControlledState.map","import { useMemo } from \"react\";\nimport { ControlType } from \"framer\";\nexport function useRadius(props) {\n    const { borderRadius , isMixedBorderRadius , topLeftRadius , topRightRadius , bottomRightRadius , bottomLeftRadius ,  } = props;\n    const radiusValue = useMemo(()=>isMixedBorderRadius ? `${topLeftRadius}px ${topRightRadius}px ${bottomRightRadius}px ${bottomLeftRadius}px` : `${borderRadius}px`\n    , [\n        borderRadius,\n        isMixedBorderRadius,\n        topLeftRadius,\n        topRightRadius,\n        bottomRightRadius,\n        bottomLeftRadius, \n    ]);\n    return radiusValue;\n}\nexport const borderRadiusControl = {\n    borderRadius: {\n        title: \"Radius\",\n        type: ControlType.FusedNumber,\n        toggleKey: \"isMixedBorderRadius\",\n        toggleTitles: [\n            \"Radius\",\n            \"Radius per corner\"\n        ],\n        valueKeys: [\n            \"topLeftRadius\",\n            \"topRightRadius\",\n            \"bottomRightRadius\",\n            \"bottomLeftRadius\", \n        ],\n        valueLabels: [\n            \"TL\",\n            \"TR\",\n            \"BR\",\n            \"BL\"\n        ],\n        min: 0\n    }\n};\nexport function usePadding(props) {\n    const { padding , paddingPerSide , paddingTop , paddingRight , paddingBottom , paddingLeft ,  } = props;\n    const paddingValue = useMemo(()=>paddingPerSide ? `${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px` : padding\n    , [\n        padding,\n        paddingPerSide,\n        paddingTop,\n        paddingRight,\n        paddingBottom,\n        paddingLeft, \n    ]);\n    return paddingValue;\n}\nexport const paddingControl = {\n    padding: {\n        type: ControlType.FusedNumber,\n        toggleKey: \"paddingPerSide\",\n        toggleTitles: [\n            \"Padding\",\n            \"Padding per side\"\n        ],\n        valueKeys: [\n            \"paddingTop\",\n            \"paddingRight\",\n            \"paddingBottom\",\n            \"paddingLeft\", \n        ],\n        valueLabels: [\n            \"T\",\n            \"R\",\n            \"B\",\n            \"L\"\n        ],\n        min: 0,\n        title: \"Padding\"\n    }\n};\n\nexport const __FramerMetadata__ = {\"exports\":{\"borderRadiusControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRadius\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RadiusProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PaddingProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePadding\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"paddingControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./propUtils.map","import{defaultEvents,localeOptions,fontControls,fontSizeOptions,emptyStateStyle,containerStyles,fontStack}from\"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";import{useOnEnter,useOnExit}from\"https://framerusercontent.com/modules/D4TWeLfcxT6Tysr2BlYg/iZjmqdxVx1EOiM3k1FaW/useOnNavigationTargetChange.js\";import{useConstant}from\"https://framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js\";import{colorTokentoValue,colorFromToken}from\"https://framerusercontent.com/modules/D2Lz5CmnNVPZFFiZXalt/QaCzPbriZBfXWZIIycFI/colorFromToken.js\";import{isMotionValue}from\"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";import{useUniqueClassName,randomID}from\"https://framerusercontent.com/modules/xDiQsqBGXzmMsv7AlEVy/uhunpMiNsbXxzjlXsg1y/useUniqueClassName.js\";import{getVariantControls}from\"https://framerusercontent.com/modules/ETACN5BJyFTSo0VVDJfu/NHRqowOiXkF9UwOzczF7/variantUtils.js\";import{useIsBrowserSafari}from\"https://framerusercontent.com/modules/eMBrwoqQK7h6mEeGQUH8/GuplvPJVjmxpk9zqOTcb/isBrowser.js\";import{useMultiOnChange,useOnChange}from\"https://framerusercontent.com/modules/v9AWX2URmiYsHf7GbctE/XxKAZ9KlhWqf5x1JMyyF/useOnChange.js\";import{mstoMinAndSec,secondsToMinutes}from\"https://framerusercontent.com/modules/4zHZnO5JojN1PrIbu2jm/revv9QCWpkh8lPzi2jje/time.js\";import{useAutoMotionValue}from\"https://framerusercontent.com/modules/kNDwabfjDEb3vUxkQlZS/fSIr3AOAYbGlfSPgXpYu/useAutoMotionValue.js\";import{useFontControls}from\"https://framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/KqRXqunFjE6ufhpc7ZRu/useFontControls.js\";import{useRenderTarget,useIsInPreview,useIsOnCanvas}from\"https://framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/m3q7puE2tbo1S2C0s0CT/useRenderTarget.js\";import{useControlledState}from\"https://framerusercontent.com/modules/zGkoP8tPDCkoBzMdt5uq/0zFSjxIYliHxrQQnryFX/useControlledState.js\";import{usePadding,useRadius,paddingControl,borderRadiusControl}from\"https://framerusercontent.com/modules/5SM58HxZHxjjv7aLMOgQ/WXz9i6mVki0bBCrKdqB3/propUtils.js\";import{detectAutoSizingAxis}from\"https://framerusercontent.com/modules/8CkHAZatUz1UR8jNTcfD/HwbnIAZlUmQ2oTpcLkaH/detectAutoSizingAxis.js\";export{useOnEnter,useOnExit,defaultEvents,isMotionValue,colorFromToken,colorTokentoValue,localeOptions,fontControls,fontSizeOptions,emptyStateStyle,containerStyles,fontStack,useUniqueClassName,getVariantControls,useIsBrowserSafari,randomID,useConstant,useMultiOnChange,useOnChange,usePadding,useRadius,paddingControl,borderRadiusControl,mstoMinAndSec,useFontControls,secondsToMinutes,useAutoMotionValue,useRenderTarget,useIsInPreview,useControlledState,detectAutoSizingAxis,useIsOnCanvas,};\nexport const __FramerMetadata__ = {\"exports\":{\"useConstant\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useUniqueClassName\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMultiOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsOnCanvas\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnExit\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontSizeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorTokentoValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRadius\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getVariantControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorFromToken\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePadding\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontStack\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useControlledState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useAutoMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsInPreview\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"detectAutoSizingAxis\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"borderRadiusControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mstoMinAndSec\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnEnter\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"secondsToMinutes\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"paddingControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}","/*\n * index (framer/default-utils@0.45.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useIsOnCanvas,emptyStateStyle,containerStyles}from\"https://framer.com/m/framer/default-utils.js\";/**\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n *\n * @framerDisableUnlink\n */export default function Embed({type,url,html,zoom,radius,border,style={}}){if(type===\"url\"&&url){return /*#__PURE__*/_jsx(EmbedUrl,{url:url,zoom:zoom,radius:radius,border:border,style:style});}if(type===\"html\"&&html){return /*#__PURE__*/_jsx(EmbedHtml,{html:html,style:style});}return /*#__PURE__*/_jsx(Instructions,{style:style});}addPropertyControls(Embed,{type:{type:ControlType.Enum,defaultValue:\"url\",displaySegmentedControl:true,options:[\"url\",\"html\"],optionTitles:[\"URL\",\"HTML\"]},url:{title:\"URL\",type:ControlType.String,description:\"Some websites don’t support embedding.\",hidden(props){return props.type!==\"url\";}},html:{title:\"HTML\",type:ControlType.String,displayTextArea:true,hidden(props){return props.type!==\"html\";}},border:{title:\"Border\",type:ControlType.Border,optional:true,hidden(props){return props.type!==\"url\";}},radius:{type:ControlType.BorderRadius,title:\"Radius\",hidden(props){return props.type!==\"url\";}},zoom:{title:\"Zoom\",defaultValue:1,type:ControlType.Number,hidden(props){return props.type!==\"url\";},min:.1,max:1,step:.1,displayStepper:true}});function Instructions({style}){return /*#__PURE__*/_jsx(\"div\",{style:{minHeight:getMinHeight(style),...emptyStateStyle,overflow:\"hidden\",...style},children:/*#__PURE__*/_jsx(\"div\",{style:centerTextStyle,children:\"To embed a website or widget, add it to the properties\\xa0panel.\"})});}function EmbedUrl({url,zoom,radius,border,style}){const hasAutoHeight=!style.height;// Add https:// if the URL does not have a protocol.\nif(!/[a-z]+:\\/\\//.test(url)){url=\"https://\"+url;}const onCanvas=useIsOnCanvas();// We need to check if the url is blocked inside an iframe by the X-Frame-Options\n// or Content-Security-Policy headers on the backend.\nconst[state,setState]=useState(onCanvas?undefined:false);useEffect(()=>{// We only want to check on the canvas.\n// On the website we want to avoid the additional delay.\nif(!onCanvas)return;// TODO: We could also use AbortController here.\nlet isLastEffect=true;setState(undefined);async function load(){const response=await fetch(\"https://api.framer.com/functions/check-iframe-url?url=\"+encodeURIComponent(url));if(response.status==200){const{isBlocked}=await response.json();if(isLastEffect){setState(isBlocked);}}else{const message=await response.text();console.error(message);const error=new Error(\"This site can’t be reached.\");setState(error);}}load().catch(error=>{console.error(error);setState(error);});return()=>{isLastEffect=false;};},[url]);if(onCanvas&&hasAutoHeight){return /*#__PURE__*/_jsx(ErrorMessage,{message:\"URL embeds do not support auto height.\",style:style});}if(!url.startsWith(\"https://\")){return /*#__PURE__*/_jsx(ErrorMessage,{message:\"Unsupported protocol.\",style:style});}if(state===undefined){return /*#__PURE__*/_jsx(LoadingIndicator,{});}if(state instanceof Error){return /*#__PURE__*/_jsx(ErrorMessage,{message:state.message,style:style});}if(state===true){const message=`Can’t embed ${url} due to its content security policy.`;return /*#__PURE__*/_jsx(ErrorMessage,{message:message,style:style});}return /*#__PURE__*/_jsx(\"iframe\",{src:url,style:{...iframeStyle,...style,...border,zoom:zoom,borderRadius:radius,transformOrigin:\"top center\"},loading:\"lazy\",// @ts-ignore\nfetchPriority:onCanvas?\"low\":\"auto\",referrerPolicy:\"no-referrer\",sandbox:getSandbox(onCanvas)});}const iframeStyle={width:\"100%\",height:\"100%\",border:\"none\"};function getSandbox(onCanvas){const result=[\"allow-same-origin\",\"allow-scripts\"];if(!onCanvas){result.push(\"allow-downloads\",\"allow-forms\",\"allow-modals\",\"allow-orientation-lock\",\"allow-pointer-lock\",\"allow-popups\",\"allow-popups-to-escape-sandbox\",\"allow-presentation\",\"allow-storage-access-by-user-activation\",\"allow-top-navigation-by-user-activation\");}return result.join(\" \");}function EmbedHtml({html,...props}){const hasScript=html.includes(\"</script>\");if(hasScript){const hasSplineViewer=html.includes(\"</spline-viewer>\");const hasComment=html.includes(\"<!-- framer-direct-embed -->\");if(hasSplineViewer||hasComment){return /*#__PURE__*/_jsx(EmbedHtmlWithScripts,{html:html,...props});}return /*#__PURE__*/_jsx(EmbedHtmlInsideIframe,{html:html,...props});}return /*#__PURE__*/_jsx(EmbedHtmlWithoutScripts,{html:html,...props});}function EmbedHtmlInsideIframe({html,style}){const ref=useRef();const[iframeHeight,setIframeHeight]=useState(0);// Handle auto sizing\nuseEffect(()=>{const iframeWindow=ref.current?.contentWindow;function handleMessage(event){if(event.source!==iframeWindow)return;const data=event.data;if(typeof data!==\"object\"||data===null)return;const height=data.embedHeight;if(typeof height!==\"number\")return;setIframeHeight(height);}window.addEventListener(\"message\",handleMessage);// After SSG the iframe loads before we attach the event handler,\n// therefore we need to request the latest height from the iframe.\niframeWindow?.postMessage(\"getEmbedHeight\",\"*\");return()=>{window.removeEventListener(\"message\",handleMessage);};},[]);// The CSS is mainly copied from:\n// FramerStudio/src/app/vekter/src/renderer/setDefaultFont.ts\n// FramerStudio/src/app/vekter/src/export/globalStylesForExport.ts\nconst srcDoc=`\n<html>\n    <head>\n        <style>\n            html, body {\n                margin: 0;\n                padding: 0;\n            }\n\n            body {\n                display: flex;\n                justify-content: center;\n                align-items: center;\n            }\n\n            :root {\n                -webkit-font-smoothing: antialiased;\n                -moz-osx-font-smoothing: grayscale;\n            }\n\n            * {\n                box-sizing: border-box;\n                -webkit-font-smoothing: inherit;\n            }\n\n            h1, h2, h3, h4, h5, h6, p, figure {\n                margin: 0;\n            }\n\n            body, input, textarea, select, button {\n                font-size: 12px;\n                font-family: sans-serif;\n            }\n        </style>\n    </head>\n    <body>\n        ${html}\n        <script type=\"module\">\n            let height = 0\n\n            function sendEmbedHeight() {\n                window.parent.postMessage({\n                    embedHeight: height\n                }, \"*\")\n            }\n\n            const observer = new ResizeObserver((entries) => {\n                if (entries.length !== 1) return\n                const entry = entries[0]\n                if (entry.target !== document.body) return\n\n                height = entry.contentRect.height\n                sendEmbedHeight()\n            })\n\n            observer.observe(document.body)\n\n            window.addEventListener(\"message\", (event) => {\n                if (event.source !== window.parent) return\n                if (event.data !== \"getEmbedHeight\") return\n                sendEmbedHeight()\n            })\n        </script>\n    <body>\n</html>\n`;const currentStyle={...iframeStyle,...style};const hasAutoHeight=!style.height;if(hasAutoHeight){currentStyle.height=iframeHeight+\"px\";}return /*#__PURE__*/_jsx(\"iframe\",{ref:ref,style:currentStyle,srcDoc:srcDoc});}function EmbedHtmlWithScripts({html,style}){const ref=useRef();useEffect(()=>{const div=ref.current;if(!div)return;div.innerHTML=html;executeScripts(div);return()=>{div.innerHTML=\"\";};},[html]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{...htmlStyle,...style}});}function EmbedHtmlWithoutScripts({html,style}){return /*#__PURE__*/_jsx(\"div\",{style:{...htmlStyle,...style},dangerouslySetInnerHTML:{__html:html}});}const htmlStyle={width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\"};// This function replaces scripts with executable ones.\n// https://stackoverflow.com/questions/1197575/can-scripts-be-inserted-with-innerhtml\nfunction executeScripts(node){if(node instanceof Element&&node.tagName===\"SCRIPT\"){const script=document.createElement(\"script\");script.text=node.innerHTML;for(const{name,value}of node.attributes){script.setAttribute(name,value);}node.parentElement.replaceChild(script,node);}else{for(const child of node.childNodes){executeScripts(child);}}}// Generic components\nfunction LoadingIndicator(){return /*#__PURE__*/_jsx(\"div\",{className:\"framerInternalUI-componentPlaceholder\",style:{...containerStyles,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:centerTextStyle,children:\"Loading…\"})});}function ErrorMessage({message,style}){return /*#__PURE__*/_jsx(\"div\",{className:\"framerInternalUI-errorPlaceholder\",style:{minHeight:getMinHeight(style),...containerStyles,overflow:\"hidden\",...style},children:/*#__PURE__*/_jsx(\"div\",{style:centerTextStyle,children:message})});}const centerTextStyle={textAlign:\"center\",minWidth:140};// Returns a min-height if the component is using auto-height.\nfunction getMinHeight(style){const hasAutoHeight=!style.height;if(hasAutoHeight)return 200;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Embed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerIntrinsicWidth\":\"600\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Embed.map","import{createContext,useContext}from\"react\";export const CartContext=/*#__PURE__*/createContext({});export function useCart(){return useContext(CartContext);}\nexport const __FramerMetadata__ = {\"exports\":{\"CartContext\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useCart\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CartData\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CartContext.map","const getABlyft=()=>typeof window!==\"undefined\"?window.ablyft:undefined;function isVariationActive(experimentId,variationId){const ablyft=getABlyft();if(!ablyft?.get)return false;const activeMap=ablyft.get(\"activeExperimentIds\");return activeMap[String(experimentId)]===variationId;}// Experiments\nexport function checkoutProductQty(){return isVariationActive(67791615,40231750);}\nexport const __FramerMetadata__ = {\"exports\":{\"checkoutProductQty\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./index.map","export function isSampleBox(product_id){return product_id===2339;}\nexport const __FramerMetadata__ = {\"exports\":{\"isSampleBox\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Helpers.map","import{jsxs as _jsxs}from\"react/jsx-runtime\";import{css}from\"@emotion/css\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Button({bgColor,textColor,icon,children,className,...rest}){const Element=rest.href?\"a\":\"button\";return /*#__PURE__*/_jsxs(Element,{...rest,className:css(`\n                display: flex;\n                align-items: center;\n                justify-content: center;\n                gap: .5rem;\n\n                cursor: pointer;\n                border: 2px solid transparent;\n\n                background: ${bgColor};\n                color: ${textColor};\n                border-radius: .5rem;\n                padding: 1rem 2rem;\n                font-weight: bold;\n                text-align: center;\n                font-size: inherit;\n                font-family: inherit;\n\n                user-select: none;\n                text-decoration: unset;\n\n                transition: background-color .2s, color .2s, filter .2s;\n\n                &:hover {\n                    background: color-mix(in srgb, ${bgColor} 80%, black);\n                }\n            `,className),children:[icon,children]});}Button.defaultProps={children:\"Button\"};addPropertyControls(Button,{bgColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"#0080E2\"},textColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"#FFF\"},icon:{title:\"Icon\",type:ControlType.Slot},children:{title:\"Content\",type:ControlType.Slot}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[\"children\"],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{css}from\"@emotion/css\";import{forwardRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */const Input=/*#__PURE__*/forwardRef(({className,placeholder,...rest},ref)=>{return /*#__PURE__*/_jsx(\"input\",{...rest,className:css(`\n                font-family: inherit; \n                font-size: inherit;\n                height: 3rem;\n                border-radius: .5rem;\n                border: 1px solid #D9D9E4;\n\n                padding: 0 1rem;\n                margin: 0;\n\n                transition: border-color .2s;\n\n                &:focus {\n                    border-color: #AAA;\n                }\n                `,className),placeholder:placeholder,ref:ref});});export default Input;addPropertyControls(Input,{placeholder:{type:ControlType.String,title:\"\"},name:{type:ControlType.String,title:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"variable\",\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Input.map","export async function wpAjax(action,options){return fetch(`/wp-admin/admin-ajax.php?action=${action}`,{method:\"POST\",credentials:\"include\",...options});}export async function wcAjax(action,options){return fetch(`/?wc-ajax=${action}`,{method:\"POST\",credentials:\"include\",...options});}\nexport const __FramerMetadata__ = {\"exports\":{\"wcAjax\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"wpAjax\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Utils.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useRef,useEffect,useState}from\"react\";import{useCallback,useMemo}from\"react\";import{css}from\"@emotion/css\";import{checkoutProductQty}from\"https://framerusercontent.com/modules/qSonKgYKJYqX1FKpMMkU/sXDvF7NdsEJJ6naEX2bV/index.js\";import{isSampleBox}from\"https://framerusercontent.com/modules/yMTs8UlBKOGmYnpTzrsa/Uk4GEMW9fGrEyAh6EsQ1/Helpers.js\";import Button from\"https://framerusercontent.com/modules/MTeukpJRXUpDk0zWzfsS/7UR7LpeCypa02kgI5W5P/Button.js\";import{useCart}from\"https://framerusercontent.com/modules/FKjlkkesEAWIFVe41P7q/2u9wSWhrNnqVbYyLcKlG/CartContext.js\";import Input from\"https://framerusercontent.com/modules/25YazU6Hd8f7w9jZewfA/yr6TUMS6THth6g56V2xX/Input.js\";import{wcAjax}from\"https://framerusercontent.com/modules/soGQ6ibFzrUXlzLVGlRd/Z7AzoJ09boLERshrf62C/Utils.js\";const priceFormatter=new Intl.NumberFormat(\"de-DE\",{style:\"currency\",currency:\"EUR\",minimumFractionDigits:2});const buttonStyles=css`\n    cursor: pointer;\n    border: none;\n    background: transparent;\n    padding: 0;\n    margin: 0;\n    font-family: inherit;\n    font-size: inherit;\n    font-weight: bold;\n    user-select: none;\n`;/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default /*#__PURE__*/forwardRef(({},ref)=>{const{cart,setCart,blocked,setBlocked}=useCart();useEffect(()=>{const dialog=ref.current;if(!dialog)return;const handler=event=>{if(event.target===dialog){dialog.close();}};dialog.addEventListener(\"click\",handler);return()=>dialog.removeEventListener(\"click\",handler);},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n            body:has(dialog[open]) {\n                overflow: hidden;\n            }\n            `}),/*#__PURE__*/_jsx(\"dialog\",{ref:ref,className:css`\n                    margin: 0;\n                    \n                    height: 100dvh;\n                    max-height: unset;\n                    background: transparent;\n                    width: 100%;\n                    max-width: 100%;\n\n                    border: none;\n                    outline: none;\n                    padding: 0;\n                    font-size: 16px;\n\n                    display: flex;\n                    justify-content: flex-end;\n\n                    translate: 100% 0;\n\n                    transition: opacity .5s, translate .5s,\n                        overlay .5s allow-discrete,\n                        display .5s allow-discrete;\n\n                    &::backdrop {\n                        background: rgba(0 0 0 / 0.4);\n                        opacity: 0;\n\n                        transition: opacity .5s, translate .5s,\n                            overlay .5s allow-discrete,\n                            display .5s allow-discrete;\n                    }\n\n                    &[open] {\n                        translate: 0;\n\n                        &::backdrop {\n                            opacity: 1;\n\n                            @starting-style {\n                                opacity: 0;\n                            }\n                        }\n\n                        @starting-style {\n                            translate: 100% 0;\n                        }\n                    }\n\n                    &:not([open]) {\n                        display: none;\n                    }\n\n                    @media (max-width: 761px) {\n                        translate: 0 100%;\n\n                        &[open] {\n                            @starting-style {\n                                translate: 0 100%;\n                            }\n                        }\n                    }\n                `,children:/*#__PURE__*/_jsxs(\"div\",{className:css([`\n                        width: 380px;\n                        height: 100%;\n                        padding: 1.5rem 1rem;\n                        background: #FFF;\n\n                        display: flex;\n                        flex-direction: column;\n                        gap: 1rem;\n\n                        &::before {\n                            z-index: 10;\n                            content: \"\";\n                            position: absolute;\n                            top: 0;\n                            left: 0;\n                            right: 0;\n                            bottom: 0;\n                            \n                            opacity: 0;\n                            visibility: hidden;\n\n                            transition: opacity .2s;\n                            background: rgba(255 255 255 / 0.75)\n                        }\n\n                        @media (max-width: 761px) {\n                            width: 100%;\n                            height: 80%;\n                            margin-top: auto;\n                            border-radius: .5rem .5rem 0 0;\n                            overflow-y: auto;\n                        }\n                        `,blocked&&`\n                                &::before {\n                                    opacity: 1;\n                                    visibility: visible;\n                                }\n                            `]),children:[/*#__PURE__*/_jsxs(\"header\",{className:css`\n                            display: flex;\n                            align-items: center;\n                            justify-content: space-between;\n\n                            padding-bottom: 8px;\n                            border-bottom: 1px solid #D9D9E4;\n                        `,children:[/*#__PURE__*/_jsx(\"h2\",{className:css`font-size: 20px; margin: 0`,children:\"Warenkorb\"}),/*#__PURE__*/_jsx(CloseButton,{onClick:()=>ref.current.close()})]}),/*#__PURE__*/_jsx(CartDialogContent,{})]})})]});});function CartDialogContent(){const{cart,setCart,setBlocked}=useCart();const[showCouponField,setShowCouponField]=useState(false);const couponAmount=useMemo(()=>cart?.coupons.reduce((acc,coupon)=>acc+coupon.amount,0)??0,[cart]);const isEmpty=cart.items.length===0;if(isEmpty){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(Info,{emoji:\"🤔\",children:[/*#__PURE__*/_jsx(\"b\",{children:\"Hmm... nichts hier.\"}),\" Jetzt loslegen!\"]}),/*#__PURE__*/_jsx(Button,{href:\"/build/boxspringbett/series\",children:\"Jetzt Bett konfigurieren\"})]});}return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(Info,{emoji:\"😎\",children:[/*#__PURE__*/_jsx(\"b\",{children:\"Gute Wahl!\"}),\" Hier sind Deine Produkte:\"]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",rowGap:\".5rem\"},children:cart.items.map(item=>/*#__PURE__*/_jsx(CartItem,{item:item},item.key))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\".5rem\",borderBottom:\"1px solid #D9D9E4\",paddingBottom:\"1rem\"},children:[/*#__PURE__*/_jsx(Total,{label:\"Summe\",price:cart.subtotal+cart.subtotalTax}),couponAmount>0&&/*#__PURE__*/_jsx(Total,{label:\"Rabatt\",price:couponAmount}),/*#__PURE__*/_jsxs(\"div\",{className:css`\n                        display: flex;\n                        flex-direction: column;\n                        gap: .5rem;\n                    `,children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:css`\n                            ${buttonStyles};\n                            padding: 0;\n                            text-align: left;\n                            font-weight: bold;\n                            font-family: inherit;\n                            color: #0080E2;\n                            text-decoration: underline\n                        `,onClick:()=>setShowCouponField(prev=>!prev),children:couponAmount>0?\"Weiteren/anderen Gutschein einl\\xf6sen\":\"Ich habe einen Gutschein\"}),showCouponField&&/*#__PURE__*/_jsx(AddCoupon,{}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\".5rem\"},children:cart.coupons.map(coupon=>/*#__PURE__*/_jsx(Coupon,{coupon:coupon},coupon.code))})]})]}),/*#__PURE__*/_jsx(Total,{label:\"Gesamtsumme (inkl. MwSt.)\",price:cart.total+cart.totalTax}),/*#__PURE__*/_jsx(Button,{className:css`font-size: 1rem`,href:\"/kasse\",icon:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"white\",stroke:\"white\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M1.45703 1.41431H1.74113C2.7163 1.41431 3.54931 2.1176 3.71282 3.07896L5.28583 12.3274C5.44934 13.2888 6.28235 13.9921 7.25751 13.9921H15.4088C16.3629 13.9921 17.1842 13.3181 17.3703 12.3822L18.2325 8.04735C18.4786 6.81035 17.5322 5.6572 16.271 5.6572H4.57817\",stroke:\"white\",fill:\"none\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"7.30469\",cy:\"17.7932\",r:\"1.5\",fill:\"white\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"14.9629\",cy:\"17.7932\",r:\"1.5\",fill:\"white\"})]}),children:\"Jetzt sicher zur Kasse\"}),/*#__PURE__*/_jsx(\"div\",{className:css`display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem`,children:cart.paymentIcons.map(icon=>/*#__PURE__*/_jsx(\"img\",{...icon,className:css`width: 59px`},icon.alt))})]});}function Total({label,price}){return /*#__PURE__*/_jsxs(\"span\",{style:{display:\"flex\",justifyContent:\"space-between\"},children:[label,\" \",/*#__PURE__*/_jsx(\"b\",{children:priceFormatter.format(price)})]});}// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst multiplyImages=new Set([\"shd_hdd\",\"shd_hdo\",\"shd_fet\",\"shd_emh\",\"shd_acs\",\"sh_sce_fh10\"]);function BedImage({className,images,...rest}){return /*#__PURE__*/_jsx(\"div\",{...rest,className:css(`position: relative; width: 90px; height: 90px; border-radius: 5px; overflow: hidden`,className),children:images.map(({name,path})=>/*#__PURE__*/_jsx(\"img\",{alt:name,src:`/wp-content/uploads/mozart-bed-configurator-renders/${path}`,className:css(`position: absolute; width: 100%; height: 100%; top: 0; left: 0;`,multiplyImages.has(name)&&{mixBlendMode:\"multiply\"})},name))});}function Info({emoji,children}){return /*#__PURE__*/_jsxs(\"div\",{className:css`\n                padding: .75rem 1rem;\n                display: flex;\n                align-items: center;\n                gap: .5rem;\n                border-radius: .5rem;\n                background: #D0E3F6;\n            `,children:[emoji&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:css`font-size: 20px`,children:emoji}),\" \"]}),/*#__PURE__*/_jsx(\"span\",{children:children})]});}function CartItem({item}){const{setBlocked,setCart}=useCart();const[showDetails,setShowDetails]=useState(false);const deleteItem=useCallback(async()=>{setBlocked(true);try{const res=await wcAjax(\"mini_cart_remove_item\",{body:new URLSearchParams({cart_item_key:item.key})});const data=await res.json();if(data.success){setCart(data.data);}else{}}finally{setBlocked(false);}},[]);return /*#__PURE__*/_jsxs(\"div\",{className:css`\n                display: grid;\n                grid-template-columns: 90px 1fr;\n                gap: .5rem;\n                border-bottom: 1px solid #D9D9E4;\n                padding-bottom: 1rem;\n            `,children:[/*#__PURE__*/_jsx(\"img\",{src:item.image,className:css`width: 100%; border-radius: .5rem`}),/*#__PURE__*/_jsxs(\"div\",{className:css`\n                    display: flex;\n                    flex-direction: column;\n\n                    .wc-gzd-cart-info {\n                        color: #000;\n                        font-size: 14px;\n                        font-style: normal;\n                        font-weight: 400;\n                        margin: .25rem 0 0;\n                        letter-spacing -.07px;\n                    }\n                `,children:[/*#__PURE__*/_jsxs(\"div\",{className:css`\n                    display: flex;\n                    align-items: start;\n                    justify-content: space-between;\n                `,children:[/*#__PURE__*/_jsx(\"div\",{className:css`font-size: 1rem; font-weight: bold`,dangerouslySetInnerHTML:{__html:item.nameFormatted}}),/*#__PURE__*/_jsxs(\"div\",{className:css`display:flex; align-items: center; gap: 8px;`,children:[checkoutProductQty()&&!isSampleBox(item.productId)&&/*#__PURE__*/_jsx(QtyPicker,{item:item}),/*#__PURE__*/_jsx(TrashButton,{onClick:deleteItem})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:css`\n                        display: flex;\n                        align-items: center;\n                        justify-content: space-between;\n                        gap: .5rem;\n                        margin-top: auto;\n                    `,children:[item.details?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{className:css`\n                                    ${buttonStyles};\n                                    cursor: pointer;\n                                    color: #0080E2;\n                                    font-weight: bold;\n                                    text-decoration: underline;\n                                `,onClick:()=>setShowDetails(prev=>!prev),children:\"Details\"}),showDetails&&/*#__PURE__*/_jsx(BedDetails,{item:item,close:()=>setShowDetails(false)})]}):/*#__PURE__*/_jsx(_Fragment,{children:\"\\xa0\"}),/*#__PURE__*/_jsxs(\"b\",{style:{fontSize:\"1rem\"},children:[(!checkoutProductQty()||isSampleBox(item.productId))&&`${item.quantity} \\xd7 `,priceFormatter.format(item.price)]})]})]})]});}function AddCoupon(){const{setBlocked,setCart}=useCart();const[error,setError]=useState(\"\");const inputRef=useRef(null);const addCoupon=useCallback(async event=>{event.preventDefault();const formData=new FormData(event.currentTarget);setBlocked(true);setError(\"\");try{const code=formData.get(\"code\");const res=await wcAjax(\"mini_cart_apply_coupon_code\",{body:new URLSearchParams({coupon_code:code})});const data=await res.json();if(data.success){setCart(data.data);}else{setError(data.data);inputRef.current?.focus();}}finally{setBlocked(false);}},[]);return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"form\",{className:css`\n                    display: grid;\n                    grid-template-columns: 1fr 100px;\n                    gap: .5rem;\n                `,onSubmit:addCoupon,children:[/*#__PURE__*/_jsx(Input,{name:\"code\",placeholder:\"Gib hier Deinen Gutschein ein...\",className:css`padding-inline: .5rem`,ref:inputRef}),/*#__PURE__*/_jsx(Button,{type:\"submit\",className:css`height: 48px; padding-block: 0`,children:\"Anwenden\"})]}),error&&/*#__PURE__*/_jsx(\"p\",{className:css`color: red; margin: 4px 0 0; font-size: 14px`,children:error})]});}function Coupon({coupon}){const{setBlocked,setCart}=useCart();const removeCoupon=useCallback(async()=>{setBlocked(true);try{const res=await wcAjax(\"mini_cart_remove_coupon_code\",{body:new URLSearchParams({coupon_code:coupon.code})});const data=await res.json();if(data.success){setCart(data.data);}}finally{setBlocked(false);}},[coupon]);return /*#__PURE__*/_jsxs(\"div\",{className:css`\n                display: grid;\n                grid-template-columns: 20px 1fr 1fr;\n                gap: .5rem;\n                align-items: center;\n                padding: .5rem 1rem;\n                border: 1px solid #377F21;\n                background: #F5F5FA;\n                border-radius: .5rem;\n                color: #828098;\n                min-height: 4rem;\n            `,children:[/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 16 16\",fill:\"none\",className:css`\n                    position: relative;\n                    top: 5px;\n                    width: 1rem;\n                    height: 1rem;\n                    align-self: start;\n                `,children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"8\",cy:\"8\",r:\"8\",fill:\"#377F21\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M11.404 5.87891L7.16171 10.1212L5.2334 8.19288\",stroke:\"white\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"b\",{className:css`color: #000`,children:coupon.description||coupon.code}),/*#__PURE__*/_jsx(\"br\",{}),priceFormatter.format(coupon.amount)]}),/*#__PURE__*/_jsx(TrashButton,{className:css`text-align: right; font-weight: bold`,onClick:removeCoupon})]},coupon.code);}function TrashButton({className,...rest}){return /*#__PURE__*/_jsx(\"button\",{className:css(buttonStyles,`\n                opacity: .5;\n                transition: opacity .2s;\n                &:hover {\n                    opacity: 1;\n                }\n                `,className),...rest,children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",stroke:\"#010101\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M12.9171 4.60443V1.64709H7.08301V4.60443\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M3.61719 5.04175H16.382\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M4.90625 9.04956V16.5535C4.90625 17.6581 5.80168 18.5535 6.90625 18.5535H13.0931C14.1977 18.5535 15.0931 17.6581 15.0931 16.5535V9.04956\"})]})});}function BedDetails({item,close}){const isSampleBox=item.productId===2339;const detailsTable=useMemo(()=>{if(isSampleBox){return item.details.map(({name,category,value,image})=>/*#__PURE__*/_jsxs(\"div\",{className:css`text-align: center`,children:[/*#__PURE__*/_jsx(\"img\",{src:image,alt:value,className:css`width: 90px; height: 90px; object-fit: cover; border-radius: 50%;`}),/*#__PURE__*/_jsxs(\"span\",{className:css`display: block; font-size: 0.8125rem; font-weight: bold; color: #828098`,children:[category,\" - \",name]})]},value));}return item.details.map(([label,value])=>/*#__PURE__*/_jsxs(\"div\",{className:css`display: flex; align-items: start; justify-content: space-between`,children:[/*#__PURE__*/_jsxs(\"span\",{children:[label,\":\"]}),/*#__PURE__*/_jsx(\"b\",{dangerouslySetInnerHTML:{__html:value}})]},label));},[item.details,isSampleBox]);const overlayRef=useRef(null);useEffect(()=>{const handler=event=>{if(event.target===overlayRef.current){close();}};window.addEventListener(\"click\",handler);return()=>window.removeEventListener(\"click\",handler);});return /*#__PURE__*/_jsx(\"div\",{ref:overlayRef,className:css`\n                z-index: 10;\n                position: absolute;\n                top: 0;\n                left: 0;\n                width: 100dvw;\n                height: 100dvh;\n                background: rgba(0 0 0 / .5);\n\n                display: flex;\n                align-items: center;\n                justify-content: center;\n            `,children:/*#__PURE__*/_jsxs(\"div\",{className:css`\n                    width: 100%;\n                    max-width: 100%;\n                    background: #FFF;\n                    border-radius: .5rem;\n                    margin: 1rem;\n\n                    @media (min-width: 762px) {\n                        max-width: 600px;\n                    }\n\n                    @media (max-width: 761px) {\n                        border-radius: 0;\n                        margin: 0;\n                        height: 100%;\n                    }\n            `,children:[/*#__PURE__*/_jsxs(\"header\",{className:css`\n                        display: flex;\n                        align-items: center;\n                        justify-content: space-between;\n                        padding: .75rem 1.5rem;\n                        border-bottom: 1px solid #EEE;\n                    `,children:[/*#__PURE__*/_jsx(\"h4\",{className:css`margin: 0`,children:\"Details\"}),/*#__PURE__*/_jsx(CloseButton,{onClick:close})]}),/*#__PURE__*/_jsxs(\"main\",{className:css(`\n                        display: flex;\n                        flex-direction: column;\n                        gap: 1rem;\n                        padding: .75rem 1.5rem;\n\n                        > * {\n                            padding-bottom: 1rem;\n\n                            &:not(:last-child) {\n                                border-bottom: 1px solid #D9D9E4;\n                            }\n                        }\n                    `,isSampleBox&&`\n                            flex-direction: row;\n                            align-items: center;\n                            justify-content: center;\n                            overflow-x: auto;\n                            > * {\n                                border-bottom: none !important;\n                            }\n                            `),children:[!isSampleBox&&/*#__PURE__*/_jsxs(\"div\",{className:css`display: flex; align-items: center; gap: 1rem`,children:[/*#__PURE__*/_jsx(\"img\",{src:item.image,className:css`height: 90px; border-radius: .5rem`}),/*#__PURE__*/_jsx(\"b\",{style:{fontSize:\"1.25rem\"},children:item.name})]}),detailsTable]})]})});}// ##########\n// QtyPicker\n// ##########\nfunction QtyPicker({item}){const{setCart,setBlocked}=useCart();const updateQty=async nextQty=>{if(nextQty<1)return;setBlocked(true);try{const res=await wcAjax(\"mini_cart_update_quantity\",{body:new URLSearchParams({cart_item_key:item.key,quantity:String(nextQty)})});const data=await res.json();if(data.success){setCart(data.data);}}finally{setBlocked(false);}};return /*#__PURE__*/_jsxs(\"div\",{className:css`\n                display: inline-flex;\n                align-items: center;\n                gap: .5rem;\n                border: 1px solid #D9D9E4;\n                border-radius: 5px;\n                padding: .6rem;\n                width: 90px;\n            `,children:[/*#__PURE__*/_jsx(\"button\",{className:buttonStyles,disabled:item.quantity<=1,onClick:()=>updateQty(item.quantity-1),children:/*#__PURE__*/_jsx(\"svg\",{className:css`\n                        display: block;\n                    `,xmlns:\"http://www.w3.org/2000/svg\",width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 10L16 10\",stroke:\"black\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})})}),/*#__PURE__*/_jsx(\"span\",{children:item.quantity}),/*#__PURE__*/_jsx(\"button\",{className:buttonStyles,onClick:()=>updateQty(item.quantity+1),children:/*#__PURE__*/_jsxs(\"svg\",{className:css`\n                        display: block;\n                    `,xmlns:\"http://www.w3.org/2000/svg\",width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M10 4V16\",stroke:\"black\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M4 10L16 10\",stroke:\"black\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})]})})]});}function CloseButton({onClick,...rest}){return /*#__PURE__*/_jsx(\"button\",{className:buttonStyles,onClick:onClick,children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",stroke:\"#010101\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M4.83887 4.77661L14.9773 14.9151\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M4.83887 14.915L14.9773 4.77656\"})]})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CartDialog.map","// Generated by Framer (874d64d)\nexport default function metadata(params,activeLocale){return{description:\"Das Mozart Bett. 10.000+ M\\xf6glichkeiten f\\xfcr das Boxspringbett Deiner Tr\\xe4ume. Shop-Bewertung: 5/5 Sterne ★★★★★ Jetzt gestalten →\",favicon:\"https://framerusercontent.com/assets/jyn15xShBylK99396tkc8agNZaY.webp\",robots:\"max-image-preview:large\",title:\"Mozart Bett \\xbb Konfiguriere Dein Traum-Boxspringbett in 7 Steps\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qUAAqC,CAExB,EAAkB,CAC3B,SAAU,WACV,MAAO,OACP,OAAQ,OACR,QAAS,OACT,eAAgB,SAChB,WAAY,SACf,CACY,EAAkB,CAC3B,GAAG,EACH,aAAc,EACd,WAAY,0BACZ,MAAO,OACP,OAAQ,kBACR,cAAe,SAClB,CAGa,EAAY,aAGZ,EAAY,aAGZ,EAAY,aAIhB,EAAY,OASR,EAAY,QAOZ,EAAY,OAMZ,EAAY,sBCpD8B,IACtB,iBCDH,kBCAA,iBCAM,kBCAN,kBCAM,sBCAL,kBCAE,IAE+F,kBCF1E,IACK,IAEqE,IAEJ,kBCJ/F,IAA6B,IAAoH,ICW/K,SAAgB,IAAgB,CAG5B,OAFiBA,MAAY,EAAa,SAAS,GAAK,EAAa,OACnE,EAAE,CAAC,mBAduB,IACM,kBCDP,ICE/B,SAAgB,GAAU,EAAO,CAC7B,GAAM,CA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