{"version":3,"file":"shared-lib.CSQhpugm.mjs","names":["useMemo"],"sources":["https:/framer.com/m/framer/icon-nullstate.js@0.7.0","https:/framerusercontent.com/modules/Ma20hU0GGRxLxZphbywl/OSpwWF91FHPVFyQJjMHt/utils.js","https:/framerusercontent.com/modules/eVf9lahjxisM85JAcGfL/MO4aDufv6rBO9KxSLYEa/siteMetadata.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as React from \"react\";\nexport const containerStyles = {\n    width: \"100%\",\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nconst nullIconStyle = {\n    minWidth: \"10px\",\n    minHeight: \"10px\",\n    maxWidth: \"20px\",\n    maxHeight: \"20px\",\n    width: \"60%\",\n    height: \"60%\"\n};\nconst emptyStateStyle = {\n    ...containerStyles,\n    borderRadius: 6,\n    background: \"rgba(149, 149, 149, 0.1)\",\n    border: \"1px dashed rgba(149, 149, 149, 0.15)\",\n    color: \"#a5a5a5\",\n    flexDirection: \"column\"\n};\nexport const NullState = /*#__PURE__*/ React.forwardRef((_, ref)=>{\n    return(/*#__PURE__*/ _jsx(\"div\", {\n        style: emptyStateStyle,\n        ref: ref\n    }));\n}) /*\n\n<svg\n                xmlns=\"http://www.w3.org/2000/svg\"\n                viewBox=\"0 0 30 30\"\n                style={nullIconStyle}\n            >\n                <path\n                    d=\"M 12.857 0 C 19.958 0 25.714 5.756 25.714 12.857 C 25.714 19.958 19.958 25.714 12.857 25.714 C 5.756 25.714 0 19.958 0 12.857 C 0 5.756 5.756 0 12.857 0 Z\"\n                    fill=\"#FFFFFF\"\n                ></path>\n                <path\n                    d=\"M 20.357 20.357 L 27.857 27.857\"\n                    fill=\"transparent\"\n                    strokeWidth=\"4.28\"\n                    stroke=\"#FFFFFF\"\n                    strokeLinecap=\"round\"\n                ></path>\n                <g transform=\"translate(9.643 6.429)\">\n                    <path\n                        d=\"M 3.214 12.857 L 3.214 12.857\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.75\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                    ></path>\n                    <path\n                        d=\"M 0 3.214 C 0 1.004 1.843 0 3.214 0 C 4.586 0 6.429 0.603 6.429 3.214 C 6.429 5.826 3.214 5.913 3.214 7.232 C 3.214 8.552 3.214 8.571 3.214 8.571\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.22\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                        strokeLinejoin=\"round\"\n                    ></path>\n                </g>\n            </svg>\n            */ ;\n\nexport const __FramerMetadata__ = {\"exports\":{\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NullState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./nullstate.map","import{useMemo}from\"react\";import{ControlType}from\"framer\";/*\n ** ICON UTILS\n ** Pull as much re-usable logic into here as possible\n ** This will make it easier to replace in all icon components\n */ export const containerStyles={width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};export const defaultEvents={onClick:{type:ControlType.EventHandler},onMouseDown:{type:ControlType.EventHandler},onMouseUp:{type:ControlType.EventHandler},onMouseEnter:{type:ControlType.EventHandler},onMouseLeave:{type:ControlType.EventHandler}};const findByArray=(arr,search)=>arr.find(a=>a.toLowerCase().includes(search));export function getIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// gotta get the exact match first THEN find\n// have a set and try to access ?\nif(selectByList)return iconSelection;if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;}export function useIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// Clean search term\nconst iconSearchResult=useMemo(()=>{if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;},[iconSelection,iconSearch]);const name=selectByList?iconSelection:iconSearchResult;return name;}\nexport const __FramerMetadata__ = {\"exports\":{\"getIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./utils.map","// Generated by Framer (64bdc4e)\nexport default function metadata(params,activeLocale){return{customHTMLBodyStart:\"<style>\\nbody {background-color: black;}\\n</style>\",customHTMLHeadStart:\"<script type=\\\"text/javascript\\\">\\n(function(){\\n  // Create a queue, but don't obliterate an existing one!\\n  var analytics = window.analytics = window.analytics || [];\\n  // If the real analytics.js is already on the page return.\\n  if (analytics.initialize) return;\\n  // If the snippet was invoked already show an error.\\n  if (analytics.invoked) {\\n    if (window.console && console.error) {\\n      console.error('Segment snippet included twice.');\\n    }\\n    return;\\n  }\\n  // Invoked flag, to make sure the snippet\\n  // is never invoked twice.\\n  analytics.invoked = true;\\n  // A list of the methods in Analytics.js to stub.\\n  analytics.methods = [\\n    'trackSubmit',\\n    'trackClick',\\n    'trackLink',\\n    'trackForm',\\n    'pageview',\\n    'identify',\\n    'reset',\\n    'group',\\n    'track',\\n    'ready',\\n    'alias',\\n    'debug',\\n    'page',\\n    'once',\\n    'off',\\n    'on',\\n    'addSourceMiddleware',\\n    'addIntegrationMiddleware',\\n    'setAnonymousId',\\n    'addDestinationMiddleware'\\n  ];\\n  // Define a factory to create stubs. These are placeholders\\n  // for methods in Analytics.js so that you never have to wait\\n  // for it to load to actually record data. The `method` is\\n  // stored as the first argument, so we can replay the data.\\n  analytics.factory = function(method){\\n    return function(){\\n      var args = Array.prototype.slice.call(arguments);\\n      args.unshift(method);\\n      analytics.push(args);\\n      return analytics;\\n    };\\n  };\\n  // For each of our methods, generate a queueing stub.\\n  for (var i = 0; i < analytics.methods.length; i++) {\\n    var key = analytics.methods[i];\\n    analytics[key] = analytics.factory(key);\\n  }\\n  // Define a method to load Analytics.js from our CDN,\\n  // and that will be sure to only ever load it once.\\n  analytics.load = function(key, options){\\n    // Create an async script element based on your key.\\n    var script = document.createElement('script');\\n    script.type = 'text/javascript';\\n    script.async = true;\\n    script.src = 'https://segment-proxy-5b22cbf-auu6epeciq-uc.a.run.app/analytics.js/v1/'\\n        + key + '/analytics.min.js';\\n    // Insert our script next to the first script element.\\n    var first = document.getElementsByTagName('script')[0];\\n    first.parentNode.insertBefore(script, first);\\n    analytics._loadOptions = options;\\n  };\\n  analytics._writeKey = '8HmrZR6oRlcrOMQEFjDZKFaZOjrMAfkp'\\n  // Add a version to keep track of what's in the wild.\\n  analytics.SNIPPET_VERSION = '4.15.2';\\n  \\n  // OBS\\n  // We load segment in our Code Overrides code inside the Cookie Banner component programatically\\n})();\\n</script>\\n<script src=\\\"https://www.dubcdn.com/analytics/script.js\\\" defer=\\\"\\\" data-domains=\\\"{&quot;refer&quot;:&quot;go.kive.ai&quot;}\\\"></script>\",description:\"The all-in-one AI platform that helps brands create stunning visuals, manage assets, and maintain brand consistency – all in one seamless workflow.\",favicon:\"https://framerusercontent.com/assets/Wc6fFP0Uy81JhNjwsZaKso44BTA.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/p0w4c11kZ23HjLVFxDN05vADLk.png\",title:\"Kive: Create, manage, and scale on-brand AI content\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"4QAEa,EAAkB,CAC3B,MAAO,OACP,OAAQ,OACR,QAAS,OACT,eAAgB,SAChB,WAAY,SACf,CASK,EAAkB,CACpB,GAAG,EACH,aAAc,EACd,WAAY,2BACZ,OAAQ,uCACR,MAAO,UACP,cAAe,SAClB,CACY,EAA0B,GAAkB,EAAG,IACnC,EAAK,MAAO,CAC7B,MAAO,EACF,MACR,MCzBub,SAAgB,EAAiB,EAAS,EAAa,EAAW,GAAG,EAAc,EAAsB,CAEriB,GAAG,EAAa,OAAO,EAAc,GAAG,GAAY,MAAO,GAAyD,SAAU,EAAE,OAAO,KAAK,IAAM,EAAe,EAAW,cAAc,QAAQ,QAAQ,IAAI,IAAI,EAClN,IAAM,GAAc,EAAgB,EAAsB,KAAkE,EAAY,EAAS,GAAgB,OAAO,CAAc,UAAgB,EAAiB,EAAS,EAAa,EAAW,GAAG,EAAc,EAAsB,CAC/R,IAAM,EAAiBA,MAAY,CAAC,GAAG,GAAY,MAAO,GAAyD,SAAU,EAAE,OAAO,KAAK,IAAM,EAAe,EAAW,cAAc,QAAQ,QAAQ,IAAI,IAAI,EACjN,IAAM,GAAc,EAAgB,EAAsB,KAAkE,EAAY,EAAS,GAAgB,OAAO,CAAc,EAAC,CAAC,EAAc,EAAW,EAAQ,EAAK,EAAa,EAAc,EAAiB,OAAO,CAAM,2BALjJ,EAAc,CAAC,QAAQ,CAAC,KAAK,EAAY,aAAa,CAAC,YAAY,CAAC,KAAK,EAAY,aAAa,CAAC,UAAU,CAAC,KAAK,EAAY,aAAa,CAAC,aAAa,CAAC,KAAK,EAAY,aAAa,CAAC,aAAa,CAAC,KAAK,EAAY,aAAa,CAAC,CAAO,GAAa,EAAI,IAAS,EAAI,KAAK,GAAG,EAAE,cAAc,SAAS,OCHnb,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,oBAAoB;;UAAqD,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wIAAuvF,YAAY,sJAAsJ,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,sDAAsD,AAAE"}