@anoki/fse-ui 1.0.714 → 1.0.716

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/index.cjs120.js +1 -1
  2. package/dist/index.cjs120.js.map +1 -1
  3. package/dist/index.cjs244.js +1 -1
  4. package/dist/index.cjs255.js +1 -1
  5. package/dist/index.cjs265.js +1 -1
  6. package/dist/index.cjs271.js +1 -1
  7. package/dist/index.cjs278.js +1 -1
  8. package/dist/index.cjs279.js +1 -1
  9. package/dist/index.cjs283.js +1 -1
  10. package/dist/index.cjs288.js +1 -1
  11. package/dist/index.cjs290.js +1 -1
  12. package/dist/index.cjs298.js +1 -1
  13. package/dist/index.cjs337.js +1 -1
  14. package/dist/index.cjs350.js +1 -1
  15. package/dist/index.cjs364.js +1 -1
  16. package/dist/index.cjs365.js +1 -1
  17. package/dist/index.cjs366.js +1 -1
  18. package/dist/index.cjs378.js +1 -1
  19. package/dist/index.cjs379.js +1 -1
  20. package/dist/index.cjs386.js +1 -1
  21. package/dist/index.cjs386.js.map +1 -1
  22. package/dist/index.cjs387.js +1 -1
  23. package/dist/index.cjs387.js.map +1 -1
  24. package/dist/index.cjs388.js +1 -1
  25. package/dist/index.cjs388.js.map +1 -1
  26. package/dist/index.cjs389.js +1 -1
  27. package/dist/index.cjs389.js.map +1 -1
  28. package/dist/index.cjs390.js +1 -1
  29. package/dist/index.cjs390.js.map +1 -1
  30. package/dist/index.cjs391.js +1 -1
  31. package/dist/index.cjs391.js.map +1 -1
  32. package/dist/index.cjs392.js +2 -0
  33. package/dist/index.cjs392.js.map +1 -0
  34. package/dist/index.cjs398.js +1 -1
  35. package/dist/index.cjs399.js +1 -1
  36. package/dist/index.cjs399.js.map +1 -1
  37. package/dist/index.cjs401.js +1 -1
  38. package/dist/index.cjs401.js.map +1 -1
  39. package/dist/index.cjs405.js +2 -0
  40. package/dist/index.cjs405.js.map +1 -0
  41. package/dist/index.cjs406.js +2 -0
  42. package/dist/index.cjs406.js.map +1 -0
  43. package/dist/index.cjs407.js +1 -1
  44. package/dist/index.cjs407.js.map +1 -1
  45. package/dist/index.cjs408.js +1 -1
  46. package/dist/index.cjs408.js.map +1 -1
  47. package/dist/index.cjs409.js +1 -1
  48. package/dist/index.cjs409.js.map +1 -1
  49. package/dist/index.cjs410.js +1 -1
  50. package/dist/index.cjs410.js.map +1 -1
  51. package/dist/index.cjs411.js +1 -1
  52. package/dist/index.cjs411.js.map +1 -1
  53. package/dist/index.cjs422.js +1 -1
  54. package/dist/index.cjs424.js +1 -1
  55. package/dist/index.cjs425.js +1 -1
  56. package/dist/index.cjs432.js +1 -1
  57. package/dist/index.cjs458.js +1 -1
  58. package/dist/index.cjs458.js.map +1 -1
  59. package/dist/index.cjs459.js +1 -1
  60. package/dist/index.cjs459.js.map +1 -1
  61. package/dist/index.cjs460.js +1 -1
  62. package/dist/index.cjs460.js.map +1 -1
  63. package/dist/index.cjs461.js +1 -1
  64. package/dist/index.cjs461.js.map +1 -1
  65. package/dist/index.cjs462.js +1 -1
  66. package/dist/index.cjs462.js.map +1 -1
  67. package/dist/index.cjs463.js +1 -1
  68. package/dist/index.cjs463.js.map +1 -1
  69. package/dist/index.cjs464.js +1 -1
  70. package/dist/index.cjs464.js.map +1 -1
  71. package/dist/index.cjs465.js +1 -1
  72. package/dist/index.cjs465.js.map +1 -1
  73. package/dist/index.cjs466.js +1 -1
  74. package/dist/index.cjs466.js.map +1 -1
  75. package/dist/index.cjs467.js +1 -1
  76. package/dist/index.cjs467.js.map +1 -1
  77. package/dist/index.cjs468.js +1 -1
  78. package/dist/index.cjs468.js.map +1 -1
  79. package/dist/index.cjs469.js +5 -1
  80. package/dist/index.cjs469.js.map +1 -1
  81. package/dist/index.cjs470.js +1 -1
  82. package/dist/index.cjs470.js.map +1 -1
  83. package/dist/index.cjs471.js +1 -1
  84. package/dist/index.cjs471.js.map +1 -1
  85. package/dist/index.cjs472.js +1 -1
  86. package/dist/index.cjs472.js.map +1 -1
  87. package/dist/index.cjs473.js +1 -5
  88. package/dist/index.cjs473.js.map +1 -1
  89. package/dist/index.cjs474.js +1 -1
  90. package/dist/index.cjs474.js.map +1 -1
  91. package/dist/index.cjs475.js +1 -1
  92. package/dist/index.cjs475.js.map +1 -1
  93. package/dist/index.cjs476.js +1 -1
  94. package/dist/index.cjs476.js.map +1 -1
  95. package/dist/index.cjs477.js +1 -1
  96. package/dist/index.cjs477.js.map +1 -1
  97. package/dist/index.cjs478.js +1 -1
  98. package/dist/index.cjs478.js.map +1 -1
  99. package/dist/index.cjs479.js +1 -1
  100. package/dist/index.cjs479.js.map +1 -1
  101. package/dist/index.cjs480.js +1 -1
  102. package/dist/index.cjs480.js.map +1 -1
  103. package/dist/index.d.ts +2 -1
  104. package/dist/index.es120.js +18 -17
  105. package/dist/index.es120.js.map +1 -1
  106. package/dist/index.es244.js +7 -7
  107. package/dist/index.es255.js +5 -5
  108. package/dist/index.es265.js +1 -1
  109. package/dist/index.es271.js +13 -13
  110. package/dist/index.es278.js +1 -1
  111. package/dist/index.es279.js +1 -1
  112. package/dist/index.es283.js +1 -1
  113. package/dist/index.es288.js +1 -1
  114. package/dist/index.es290.js +1 -1
  115. package/dist/index.es298.js +5 -5
  116. package/dist/index.es337.js +4 -4
  117. package/dist/index.es350.js +8 -8
  118. package/dist/index.es364.js +3 -3
  119. package/dist/index.es365.js +2 -2
  120. package/dist/index.es366.js +3 -3
  121. package/dist/index.es378.js +1 -1
  122. package/dist/index.es379.js +1 -1
  123. package/dist/index.es386.js +5 -25
  124. package/dist/index.es386.js.map +1 -1
  125. package/dist/index.es387.js +23 -64
  126. package/dist/index.es387.js.map +1 -1
  127. package/dist/index.es388.js +64 -48
  128. package/dist/index.es388.js.map +1 -1
  129. package/dist/index.es389.js +51 -33
  130. package/dist/index.es389.js.map +1 -1
  131. package/dist/index.es390.js +32 -620
  132. package/dist/index.es390.js.map +1 -1
  133. package/dist/index.es391.js +621 -10
  134. package/dist/index.es391.js.map +1 -1
  135. package/dist/index.es392.js +14 -0
  136. package/dist/index.es392.js.map +1 -0
  137. package/dist/index.es398.js +1 -1
  138. package/dist/index.es399.js +15 -2
  139. package/dist/index.es399.js.map +1 -1
  140. package/dist/index.es400.js +2 -2
  141. package/dist/index.es401.js +2 -15
  142. package/dist/index.es401.js.map +1 -1
  143. package/dist/index.es405.js +128 -0
  144. package/dist/index.es405.js.map +1 -0
  145. package/dist/index.es406.js +138 -0
  146. package/dist/index.es406.js.map +1 -0
  147. package/dist/index.es407.js +13 -124
  148. package/dist/index.es407.js.map +1 -1
  149. package/dist/index.es408.js +14 -134
  150. package/dist/index.es408.js.map +1 -1
  151. package/dist/index.es409.js +7 -12
  152. package/dist/index.es409.js.map +1 -1
  153. package/dist/index.es410.js +50 -15
  154. package/dist/index.es410.js.map +1 -1
  155. package/dist/index.es411.js +54 -9
  156. package/dist/index.es411.js.map +1 -1
  157. package/dist/index.es422.js +3 -3
  158. package/dist/index.es424.js +3 -3
  159. package/dist/index.es425.js +6 -6
  160. package/dist/index.es432.js +1 -1
  161. package/dist/index.es458.js +5 -2032
  162. package/dist/index.es458.js.map +1 -1
  163. package/dist/index.es459.js +4 -60
  164. package/dist/index.es459.js.map +1 -1
  165. package/dist/index.es460.js +4 -188
  166. package/dist/index.es460.js.map +1 -1
  167. package/dist/index.es461.js +10 -5
  168. package/dist/index.es461.js.map +1 -1
  169. package/dist/index.es462.js +56 -4
  170. package/dist/index.es462.js.map +1 -1
  171. package/dist/index.es463.js +7 -4
  172. package/dist/index.es463.js.map +1 -1
  173. package/dist/index.es464.js +5 -9
  174. package/dist/index.es464.js.map +1 -1
  175. package/dist/index.es465.js +524 -47
  176. package/dist/index.es465.js.map +1 -1
  177. package/dist/index.es466.js +2031 -7
  178. package/dist/index.es466.js.map +1 -1
  179. package/dist/index.es467.js +59 -5
  180. package/dist/index.es467.js.map +1 -1
  181. package/dist/index.es468.js +180 -524
  182. package/dist/index.es468.js.map +1 -1
  183. package/dist/index.es469.js +39 -9
  184. package/dist/index.es469.js.map +1 -1
  185. package/dist/index.es470.js +2 -178
  186. package/dist/index.es470.js.map +1 -1
  187. package/dist/index.es471.js +2 -4
  188. package/dist/index.es471.js.map +1 -1
  189. package/dist/index.es472.js +2 -133
  190. package/dist/index.es472.js.map +1 -1
  191. package/dist/index.es473.js +3 -40
  192. package/dist/index.es473.js.map +1 -1
  193. package/dist/index.es474.js +2 -2
  194. package/dist/index.es474.js.map +1 -1
  195. package/dist/index.es475.js +4 -2
  196. package/dist/index.es475.js.map +1 -1
  197. package/dist/index.es476.js +5 -2
  198. package/dist/index.es476.js.map +1 -1
  199. package/dist/index.es477.js +10 -3
  200. package/dist/index.es477.js.map +1 -1
  201. package/dist/index.es478.js +178 -2
  202. package/dist/index.es478.js.map +1 -1
  203. package/dist/index.es479.js +3 -3
  204. package/dist/index.es479.js.map +1 -1
  205. package/dist/index.es480.js +132 -4
  206. package/dist/index.es480.js.map +1 -1
  207. package/dist/sections/HomeServices/HomeServices.css +1 -1
  208. package/dist/sections/WhatDoYouNeed/WhatDoYouNeed.css +1 -1
  209. package/package.json +1 -1
  210. package/dist/index.cjs385.js +0 -2
  211. package/dist/index.cjs385.js.map +0 -1
  212. package/dist/index.cjs412.js +0 -2
  213. package/dist/index.cjs412.js.map +0 -1
  214. package/dist/index.cjs413.js +0 -2
  215. package/dist/index.cjs413.js.map +0 -1
  216. package/dist/index.es385.js +0 -10
  217. package/dist/index.es385.js.map +0 -1
  218. package/dist/index.es412.js +0 -53
  219. package/dist/index.es412.js.map +0 -1
  220. package/dist/index.es413.js +0 -57
  221. package/dist/index.es413.js.map +0 -1
  222. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
  223. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs480.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js"],"sourcesContent":["import{breakpoints as o}from\"../props/prop-def.js\";function i(e){return typeof e==\"object\"&&Object.keys(e).some(s=>o.includes(s))}export{i as isResponsiveObject};\n//# sourceMappingURL=is-responsive-object.js.map\n"],"names":["s","o"],"mappings":"qHAAmD,SAAS,EAAE,EAAE,CAAC,OAAO,OAAO,GAAG,UAAU,OAAO,KAAK,CAAC,EAAE,KAAKA,GAAGC,EAAC,YAAC,SAASD,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs480.js","sources":["../node_modules/swiper/shared/ssr-window.esm.mjs"],"sourcesContent":["/**\n * SSR Window 5.0.0\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2025, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: February 12, 2025\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n if (target === void 0) {\n target = {};\n }\n if (src === void 0) {\n src = {};\n }\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n Object.keys(src).filter(key => noExtend.indexOf(key) < 0).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { getWindow as a, getDocument as g };\n"],"names":["isObject","obj","extend","target","src","noExtend","key","ssrDocument","getDocument","doc","ssrWindow","callback","id","getWindow","win"],"mappings":"gFAYA,SAASA,EAASC,EAAK,CACrB,OAAOA,IAAQ,MAAQ,OAAOA,GAAQ,UAAY,gBAAiBA,GAAOA,EAAI,cAAgB,MAChG,CACA,SAASC,EAAOC,EAAQC,EAAK,CACvBD,IAAW,SACbA,EAAS,CAAE,GAETC,IAAQ,SACVA,EAAM,CAAE,GAEV,MAAMC,EAAW,CAAC,YAAa,cAAe,WAAW,EACzD,OAAO,KAAKD,CAAG,EAAE,OAAOE,GAAOD,EAAS,QAAQC,CAAG,EAAI,CAAC,EAAE,QAAQA,GAAO,CACnE,OAAOH,EAAOG,CAAG,EAAM,IAAaH,EAAOG,CAAG,EAAIF,EAAIE,CAAG,EAAWN,EAASI,EAAIE,CAAG,CAAC,GAAKN,EAASG,EAAOG,CAAG,CAAC,GAAK,OAAO,KAAKF,EAAIE,CAAG,CAAC,EAAE,OAAS,GACpJJ,EAAOC,EAAOG,CAAG,EAAGF,EAAIE,CAAG,CAAC,CAElC,CAAG,CACH,CACA,MAAMC,EAAc,CAClB,KAAM,CAAE,EACR,kBAAmB,CAAE,EACrB,qBAAsB,CAAE,EACxB,cAAe,CACb,MAAO,CAAE,EACT,SAAU,EACX,EACD,eAAgB,CACd,OAAO,IACR,EACD,kBAAmB,CACjB,MAAO,CAAE,CACV,EACD,gBAAiB,CACf,OAAO,IACR,EACD,aAAc,CACZ,MAAO,CACL,WAAY,CAAA,CACb,CACF,EACD,eAAgB,CACd,MAAO,CACL,SAAU,CAAE,EACZ,WAAY,CAAE,EACd,MAAO,CAAE,EACT,cAAe,CAAE,EACjB,sBAAuB,CACrB,MAAO,CAAE,CACjB,CACK,CACF,EACD,iBAAkB,CAChB,MAAO,CAAE,CACV,EACD,YAAa,CACX,OAAO,IACR,EACD,SAAU,CACR,KAAM,GACN,KAAM,GACN,SAAU,GACV,KAAM,GACN,OAAQ,GACR,SAAU,GACV,SAAU,GACV,OAAQ,EACZ,CACA,EACA,SAASC,GAAc,CACrB,MAAMC,EAAM,OAAO,SAAa,IAAc,SAAW,CAAE,EAC3D,OAAAP,EAAOO,EAAKF,CAAW,EAChBE,CACT,CACA,MAAMC,EAAY,CAChB,SAAUH,EACV,UAAW,CACT,UAAW,EACZ,EACD,SAAU,CACR,KAAM,GACN,KAAM,GACN,SAAU,GACV,KAAM,GACN,OAAQ,GACR,SAAU,GACV,SAAU,GACV,OAAQ,EACT,EACD,QAAS,CACP,cAAe,CAAE,EACjB,WAAY,CAAE,EACd,IAAK,CAAE,EACP,MAAO,CAAA,CACR,EACD,YAAa,UAAuB,CAClC,OAAO,IACR,EACD,kBAAmB,CAAE,EACrB,qBAAsB,CAAE,EACxB,kBAAmB,CACjB,MAAO,CACL,kBAAmB,CACjB,MAAO,EACf,CACK,CACF,EACD,OAAQ,CAAE,EACV,MAAO,CAAE,EACT,OAAQ,CAAE,EACV,YAAa,CAAE,EACf,cAAe,CAAE,EACjB,YAAa,CACX,MAAO,CAAE,CACV,EACD,sBAAsBI,EAAU,CAC9B,OAAI,OAAO,WAAe,KACxBA,EAAU,EACH,MAEF,WAAWA,EAAU,CAAC,CAC9B,EACD,qBAAqBC,EAAI,CACnB,OAAO,WAAe,KAG1B,aAAaA,CAAE,CACnB,CACA,EACA,SAASC,GAAY,CACnB,MAAMC,EAAM,OAAO,OAAW,IAAc,OAAS,CAAE,EACvD,OAAAZ,EAAOY,EAAKJ,CAAS,EACdI,CACT","x_google_ignoreList":[0]}
