{"version":3,"file":"ViberChatLink.glJw92O2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/uF0IpdYT43kqKOcw06o0/T01hHMfkiVXO5WzNQ1Hs/ViberChatLink.js"],"sourcesContent":["// Text link component that opens Viber chat with a given phone number\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Viber Text Link\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ViberChatLink(props){const{phone,label,color,font,underline,style,variant=\"link\",buttonColor=\"#665CAC\",buttonTextColor=\"#fff\",buttonRadius=8}=props;const href=`viber://chat?number=${encodeURIComponent(phone)}`;if(variant===\"button\"){return /*#__PURE__*/_jsx(\"a\",{href:href,style:{background:buttonColor,color:buttonTextColor,border:\"none\",borderRadius:buttonRadius,padding:\"10px 20px\",cursor:\"pointer\",textDecoration:\"none\",display:\"inline-block\",...font,...style,width:\"max-content\"},target:\"_blank\",rel:\"noopener noreferrer\",\"aria-label\":`Chat on Viber: ${phone}`,children:label});}return /*#__PURE__*/_jsx(\"a\",{href:href,style:{color,textDecoration:underline?\"underline\":\"none\",cursor:\"pointer\",...font,...style,width:\"max-content\",display:\"inline-block\"},target:\"_blank\",rel:\"noopener noreferrer\",\"aria-label\":`Chat on Viber: ${phone}`,children:label});}addPropertyControls(ViberChatLink,{phone:{type:ControlType.String,title:\"Phone\",defaultValue:\"+1234567890\",placeholder:\"+1234567890\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Chat on Viber\"},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#665CAC\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},underline:{type:ControlType.Boolean,title:\"Underline\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",hidden:({variant})=>variant===\"button\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"link\",\"button\"],optionTitles:[\"Text Link\",\"Button\"],defaultValue:\"link\",displaySegmentedControl:true},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#665CAC\",hidden:({variant})=>variant!==\"button\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#fff\",hidden:({variant})=>variant!==\"button\"},buttonRadius:{type:ControlType.Number,title:\"Button Radius\",defaultValue:8,min:0,max:32,hidden:({variant})=>variant!==\"button\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ViberChatLink\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ViberChatLink.map"],"mappings":"4JAMG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,QAAM,QAAM,OAAK,YAAU,QAAM,UAAQ,OAAO,cAAY,UAAU,kBAAgB,OAAO,eAAa,GAAG,EAAY,EAAK,uBAAuB,mBAAmB,EAAM,GAAyX,OAAnX,IAAU,SAA8B,EAAK,IAAI,CAAM,OAAK,MAAM,CAAC,WAAW,EAAY,MAAM,EAAgB,OAAO,OAAO,aAAa,EAAa,QAAQ,YAAY,OAAO,UAAU,eAAe,OAAO,QAAQ,eAAe,GAAG,EAAK,GAAG,EAAM,MAAM,cAAc,CAAC,OAAO,SAAS,IAAI,sBAAsB,aAAa,kBAAkB,IAAQ,SAAS,EAAM,CAAC,CAAsB,EAAK,IAAI,CAAM,OAAK,MAAM,CAAC,QAAM,eAAe,EAAU,YAAY,OAAO,OAAO,UAAU,GAAG,EAAK,GAAG,EAAM,MAAM,cAAc,QAAQ,eAAe,CAAC,OAAO,SAAS,IAAI,sBAAsB,aAAa,kBAAkB,IAAQ,SAAS,EAAM,CAAC,kBALx0B,IAAoD,CAKsxB,EAAoB,EAA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