@foxford/ui 2.119.0-beta-3939fb6-20260713 → 2.119.0

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 (149) hide show
  1. package/components/Alert/Alert.js +1 -1
  2. package/components/Alert/Alert.js.map +1 -1
  3. package/components/Alert/Alert.mjs +1 -1
  4. package/components/Alert/Alert.mjs.map +1 -1
  5. package/components/Alert/CountdownCircle.js +2 -0
  6. package/components/Alert/CountdownCircle.js.map +1 -0
  7. package/components/Alert/CountdownCircle.mjs +2 -0
  8. package/components/Alert/CountdownCircle.mjs.map +1 -0
  9. package/components/Alert/style.js +1 -1
  10. package/components/Alert/style.js.map +1 -1
  11. package/components/Alert/style.mjs +1 -1
  12. package/components/Alert/style.mjs.map +1 -1
  13. package/components/Alert/utils.js +2 -0
  14. package/components/Alert/utils.js.map +1 -0
  15. package/components/Alert/utils.mjs +2 -0
  16. package/components/Alert/utils.mjs.map +1 -0
  17. package/components/Button/Button.js +1 -1
  18. package/components/Button/Button.js.map +1 -1
  19. package/components/Button/Button.mjs +1 -1
  20. package/components/Button/Button.mjs.map +1 -1
  21. package/components/DialogComponent/DialogComponent.js +1 -1
  22. package/components/DialogComponent/DialogComponent.js.map +1 -1
  23. package/components/DialogComponent/DialogComponent.mjs +1 -1
  24. package/components/DialogComponent/DialogComponent.mjs.map +1 -1
  25. package/components/IconButton/IconButton.js +1 -1
  26. package/components/IconButton/IconButton.js.map +1 -1
  27. package/components/IconButton/IconButton.mjs +1 -1
  28. package/components/IconButton/IconButton.mjs.map +1 -1
  29. package/components/IconButton/style.js +1 -1
  30. package/components/IconButton/style.js.map +1 -1
  31. package/components/IconButton/style.mjs +1 -1
  32. package/components/IconButton/style.mjs.map +1 -1
  33. package/components/Media/Media.js +1 -1
  34. package/components/Media/Media.js.map +1 -1
  35. package/components/Media/Media.mjs +1 -1
  36. package/components/Media/Media.mjs.map +1 -1
  37. package/components/Media/MediaMatcher.js +2 -0
  38. package/components/Media/MediaMatcher.js.map +1 -0
  39. package/components/Media/MediaMatcher.mjs +2 -0
  40. package/components/Media/MediaMatcher.mjs.map +1 -0
  41. package/components/Media/MediaMatchers.js +1 -1
  42. package/components/Media/MediaMatchers.js.map +1 -1
  43. package/components/Media/MediaMatchers.mjs +1 -1
  44. package/components/Media/MediaMatchers.mjs.map +1 -1
  45. package/components/Media/MediaMediator.js +2 -0
  46. package/components/Media/MediaMediator.js.map +1 -0
  47. package/components/Media/MediaMediator.mjs +2 -0
  48. package/components/Media/MediaMediator.mjs.map +1 -0
  49. package/{shared/context/media.js → components/Media/context.js} +1 -1
  50. package/components/Media/context.js.map +1 -0
  51. package/{shared/context/media.mjs → components/Media/context.mjs} +1 -1
  52. package/components/Media/context.mjs.map +1 -0
  53. package/{hooks → components/Media}/useMediaConnector.js +1 -1
  54. package/components/Media/useMediaConnector.js.map +1 -0
  55. package/components/Media/useMediaConnector.mjs +2 -0
  56. package/components/Media/useMediaConnector.mjs.map +1 -0
  57. package/components/Media/useMediaMatchers.js.map +1 -0
  58. package/components/Media/useMediaMatchers.mjs.map +1 -0
  59. package/components/Media/useMediaPropsMatches.js.map +1 -1
  60. package/components/Media/useMediaPropsMatches.mjs.map +1 -1
  61. package/components/TooltipComponent/TooltipComponent.js +1 -1
  62. package/components/TooltipComponent/TooltipComponent.js.map +1 -1
  63. package/components/TooltipComponent/TooltipComponent.mjs +1 -1
  64. package/components/TooltipComponent/TooltipComponent.mjs.map +1 -1
  65. package/dts/index.d.ts +659 -911
  66. package/icon-pack/src/collection.json.js +1 -1
  67. package/icon-pack/src/collection.json.mjs +1 -1
  68. package/index.js +1 -1
  69. package/index.mjs +1 -1
  70. package/mixins/responsive-margin.js.map +1 -1
  71. package/mixins/responsive-margin.mjs.map +1 -1
  72. package/package.json +2 -2
  73. package/theme/colors-dark.js +1 -1
  74. package/theme/colors-dark.js.map +1 -1
  75. package/theme/colors-dark.mjs +1 -1
  76. package/theme/colors-dark.mjs.map +1 -1
  77. package/components/Alert/sizes.js +0 -2
  78. package/components/Alert/sizes.js.map +0 -1
  79. package/components/Alert/sizes.mjs +0 -2
  80. package/components/Alert/sizes.mjs.map +0 -1
  81. package/components/Alert/useAlertProps.js +0 -2
  82. package/components/Alert/useAlertProps.js.map +0 -1
  83. package/components/Alert/useAlertProps.mjs +0 -2
  84. package/components/Alert/useAlertProps.mjs.map +0 -1
  85. package/components/Timer/Timer.js +0 -2
  86. package/components/Timer/Timer.js.map +0 -1
  87. package/components/Timer/Timer.mjs +0 -2
  88. package/components/Timer/Timer.mjs.map +0 -1
  89. package/components/Timer/context.js +0 -2
  90. package/components/Timer/context.js.map +0 -1
  91. package/components/Timer/context.mjs +0 -2
  92. package/components/Timer/context.mjs.map +0 -1
  93. package/components/Timer/images/Circle.svg.js +0 -2
  94. package/components/Timer/images/Circle.svg.js.map +0 -1
  95. package/components/Timer/images/Circle.svg.mjs +0 -2
  96. package/components/Timer/images/Circle.svg.mjs.map +0 -1
  97. package/components/Timer/sizes.js +0 -2
  98. package/components/Timer/sizes.js.map +0 -1
  99. package/components/Timer/sizes.mjs +0 -2
  100. package/components/Timer/sizes.mjs.map +0 -1
  101. package/components/Timer/styled.js +0 -2
  102. package/components/Timer/styled.js.map +0 -1
  103. package/components/Timer/styled.mjs +0 -2
  104. package/components/Timer/styled.mjs.map +0 -1
  105. package/components/Timer/useTimer.js +0 -2
  106. package/components/Timer/useTimer.js.map +0 -1
  107. package/components/Timer/useTimer.mjs +0 -2
  108. package/components/Timer/useTimer.mjs.map +0 -1
  109. package/components/Timer/useTimerProps.js +0 -2
  110. package/components/Timer/useTimerProps.js.map +0 -1
  111. package/components/Timer/useTimerProps.mjs +0 -2
  112. package/components/Timer/useTimerProps.mjs.map +0 -1
  113. package/hooks/useMediaConnector.js.map +0 -1
  114. package/hooks/useMediaConnector.mjs +0 -2
  115. package/hooks/useMediaConnector.mjs.map +0 -1
  116. package/hooks/useMediaMatchers.js.map +0 -1
  117. package/hooks/useMediaMatchers.mjs.map +0 -1
  118. package/hooks/useResponsiveLayoutProps.js +0 -2
  119. package/hooks/useResponsiveLayoutProps.js.map +0 -1
  120. package/hooks/useResponsiveLayoutProps.mjs +0 -2
  121. package/hooks/useResponsiveLayoutProps.mjs.map +0 -1
  122. package/hooks/useResponsiveMarginProps.js +0 -2
  123. package/hooks/useResponsiveMarginProps.js.map +0 -1
  124. package/hooks/useResponsiveMarginProps.mjs +0 -2
  125. package/hooks/useResponsiveMarginProps.mjs.map +0 -1
  126. package/hooks/useResponsiveProps.js +0 -2
  127. package/hooks/useResponsiveProps.js.map +0 -1
  128. package/hooks/useResponsiveProps.mjs +0 -2
  129. package/hooks/useResponsiveProps.mjs.map +0 -1
  130. package/hooks/useResponsiveSizeProps.js +0 -2
  131. package/hooks/useResponsiveSizeProps.js.map +0 -1
  132. package/hooks/useResponsiveSizeProps.mjs +0 -2
  133. package/hooks/useResponsiveSizeProps.mjs.map +0 -1
  134. package/shared/context/media.js.map +0 -1
  135. package/shared/context/media.mjs.map +0 -1
  136. package/shared/media/MediaMatcher.js +0 -2
  137. package/shared/media/MediaMatcher.js.map +0 -1
  138. package/shared/media/MediaMatcher.mjs +0 -2
  139. package/shared/media/MediaMatcher.mjs.map +0 -1
  140. package/shared/media/MediaMediator.js +0 -2
  141. package/shared/media/MediaMediator.js.map +0 -1
  142. package/shared/media/MediaMediator.mjs +0 -2
  143. package/shared/media/MediaMediator.mjs.map +0 -1
  144. package/shared/utils/isPointerSupported.js +0 -2
  145. package/shared/utils/isPointerSupported.js.map +0 -1
  146. package/shared/utils/isPointerSupported.mjs +0 -2
  147. package/shared/utils/isPointerSupported.mjs.map +0 -1
  148. /package/{hooks → components/Media}/useMediaMatchers.js +0 -0
  149. /package/{hooks → components/Media}/useMediaMatchers.mjs +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMediaConnector.js","sources":["../../../src/hooks/useMediaConnector.ts"],"sourcesContent":["import { useState, useContext, useLayoutEffect } from 'react'\nimport { useMountedStatus } from 'hooks/useMountedStatus'\nimport type { UnsubscribeObserverCallback } from 'shared/utils/Observable'\nimport { MediaContext } from 'shared/context/media'\nimport type { MediaMatcherId, Breakpoint, Orientation } from 'shared/types'\n\nexport type MediaConnectorConfig = Record<MediaMatcherId, boolean>\n\nexport type MediaConnectorGetConfigOptions = {\n min?: Breakpoint\n max?: Breakpoint\n orientation?: Orientation\n}\n\nexport const useMediaConnector = Object.assign(\n (config: Partial<MediaConnectorConfig> = {}): Partial<Record<MediaMatcherId, boolean>> => {\n const {\n minXXS,\n minXS,\n minS,\n minM,\n minL,\n minXL,\n minXXL,\n maxXXS,\n maxXS,\n maxS,\n maxM,\n maxL,\n maxXL,\n maxXXL,\n landscape,\n portrait,\n } = config\n\n const mediator = useContext(MediaContext)\n\n const [breakpointsMatches, setBreakpointsMatches] = useState<Partial<Record<MediaMatcherId, boolean>>>(\n Object.create(null)\n )\n\n const getMountedStatus = useMountedStatus()\n\n useLayoutEffect(() => {\n const connectToMatcher: Record<MediaMatcherId, boolean> = {\n minXXS: Boolean(minXXS),\n minXS: Boolean(minXS),\n minS: Boolean(minS),\n minM: Boolean(minM),\n minL: Boolean(minL),\n minXL: Boolean(minXL),\n minXXL: Boolean(minXXL),\n maxXXS: Boolean(maxXXS),\n maxXS: Boolean(maxXS),\n maxS: Boolean(maxS),\n maxM: Boolean(maxM),\n maxL: Boolean(maxL),\n maxXL: Boolean(maxXL),\n maxXXL: Boolean(maxXXL),\n landscape: Boolean(landscape),\n portrait: Boolean(portrait),\n }\n\n const unsubscribeCallbacks: UnsubscribeObserverCallback[] = []\n\n if (mediator) {\n mediator.matchers\n .filter((matcher) => connectToMatcher[matcher.id])\n .forEach((matcher) => {\n const unsubscribe = matcher.subscribe((payload) => {\n setBreakpointsMatches((prev) => ({ ...prev, [matcher.id]: payload.matches }))\n })\n\n unsubscribeCallbacks.push(unsubscribe)\n })\n }\n\n return () => {\n unsubscribeCallbacks.forEach((callback) => {\n callback()\n })\n\n if (getMountedStatus()) {\n setBreakpointsMatches(Object.create(null))\n }\n }\n }, [\n mediator,\n minXXS,\n minXS,\n minS,\n minM,\n minL,\n minXL,\n minXXL,\n maxXXS,\n maxXS,\n maxS,\n maxM,\n maxL,\n maxXL,\n maxXXL,\n landscape,\n portrait,\n getMountedStatus,\n ])\n\n return breakpointsMatches\n },\n {\n getConfig: (options: MediaConnectorGetConfigOptions = {}): MediaConnectorConfig => ({\n minXXS: options.min === 'XXS',\n minXS: options.min === 'XS',\n minS: options.min === 'S',\n minM: options.min === 'M',\n minL: options.min === 'L',\n minXL: options.min === 'XL',\n minXXL: options.min === 'XXL',\n maxXXS: options.max === 'XXS',\n maxXS: options.max === 'XS',\n maxS: options.max === 'S',\n maxM: options.max === 'M',\n maxL: options.max === 'L',\n maxXL: options.max === 'XL',\n maxXXL: options.max === 'XXL',\n landscape: options.orientation === 'landscape',\n portrait: options.orientation === 'portrait',\n }),\n }\n)\n"],"names":["useMediaConnector","Object","assign","config","minXXS","minXS","minS","minM","minL","minXL","minXXL","maxXXS","maxXS","maxS","maxM","maxL","maxXL","maxXXL","landscape","portrait","mediator","useContext","MediaContext","breakpointsMatches","setBreakpointsMatches","useState","create","getMountedStatus","useMountedStatus","useLayoutEffect","connectToMatcher","Boolean","unsubscribeCallbacks","matchers","filter","matcher","id","forEach","unsubscribe","subscribe","payload","prev","matches","push","callback","getConfig","options","min","max","orientation"],"mappings":"8IAcO,MAAMA,kBAAoBC,OAAOC,OACtC,CAACC,EAAwC,CAAA,KACvC,MAAMC,OACJA,EAAMC,MACNA,EAAKC,KACLA,EAAIC,KACJA,EAAIC,KACJA,EAAIC,MACJA,EAAKC,OACLA,EAAMC,OACNA,EAAMC,MACNA,EAAKC,KACLA,EAAIC,KACJA,EAAIC,KACJA,EAAIC,MACJA,EAAKC,OACLA,EAAMC,UACNA,EAASC,SACTA,GACEhB,EAEJ,MAAMiB,EAAWC,MAAAA,WAAWC,oBAE5B,MAAOC,EAAoBC,GAAyBC,MAAAA,SAClDxB,OAAOyB,OAAO,OAGhB,MAAMC,EAAmBC,iBAAAA,mBAkEzB,OAhEAC,MAAAA,gBAAgB,KACd,MAAMC,EAAoD,CACxD1B,OAAQ2B,QAAQ3B,GAChBC,MAAO0B,QAAQ1B,GACfC,KAAMyB,QAAQzB,GACdC,KAAMwB,QAAQxB,GACdC,KAAMuB,QAAQvB,GACdC,MAAOsB,QAAQtB,GACfC,OAAQqB,QAAQrB,GAChBC,OAAQoB,QAAQpB,GAChBC,MAAOmB,QAAQnB,GACfC,KAAMkB,QAAQlB,GACdC,KAAMiB,QAAQjB,GACdC,KAAMgB,QAAQhB,GACdC,MAAOe,QAAQf,GACfC,OAAQc,QAAQd,GAChBC,UAAWa,QAAQb,GACnBC,SAAUY,QAAQZ,IAGpB,MAAMa,EAAsD,GAc5D,OAZIZ,GACFA,EAASa,SACNC,OAAQC,GAAYL,EAAiBK,EAAQC,KAC7CC,QAASF,IACR,MAAMG,EAAcH,EAAQI,UAAWC,IACrChB,EAAuBiB,IAAI,IAAWA,EAAM,CAACN,EAAQC,IAAKI,EAAQE,aAGpEV,EAAqBW,KAAKL,KAIzB,KACLN,EAAqBK,QAASO,IAC5BA,MAGEjB,KACFH,EAAsBvB,OAAOyB,OAAO,SAGvC,CACDN,EACAhB,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAQ,IAGKJ,GAET,CACEsB,UAAWA,CAACC,EAA0C,MAAE,CACtD1C,OAAQ0C,EAAQC,MAAQ,MACxB1C,MAAOyC,EAAQC,MAAQ,KACvBzC,KAAMwC,EAAQC,MAAQ,IACtBxC,KAAMuC,EAAQC,MAAQ,IACtBvC,KAAMsC,EAAQC,MAAQ,IACtBtC,MAAOqC,EAAQC,MAAQ,KACvBrC,OAAQoC,EAAQC,MAAQ,MACxBpC,OAAQmC,EAAQE,MAAQ,MACxBpC,MAAOkC,EAAQE,MAAQ,KACvBnC,KAAMiC,EAAQE,MAAQ,IACtBlC,KAAMgC,EAAQE,MAAQ,IACtBjC,KAAM+B,EAAQE,MAAQ,IACtBhC,MAAO8B,EAAQE,MAAQ,KACvB/B,OAAQ6B,EAAQE,MAAQ,MACxB9B,UAAW4B,EAAQG,cAAgB,YACnC9B,SAAU2B,EAAQG,cAAgB"}
