{"version":3,"file":"Test.BCJjRyb4.mjs","names":[],"sources":["https:/framerusercontent.com/modules/MXeSdXldzox6utZesRUO/952dnBHLtZuzOut6hgfR/Test.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});const roundedImage={borderRadius:\"12%\"};export function withNameText(Component){return props=>{const key=\"name\"// What you will listen for in the url\n;const url=new URL(window.location.href);const value=url.searchParams.get(key)||`Add ?${key}=test to the url`;return /*#__PURE__*/_jsx(Component,{...props,text:value});};}export function withPINText(Component){return props=>{const key=\"PIN\"// What you will listen for in the url\n;const url=new URL(window.location.href);const value=url.searchParams.get(key)||`Add ?${key}=test to the url`;return /*#__PURE__*/_jsx(Component,{...props,text:value});};}export function withEventLogo(Component){return props=>{const key=\"imageURL\"// What you will listen for in the url\n;const url=new URL(window.location.href);const value=url.searchParams.get(key)||`Add ?${key}=test to the url`;return /*#__PURE__*/_jsx(\"img\",{src:value,alt:\"Event logo\",width:\"200\",height:\"200\",style:{...roundedImage,objectFit:\"cover\"}});};}export const withCopyToClipboard=Component=>{return props=>{const textToCopy=window.location.href;const handleClick=()=>{navigator.clipboard.writeText(textToCopy);window.location.href=\"https://deckle.app/download\";};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};};\nexport const __FramerMetadata__ = {\"exports\":{\"withPINText\":{\"type\":\"reactHoc\",\"name\":\"withPINText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCopyToClipboard\":{\"type\":\"reactHoc\",\"name\":\"withCopyToClipboard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNameText\":{\"type\":\"reactHoc\",\"name\":\"withNameText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEventLogo\":{\"type\":\"reactHoc\",\"name\":\"withEventLogo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Test.map"],"mappings":"iLAC2F,SAAgB,EAAa,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAI,OAC7G,EAApC,IAAI,IAAI,EAAO,SAAS,KAAK,CAAiB,aAAa,IAAI,EAAI,EAAE,QAAQ,EAAI,kBAAkB,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAM,CAAC,EAAI,SAAgB,EAAY,EAAU,CAAC,MAAO,IAAO,CAAC,IAClL,EAApC,IAAI,IAAI,EAAO,SAAS,KAAK,CAAiB,aAAa,IAAI,MAAI,EAAE,2BAA8B,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAM,CAAC,EAAI,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAI,WAC/H,OAAoB,EAAK,MAAM,CAAC,IAAnI,IAAI,IAAI,EAAO,SAAS,KAAK,CAAiB,aAAa,IAAI,EAAI,EAAE,QAAQ,EAAI,kBAA4D,IAAI,aAAa,MAAM,MAAM,OAAO,MAAM,MAAM,CAAC,GAAG,EAAa,UAAU,QAAQ,CAAC,CAAC,2BAJlM,IAAqE,CACjG,EAAY,CAAC,WAAW,UAAU,CAAC,CAAO,EAAa,CAAC,aAAa,MAAM,CAGoK,EAAoB,GAAmB,GAAO,CAAC,IAAM,EAAW,EAAO,SAAS,KAAW,MAAgB,CAAC,EAAU,UAAU,UAAU,EAAW,CAAC,EAAO,SAAS,KAAK,+BAAgC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,CAAC"}