{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Zlgpz8eWVJs2UsYn3cc0/BnghyqFLiRjzAmSOs5mO/SampleLink.js"],
  "sourcesContent": ["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight 58\n */export default function SampleLink(props){const tiktokIcon=/*#__PURE__*/_jsxs(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M11.451 5.77581C12.4799 6.51392 13.7404 6.94821 15.1017 6.94821V4.31924C14.8441 4.31929 14.5871 4.29233 14.3351 4.23874V6.30812C12.9738 6.30812 11.7135 5.87382 10.6844 5.13576V10.5007C10.6844 13.1846 8.51641 15.3601 5.84227 15.3601C4.84449 15.3601 3.91709 15.0574 3.1467 14.5382C4.02597 15.4404 5.25219 16.0001 6.60878 16.0001C9.28308 16.0001 11.4511 13.8246 11.4511 11.1407V5.77581H11.451V5.77581ZM12.3968 3.12349C11.871 2.54698 11.5257 1.80195 11.451 0.978279V0.640137H10.7245C10.9074 1.68702 11.5311 2.58141 12.3968 3.12349ZM4.83809 12.4787C4.54431 12.0921 4.38555 11.6192 4.38626 11.133C4.38626 9.90551 5.37786 8.91024 6.60123 8.91024C6.82923 8.91019 7.05586 8.94522 7.27313 9.01441V6.32668C7.01921 6.29175 6.76295 6.27693 6.50679 6.28236V8.37437C6.28935 8.30518 6.06261 8.27003 5.83456 8.27025C4.61119 8.27025 3.61964 9.26541 3.61964 10.4931C3.61964 11.3611 4.11528 12.1126 4.83809 12.4787Z\",fill:\"#FF004F\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M10.6843 5.13571C11.7135 5.87377 12.9738 6.30806 14.335 6.30806V4.23868C13.5752 4.07626 12.9025 3.67776 12.3968 3.12349C11.531 2.58135 10.9073 1.68696 10.7245 0.640137H8.81606V11.1406C8.81174 12.3647 7.82183 13.3559 6.60108 13.3559C5.88171 13.3559 5.24263 13.0118 4.83788 12.4787C4.11513 12.1126 3.61949 11.361 3.61949 10.4931C3.61949 9.26558 4.61104 8.27031 5.83441 8.27031C6.0688 8.27031 6.29472 8.30694 6.50663 8.37442V6.28242C3.87947 6.33689 1.7666 8.49116 1.7666 11.1406C1.7666 12.4632 2.29276 13.6622 3.14671 14.5382C3.9171 15.0574 4.8445 15.3602 5.84228 15.3602C8.51648 15.3602 10.6844 13.1845 10.6844 10.5007V5.13571H10.6843Z\",fill:\"black\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M14.335 4.23853V3.67899C13.6498 3.68003 12.9781 3.48746 12.3968 3.12329C12.9114 3.68871 13.589 4.07858 14.335 4.23853ZM10.7245 0.639989C10.707 0.539941 10.6936 0.439234 10.6843 0.338143V0H8.04935V10.5005C8.04513 11.7245 7.05528 12.7157 5.83442 12.7157C5.476 12.7157 5.13759 12.6303 4.8379 12.4786C5.24264 13.0116 5.88173 13.3557 6.6011 13.3557C7.82173 13.3557 8.81181 12.3646 8.81607 11.1405V0.639989H10.7245ZM6.50676 6.28227V5.68659C6.28659 5.65639 6.06461 5.64124 5.84235 5.64135C3.16794 5.64129 1 7.81693 1 10.5005C1 12.183 1.85204 13.6658 3.14678 14.538C2.29283 13.662 1.76667 12.463 1.76667 11.1404C1.76667 8.49101 3.87949 6.33674 6.50676 6.28227Z\",fill:\"#00F2EA\"})]});const instagramIcon=/*#__PURE__*/_jsxs(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 28 29\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M27.22 9.01652C27.1553 7.60079 26.9304 6.63396 26.6016 5.7881C26.2678 4.90062 25.7442 4.09677 25.0676 3.43233C24.4034 2.75572 23.5993 2.23192 22.7118 1.89787C21.8658 1.56931 20.8992 1.34465 19.4834 1.28032C18.0651 1.21537 17.6119 1.19995 14 1.19995C10.388 1.19995 9.93482 1.21537 8.51646 1.27991C7.10074 1.34465 6.13413 1.56951 5.28806 1.89828C4.4006 2.23212 3.59674 2.75572 2.93231 3.43233C2.2557 4.09656 1.73191 4.90042 1.39787 5.78789C1.06931 6.63396 0.844649 7.60079 0.780316 9.01632C0.715375 10.4349 0.699951 10.8879 0.699951 14.4998C0.699951 18.112 0.715375 18.5652 0.780316 19.9836C0.844852 21.3991 1.06971 22.3659 1.39848 23.212C1.73232 24.0993 2.25591 24.9033 2.93251 25.5676C3.59674 26.2442 4.4008 26.7678 5.28826 27.1016C6.13413 27.4306 7.10094 27.6553 8.51666 27.72C9.93523 27.7847 10.3882 27.8 14.0002 27.8C17.6121 27.8 18.0653 27.7847 19.4836 27.72C20.8994 27.6553 21.866 27.4306 22.712 27.1016C24.4985 26.4108 25.9108 24.9985 26.6016 23.212C26.9306 22.3659 27.1553 21.3991 27.22 19.9836C27.2845 18.565 27.3 18.112 27.3 14.5001C27.3 10.8879 27.2845 10.4349 27.22 9.01652ZM24.8259 19.8746C24.7668 21.1714 24.5501 21.8756 24.368 22.3442C23.9206 23.5042 23.0039 24.4209 21.8439 24.8684C21.3753 25.0505 20.6711 25.2672 19.3743 25.3263C17.9721 25.3904 17.5514 25.4038 14 25.4038C10.4483 25.4038 10.0278 25.3904 8.62544 25.3263C7.32885 25.2672 6.62464 25.0505 6.15584 24.8684C5.57827 24.6551 5.05569 24.3152 4.62667 23.8734C4.18487 23.4444 3.84494 22.922 3.63165 22.3442C3.44961 21.8756 3.23287 21.1714 3.17381 19.8746C3.10989 18.4723 3.09629 18.0516 3.09629 14.5003C3.09629 10.9487 3.10989 10.5282 3.17381 9.1257C3.23307 7.8289 3.44961 7.12468 3.63165 6.65609C3.84494 6.07831 4.18507 5.55573 4.62667 5.1267C5.05569 4.6849 5.57827 4.34497 6.15604 4.13188C6.62464 3.94963 7.32885 3.73309 8.62564 3.67383C10.028 3.6099 10.4487 3.59631 14 3.59631H13.9997C17.551 3.59631 17.9717 3.6099 19.3743 3.67403C20.6711 3.73309 21.3751 3.94983 21.8439 4.13188C22.4214 4.34517 22.944 4.6851 23.373 5.1267C23.8148 5.55573 24.1548 6.07831 24.3678 6.65609C24.5501 7.12468 24.7668 7.8289 24.8259 9.1257C24.8898 10.528 24.9034 10.9487 24.9034 14.5001C24.9034 18.0516 24.89 18.4721 24.8259 19.8746Z\",fill:\"url(#paint0_linear_884_19447)\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M14.0005 7.66992C10.2286 7.66992 7.1709 10.7279 7.1709 14.4998C7.1709 18.2717 10.2286 21.3294 14.0005 21.3294C17.7726 21.3294 20.8303 18.2717 20.8303 14.4998C20.8303 10.7279 17.7726 7.66992 14.0005 7.66992ZM14.0005 18.9331C11.5522 18.9329 9.56724 16.9481 9.56744 14.4996C9.56744 12.0513 11.5522 10.0663 14.0007 10.0663C16.4492 10.0665 18.434 12.0513 18.434 14.4996C18.434 16.9481 16.449 18.9331 14.0005 18.9331Z\",fill:\"url(#paint1_linear_884_19447)\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M22.6954 7.40133C22.6954 8.28271 21.9808 8.99727 21.0994 8.99727C20.2179 8.99727 19.5033 8.28271 19.5033 7.40133C19.5033 6.51974 20.2179 5.80518 21.0994 5.80518C21.9808 5.80518 22.6954 6.51974 22.6954 7.40133Z\",fill:\"url(#paint2_linear_884_19447)\"}),/*#__PURE__*/_jsxs(\"defs\",{children:[/*#__PURE__*/_jsxs(\"linearGradient\",{id:\"paint0_linear_884_19447\",x1:\"2.93218\",y1:\"25.5677\",x2:\"25.0679\",y2:\"3.43215\",gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{\"stop-color\":\"#FFD600\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"0.5\",\"stop-color\":\"#FF0100\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",\"stop-color\":\"#D800B9\"})]}),/*#__PURE__*/_jsxs(\"linearGradient\",{id:\"paint1_linear_884_19447\",x1:\"9.1713\",y1:\"19.3291\",x2:\"18.83\",y2:\"9.6704\",gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{\"stop-color\":\"#FF6400\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"0.5\",\"stop-color\":\"#FF0100\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",\"stop-color\":\"#FD0056\"})]}),/*#__PURE__*/_jsxs(\"linearGradient\",{id:\"paint2_linear_884_19447\",x1:\"19.9708\",y1:\"8.52976\",x2:\"22.2279\",y2:\"6.27272\",gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{\"stop-color\":\"#F30072\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",\"stop-color\":\"#E50097\"})]})]})]});const{url,imageUrl,title,productName,environment,platform}=props;const getBaseUrl=()=>{if(environment===\"staging\"){return\"https://stg.patches.travel\";}return\"https://patches.travel\";};const openLink=()=>{const input=document.getElementById(\"link-url\");if(input){const nativeInputValueSetter=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,\"value\").set;nativeInputValueSetter.call(input,url);input.dispatchEvent(new Event(\"input\",{bubbles:true}));}// 0.5\uCD08 \uB51C\uB808\uC774 \uD6C4 \uD654\uBA74 \uC804\uD658\nsetTimeout(()=>{window.location.href=`${getBaseUrl()}/c2p/new?url=${encodeURIComponent(url)}&name=${productName}`;},500);};return /*#__PURE__*/_jsxs(motion.div,{onClick:openLink,style:{display:\"flex\",width:\"100%\",alignItems:\"center\",cursor:\"pointer\",border:\"2px solid\",borderColor:\"#D4D4D4\",borderRadius:\"12px\",padding:\"6px\"},whileHover:{backgroundColor:\"rgba(0, 0, 0, 0.05)\",borderColor:\"#867474\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{backgroundImage:`url(${imageUrl})`,backgroundSize:\"cover\",backgroundPosition:\"center\",backgroundRepeat:\"no-repeat\",objectFit:\"cover\",width:\"32px\",height:\"42px\",borderRadius:\"8px\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{marginLeft:\"12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\"},children:[platform===\"tiktok\"?tiktokIcon:instagramIcon,/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",color:\"#7B828C\",fontSize:\"12px\",fontWeight:\"medium\",marginLeft:\"4px\"},children:platform===\"tiktok\"?/*#__PURE__*/_jsx(\"div\",{children:\"Tiktok\"}):/*#__PURE__*/_jsx(\"div\",{children:\"Instagram\"})})]}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:\"8px\",fontWeight:\"semibold\",color:\"#4D4B54\",fontSize:\"14px\"},children:title})]})]});}addPropertyControls(SampleLink,{width:{type:ControlType.Number,defaultValue:300},environment:{title:\"Environment\",type:ControlType.Enum,defaultValue:\"production\",options:[\"production\",\"staging\"]},platform:{title:\"Platform\",type:ControlType.Enum,defaultValue:\"instagram\",options:[\"instagram\",\"tiktok\"]},url:{title:\"URL\",type:ControlType.String,defaultValue:\"https://www.instagram.com/p/DIf_8y9SHIf/\"},productName:{title:\"Product Name\",type:ControlType.String,defaultValue:\"\uB2F9\uC77C\uCE58\uAE30 \uCD98\uCC9C \uC5EC\uD589\uCF54\uC2A4\"},imageUrl:{title:\"Image URL\",type:ControlType.String,defaultValue:\"https://assets.patches.travel/img/c2p/sample_image_1.jpg\"},title:{title:\"Title\",type:ControlType.String,defaultValue:\"\uB2F9\uC77C\uCE58\uAE30 \uCD98\uCC9C \uC5EC\uD589 \uB5A0\uB0A0 \uBD84\uB4E4 \uC8FC\uBAA9!!\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SampleLink\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayo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,EAAM,MAAM,CAAC,MAAM,CAAC,WAAW,MAAM,EAAE,SAAS,CAAcA,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,QAAQ,EAAE,SAAS,CAACQ,IAAW,SAAST,EAAWG,EAA2BD,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,MAAM,UAAU,SAAS,OAAO,WAAW,SAAS,WAAW,KAAK,EAAE,SAASO,IAAW,SAAsBP,EAAK,MAAM,CAAC,SAAS,QAAQ,CAAC,EAAeA,EAAK,MAAM,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAeA,EAAK,MAAM,CAAC,MAAM,CAAC,UAAU,MAAM,WAAW,WAAW,MAAM,UAAU,SAAS,MAAM,EAAE,SAASI,CAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAACS,EAAoBjB,EAAW,CAAC,MAAM,CAAC,KAAKkB,EAAY,OAAO,aAAa,GAAG,EAAE,YAAY,CAAC,MAAM,cAAc,KAAKA,EAAY,KAAK,aAAa,aAAa,QAAQ,CAAC,aAAa,SAAS,CAAC,EAAE,SAAS,CAAC,MAAM,WAAW,KAAKA,EAAY,KAAK,aAAa,YAAY,QAAQ,CAAC,YAAY,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM,MAAM,KAAKA,EAAY,OAAO,aAAa,0CAA0C,EAAE,YAAY,CAAC,MAAM,eAAe,KAAKA,EAAY,OAAO,aAAa,gEAAc,EAAE,SAAS,CAAC,MAAM,YAAY,KAAKA,EAAY,OAAO,aAAa,0DAA0D,EAAE,MAAM,CAAC,MAAM,QAAQ,KAAKA,EAAY,OAAO,aAAa,6FAAuB,CAAC,CAAC",
  "names": ["SampleLink", "props", "tiktokIcon", "u", "p", "instagramIcon", "url", "imageUrl", "title", "productName", "environment", "platform", "getBaseUrl", "openLink", "input", "window", "motion", "addPropertyControls", "ControlType"]
}