@@ -1,2 +0,0 @@
1
- import{useContext,useState,useLayoutEffect}from'react';import{useMountedStatus}from'./useMountedStatus.mjs';import{MediaContext}from'../shared/context/media.mjs';const useMediaConnector=Object.assign((a={})=>{const{minXXS:n,minXS:o,minS:e,minM:m,minL:t,minXL:i,minXXL:X,maxXXS:s,maxXS:x,maxS:r,maxM:S,maxL:c,maxXL:L,maxXXL:l,landscape:u,portrait:B}=a;const d=useContext(MediaContext);const[M,p]=useState(Object.create(null));const f=useMountedStatus();return useLayoutEffect(()=>{const a={minXXS:Boolean(n),minXS:Boolean(o),minS:Boolean(e),minM:Boolean(m),minL:Boolean(t),minXL:Boolean(i),minXXL:Boolean(X),maxXXS:Boolean(s),maxXS:Boolean(x),maxS:Boolean(r),maxM:Boolean(S),maxL:Boolean(c),maxXL:Boolean(L),maxXXL:Boolean(l),landscape:Boolean(u),portrait:Boolean(B)};const M=[];return d&&d.matchers.filter(n=>a[n.id]).forEach(a=>{const n=a.subscribe(n=>{p(o=>({...o,[a.id]:n.matches}))});M.push(n)}),()=>{M.forEach(a=>{a()}),f()&&p(Object.create(null))}},[d,n,o,e,m,t,i,X,s,x,r,S,c,L,l,u,B,f]),M},{getConfig:(a={})=>({minXXS:a.min==='XXS',minXS:a.min==='XS',minS:a.min==='S',minM:a.min==='M',minL:a.min==='L',minXL:a.min==='XL',minXXL:a.min==='XXL',maxXXS:a.max==='XXS',maxXS:a.max==='XS',maxS:a.max==='S',maxM:a.max==='M',maxL:a.max==='L',maxXL:a.max==='XL',maxXXL:a.max==='XXL',landscape:a.orientation==='landscape',portrait:a.orientation==='portrait'})});export{useMediaConnector};
2
- //# sourceMappingURL=useMediaConnector.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMediaConnector.mjs","sources":["../../../src/hooks/useMediaConnector.ts"],"sourcesContent":["import { useState, useContext, useLayoutEffect } from 'react'\nimport { useMountedStatus } from 'hooks/useMountedStatus'\nimport type { UnsubscribeObserverCallback } from 'shared/utils/Observable'\nimport { MediaContext } from 'shared/context/media'\nimport type { MediaMatcherId, Breakpoint, Orientation } from 'shared/types'\n\nexport type MediaConnectorConfig = Record<MediaMatcherId, boolean>\n\nexport type MediaConnectorGetConfigOptions = {\n min?: Breakpoint\n max?: Breakpoint\n orientation?: Orientation\n}\n\nexport const useMediaConnector = Object.assign(\n (config: Partial<MediaConnectorConfig> = {}): Partial<Record<MediaMatcherId, boolean>> => {\n const {\n minXXS,\n minXS,\n minS,\n minM,\n minL,\n minXL,\n minXXL,\n maxXXS,\n maxXS,\n maxS,\n maxM,\n maxL,\n maxXL,\n maxXXL,\n landscape,\n portrait,\n } = config\n\n const mediator = useContext(MediaContext)\n\n const [breakpointsMatches, setBreakpointsMatches] = useState<Partial<Record<MediaMatcherId, boolean>>>(\n Object.create(null)\n )\n\n const getMountedStatus = useMountedStatus()\n\n useLayoutEffect(() => {\n const connectToMatcher: Record<MediaMatcherId, boolean> = {\n minXXS: Boolean(minXXS),\n minXS: Boolean(minXS),\n minS: Boolean(minS),\n minM: Boolean(minM),\n minL: Boolean(minL),\n minXL: Boolean(minXL),\n minXXL: Boolean(minXXL),\n maxXXS: Boolean(maxXXS),\n maxXS: Boolean(maxXS),\n maxS: Boolean(maxS),\n maxM: Boolean(maxM),\n maxL: Boolean(maxL),\n maxXL: Boolean(maxXL),\n maxXXL: Boolean(maxXXL),\n landscape: Boolean(landscape),\n portrait: Boolean(portrait),\n }\n\n const unsubscribeCallbacks: UnsubscribeObserverCallback[] = []\n\n if (mediator) {\n mediator.matchers\n .filter((matcher) => connectToMatcher[matcher.id])\n .forEach((matcher) => {\n const unsubscribe = matcher.subscribe((payload) => {\n setBreakpointsMatches((prev) => ({ ...prev, [matcher.id]: payload.matches }))\n })\n\n unsubscribeCallbacks.push(unsubscribe)\n })\n }\n\n return () => {\n unsubscribeCallbacks.forEach((callback) => {\n callback()\n })\n\n if (getMountedStatus()) {\n setBreakpointsMatches(Object.create(null))\n }\n }\n }, [\n mediator,\n minXXS,\n minXS,\n minS,\n minM,\n minL,\n minXL,\n minXXL,\n maxXXS,\n maxXS,\n maxS,\n maxM,\n maxL,\n maxXL,\n maxXXL,\n landscape,\n portrait,\n getMountedStatus,\n ])\n\n return breakpointsMatches\n },\n {\n getConfig: (options: MediaConnectorGetConfigOptions = {}): MediaConnectorConfig => ({\n minXXS: options.min === 'XXS',\n minXS: options.min === 'XS',\n minS: options.min === 'S',\n minM: options.min === 'M',\n minL: options.min === 'L',\n minXL: options.min === 'XL',\n minXXL: options.min === 'XXL',\n maxXXS: options.max === 'XXS',\n maxXS: options.max === 'XS',\n maxS: options.max === 'S',\n maxM: options.max === 'M',\n maxL: options.max === 'L',\n maxXL: options.max === 'XL',\n maxXXL: options.max === 'XXL',\n landscape: options.orientation === 'landscape',\n portrait: options.orientation === 'portrait',\n }),\n }\n)\n"],"names":["useMediaConnector","Object","assign","config","minXXS","minXS","minS","minM","minL","minXL","minXXL","maxXXS","maxXS","maxS","maxM","maxL","maxXL","maxXXL","landscape","portrait","mediator","useContext","MediaContext","breakpointsMatches","setBreakpointsMatches","useState","create","getMountedStatus","useMountedStatus","useLayoutEffect","connectToMatcher","Boolean","unsubscribeCallbacks","matchers","filter","matcher","id","forEach","unsubscribe","subscribe","payload","prev","matches","push","callback","getConfig","options","min","max","orientation"],"mappings":"kKAcO,MAAMA,kBAAoBC,OAAOC,OACtC,CAACC,EAAwC,CAAA,KACvC,MAAMC,OACJA,EAAMC,MACNA,EAAKC,KACLA,EAAIC,KACJA,EAAIC,KACJA,EAAIC,MACJA,EAAKC,OACLA,EAAMC,OACNA,EAAMC,MACNA,EAAKC,KACLA,EAAIC,KACJA,EAAIC,KACJA,EAAIC,MACJA,EAAKC,OACLA,EAAMC,UACNA,EAASC,SACTA,GACEhB,EAEJ,MAAMiB,EAAWC,WAAWC,cAE5B,MAAOC,EAAoBC,GAAyBC,SAClDxB,OAAOyB,OAAO,OAGhB,MAAMC,EAAmBC,mBAkEzB,OAhEAC,gBAAgB,KACd,MAAMC,EAAoD,CACxD1B,OAAQ2B,QAAQ3B,GAChBC,MAAO0B,QAAQ1B,GACfC,KAAMyB,QAAQzB,GACdC,KAAMwB,QAAQxB,GACdC,KAAMuB,QAAQvB,GACdC,MAAOsB,QAAQtB,GACfC,OAAQqB,QAAQrB,GAChBC,OAAQoB,QAAQpB,GAChBC,MAAOmB,QAAQnB,GACfC,KAAMkB,QAAQlB,GACdC,KAAMiB,QAAQjB,GACdC,KAAMgB,QAAQhB,GACdC,MAAOe,QAAQf,GACfC,OAAQc,QAAQd,GAChBC,UAAWa,QAAQb,GACnBC,SAAUY,QAAQZ,IAGpB,MAAMa,EAAsD,GAc5D,OAZIZ,GACFA,EAASa,SACNC,OAAQC,GAAYL,EAAiBK,EAAQC,KAC7CC,QAASF,IACR,MAAMG,EAAcH,EAAQI,UAAWC,IACrChB,EAAuBiB,IAAI,IAAWA,EAAM,CAACN,EAAQC,IAAKI,EAAQE,aAGpEV,EAAqBW,KAAKL,KAIzB,KACLN,EAAqBK,QAASO,IAC5BA,MAGEjB,KACFH,EAAsBvB,OAAOyB,OAAO,SAGvC,CACDN,EACAhB,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAQ,IAGKJ,GAET,CACEsB,UAAWA,CAACC,EAA0C,MAAE,CACtD1C,OAAQ0C,EAAQC,MAAQ,MACxB1C,MAAOyC,EAAQC,MAAQ,KACvBzC,KAAMwC,EAAQC,MAAQ,IACtBxC,KAAMuC,EAAQC,MAAQ,IACtBvC,KAAMsC,EAAQC,MAAQ,IACtBtC,MAAOqC,EAAQC,MAAQ,KACvBrC,OAAQoC,EAAQC,MAAQ,MACxBpC,OAAQmC,EAAQE,MAAQ,MACxBpC,MAAOkC,EAAQE,MAAQ,KACvBnC,KAAMiC,EAAQE,MAAQ,IACtBlC,KAAMgC,EAAQE,MAAQ,IACtBjC,KAAM+B,EAAQE,MAAQ,IACtBhC,MAAO8B,EAAQE,MAAQ,KACvB/B,OAAQ6B,EAAQE,MAAQ,MACxB9B,UAAW4B,EAAQG,cAAgB,YACnC9B,SAAU2B,EAAQG,cAAgB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMediaMatchers.js","sources":["../../../src/hooks/useMediaMatchers.ts"],"sourcesContent":["import { useMediaConnector } from 'hooks/useMediaConnector'\n\n/**\n *\n * Хук для чтения статуса медиа матчеров.\n *\n * Булевые значения говорят о том совпадают ли характеристики вьюпорта с медиа кверями матчеров.\n */\nexport const useMediaMatchers = () => {\n const breakpointsMatchers = useMediaConnector({\n minXXS: true,\n minXS: true,\n minS: true,\n minM: true,\n minL: true,\n minXL: true,\n minXXL: true,\n maxXXS: true,\n maxXS: true,\n maxS: true,\n maxM: true,\n maxL: true,\n maxXL: true,\n maxXXL: true,\n landscape: true,\n portrait: true,\n })\n\n return breakpointsMatchers\n}\n"],"names":["useMediaMatchers","useMediaConnector","minXXS","minXS","minS","minM","minL","minXL","minXXL","maxXXS","maxXS","maxS","maxM","maxL","maxXL","maxXXL","landscape","portrait"],"mappings":"8FAQgCA,IACFC,kBAAAA,kBAAkB,CAC5CC,QAAQ,EACRC,OAAO,EACPC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,OAAO,EACPC,QAAQ,EACRC,QAAQ,EACRC,OAAO,EACPC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,UAAU"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMediaMatchers.mjs","sources":["../../../src/hooks/useMediaMatchers.ts"],"sourcesContent":["import { useMediaConnector } from 'hooks/useMediaConnector'\n\n/**\n *\n * Хук для чтения статуса медиа матчеров.\n *\n * Булевые значения говорят о том совпадают ли характеристики вьюпорта с медиа кверями матчеров.\n */\nexport const useMediaMatchers = () => {\n const breakpointsMatchers = useMediaConnector({\n minXXS: true,\n minXS: true,\n minS: true,\n minM: true,\n minL: true,\n minXL: true,\n minXXL: true,\n maxXXS: true,\n maxXS: true,\n maxS: true,\n maxM: true,\n maxL: true,\n maxXL: true,\n maxXXL: true,\n landscape: true,\n portrait: true,\n })\n\n return breakpointsMatchers\n}\n"],"names":["useMediaMatchers","useMediaConnector","minXXS","minXS","minS","minM","minL","minXL","minXXL","maxXXS","maxXS","maxS","maxM","maxL","maxXL","maxXXL","landscape","portrait"],"mappings":"uDAQO,MAAMA,iBAAmBA,IACFC,kBAAkB,CAC5CC,QAAQ,EACRC,OAAO,EACPC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,OAAO,EACPC,QAAQ,EACRC,QAAQ,EACRC,OAAO,EACPC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,UAAU"}
@@ -1,2 +0,0 @@
1
- 'use strict';var useResponsiveProps=require('./useResponsiveProps.js');exports.useResponsiveLayoutProps=s=>useResponsiveProps.useResponsiveProps('layout',s);
2
- //# sourceMappingURL=useResponsiveLayoutProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useResponsiveLayoutProps.js","sources":["../../../src/hooks/useResponsiveLayoutProps.ts"],"sourcesContent":["import { useResponsiveProps } from 'hooks/useResponsiveProps'\nimport type { ResponsiveLayoutProps } from 'shared/interfaces'\n\nexport const useResponsiveLayoutProps = <T extends string>(props: ResponsiveLayoutProps<T>) => {\n return useResponsiveProps('layout', props)\n}\n"],"names":["props","useResponsiveProps"],"mappings":"wGAG2DA,GAClDC,mBAAAA,mBAAmB,SAAUD"}
@@ -1,2 +0,0 @@
1
- import{useResponsiveProps}from'./useResponsiveProps.mjs';const useResponsiveLayoutProps=s=>useResponsiveProps('layout',s);export{useResponsiveLayoutProps};
2
- //# sourceMappingURL=useResponsiveLayoutProps.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useResponsiveLayoutProps.mjs","sources":["../../../src/hooks/useResponsiveLayoutProps.ts"],"sourcesContent":["import { useResponsiveProps } from 'hooks/useResponsiveProps'\nimport type { ResponsiveLayoutProps } from 'shared/interfaces'\n\nexport const useResponsiveLayoutProps = <T extends string>(props: ResponsiveLayoutProps<T>) => {\n return useResponsiveProps('layout', props)\n}\n"],"names":["useResponsiveLayoutProps","props","useResponsiveProps"],"mappings":"yDAGO,MAAMA,yBAA8CC,GAClDC,mBAAmB,SAAUD"}
@@ -1,2 +0,0 @@
1
- 'use strict';var useResponsiveProps=require('./useResponsiveProps.js');exports.useResponsiveMarginProps=s=>{const e=useResponsiveProps.useResponsiveProps('margin',s);return typeof e=='number'?`${e}px`:e};
2
- //# sourceMappingURL=useResponsiveMarginProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useResponsiveMarginProps.js","sources":["../../../src/hooks/useResponsiveMarginProps.ts"],"sourcesContent":["import { useResponsiveProps } from 'hooks/useResponsiveProps'\nimport type { ResponsiveMarginProps } from 'shared/interfaces'\n\nexport const useResponsiveMarginProps = (props: ResponsiveMarginProps) => {\n const value = useResponsiveProps('margin', props)\n return typeof value === 'number' ? `${value}px` : value\n}\n"],"names":["props","value","useResponsiveProps"],"mappings":"wGAGyCA,IACvC,MAAMC,EAAQC,mBAAAA,mBAAmB,SAAUF,GAC3C,cAAcC,GAAU,SAAW,GAAGA,MAAYA"}
@@ -1,2 +0,0 @@
1
- import{useResponsiveProps}from'./useResponsiveProps.mjs';const useResponsiveMarginProps=s=>{const e=useResponsiveProps('margin',s);return typeof e=='number'?`${e}px`:e};export{useResponsiveMarginProps};
2
- //# sourceMappingURL=useResponsiveMarginProps.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useResponsiveMarginProps.mjs","sources":["../../../src/hooks/useResponsiveMarginProps.ts"],"sourcesContent":["import { useResponsiveProps } from 'hooks/useResponsiveProps'\nimport type { ResponsiveMarginProps } from 'shared/interfaces'\n\nexport const useResponsiveMarginProps = (props: ResponsiveMarginProps) => {\n const value = useResponsiveProps('margin', props)\n return typeof value === 'number' ? `${value}px` : value\n}\n"],"names":["useResponsiveMarginProps","props","value","useResponsiveProps"],"mappings":"yDAGO,MAAMA,yBAA4BC,IACvC,MAAMC,EAAQC,mBAAmB,SAAUF,GAC3C,cAAcC,GAAU,SAAW,GAAGA,MAAYA"}
@@ -1,2 +0,0 @@
1
- 'use strict';var useMediaMatchers=require('./useMediaMatchers.js');var isNil=require('../shared/utils/isNil.js');const matchersIdsShort=['minM','maxM','maxS'];const matchersIdsLong=['minL','maxL','maxM','maxS','maxXS','maxXXS'];exports.useResponsiveProps=(s,e)=>{const t=useMediaMatchers.useMediaMatchers();let a;const r=(s=>({minL:`${s}XL`,maxL:`${s}L`,maxM:`${s}M`,maxS:`${s}S`,maxXS:`${s}XS`,maxXXS:`${s}XXS`}))(s);if(Array.isArray(e[s])){const r=e[s].length===matchersIdsShort.length?matchersIdsShort:e[s].length===matchersIdsLong.length?matchersIdsLong:[];for(let i=r.length-1;i>=0;i--)if(t[r[i]]){a=e[s][i];break}}else a=e[s];for(let s=matchersIdsLong.length-1;s>=0;s--){const i=matchersIdsLong[s];const m=r[i];if(t[i]&&m&&!isNil.isNil(e[m])){a=e[m];break}}return a};
2
- //# sourceMappingURL=useResponsiveProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useResponsiveProps.js","sources":["../../../src/hooks/useResponsiveProps.ts"],"sourcesContent":["import { useMediaMatchers } from 'hooks/useMediaMatchers'\nimport { isNil } from 'shared/utils/isNil'\nimport type { ResponsiveProps } from 'shared/interfaces'\nimport type { ResponsivePropKey, Breakpoint, MediaMatcherId } from 'shared/types'\n\nconst matchersIdsShort: MediaMatcherId[] = ['minM', 'maxM', 'maxS']\nconst matchersIdsLong: MediaMatcherId[] = ['minL', 'maxL', 'maxM', 'maxS', 'maxXS', 'maxXXS']\n\nconst createMatcherIdToPropKey = <P extends ResponsivePropKey>(\n propKey: P\n): Partial<Record<MediaMatcherId, `${P}${Exclude<Breakpoint, 'XXL'>}`>> => ({\n minL: `${propKey}XL`,\n maxL: `${propKey}L`,\n maxM: `${propKey}M`,\n maxS: `${propKey}S`,\n maxXS: `${propKey}XS`,\n maxXXS: `${propKey}XXS`,\n})\n\nexport const useResponsiveProps = <K extends ResponsivePropKey, V>(\n propKey: K,\n props: ResponsiveProps<K, V>\n): V | undefined => {\n const matchers = useMediaMatchers()\n\n let propValue: V | undefined = undefined\n\n const matcherIdToPropKey = createMatcherIdToPropKey(propKey)\n\n if (Array.isArray(props[propKey])) {\n const matchersIds: MediaMatcherId[] =\n props[propKey].length === matchersIdsShort.length\n ? matchersIdsShort\n : props[propKey].length === matchersIdsLong.length\n ? matchersIdsLong\n : []\n\n for (let idx = matchersIds.length - 1; idx >= 0; idx--) {\n const matcherId = matchersIds[idx]\n\n if (matchers[matcherId]) {\n propValue = props[propKey][idx]\n\n break\n }\n }\n } else {\n propValue = props[propKey] as V | undefined\n }\n\n for (let idx = matchersIdsLong.length - 1; idx >= 0; idx--) {\n const matcherId = matchersIdsLong[idx]\n const responsivePropKey = matcherIdToPropKey[matcherId]\n\n if (matchers[matcherId] && responsivePropKey && !isNil(props[responsivePropKey])) {\n propValue = props[responsivePropKey] as V\n\n break\n }\n }\n\n return propValue\n}\n"],"names":["matchersIdsShort","matchersIdsLong","useResponsiveProps","propKey","props","matchers","useMediaMatchers","propValue","matcherIdToPropKey","minL","maxL","maxM","maxS","maxXS","maxXXS","createMatcherIdToPropKey","Array","isArray","matchersIds","length","idx","matcherId","responsivePropKey","isNil"],"mappings":"iHAKA,MAAMA,iBAAqC,CAAC,OAAQ,OAAQ,QAC5D,MAAMC,gBAAoC,CAAC,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,qCAalDC,CAChCC,EACAC,KAEA,MAAMC,EAAWC,iBAAAA,mBAEjB,IAAIC,EAEJ,MAAMC,EAlBNL,KAAU,CAEVM,KAAM,GAAGN,MACTO,KAAM,GAAGP,KACTQ,KAAM,GAAGR,KACTS,KAAM,GAAGT,KACTU,MAAO,GAAGV,MACVW,OAAQ,GAAGX,SAWgBY,CAAyBZ,GAEpD,GAAIa,MAAMC,QAAQb,EAAMD,IAAW,CACjC,MAAMe,EACJd,EAAMD,GAASgB,SAAWnB,iBAAiBmB,OACvCnB,iBACAI,EAAMD,GAASgB,SAAWlB,gBAAgBkB,OACxClB,gBACA,GAER,IAAK,IAAImB,EAAMF,EAAYC,OAAS,EAAGC,GAAO,EAAGA,IAG/C,GAAIf,EAFca,EAAYE,IAEL,CACvBb,EAAYH,EAAMD,GAASiB,GAE3B,KACF,CAEJ,MACEb,EAAYH,EAAMD,GAGpB,IAAK,IAAIiB,EAAMnB,gBAAgBkB,OAAS,EAAGC,GAAO,EAAGA,IAAO,CAC1D,MAAMC,EAAYpB,gBAAgBmB,GAClC,MAAME,EAAoBd,EAAmBa,GAE7C,GAAIhB,EAASgB,IAAcC,IAAsBC,MAAAA,MAAMnB,EAAMkB,IAAqB,CAChFf,EAAYH,EAAMkB,GAElB,KACF,CACF,CAEA,OAAOf"}
@@ -1,2 +0,0 @@
1
- import{useMediaMatchers}from'./useMediaMatchers.mjs';import{isNil}from'../shared/utils/isNil.mjs';const matchersIdsShort=['minM','maxM','maxS'];const matchersIdsLong=['minL','maxL','maxM','maxS','maxXS','maxXXS'];const useResponsiveProps=(s,e)=>{const t=useMediaMatchers();let r;const a=(s=>({minL:`${s}XL`,maxL:`${s}L`,maxM:`${s}M`,maxS:`${s}S`,maxXS:`${s}XS`,maxXXS:`${s}XXS`}))(s);if(Array.isArray(e[s])){const a=e[s].length===matchersIdsShort.length?matchersIdsShort:e[s].length===matchersIdsLong.length?matchersIdsLong:[];for(let m=a.length-1;m>=0;m--)if(t[a[m]]){r=e[s][m];break}}else r=e[s];for(let s=matchersIdsLong.length-1;s>=0;s--){const m=matchersIdsLong[s];const o=a[m];if(t[m]&&o&&!isNil(e[o])){r=e[o];break}}return r};export{useResponsiveProps};
2
- //# sourceMappingURL=useResponsiveProps.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useResponsiveProps.mjs","sources":["../../../src/hooks/useResponsiveProps.ts"],"sourcesContent":["import { useMediaMatchers } from 'hooks/useMediaMatchers'\nimport { isNil } from 'shared/utils/isNil'\nimport type { ResponsiveProps } from 'shared/interfaces'\nimport type { ResponsivePropKey, Breakpoint, MediaMatcherId } from 'shared/types'\n\nconst matchersIdsShort: MediaMatcherId[] = ['minM', 'maxM', 'maxS']\nconst matchersIdsLong: MediaMatcherId[] = ['minL', 'maxL', 'maxM', 'maxS', 'maxXS', 'maxXXS']\n\nconst createMatcherIdToPropKey = <P extends ResponsivePropKey>(\n propKey: P\n): Partial<Record<MediaMatcherId, `${P}${Exclude<Breakpoint, 'XXL'>}`>> => ({\n minL: `${propKey}XL`,\n maxL: `${propKey}L`,\n maxM: `${propKey}M`,\n maxS: `${propKey}S`,\n maxXS: `${propKey}XS`,\n maxXXS: `${propKey}XXS`,\n})\n\nexport const useResponsiveProps = <K extends ResponsivePropKey, V>(\n propKey: K,\n props: ResponsiveProps<K, V>\n): V | undefined => {\n const matchers = useMediaMatchers()\n\n let propValue: V | undefined = undefined\n\n const matcherIdToPropKey = createMatcherIdToPropKey(propKey)\n\n if (Array.isArray(props[propKey])) {\n const matchersIds: MediaMatcherId[] =\n props[propKey].length === matchersIdsShort.length\n ? matchersIdsShort\n : props[propKey].length === matchersIdsLong.length\n ? matchersIdsLong\n : []\n\n for (let idx = matchersIds.length - 1; idx >= 0; idx--) {\n const matcherId = matchersIds[idx]\n\n if (matchers[matcherId]) {\n propValue = props[propKey][idx]\n\n break\n }\n }\n } else {\n propValue = props[propKey] as V | undefined\n }\n\n for (let idx = matchersIdsLong.length - 1; idx >= 0; idx--) {\n const matcherId = matchersIdsLong[idx]\n const responsivePropKey = matcherIdToPropKey[matcherId]\n\n if (matchers[matcherId] && responsivePropKey && !isNil(props[responsivePropKey])) {\n propValue = props[responsivePropKey] as V\n\n break\n }\n }\n\n return propValue\n}\n"],"names":["matchersIdsShort","matchersIdsLong","useResponsiveProps","propKey","props","matchers","useMediaMatchers","propValue","matcherIdToPropKey","minL","maxL","maxM","maxS","maxXS","maxXXS","createMatcherIdToPropKey","Array","isArray","matchersIds","length","idx","matcherId","responsivePropKey","isNil"],"mappings":"kGAKA,MAAMA,iBAAqC,CAAC,OAAQ,OAAQ,QAC5D,MAAMC,gBAAoC,CAAC,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,gBAavEC,mBAAqBA,CAChCC,EACAC,KAEA,MAAMC,EAAWC,mBAEjB,IAAIC,EAEJ,MAAMC,EAlBNL,KAAU,CAEVM,KAAM,GAAGN,MACTO,KAAM,GAAGP,KACTQ,KAAM,GAAGR,KACTS,KAAM,GAAGT,KACTU,MAAO,GAAGV,MACVW,OAAQ,GAAGX,SAWgBY,CAAyBZ,GAEpD,GAAIa,MAAMC,QAAQb,EAAMD,IAAW,CACjC,MAAMe,EACJd,EAAMD,GAASgB,SAAWnB,iBAAiBmB,OACvCnB,iBACAI,EAAMD,GAASgB,SAAWlB,gBAAgBkB,OACxClB,gBACA,GAER,IAAK,IAAImB,EAAMF,EAAYC,OAAS,EAAGC,GAAO,EAAGA,IAG/C,GAAIf,EAFca,EAAYE,IAEL,CACvBb,EAAYH,EAAMD,GAASiB,GAE3B,KACF,CAEJ,MACEb,EAAYH,EAAMD,GAGpB,IAAK,IAAIiB,EAAMnB,gBAAgBkB,OAAS,EAAGC,GAAO,EAAGA,IAAO,CAC1D,MAAMC,EAAYpB,gBAAgBmB,GAClC,MAAME,EAAoBd,EAAmBa,GAE7C,GAAIhB,EAASgB,IAAcC,IAAsBC,MAAMnB,EAAMkB,IAAqB,CAChFf,EAAYH,EAAMkB,GAElB,KACF,CACF,CAEA,OAAOf"}
@@ -1,2 +0,0 @@
1
- 'use strict';var useResponsiveProps=require('./useResponsiveProps.js');exports.useResponsiveSizeProps=s=>useResponsiveProps.useResponsiveProps('size',s);
2
- //# sourceMappingURL=useResponsiveSizeProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useResponsiveSizeProps.js","sources":["../../../src/hooks/useResponsiveSizeProps.ts"],"sourcesContent":["import { useResponsiveProps } from 'hooks/useResponsiveProps'\nimport type { ResponsiveProps } from 'shared/interfaces'\n\nexport const useResponsiveSizeProps = <T extends string>(props: ResponsiveProps<'size', T>) => {\n return useResponsiveProps('size', props)\n}\n"],"names":["props","useResponsiveProps"],"mappings":"sGAGyDA,GAChDC,mBAAAA,mBAAmB,OAAQD"}
@@ -1,2 +0,0 @@
1
- import{useResponsiveProps}from'./useResponsiveProps.mjs';const useResponsiveSizeProps=s=>useResponsiveProps('size',s);export{useResponsiveSizeProps};
2
- //# sourceMappingURL=useResponsiveSizeProps.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useResponsiveSizeProps.mjs","sources":["../../../src/hooks/useResponsiveSizeProps.ts"],"sourcesContent":["import { useResponsiveProps } from 'hooks/useResponsiveProps'\nimport type { ResponsiveProps } from 'shared/interfaces'\n\nexport const useResponsiveSizeProps = <T extends string>(props: ResponsiveProps<'size', T>) => {\n return useResponsiveProps('size', props)\n}\n"],"names":["useResponsiveSizeProps","props","useResponsiveProps"],"mappings":"yDAGO,MAAMA,uBAA4CC,GAChDC,mBAAmB,OAAQD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.js","sources":["../../../../src/shared/context/media.tsx"],"sourcesContent":["import { createContext } from 'react'\nimport type { MediaMediator } from 'shared/media/MediaMediator'\n\nexport const MediaContext = createContext<MediaMediator | null>(null)\n\nexport const MediaProvider = (\n props: React.PropsWithChildren<{\n value: MediaMediator\n }>\n) => {\n const { value, children } = props\n\n return <MediaContext.Provider value={value}>{children}</MediaContext.Provider>\n}\n"],"names":["MediaContext","createContext","props","value","children","_jsx","Provider"],"mappings":"0FAGaA,aAAeC,MAAAA,cAAoC,8DAG9DC,IAIA,MAAMC,MAAEA,EAAKC,SAAEA,GAAaF,EAE5B,OAAOG,WAAAA,IAACL,aAAaM,SAAQ,CAACH,MAAOA,EAAMC,SAAEA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.mjs","sources":["../../../../src/shared/context/media.tsx"],"sourcesContent":["import { createContext } from 'react'\nimport type { MediaMediator } from 'shared/media/MediaMediator'\n\nexport const MediaContext = createContext<MediaMediator | null>(null)\n\nexport const MediaProvider = (\n props: React.PropsWithChildren<{\n value: MediaMediator\n }>\n) => {\n const { value, children } = props\n\n return <MediaContext.Provider value={value}>{children}</MediaContext.Provider>\n}\n"],"names":["MediaContext","createContext","MediaProvider","props","value","children","_jsx","Provider"],"mappings":"0EAGaA,aAAeC,cAAoC,MAEzD,MAAMC,cACXC,IAIA,MAAMC,MAAEA,EAAKC,SAAEA,GAAaF,EAE5B,OAAOG,IAACN,aAAaO,SAAQ,CAACH,MAAOA,EAAMC,SAAEA"}
@@ -1,2 +0,0 @@
1
- 'use strict';var Observable=require('../utils/Observable.js');exports.MediaMatcher=class MediaMatcher extends Observable.Observable{constructor(e,s){super(),this.id=e,typeof window!='undefined'&&(this.mediaQueryList=window.matchMedia(s),this.mediaQueryList.addEventListener?this.mediaQueryList.addEventListener('change',e=>{this.notify({matches:e.matches})}):this.mediaQueryList.addListener(e=>{this.notify({matches:e.matches})}))}subscribe=e=>{const s=super.subscribe.bind(this)(e);return this.mediaQueryList&&e({matches:this.mediaQueryList.matches}),s}};
2
- //# sourceMappingURL=MediaMatcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaMatcher.js","sources":["../../../../src/shared/media/MediaMatcher.ts"],"sourcesContent":["import { Observable } from 'shared/utils/Observable'\nimport type { Observer } from 'shared/utils/Observable'\n\nexport type MediaMatchPayload = {\n matches: boolean\n}\n\nexport class MediaMatcher<T = string> extends Observable<MediaMatchPayload> {\n public id: T\n private mediaQueryList?: MediaQueryList\n\n constructor(id: T, mediaQueryString: string) {\n super()\n\n this.id = id\n\n if (typeof window !== 'undefined') {\n this.mediaQueryList = window.matchMedia(mediaQueryString)\n\n if (this.mediaQueryList.addEventListener) {\n this.mediaQueryList.addEventListener('change', (evt) => {\n this.notify({\n matches: evt.matches,\n })\n })\n } else {\n this.mediaQueryList.addListener((evt) => {\n this.notify({\n matches: evt.matches,\n })\n })\n }\n }\n }\n\n public subscribe = (observer: Observer<MediaMatchPayload>) => {\n const unsubscribe = super.subscribe.bind(this)(observer)\n\n if (this.mediaQueryList) {\n observer({\n matches: this.mediaQueryList.matches,\n })\n }\n\n return unsubscribe\n }\n}\n"],"names":["MediaMatcher","Observable","constructor","id","mediaQueryString","super","this","window","mediaQueryList","matchMedia","addEventListener","evt","notify","matches","addListener","subscribe","observer","unsubscribe","bind"],"mappings":"mFAOO,MAAMA,qBAAiCC,WAAAA,WAI5CC,WAAAA,CAAYC,EAAOC,GACjBC,QAEAC,KAAKH,GAAKA,SAECI,QAAW,cACpBD,KAAKE,eAAiBD,OAAOE,WAAWL,GAEpCE,KAAKE,eAAeE,iBACtBJ,KAAKE,eAAeE,iBAAiB,SAAWC,IAC9CL,KAAKM,OAAO,CACVC,QAASF,EAAIE,YAIjBP,KAAKE,eAAeM,YAAaH,IAC/BL,KAAKM,OAAO,CACVC,QAASF,EAAIE,YAKvB,CAEOE,UAAaC,IAClB,MAAMC,EAAcZ,MAAMU,UAAUG,KAAKZ,KAArBD,CAA2BW,GAQ/C,OANIV,KAAKE,gBACPQ,EAAS,CACPH,QAASP,KAAKE,eAAeK,UAI1BI"}
@@ -1,2 +0,0 @@
1
- import{Observable}from'../utils/Observable.mjs';class MediaMatcher extends Observable{constructor(e,s){super(),this.id=e,typeof window!='undefined'&&(this.mediaQueryList=window.matchMedia(s),this.mediaQueryList.addEventListener?this.mediaQueryList.addEventListener('change',e=>{this.notify({matches:e.matches})}):this.mediaQueryList.addListener(e=>{this.notify({matches:e.matches})}))}subscribe=e=>{const s=super.subscribe.bind(this)(e);return this.mediaQueryList&&e({matches:this.mediaQueryList.matches}),s}}export{MediaMatcher};
2
- //# sourceMappingURL=MediaMatcher.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaMatcher.mjs","sources":["../../../../src/shared/media/MediaMatcher.ts"],"sourcesContent":["import { Observable } from 'shared/utils/Observable'\nimport type { Observer } from 'shared/utils/Observable'\n\nexport type MediaMatchPayload = {\n matches: boolean\n}\n\nexport class MediaMatcher<T = string> extends Observable<MediaMatchPayload> {\n public id: T\n private mediaQueryList?: MediaQueryList\n\n constructor(id: T, mediaQueryString: string) {\n super()\n\n this.id = id\n\n if (typeof window !== 'undefined') {\n this.mediaQueryList = window.matchMedia(mediaQueryString)\n\n if (this.mediaQueryList.addEventListener) {\n this.mediaQueryList.addEventListener('change', (evt) => {\n this.notify({\n matches: evt.matches,\n })\n })\n } else {\n this.mediaQueryList.addListener((evt) => {\n this.notify({\n matches: evt.matches,\n })\n })\n }\n }\n }\n\n public subscribe = (observer: Observer<MediaMatchPayload>) => {\n const unsubscribe = super.subscribe.bind(this)(observer)\n\n if (this.mediaQueryList) {\n observer({\n matches: this.mediaQueryList.matches,\n })\n }\n\n return unsubscribe\n }\n}\n"],"names":["MediaMatcher","Observable","constructor","id","mediaQueryString","super","this","window","mediaQueryList","matchMedia","addEventListener","evt","notify","matches","addListener","subscribe","observer","unsubscribe","bind"],"mappings":"gDAOO,MAAMA,qBAAiCC,WAI5CC,WAAAA,CAAYC,EAAOC,GACjBC,QAEAC,KAAKH,GAAKA,SAECI,QAAW,cACpBD,KAAKE,eAAiBD,OAAOE,WAAWL,GAEpCE,KAAKE,eAAeE,iBACtBJ,KAAKE,eAAeE,iBAAiB,SAAWC,IAC9CL,KAAKM,OAAO,CACVC,QAASF,EAAIE,YAIjBP,KAAKE,eAAeM,YAAaH,IAC/BL,KAAKM,OAAO,CACVC,QAASF,EAAIE,YAKvB,CAEOE,UAAaC,IAClB,MAAMC,EAAcZ,MAAMU,UAAUG,KAAKZ,KAArBD,CAA2BW,GAQ/C,OANIV,KAAKE,gBACPQ,EAAS,CACPH,QAASP,KAAKE,eAAeK,UAI1BI"}
@@ -1,2 +0,0 @@
1
- 'use strict';var constants=require('../constants.js');var MediaMatcher=require('./MediaMatcher.js');class MediaMediator{constructor(e){this.breakpoint={minXXL:new MediaMatcher.MediaMatcher('minXXL',MediaMediator.query.up(e.xxl)),minXL:new MediaMatcher.MediaMatcher('minXL',MediaMediator.query.up(e.xl)),minL:new MediaMatcher.MediaMatcher('minL',MediaMediator.query.up(e.l)),minM:new MediaMatcher.MediaMatcher('minM',MediaMediator.query.up(e.m)),minS:new MediaMatcher.MediaMatcher('minS',MediaMediator.query.up(e.s)),minXS:new MediaMatcher.MediaMatcher('minXS',MediaMediator.query.up(e.xs)),minXXS:new MediaMatcher.MediaMatcher('minXXS',MediaMediator.query.up(e.xxs)),maxXXL:new MediaMatcher.MediaMatcher('maxXXL',MediaMediator.query.below(e.xxl)),maxXL:new MediaMatcher.MediaMatcher('maxXL',MediaMediator.query.below(e.xl)),maxL:new MediaMatcher.MediaMatcher('maxL',MediaMediator.query.below(e.l)),maxM:new MediaMatcher.MediaMatcher('maxM',MediaMediator.query.below(e.m)),maxS:new MediaMatcher.MediaMatcher('maxS',MediaMediator.query.below(e.s)),maxXS:new MediaMatcher.MediaMatcher('maxXS',MediaMediator.query.below(e.xs)),maxXXS:new MediaMatcher.MediaMatcher('maxXXS',MediaMediator.query.below(e.xxs))},this.orientation={landscape:new MediaMatcher.MediaMatcher('landscape','(orientation: landscape)'),portrait:new MediaMatcher.MediaMatcher('portrait','(orientation: portrait)')}}get matchers(){return Object.values({...this.breakpoint,...this.orientation})}static query={up:(...e)=>`(min-width: ${e[0]}px)`,below:(...e)=>`(max-width: ${e[0]-.02}px)`};static create(e){return new MediaMediator(e?{...constants.BREAKPOINTS,...e}:constants.BREAKPOINTS)}}exports.MediaMediator=MediaMediator;
2
- //# sourceMappingURL=MediaMediator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaMediator.js","sources":["../../../../src/shared/media/MediaMediator.ts"],"sourcesContent":["import { BREAKPOINTS } from 'shared/constants'\nimport type { Breakpoint, Orientation, MediaBreakpoint, MediaMatcherId } from 'shared/types'\nimport { MediaMatcher } from './MediaMatcher'\n\nexport class MediaMediator {\n public breakpoint: Record<MediaBreakpoint, MediaMatcher<MediaMatcherId>>\n public orientation: Record<Orientation, MediaMatcher<MediaMatcherId>>\n\n constructor(bps: Record<Lowercase<Breakpoint>, number>) {\n this.breakpoint = {\n minXXL: new MediaMatcher('minXXL', MediaMediator.query.up(bps.xxl)),\n minXL: new MediaMatcher('minXL', MediaMediator.query.up(bps.xl)),\n minL: new MediaMatcher('minL', MediaMediator.query.up(bps.l)),\n minM: new MediaMatcher('minM', MediaMediator.query.up(bps.m)),\n minS: new MediaMatcher('minS', MediaMediator.query.up(bps.s)),\n minXS: new MediaMatcher('minXS', MediaMediator.query.up(bps.xs)),\n minXXS: new MediaMatcher('minXXS', MediaMediator.query.up(bps.xxs)),\n maxXXL: new MediaMatcher('maxXXL', MediaMediator.query.below(bps.xxl)),\n maxXL: new MediaMatcher('maxXL', MediaMediator.query.below(bps.xl)),\n maxL: new MediaMatcher('maxL', MediaMediator.query.below(bps.l)),\n maxM: new MediaMatcher('maxM', MediaMediator.query.below(bps.m)),\n maxS: new MediaMatcher('maxS', MediaMediator.query.below(bps.s)),\n maxXS: new MediaMatcher('maxXS', MediaMediator.query.below(bps.xs)),\n maxXXS: new MediaMatcher('maxXXS', MediaMediator.query.below(bps.xxs)),\n }\n this.orientation = {\n landscape: new MediaMatcher('landscape', '(orientation: landscape)'),\n portrait: new MediaMatcher('portrait', '(orientation: portrait)'),\n }\n }\n\n get matchers() {\n return Object.values({ ...this.breakpoint, ...this.orientation })\n }\n\n static query = {\n up: (...bps: number[]) => `(min-width: ${bps[0]}px)`,\n below: (...bps: number[]) => `(max-width: ${bps[0] - 0.02}px)`,\n }\n\n static create(bps?: Partial<Record<Lowercase<Breakpoint>, number>>) {\n return new MediaMediator(bps ? { ...BREAKPOINTS, ...bps } : BREAKPOINTS)\n }\n}\n"],"names":["MediaMediator","constructor","bps","this","breakpoint","minXXL","MediaMatcher","query","up","xxl","minXL","xl","minL","l","minM","m","minS","s","minXS","xs","minXXS","xxs","maxXXL","below","maxXL","maxL","maxM","maxS","maxXS","maxXXS","orientation","landscape","portrait","matchers","Object","values","static","create","BREAKPOINTS"],"mappings":"oGAIO,MAAMA,cAIXC,WAAAA,CAAYC,GACVC,KAAKC,WAAa,CAChBC,OAAQ,IAAIC,aAAAA,aAAa,SAAUN,cAAcO,MAAMC,GAAGN,EAAIO,MAC9DC,MAAO,IAAIJ,aAAAA,aAAa,QAASN,cAAcO,MAAMC,GAAGN,EAAIS,KAC5DC,KAAM,IAAIN,aAAAA,aAAa,OAAQN,cAAcO,MAAMC,GAAGN,EAAIW,IAC1DC,KAAM,IAAIR,aAAAA,aAAa,OAAQN,cAAcO,MAAMC,GAAGN,EAAIa,IAC1DC,KAAM,IAAIV,aAAAA,aAAa,OAAQN,cAAcO,MAAMC,GAAGN,EAAIe,IAC1DC,MAAO,IAAIZ,aAAAA,aAAa,QAASN,cAAcO,MAAMC,GAAGN,EAAIiB,KAC5DC,OAAQ,IAAId,aAAAA,aAAa,SAAUN,cAAcO,MAAMC,GAAGN,EAAImB,MAC9DC,OAAQ,IAAIhB,aAAAA,aAAa,SAAUN,cAAcO,MAAMgB,MAAMrB,EAAIO,MACjEe,MAAO,IAAIlB,aAAAA,aAAa,QAASN,cAAcO,MAAMgB,MAAMrB,EAAIS,KAC/Dc,KAAM,IAAInB,aAAAA,aAAa,OAAQN,cAAcO,MAAMgB,MAAMrB,EAAIW,IAC7Da,KAAM,IAAIpB,aAAAA,aAAa,OAAQN,cAAcO,MAAMgB,MAAMrB,EAAIa,IAC7DY,KAAM,IAAIrB,aAAAA,aAAa,OAAQN,cAAcO,MAAMgB,MAAMrB,EAAIe,IAC7DW,MAAO,IAAItB,aAAAA,aAAa,QAASN,cAAcO,MAAMgB,MAAMrB,EAAIiB,KAC/DU,OAAQ,IAAIvB,aAAAA,aAAa,SAAUN,cAAcO,MAAMgB,MAAMrB,EAAImB,OAEnElB,KAAK2B,YAAc,CACjBC,UAAW,IAAIzB,aAAAA,aAAa,YAAa,4BACzC0B,SAAU,IAAI1B,0BAAa,WAAY,2BAE3C,CAEA,YAAI2B,GACF,OAAOC,OAAOC,OAAO,IAAKhC,KAAKC,cAAeD,KAAK2B,aACrD,CAEAM,aAAe,CACb5B,GAAIA,IAAIN,IAAkB,eAAeA,EAAI,QAC7CqB,MAAOA,IAAIrB,IAAkB,eAAeA,EAAI,GAAK,UAGvD,aAAOmC,CAAOnC,GACZ,OAAO,IAAIF,cAAcE,EAAM,IAAKoC,UAAAA,eAAgBpC,GAAQoC,sBAC9D"}
@@ -1,2 +0,0 @@
1
- import{BREAKPOINTS}from'../constants.mjs';import{MediaMatcher}from'./MediaMatcher.mjs';class MediaMediator{constructor(e){this.breakpoint={minXXL:new MediaMatcher('minXXL',MediaMediator.query.up(e.xxl)),minXL:new MediaMatcher('minXL',MediaMediator.query.up(e.xl)),minL:new MediaMatcher('minL',MediaMediator.query.up(e.l)),minM:new MediaMatcher('minM',MediaMediator.query.up(e.m)),minS:new MediaMatcher('minS',MediaMediator.query.up(e.s)),minXS:new MediaMatcher('minXS',MediaMediator.query.up(e.xs)),minXXS:new MediaMatcher('minXXS',MediaMediator.query.up(e.xxs)),maxXXL:new MediaMatcher('maxXXL',MediaMediator.query.below(e.xxl)),maxXL:new MediaMatcher('maxXL',MediaMediator.query.below(e.xl)),maxL:new MediaMatcher('maxL',MediaMediator.query.below(e.l)),maxM:new MediaMatcher('maxM',MediaMediator.query.below(e.m)),maxS:new MediaMatcher('maxS',MediaMediator.query.below(e.s)),maxXS:new MediaMatcher('maxXS',MediaMediator.query.below(e.xs)),maxXXS:new MediaMatcher('maxXXS',MediaMediator.query.below(e.xxs))},this.orientation={landscape:new MediaMatcher('landscape','(orientation: landscape)'),portrait:new MediaMatcher('portrait','(orientation: portrait)')}}get matchers(){return Object.values({...this.breakpoint,...this.orientation})}static query={up:(...e)=>`(min-width: ${e[0]}px)`,below:(...e)=>`(max-width: ${e[0]-.02}px)`};static create(e){return new MediaMediator(e?{...BREAKPOINTS,...e}:BREAKPOINTS)}}export{MediaMediator};
2
- //# sourceMappingURL=MediaMediator.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaMediator.mjs","sources":["../../../../src/shared/media/MediaMediator.ts"],"sourcesContent":["import { BREAKPOINTS } from 'shared/constants'\nimport type { Breakpoint, Orientation, MediaBreakpoint, MediaMatcherId } from 'shared/types'\nimport { MediaMatcher } from './MediaMatcher'\n\nexport class MediaMediator {\n public breakpoint: Record<MediaBreakpoint, MediaMatcher<MediaMatcherId>>\n public orientation: Record<Orientation, MediaMatcher<MediaMatcherId>>\n\n constructor(bps: Record<Lowercase<Breakpoint>, number>) {\n this.breakpoint = {\n minXXL: new MediaMatcher('minXXL', MediaMediator.query.up(bps.xxl)),\n minXL: new MediaMatcher('minXL', MediaMediator.query.up(bps.xl)),\n minL: new MediaMatcher('minL', MediaMediator.query.up(bps.l)),\n minM: new MediaMatcher('minM', MediaMediator.query.up(bps.m)),\n minS: new MediaMatcher('minS', MediaMediator.query.up(bps.s)),\n minXS: new MediaMatcher('minXS', MediaMediator.query.up(bps.xs)),\n minXXS: new MediaMatcher('minXXS', MediaMediator.query.up(bps.xxs)),\n maxXXL: new MediaMatcher('maxXXL', MediaMediator.query.below(bps.xxl)),\n maxXL: new MediaMatcher('maxXL', MediaMediator.query.below(bps.xl)),\n maxL: new MediaMatcher('maxL', MediaMediator.query.below(bps.l)),\n maxM: new MediaMatcher('maxM', MediaMediator.query.below(bps.m)),\n maxS: new MediaMatcher('maxS', MediaMediator.query.below(bps.s)),\n maxXS: new MediaMatcher('maxXS', MediaMediator.query.below(bps.xs)),\n maxXXS: new MediaMatcher('maxXXS', MediaMediator.query.below(bps.xxs)),\n }\n this.orientation = {\n landscape: new MediaMatcher('landscape', '(orientation: landscape)'),\n portrait: new MediaMatcher('portrait', '(orientation: portrait)'),\n }\n }\n\n get matchers() {\n return Object.values({ ...this.breakpoint, ...this.orientation })\n }\n\n static query = {\n up: (...bps: number[]) => `(min-width: ${bps[0]}px)`,\n below: (...bps: number[]) => `(max-width: ${bps[0] - 0.02}px)`,\n }\n\n static create(bps?: Partial<Record<Lowercase<Breakpoint>, number>>) {\n return new MediaMediator(bps ? { ...BREAKPOINTS, ...bps } : BREAKPOINTS)\n }\n}\n"],"names":["MediaMediator","constructor","bps","this","breakpoint","minXXL","MediaMatcher","query","up","xxl","minXL","xl","minL","l","minM","m","minS","s","minXS","xs","minXXS","xxs","maxXXL","below","maxXL","maxL","maxM","maxS","maxXS","maxXXS","orientation","landscape","portrait","matchers","Object","values","static","create","BREAKPOINTS"],"mappings":"uFAIO,MAAMA,cAIXC,WAAAA,CAAYC,GACVC,KAAKC,WAAa,CAChBC,OAAQ,IAAIC,aAAa,SAAUN,cAAcO,MAAMC,GAAGN,EAAIO,MAC9DC,MAAO,IAAIJ,aAAa,QAASN,cAAcO,MAAMC,GAAGN,EAAIS,KAC5DC,KAAM,IAAIN,aAAa,OAAQN,cAAcO,MAAMC,GAAGN,EAAIW,IAC1DC,KAAM,IAAIR,aAAa,OAAQN,cAAcO,MAAMC,GAAGN,EAAIa,IAC1DC,KAAM,IAAIV,aAAa,OAAQN,cAAcO,MAAMC,GAAGN,EAAIe,IAC1DC,MAAO,IAAIZ,aAAa,QAASN,cAAcO,MAAMC,GAAGN,EAAIiB,KAC5DC,OAAQ,IAAId,aAAa,SAAUN,cAAcO,MAAMC,GAAGN,EAAImB,MAC9DC,OAAQ,IAAIhB,aAAa,SAAUN,cAAcO,MAAMgB,MAAMrB,EAAIO,MACjEe,MAAO,IAAIlB,aAAa,QAASN,cAAcO,MAAMgB,MAAMrB,EAAIS,KAC/Dc,KAAM,IAAInB,aAAa,OAAQN,cAAcO,MAAMgB,MAAMrB,EAAIW,IAC7Da,KAAM,IAAIpB,aAAa,OAAQN,cAAcO,MAAMgB,MAAMrB,EAAIa,IAC7DY,KAAM,IAAIrB,aAAa,OAAQN,cAAcO,MAAMgB,MAAMrB,EAAIe,IAC7DW,MAAO,IAAItB,aAAa,QAASN,cAAcO,MAAMgB,MAAMrB,EAAIiB,KAC/DU,OAAQ,IAAIvB,aAAa,SAAUN,cAAcO,MAAMgB,MAAMrB,EAAImB,OAEnElB,KAAK2B,YAAc,CACjBC,UAAW,IAAIzB,aAAa,YAAa,4BACzC0B,SAAU,IAAI1B,aAAa,WAAY,2BAE3C,CAEA,YAAI2B,GACF,OAAOC,OAAOC,OAAO,IAAKhC,KAAKC,cAAeD,KAAK2B,aACrD,CAEAM,aAAe,CACb5B,GAAIA,IAAIN,IAAkB,eAAeA,EAAI,QAC7CqB,MAAOA,IAAIrB,IAAkB,eAAeA,EAAI,GAAK,UAGvD,aAAOmC,CAAOnC,GACZ,OAAO,IAAIF,cAAcE,EAAM,IAAKoC,eAAgBpC,GAAQoC,YAC9D"}
@@ -1,2 +0,0 @@
1
- 'use strict';exports.isPointerSupported=()=>typeof window!='undefined'&&'PointerEvent'in window;
2
- //# sourceMappingURL=isPointerSupported.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isPointerSupported.js","sources":["../../../../src/shared/utils/isPointerSupported.ts"],"sourcesContent":["export const isPointerSupported = () => {\n return typeof window !== 'undefined' && 'PointerEvent' in window\n}\n"],"names":["isPointerSupported","window"],"mappings":"wCAAkCA,WAClBC,QAAW,aAAe,iBAAkBA"}
@@ -1,2 +0,0 @@
1
- const isPointerSupported=()=>typeof window!='undefined'&&'PointerEvent'in window;export{isPointerSupported};
2
- //# sourceMappingURL=isPointerSupported.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isPointerSupported.mjs","sources":["../../../../src/shared/utils/isPointerSupported.ts"],"sourcesContent":["export const isPointerSupported = () => {\n return typeof window !== 'undefined' && 'PointerEvent' in window\n}\n"],"names":["isPointerSupported","window"],"mappings":"AAAO,MAAMA,mBAAqBA,WAClBC,QAAW,aAAe,iBAAkBA"}
File without changes