package/dist/index.d.ts CHANGED
@@ -2148,13 +2148,14 @@ export declare const Visible: ({ width, height, className, color, }: IconProps)
2148
2148
 
2149
2149
  declare type WeekDaysMap = Record<keyof OpeningHours, string>;
2150
2150
 
2151
- export declare const WhatDoYouNeed: ({ title, description, links, asLink, }: WhatDoYouNeedProps) => JSX.Element;
2151
+ export declare const WhatDoYouNeed: ({ title, description, links, asLink, showBlueBackground, }: WhatDoYouNeedProps) => JSX.Element;
2152
2152
 
2153
2153
  declare type WhatDoYouNeedProps = PropsWithChildren<{
2154
2154
  title: ReactNode;
2155
2155
  description?: ReactNode;
2156
2156
  links: EnhancedSectionLink[];
2157
2157
  asLink?: "a" | ComponentType<any>;
2158
+ showBlueBackground?: boolean;
2158
2159
  }>;
2159
2160
 
2160
2161
  export declare const Whatsapp: ({ className, height, width }: IconProps) => JSX.Element;
@@ -1,17 +1,18 @@
1
1
  import { j as e } from "./index.es212.js";
2
2
  import './sections/WhatDoYouNeed/WhatDoYouNeed.css';/* empty css */
