{"version":3,"file":"commerce-component-register-notification-register-js.59f9a6194fd68824cc58.js?ssi=0","mappings":";yLASA,MAUAA,GAAa,WAAAC,GAAgB,OAV7B,CACA,SAAaC,EAAA,+BAAAC,IAAA,WACb,CACA,OACA,CACAD,EAAA,gIACAC,IAAA,4BCyBAC,GAA+B,EAAAC,EAAAC,IAxB/B,UAAAC,aACAA,EAAAC,aACAA,EAAAC,YACAA,EAAAC,UACAA,EAAAC,eACAA,KACAC,IAEA,MAAAC,EAAAF,GAAAJ,GAAAO,GACAC,EAAAP,GAAAQ,SAAAC,sBACAC,OAAA,IAAAT,GAAAI,GAAA,mBAAAE,GAAAN,aAAA,IAAAM,EAAAN,YAAAI,QAAA,EACAM,EAAAN,GAAA,mBAAAE,GAAAL,UAAA,CAAAU,EAAAC,IAAAN,EAAAL,YAAAG,EAAAQ,QAAA,EACA,OAAyBC,EAAAC,cACrBC,EAAAC,EACJ,IACAb,EACAD,eAAAE,EACAJ,YAAAA,GAAAS,EACAR,UAAAA,GAAAS,GAGA,GAIAO,EAAA,KACErB,EAAAsB,GAAOD,kBAAAtB,EAAA,CACTwB,KAAA,eACAC,aAAA,eACAC,UAAc,EAAAC,EAAAC,IAA8B,gBAC5CC,OAAW,EAAAC,EAAAC,GAAcnC,GACzBoC,iBAAA,EACAC,gBAAA,CACA,CACA,kCACAC,UAAA,CACAV,KAAA,OACAW,QAAA,CACAC,KAAA,6CAKAC,OAAA,CACA,CACAb,KAAA,OACAC,aAAA,OACAa,KAAA,SACAC,KAAA,qCACAC,WAAA,+DAEA,CACAhB,KAAA,YACAC,aAAA,aACAa,KAAA,UACAG,cAAA,GAEA,CACAjB,KAAA,kBACAC,aAAA,mBACAa,KAAA,SACAG,aAAA,GACAD,WAAA,6GAEA,CACAhB,KAAA,aACAC,aAAA,gCACAa,KAAA,SACAI,UAAA,qBClFA,SAAAC,EAAAC,GACA,qEAA+CA,GAC/C,CACA,SAAAC,EAAAC,EAAAtB,EAAAuB,EAAA,WAEA,OAAAJ,EAAA,GAAgCG,KAAQtB,MADxCuB,EAAAC,cAAAC,QAAA,cAEA,CACA,SAAAC,EAAAhB,EAAAa,EAAA,WACA,OAAAF,EAAA,aAAAX,EAAAa,EACA,CACA,SAAAI,EAAAC,EAAAL,EAAA,WACA,OAAAF,EAAA,YAAAO,EAAAL,EACA,CACA,SAAAM,EAAAC,EAAAP,EAAA,WACA,OAAAF,EAAA,YAAAS,EAAAP,EACA,CACA,SAAAQ,EAAAC,EAAAT,EAAA,WACA,OAAAF,EAAA,QAAAW,EAAAT,EACA","sources":["webpack://@logos/commerceweb-frontend/javascript/node_modules/lucide-react/dist/esm/icons/bell.mjs","webpack://@logos/commerceweb-frontend/./node_modules/@faithlife/commerce-components/dist/chunk-CRU5H5P6.js","webpack://@logos/commerceweb-frontend/./node_modules/@faithlife/commerce-components/dist/chunk-QJ7P73DS.js"],"sourcesContent":["/**\n * @license lucide-react v1.27.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n  [\"path\", { d: \"M10.268 21a2 2 0 0 0 3.464 0\", key: \"vwvbt9\" }],\n  [\n    \"path\",\n    {\n      d: \"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326\",\n      key: \"11g9vi\"\n    }\n  ]\n];\nconst Bell = createLucideIcon(\"bell\", __iconNode);\n\nexport { __iconNode, Bell as default };\n//# sourceMappingURL=bell.mjs.map\n","import {\n  Notification\n} from \"./chunk-RF4LM5AK.js\";\nimport {\n  lucideIconUri\n} from \"./chunk-BEFWWR2C.js\";\nimport {\n  getStorybookDocsUrlForMolecule\n} from \"./chunk-QJ7P73DS.js\";\n\n// src/components/notification/register.tsx\nimport { Builder, withChildren } from \"@builder.io/react\";\nimport { Bell } from \"lucide-react\";\n\n// src/components/notification/builder-notification.tsx\nimport React from \"react\";\nfunction BuilderNotification({\n  builderBlock,\n  builderState,\n  isDismissed,\n  onDismiss,\n  notificationId,\n  ...props\n}) {\n  const resolvedId = notificationId ?? builderBlock?.id;\n  const dismissal = builderState?.context?.notificationDismissal;\n  const contextIsDismissed = isDismissed === void 0 && resolvedId && typeof dismissal?.isDismissed === \"function\" ? dismissal.isDismissed(resolvedId) === true : void 0;\n  const contextOnDismiss = resolvedId && typeof dismissal?.onDismiss === \"function\" ? (_notificationId, cooldownMinutes) => dismissal.onDismiss?.(resolvedId, cooldownMinutes) : void 0;\n  return /* @__PURE__ */ React.createElement(\n    Notification,\n    {\n      ...props,\n      notificationId: resolvedId,\n      isDismissed: isDismissed ?? contextIsDismissed,\n      onDismiss: onDismiss ?? contextOnDismiss\n    }\n  );\n}\n\n// src/components/notification/register.tsx\nvar NotificationWithChildren = withChildren(BuilderNotification);\nvar registerComponent = () => {\n  Builder.registerComponent(NotificationWithChildren, {\n    name: \"Notification\",\n    friendlyName: \"Notification\",\n    docsLink: getStorybookDocsUrlForMolecule(\"notification\"),\n    image: lucideIconUri(Bell),\n    canHaveChildren: true,\n    defaultChildren: [\n      {\n        \"@type\": \"@builder.io/sdk:Element\",\n        component: {\n          name: \"Text\",\n          options: {\n            text: \"<p>Notification message goes here.</p>\"\n          }\n        }\n      }\n    ],\n    inputs: [\n      {\n        name: \"kind\",\n        friendlyName: \"Kind\",\n        type: \"string\",\n        enum: [\"error\", \"warning\", \"info\", \"success\"],\n        helperText: \"Controls the background and text color of the notification.\"\n      },\n      {\n        name: \"isHidable\",\n        friendlyName: \"Allow hide\",\n        type: \"boolean\",\n        defaultValue: true\n      },\n      {\n        name: \"cooldownMinutes\",\n        friendlyName: \"Cooldown minutes\",\n        type: \"number\",\n        defaultValue: 60,\n        helperText: \"How long the site should remember a dismissal. The site decides how the dismissal is stored and honoured.\"\n      },\n      {\n        name: \"closeLabel\",\n        friendlyName: \"Close Button Accessible Label\",\n        type: \"string\",\n        advanced: true\n      }\n    ]\n  });\n};\n\nexport {\n  registerComponent\n};\n//# sourceMappingURL=chunk-CRU5H5P6.js.map","// src/config/storybook.ts\nvar STORYBOOK_BASE_URL = \"https://storybook.commercecomponents.logos.com\";\nfunction getStorybookDocsUrl(storyId) {\n  return `${STORYBOOK_BASE_URL}/?path=/story/${storyId}`;\n}\nfunction getStorybookDocsUrlForTier(tier, name, story = \"default\") {\n  const storySlug = story.toLowerCase().replace(/\\s+/g, \"-\");\n  return getStorybookDocsUrl(`${tier}-${name}--${storySlug}`);\n}\nfunction getStorybookDocsUrlForComponent(component, story = \"default\") {\n  return getStorybookDocsUrlForTier(\"components\", component, story);\n}\nfunction getStorybookDocsUrlForOrganism(organism, story = \"default\") {\n  return getStorybookDocsUrlForTier(\"organisms\", organism, story);\n}\nfunction getStorybookDocsUrlForMolecule(molecule, story = \"default\") {\n  return getStorybookDocsUrlForTier(\"molecules\", molecule, story);\n}\nfunction getStorybookDocsUrlForAtom(atom, story = \"default\") {\n  return getStorybookDocsUrlForTier(\"atoms\", atom, story);\n}\n\nexport {\n  getStorybookDocsUrl,\n  getStorybookDocsUrlForComponent,\n  getStorybookDocsUrlForOrganism,\n  getStorybookDocsUrlForMolecule,\n  getStorybookDocsUrlForAtom\n};\n//# sourceMappingURL=chunk-QJ7P73DS.js.map"],"names":["Bell","A","d","key","NotificationWithChildren","builder_react_es5","OF","builderBlock","builderState","isDismissed","onDismiss","notificationId","props","resolvedId","id","dismissal","context","notificationDismissal","contextIsDismissed","contextOnDismiss","_notificationId","cooldownMinutes","react","createElement","chunk_RF4LM5AK","E","registerComponent","M$","name","friendlyName","docsLink","chunk_QJ7P73DS","Im","image","chunk_BEFWWR2C","c","canHaveChildren","defaultChildren","component","options","text","inputs","type","enum","helperText","defaultValue","advanced","getStorybookDocsUrl","storyId","getStorybookDocsUrlForTier","tier","story","toLowerCase","replace","getStorybookDocsUrlForComponent","getStorybookDocsUrlForOrganism","organism","getStorybookDocsUrlForMolecule","molecule","getStorybookDocsUrlForAtom","atom"],"sourceRoot":""}