3
3
  import { Section as r } from "./index.es47.js";
4
- import { Col as c } from "./index.es10.js";
5
- import { Button as m } from "./index.es25.js";
6
- const f = ({
4
+ import { Col as m } from "./index.es10.js";
5
+ import { Button as u } from "./index.es25.js";
6
+ const y = ({
7
7
  title: t,
8
- description: i,
8
+ description: a,
9
9
  links: o,
10
- asLink: n = "a"
11
- }) => /* @__PURE__ */ e.jsxs(r, { className: "base-col ui-what-do-you-need-section", children: [
12
- /* @__PURE__ */ e.jsxs(c, { className: "ui-what-do-you-need-content", children: [
10
+ asLink: n = "a",
11
+ showBlueBackground: l = !1
12
+ }) => /* @__PURE__ */ e.jsxs(r, { className: `base-col ui-what-do-you-need-section ${l ? "blue-background" : ""}`, children: [
13
+ /* @__PURE__ */ e.jsxs(m, { className: "ui-what-do-you-need-content", children: [
13
14
  /* @__PURE__ */ e.jsx(r.Title, { fs: "2", children: t }),
14
- i && /* @__PURE__ */ e.jsx(r.Description, { children: i })
15
+ a && /* @__PURE__ */ e.jsx(r.Description, { children: a })
15
16
  ] }),
16
17
  /* @__PURE__ */ e.jsx(
17
18
  "ul",
@@ -19,22 +20,22 @@ const f = ({
19
20
  role: "list",
20
21
  "aria-label": `Lista di ${t}`,
21
22
  className: "list-style-none ui-what-do-you-need-links",
22
- children: o == null ? void 0 : o.map(({ link: s, title: l, isNewTab: a }, d) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
23
- m,
23
+ children: o == null ? void 0 : o.map(({ link: i, title: d, isNewTab: s }, c) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
24
+ u,
24
25
  {
25
26
  asLink: n,
26
- href: s,
27
+ href: i,
27
28
  size: "2",
28
- variant: d > 0 ? "secondary" : "primary",
29
- target: a ? "_blank" : void 0,
30
- rel: a ? "noopener noreferrer" : void 0,
31
- children: l
29
+ variant: c > 0 ? "secondary" : "primary",
30
+ target: s ? "_blank" : void 0,
31
+ rel: s ? "noopener noreferrer" : void 0,
32
+ children: d
32
33
  }
33
- ) }, s))
34
+ ) }, i))
34
35
  }
35
36
  )
36
37
  ] });
37
38
  export {
38
- f as WhatDoYouNeed
39
+ y as WhatDoYouNeed
39
40
  };
40
41
  //# sourceMappingURL=index.es120.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es120.js","sources":["../src/sections/WhatDoYouNeed/index.tsx"],"sourcesContent":["import { Button, Col, Section } from \"@/components\";\nimport { SectionLink } from \"@anoki/fse-common\";\nimport \"./WhatDoYouNeed.scss\";\nimport { ComponentType, PropsWithChildren, ReactNode } from \"react\";\n\ntype WhatDoYouNeedProps = PropsWithChildren<{\n title: ReactNode;\n description?: ReactNode;\n links: EnhancedSectionLink[];\n asLink?: \"a\" | ComponentType<any>;\n}>;\n\ntype EnhancedSectionLink = SectionLink & {\n isNewTab?: boolean;\n};\n\nexport const WhatDoYouNeed = ({\n title,\n description,\n links,\n asLink = \"a\",\n}: WhatDoYouNeedProps) => {\n return (\n <Section className=\"base-col ui-what-do-you-need-section\">\n <Col className=\"ui-what-do-you-need-content\">\n <Section.Title fs=\"2\">{title}</Section.Title>\n {description && (\n <Section.Description>{description}</Section.Description>\n )}\n </Col>\n <ul\n role=\"list\"\n aria-label={`Lista di ${title}`}\n className=\"list-style-none ui-what-do-you-need-links\"\n >\n {links?.map(({ link, title, isNewTab }, index) => (\n <li key={link}>\n <Button\n asLink={asLink}\n href={link}\n size=\"2\"\n variant={index > 0 ? \"secondary\" : \"primary\"}\n // textColor={index > 0 ? \"primary\" : undefined}\n // bg={index > 0 ? \"white\" : undefined}\n // className={index > 0 ? \"br-color-primary\" : undefined}\n target={isNewTab ? \"_blank\" : undefined}\n rel={isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {title}\n </Button>\n </li>\n ))}\n </ul>\n </Section>\n );\n};\n"],"names":["WhatDoYouNeed","title","description","links","asLink","jsxs","Section","Col","jsx","link","isNewTab","index","Button"],"mappings":";;;;;AAgBO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC,IAAS;AACX,MAEIC,gBAAAA,EAAA,KAACC,GAAQ,EAAA,WAAU,wCACjB,UAAA;AAAA,EAACD,gBAAAA,EAAAA,KAAAE,GAAA,EAAI,WAAU,+BACb,UAAA;AAAA,IAAAC,gBAAAA,EAAA,IAACF,EAAQ,OAAR,EAAc,IAAG,KAAK,UAAML,GAAA;AAAA,IAC5BC,KACCM,gBAAAA,EAAA,IAACF,EAAQ,aAAR,EAAqB,UAAYJ,EAAA,CAAA;AAAA,EAAA,GAEtC;AAAA,EACAM,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAY,YAAYP,CAAK;AAAA,MAC7B,WAAU;AAAA,MAET,UAAAE,KAAA,gBAAAA,EAAO,IAAI,CAAC,EAAE,MAAAM,GAAM,OAAAR,GAAO,UAAAS,EAAS,GAAGC,MACtCH,gBAAAA,EAAAA,IAAC,MACC,EAAA,UAAAA,gBAAAA,EAAA;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,QAAAR;AAAA,UACA,MAAMK;AAAA,UACN,MAAK;AAAA,UACL,SAASE,IAAQ,IAAI,cAAc;AAAA,UAInC,QAAQD,IAAW,WAAW;AAAA,UAC9B,KAAKA,IAAW,wBAAwB;AAAA,UAEvC,UAAAT;AAAAA,QAAA;AAAA,MACH,EAAA,GAbOQ,CAcT;AAAA,IACD;AAAA,EAAA;AACH,GACF;"}
1
+ {"version":3,"file":"index.es120.js","sources":["../src/sections/WhatDoYouNeed/index.tsx"],"sourcesContent":["import { Button, Col, Section } from \"@/components\";\nimport { SectionLink } from \"@anoki/fse-common\";\nimport \"./WhatDoYouNeed.scss\";\nimport { ComponentType, PropsWithChildren, ReactNode } from \"react\";\n\ntype WhatDoYouNeedProps = PropsWithChildren<{\n title: ReactNode;\n description?: ReactNode;\n links: EnhancedSectionLink[];\n asLink?: \"a\" | ComponentType<any>;\n showBlueBackground?: boolean;\n}>;\n\ntype EnhancedSectionLink = SectionLink & {\n isNewTab?: boolean;\n};\n\nexport const WhatDoYouNeed = ({\n title,\n description,\n links,\n asLink = \"a\",\n showBlueBackground = false,\n}: WhatDoYouNeedProps) => {\n return (\n <Section className={`base-col ui-what-do-you-need-section ${showBlueBackground ? \"blue-background\" : \"\"}`}>\n <Col className=\"ui-what-do-you-need-content\">\n <Section.Title fs=\"2\">{title}</Section.Title>\n {description && (\n <Section.Description>{description}</Section.Description>\n )}\n </Col>\n <ul\n role=\"list\"\n aria-label={`Lista di ${title}`}\n className=\"list-style-none ui-what-do-you-need-links\"\n >\n {links?.map(({ link, title, isNewTab }, index) => (\n <li key={link}>\n <Button\n asLink={asLink}\n href={link}\n size=\"2\"\n variant={index > 0 ? \"secondary\" : \"primary\"}\n // textColor={index > 0 ? \"primary\" : undefined}\n // bg={index > 0 ? \"white\" : undefined}\n // className={index > 0 ? \"br-color-primary\" : undefined}\n target={isNewTab ? \"_blank\" : undefined}\n rel={isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {title}\n </Button>\n </li>\n ))}\n </ul>\n </Section>\n );\n};\n"],"names":["WhatDoYouNeed","title","description","links","asLink","showBlueBackground","Section","jsxs","Col","jsx","link","isNewTab","index","Button"],"mappings":";;;;;AAiBO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,oBAAAC,IAAqB;AACvB,6BAEKC,GAAQ,EAAA,WAAW,wCAAwCD,IAAqB,oBAAoB,EAAE,IACrG,UAAA;AAAA,EAACE,gBAAAA,EAAAA,KAAAC,GAAA,EAAI,WAAU,+BACb,UAAA;AAAA,IAAAC,gBAAAA,EAAA,IAACH,EAAQ,OAAR,EAAc,IAAG,KAAK,UAAML,GAAA;AAAA,IAC5BC,KACCO,gBAAAA,EAAA,IAACH,EAAQ,aAAR,EAAqB,UAAYJ,EAAA,CAAA;AAAA,EAAA,GAEtC;AAAA,EACAO,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAY,YAAYR,CAAK;AAAA,MAC7B,WAAU;AAAA,MAET,UAAAE,KAAA,gBAAAA,EAAO,IAAI,CAAC,EAAE,MAAAO,GAAM,OAAAT,GAAO,UAAAU,EAAS,GAAGC,MACtCH,gBAAAA,EAAAA,IAAC,MACC,EAAA,UAAAA,gBAAAA,EAAA;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,QAAAT;AAAA,UACA,MAAMM;AAAA,UACN,MAAK;AAAA,UACL,SAASE,IAAQ,IAAI,cAAc;AAAA,UAInC,QAAQD,IAAW,WAAW;AAAA,UAC9B,KAAKA,IAAW,wBAAwB;AAAA,UAEvC,UAAAV;AAAAA,QAAA;AAAA,MACH,EAAA,GAbOS,CAcT;AAAA,IACD;AAAA,EAAA;AACH,GACF;"}
@@ -1,11 +1,11 @@
1
1
  import * as p from "react";
2
- import { composeEventHandlers as m } from "./index.es385.js";
3
- import { composeRefs as E } from "./index.es386.js";
4
- import { createContextScope as S } from "./index.es387.js";
5
- import { useControllableState as P } from "./index.es388.js";
6
- import { Primitive as y } from "./index.es389.js";
7
- import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.es390.js";
8
- import { useId as g } from "./index.es391.js";
2
+ import { composeEventHandlers as m } from "./index.es386.js";
3
+ import { composeRefs as E } from "./index.es387.js";
4
+ import { createContextScope as S } from "./index.es388.js";
5
+ import { useControllableState as P } from "./index.es389.js";
6
+ import { Primitive as y } from "./index.es390.js";
7
+ import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.es391.js";
8
+ import { useId as g } from "./index.es392.js";
9
9
  import { j as a } from "./index.es212.js";
10
10
  var f = "DropdownMenu", [z, bo] = S(
11
11
  f,
@@ -1,12 +1,12 @@
1
1
  import * as c from "react";
2
- import { useComposedRefs as j } from "./index.es386.js";
3
- import { createContextScope as F } from "./index.es387.js";
4
- import { composeEventHandlers as S } from "./index.es385.js";
5
- import { useControllableState as L } from "./index.es388.js";
2
+ import { useComposedRefs as j } from "./index.es387.js";
3
+ import { createContextScope as F } from "./index.es388.js";
4
+ import { composeEventHandlers as S } from "./index.es386.js";
5
+ import { useControllableState as L } from "./index.es389.js";
6
6
  import { usePrevious as O } from "./index.es396.js";
7
7
  import { useSize as H } from "./index.es397.js";
8
8
  import { Presence as z } from "./index.es398.js";
9
- import { Primitive as E } from "./index.es389.js";
9
+ import { Primitive as E } from "./index.es390.js";
10
10
  import { j as u } from "./index.es212.js";
11
11
  var R = "Checkbox", [G, ne] = F(R), [K, P] = G(R);
12
12
  function U(t) {
@@ -1,4 +1,4 @@
1
- import { useCopyToClipboard as s } from "./index.es401.js";
1
+ import { useCopyToClipboard as s } from "./index.es399.js";
2
2
  import { useState as i } from "react";
3
3
  const d = () => {
4
4
  const [e, t] = s(), [p, o] = i(!1);
@@ -1,18 +1,18 @@
1
1
  import * as s from "react";
2
- import { composeEventHandlers as p } from "./index.es385.js";
3
- import { useComposedRefs as R } from "./index.es386.js";
4
- import { createContextScope as B, createContext as H } from "./index.es387.js";
5
- import { useId as C } from "./index.es391.js";
6
- import { useControllableState as V } from "./index.es388.js";
7
- import { DismissableLayer as q } from "./index.es407.js";
8
- import { FocusScope as K } from "./index.es408.js";
9
- import { Portal as U } from "./index.es409.js";
2
+ import { composeEventHandlers as p } from "./index.es386.js";
3
+ import { useComposedRefs as R } from "./index.es387.js";
4
+ import { createContextScope as B, createContext as H } from "./index.es388.js";
5
+ import { useId as C } from "./index.es392.js";
6
+ import { useControllableState as V } from "./index.es389.js";
7
+ import { DismissableLayer as q } from "./index.es405.js";
8
+ import { FocusScope as K } from "./index.es406.js";
9
+ import { Portal as U } from "./index.es407.js";
10
10
  import { Presence as _ } from "./index.es398.js";
11
- import { Primitive as m } from "./index.es389.js";
12
- import { useFocusGuards as Y } from "./index.es410.js";
13
- import Z from "./index.es411.js";
14
- import { hideOthers as z } from "./index.es412.js";
15
- import { createSlot as J } from "./index.es413.js";
11
+ import { Primitive as m } from "./index.es390.js";
12
+ import { useFocusGuards as Y } from "./index.es408.js";
13
+ import Z from "./index.es409.js";
14
+ import { hideOthers as z } from "./index.es410.js";
15
+ import { createSlot as J } from "./index.es411.js";
16
16
  import { j as i } from "./index.es212.js";
17
17
  var v = "Dialog", [N, he] = B(v), [Q, u] = N(v), P = (e) => {
18
18
  const {
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "./index.es212.js";
2
- import './components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css';/* empty css */
2
+ import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
3
3
  const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
4
4
  export {
5
5
  s as ConsentModalFooter
@@ -1,6 +1,6 @@
1
1
  import { j as n } from "./index.es212.js";
2
2
  import { clsx as r } from "./index.es214.js";
3
- import './components/ui/DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css';/* empty css */
3
+ import './components/ui/ConsentModal/ConsentModalContent/ConsentModalContent.css';/* empty css */
4
4
  const i = ({
5
5
  overrideClassNames: o,
6
6
  children: t
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "./index.es212.js";
2
- import './components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css';/* empty css */
2
+ import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
3
3
  const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
4
4
  export {
5
5
  s as DoctorModalFooter
@@ -1,6 +1,6 @@
1
1
  import { j as r } from "./index.es212.js";
2
2
  import { clsx as m } from "./index.es214.js";
3
- import './components/ui/DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css';/* empty css */
3
+ import './components/ui/ConsentModal/ConsentModalContent/ConsentModalContent.css';/* empty css */
4
4
  const e = ({
5
5
  overrideClassNames: o,
6
6
  children: t
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "./index.es212.js";
2
- import './components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css';/* empty css */
2
+ import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
3
3
  const s = ({
4
4
  children: o
5
5
  }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
@@ -1,11 +1,11 @@
1
1
  import * as r from "react";
2
- import { composeEventHandlers as N } from "./index.es385.js";
3
- import { useComposedRefs as x } from "./index.es386.js";
4
- import { createContextScope as T } from "./index.es387.js";
5
- import { useControllableState as I } from "./index.es388.js";
2
+ import { composeEventHandlers as N } from "./index.es386.js";
3
+ import { useComposedRefs as x } from "./index.es387.js";
4
+ import { createContextScope as T } from "./index.es388.js";
5
+ import { useControllableState as I } from "./index.es389.js";
6
6
  import { usePrevious as M } from "./index.es396.js";
7
7
  import { useSize as H } from "./index.es397.js";
8
- import { Primitive as P } from "./index.es389.js";
8
+ import { Primitive as P } from "./index.es390.js";
9
9
  import { j as u } from "./index.es212.js";
10
10
  var h = "Switch", [A, K] = T(h), [U, q] = A(h), R = r.forwardRef(
11
11
  (t, a) => {
@@ -1,9 +1,9 @@
1
1
  import * as l from "react";
2
- import { createContextScope as T } from "./index.es387.js";
3
- import { useComposedRefs as A } from "./index.es386.js";
2
+ import { createContextScope as T } from "./index.es388.js";
3
+ import { useComposedRefs as A } from "./index.es387.js";
4
4
  import { createDialogScope as v, Root as O, Portal as j, Overlay as b, WarningProvider as w, Content as M, Title as I, Description as L, Close as f, Trigger as $ } from "./index.es271.js";
5
- import { composeEventHandlers as F } from "./index.es385.js";
6
- import { createSlottable as G } from "./index.es413.js";
5
+ import { composeEventHandlers as F } from "./index.es386.js";
6
+ import { createSlottable as G } from "./index.es411.js";
7
7
  import { j as i } from "./index.es212.js";
8
8
  var D = "AlertDialog", [W, te] = T(D, [
9
9
  v
@@ -1,12 +1,12 @@
1
1
  import * as e from "react";
2
- import l from "./index.es461.js";
3
- import { scrollAreaPropDefs as r } from "./index.es462.js";
4
- import { extractMarginProps as E } from "./index.es463.js";
5
- import { getMarginStyles as z } from "./index.es464.js";
6
- import { getResponsiveClassNames as i } from "./index.es465.js";
7
- import { getSubtree as C } from "./index.es466.js";
8
- import { mergeStyles as R } from "./index.es467.js";
9
- import { Root as V, Viewport as $, Scrollbar as m, Thumb as n, Corner as w } from "./index.es468.js";
2
+ import l from "./index.es458.js";
3
+ import { scrollAreaPropDefs as r } from "./index.es459.js";
4
+ import { extractMarginProps as E } from "./index.es460.js";
5
+ import { getMarginStyles as z } from "./index.es461.js";
6
+ import { getResponsiveClassNames as i } from "./index.es462.js";
7
+ import { getSubtree as C } from "./index.es463.js";
8
+ import { mergeStyles as R } from "./index.es464.js";
9
+ import { Root as V, Viewport as $, Scrollbar as m, Thumb as n, Corner as w } from "./index.es465.js";
10
10
  const D = e.forwardRef((p, u) => {
11
11
  const { rest: d, ...f } = E(p), [S, N] = z(f), { asChild: t, children: A, className: b, style: h, type: s, scrollHideDelay: y = s !== "scroll" ? 0 : void 0, dir: P, size: o = r.size.default, radius: c = r.radius.default, scrollbars: a = r.scrollbars.default, ...v } = d;
12
12
  return e.createElement(V, { type: s, scrollHideDelay: y, className: l("rt-ScrollAreaRoot", S, b), style: R(N, h), asChild: t }, C({ asChild: t, children: A }, (g) => e.createElement(e.Fragment, null, e.createElement($, { ...v, ref: u, className: "rt-ScrollAreaViewport" }, g), e.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), a !== "vertical" ? e.createElement(m, { "data-radius": c, orientation: "horizontal", className: l("rt-ScrollAreaScrollbar", i({ className: "rt-r-size", value: o, propValues: r.size.values })) }, e.createElement(n, { className: "rt-ScrollAreaThumb" })) : null, a !== "horizontal" ? e.createElement(m, { "data-radius": c, orientation: "vertical", className: l("rt-ScrollAreaScrollbar", i({ className: "rt-r-size", value: o, propValues: r.size.values })) }, e.createElement(n, { className: "rt-ScrollAreaThumb" })) : null, a === "both" ? e.createElement(w, { className: "rt-ScrollAreaCorner" }) : null)));
@@ -1,7 +1,7 @@
1
1
  import a, { forwardRef as W, useState as P, useRef as u, useEffect as _, createContext as q, useLayoutEffect as Q } from "react";
2
- import { S as X } from "./index.es458.js";
3
- import { g as Y, m as Z, a as ee, u as re } from "./index.es459.js";
4
- import { d as D, w as te, n as ne, b as se, a as ae, e as V, u as ie } from "./index.es460.js";
2
+ import { S as X } from "./index.es466.js";
3
+ import { g as Y, m as Z, a as ee, u as re } from "./index.es467.js";
4
+ import { d as D, w as te, n as ne, b as se, a as ae, e as V, u as ie } from "./index.es468.js";
5
5
  function k() {
6
6
  return k = Object.assign ? Object.assign.bind() : function(n) {
7
7
  for (var r = 1; r < arguments.length; r++) {
@@ -1,5 +1,5 @@
1
- import { c as w } from "./index.es469.js";
2
- import { m as l } from "./index.es470.js";
1
+ import { c as w } from "./index.es477.js";
2
+ import { m as l } from "./index.es478.js";
3
3
  function N(x) {
4
4
  let {
5
5
  swiper: a,
@@ -1,6 +1,6 @@
1
- import { c as $ } from "./index.es471.js";
2
- import { c as F } from "./index.es469.js";
3
- import { m, a as E, f as T, h as S } from "./index.es470.js";
1
+ import { c as $ } from "./index.es479.js";
2
+ import { c as F } from "./index.es477.js";
3
+ import { m, a as E, f as T, h as S } from "./index.es478.js";
4
4
  function N(I) {
5
5
  let {
6
6
  swiper: e,
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index.es399.js";
1
+ import { __exports as e } from "./index.es400.js";
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -1,4 +1,4 @@
1
- import { __exports as u } from "./index.es400.js";
1
+ import { __exports as u } from "./index.es401.js";
2
2
  import B from "react";
3
3
  /**
4
4
  * @license React
@@ -1,30 +1,10 @@
1
- import * as f from "react";
2
- function l(n, o) {
3
- if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
6
- }
7
- function i(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = l(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
13
- });
14
- if (u)
15
- return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : l(n[t], null);
19
- }
20
- };
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
21
5
  };
22
6
  }
23
- function s(...n) {
24
- return f.useCallback(i(...n), n);
25
- }
26
7
  export {
27
- i as composeRefs,
28
- s as useComposedRefs
8
+ h as composeEventHandlers
29
9
  };
30
10
  //# sourceMappingURL=index.es386.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es386.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es386.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AACA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAM,IAAG,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE5B;AACH;","x_google_ignoreList":[0]}
@@ -1,71 +1,30 @@
1
- import * as u from "react";
2
- import { j as h } from "./index.es212.js";
3
- function j(e, c) {
4
- const o = u.createContext(c), a = (r) => {
5
- const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
- return /* @__PURE__ */ h.jsx(o.Provider, { value: s, children: t });
7
- };
8
- a.displayName = e + "Provider";
9
- function i(r) {
10
- const t = u.useContext(o);
11
- if (t) return t;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${e}\``);
14
- }
15
- return [a, i];
1
+ import * as f from "react";
2
+ function l(n, o) {
3
+ if (typeof n == "function")
4
+ return n(o);
5
+ n != null && (n.current = o);
16
6
  }
17
- function w(e, c = []) {
18
- let o = [];
19
- function a(r, t) {
20
- const n = u.createContext(t), s = o.length;
21
- o = [...o, t];
22
- const d = (m) => {
23
- var S;
24
- const { scope: x, children: C, ...p } = m, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => p, Object.values(p));
25
- return /* @__PURE__ */ h.jsx(v.Provider, { value: P, children: C });
26
- };
27
- d.displayName = r + "Provider";
28
- function f(m, x) {
29
- var v;
30
- const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, p = u.useContext(C);
31
- if (p) return p;
32
- if (t !== void 0) return t;
33
- throw new Error(`\`${m}\` must be used within \`${r}\``);
34
- }
35
- return [d, f];
36
- }
37
- const i = () => {
38
- const r = o.map((t) => u.createContext(t));
39
- return function(n) {
40
- const s = (n == null ? void 0 : n[e]) || r;
41
- return u.useMemo(
42
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
- [n, s]
44
- );
45
- };
7
+ function i(...n) {
8
+ return (o) => {
9
+ let u = !1;
10
+ const c = n.map((t) => {
11
+ const e = l(t, o);
12
+ return !u && typeof e == "function" && (u = !0), e;
13
+ });
14
+ if (u)
15
+ return () => {
16
+ for (let t = 0; t < c.length; t++) {
17
+ const e = c[t];
18
+ typeof e == "function" ? e() : l(n[t], null);
19
+ }
20
+ };
46
21
  };
47
- return i.scopeName = e, [a, l(i, ...c)];
48
22
  }
49
- function l(...e) {
50
- const c = e[0];
51
- if (e.length === 1) return c;
52
- const o = () => {
53
- const a = e.map((i) => ({
54
- useScope: i(),
55
- scopeName: i.scopeName
56
- }));
57
- return function(r) {
58
- const t = a.reduce((n, { useScope: s, scopeName: d }) => {
59
- const m = s(r)[`__scope${d}`];
60
- return { ...n, ...m };
61
- }, {});
62
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
- };
64
- };
65
- return o.scopeName = c.scopeName, o;
23
+ function s(...n) {
24
+ return f.useCallback(i(...n), n);
66
25
  }
67
26
  export {
68
- j as createContext,
69
- w as createContextScope
27
+ i as composeRefs,
28
+ s as useComposedRefs
70
29
  };
71
30
  //# sourceMappingURL=index.es387.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es387.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es387.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}