@anoki/fse-ui 1.0.721 → 1.0.723

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 (214) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs100.js +1 -1
  3. package/dist/index.cjs100.js.map +1 -1
  4. package/dist/index.cjs115.js +1 -1
  5. package/dist/index.cjs115.js.map +1 -1
  6. package/dist/index.cjs193.js +1 -1
  7. package/dist/index.cjs193.js.map +1 -1
  8. package/dist/index.cjs194.js +1 -1
  9. package/dist/index.cjs194.js.map +1 -1
  10. package/dist/index.cjs198.js +1 -1
  11. package/dist/index.cjs198.js.map +1 -1
  12. package/dist/index.cjs207.js +1 -1
  13. package/dist/index.cjs207.js.map +1 -1
  14. package/dist/index.cjs211.js +1 -1
  15. package/dist/index.cjs211.js.map +1 -1
  16. package/dist/index.cjs216.js +1 -1
  17. package/dist/index.cjs223.js +1 -1
  18. package/dist/index.cjs244.js +1 -1
  19. package/dist/index.cjs244.js.map +1 -1
  20. package/dist/index.cjs255.js +1 -1
  21. package/dist/index.cjs255.js.map +1 -1
  22. package/dist/index.cjs265.js +1 -1
  23. package/dist/index.cjs271.js +1 -1
  24. package/dist/index.cjs271.js.map +1 -1
  25. package/dist/index.cjs278.js +1 -1
  26. package/dist/index.cjs28.js +1 -1
  27. package/dist/index.cjs28.js.map +1 -1
  28. package/dist/index.cjs283.js +1 -1
  29. package/dist/index.cjs290.js +1 -1
  30. package/dist/index.cjs298.js +1 -1
  31. package/dist/index.cjs298.js.map +1 -1
  32. package/dist/index.cjs337.js +1 -1
  33. package/dist/index.cjs337.js.map +1 -1
  34. package/dist/index.cjs378.js +1 -1
  35. package/dist/index.cjs379.js +3 -12
  36. package/dist/index.cjs379.js.map +1 -1
  37. package/dist/index.cjs380.js +27 -1
  38. package/dist/index.cjs380.js.map +1 -1
  39. package/dist/index.cjs381.js +1 -2
  40. package/dist/index.cjs381.js.map +1 -1
  41. package/dist/index.cjs382.js +1 -27
  42. package/dist/index.cjs382.js.map +1 -1
  43. package/dist/index.cjs383.js +1 -1
  44. package/dist/index.cjs383.js.map +1 -1
  45. package/dist/index.cjs384.js +2 -1
  46. package/dist/index.cjs384.js.map +1 -1
  47. package/dist/index.cjs388.js +1 -1
  48. package/dist/index.cjs388.js.map +1 -1
  49. package/dist/index.cjs389.js +1 -1
  50. package/dist/index.cjs389.js.map +1 -1
  51. package/dist/index.cjs390.js +1 -1
  52. package/dist/index.cjs390.js.map +1 -1
  53. package/dist/index.cjs391.js +1 -1
  54. package/dist/index.cjs397.js +1 -1
  55. package/dist/index.cjs398.js +1 -1
  56. package/dist/index.cjs398.js.map +1 -1
  57. package/dist/index.cjs399.js +1 -1
  58. package/dist/index.cjs399.js.map +1 -1
  59. package/dist/index.cjs401.js +1 -1
  60. package/dist/index.cjs401.js.map +1 -1
  61. package/dist/index.cjs402.js +1 -1
  62. package/dist/index.cjs402.js.map +1 -1
  63. package/dist/index.cjs403.js +1 -1
  64. package/dist/index.cjs403.js.map +1 -1
  65. package/dist/index.cjs404.js +1 -1
  66. package/dist/index.cjs404.js.map +1 -1
  67. package/dist/index.cjs405.js +1 -1
  68. package/dist/index.cjs405.js.map +1 -1
  69. package/dist/index.cjs406.js +1 -1
  70. package/dist/index.cjs406.js.map +1 -1
  71. package/dist/index.cjs407.js +1 -1
  72. package/dist/index.cjs407.js.map +1 -1
  73. package/dist/index.cjs413.js +2 -0
  74. package/dist/index.cjs413.js.map +1 -0
  75. package/dist/{index.cjs429.js → index.cjs417.js} +1 -1
  76. package/dist/{index.cjs429.js.map → index.cjs417.js.map} +1 -1
  77. package/dist/{index.cjs425.js → index.cjs418.js} +2 -2
  78. package/dist/index.cjs418.js.map +1 -0
  79. package/dist/{index.cjs426.js → index.cjs419.js} +1 -1
  80. package/dist/{index.cjs426.js.map → index.cjs419.js.map} +1 -1
  81. package/dist/index.cjs42.js +1 -1
  82. package/dist/index.cjs42.js.map +1 -1
  83. package/dist/{index.cjs427.js → index.cjs420.js} +2 -2
  84. package/dist/index.cjs420.js.map +1 -0
  85. package/dist/index.cjs421.js +2 -0
  86. package/dist/index.cjs421.js.map +1 -0
  87. package/dist/{index.cjs424.js → index.cjs422.js} +1 -1
  88. package/dist/{index.cjs424.js.map → index.cjs422.js.map} +1 -1
  89. package/dist/index.cjs430.js +1 -1
  90. package/dist/index.cjs432.js.map +1 -1
  91. package/dist/index.cjs433.js +1 -1
  92. package/dist/index.cjs433.js.map +1 -1
  93. package/dist/index.cjs442.js +1 -1
  94. package/dist/index.cjs442.js.map +1 -1
  95. package/dist/index.cjs461.js +1 -1
  96. package/dist/index.cjs468.js +1 -1
  97. package/dist/index.cjs468.js.map +1 -1
  98. package/dist/index.cjs483.js +1 -1
  99. package/dist/index.cjs49.js +1 -1
  100. package/dist/index.cjs49.js.map +1 -1
  101. package/dist/index.cjs62.js +1 -1
  102. package/dist/index.cjs62.js.map +1 -1
  103. package/dist/index.d.ts +6 -0
  104. package/dist/index.es.js +182 -181
  105. package/dist/index.es100.js +2 -2
  106. package/dist/index.es115.js +29 -21
  107. package/dist/index.es115.js.map +1 -1
  108. package/dist/index.es193.js +76 -71
  109. package/dist/index.es193.js.map +1 -1
  110. package/dist/index.es194.js +11 -1
  111. package/dist/index.es194.js.map +1 -1
  112. package/dist/index.es198.js +63 -58
  113. package/dist/index.es198.js.map +1 -1
  114. package/dist/index.es207.js +29 -26
  115. package/dist/index.es207.js.map +1 -1
  116. package/dist/index.es211.js +18 -15
  117. package/dist/index.es211.js.map +1 -1
  118. package/dist/index.es216.js +1 -1
  119. package/dist/index.es223.js +2 -2
  120. package/dist/index.es244.js +18 -17
  121. package/dist/index.es244.js.map +1 -1
  122. package/dist/index.es255.js +236 -119
  123. package/dist/index.es255.js.map +1 -1
  124. package/dist/index.es265.js +1 -1
  125. package/dist/index.es271.js +27 -26
  126. package/dist/index.es271.js.map +1 -1
  127. package/dist/index.es278.js +1 -1
  128. package/dist/index.es28.js +5 -5
  129. package/dist/index.es283.js +1 -1
  130. package/dist/index.es290.js +1 -1
  131. package/dist/index.es298.js +102 -87
  132. package/dist/index.es298.js.map +1 -1
  133. package/dist/index.es337.js +1 -1
  134. package/dist/index.es337.js.map +1 -1
  135. package/dist/index.es378.js +1 -1
  136. package/dist/index.es379.js +146 -307
  137. package/dist/index.es379.js.map +1 -1
  138. package/dist/index.es380.js +3674 -5
  139. package/dist/index.es380.js.map +1 -1
  140. package/dist/index.es381.js +5 -520
  141. package/dist/index.es381.js.map +1 -1
  142. package/dist/index.es382.js +2 -3675
  143. package/dist/index.es382.js.map +1 -1
  144. package/dist/index.es383.js +5 -5
  145. package/dist/index.es383.js.map +1 -1
  146. package/dist/index.es384.js +521 -2
  147. package/dist/index.es384.js.map +1 -1
  148. package/dist/index.es388.js +43 -21
  149. package/dist/index.es388.js.map +1 -1
  150. package/dist/index.es389.js +2 -1
  151. package/dist/index.es389.js.map +1 -1
  152. package/dist/index.es390.js +129 -129
  153. package/dist/index.es390.js.map +1 -1
  154. package/dist/index.es391.js +1 -1
  155. package/dist/index.es397.js +1 -1
  156. package/dist/index.es398.js +3 -3
  157. package/dist/index.es398.js.map +1 -1
  158. package/dist/index.es399.js +2 -15
  159. package/dist/index.es399.js.map +1 -1
  160. package/dist/index.es400.js +2 -2
  161. package/dist/index.es401.js +125 -2
  162. package/dist/index.es401.js.map +1 -1
  163. package/dist/index.es402.js +126 -116
  164. package/dist/index.es402.js.map +1 -1
  165. package/dist/index.es403.js +13 -134
  166. package/dist/index.es403.js.map +1 -1
  167. package/dist/index.es404.js +14 -13
  168. package/dist/index.es404.js.map +1 -1
  169. package/dist/index.es405.js +8 -14
  170. package/dist/index.es405.js.map +1 -1
  171. package/dist/index.es406.js +50 -9
  172. package/dist/index.es406.js.map +1 -1
  173. package/dist/index.es407.js +53 -49
  174. package/dist/index.es407.js.map +1 -1
  175. package/dist/index.es413.js +18 -0
  176. package/dist/index.es413.js.map +1 -0
  177. package/dist/{index.es429.js → index.es417.js} +1 -1
  178. package/dist/{index.es429.js.map → index.es417.js.map} +1 -1
  179. package/dist/{index.es425.js → index.es418.js} +2 -2
  180. package/dist/index.es418.js.map +1 -0
  181. package/dist/{index.es426.js → index.es419.js} +1 -1
  182. package/dist/{index.es426.js.map → index.es419.js.map} +1 -1
  183. package/dist/index.es42.js +9 -9
  184. package/dist/{index.es427.js → index.es420.js} +3 -3
  185. package/dist/index.es420.js.map +1 -0
  186. package/dist/{index.es428.js → index.es421.js} +75 -72
  187. package/dist/index.es421.js.map +1 -0
  188. package/dist/{index.es424.js → index.es422.js} +1 -1
  189. package/dist/{index.es424.js.map → index.es422.js.map} +1 -1
  190. package/dist/index.es430.js +1 -1
  191. package/dist/index.es432.js.map +1 -1
  192. package/dist/index.es433.js +10 -6
  193. package/dist/index.es433.js.map +1 -1
  194. package/dist/index.es442.js +153 -149
  195. package/dist/index.es442.js.map +1 -1
  196. package/dist/index.es461.js +1 -1
  197. package/dist/index.es468.js +3 -3
  198. package/dist/index.es468.js.map +1 -1
  199. package/dist/index.es483.js +1 -1
  200. package/dist/index.es49.js +14 -14
  201. package/dist/index.es62.js +9 -9
  202. package/package.json +1 -1
  203. package/dist/index.cjs408.js +0 -2
  204. package/dist/index.cjs408.js.map +0 -1
  205. package/dist/index.cjs425.js.map +0 -1
  206. package/dist/index.cjs427.js.map +0 -1
  207. package/dist/index.cjs428.js +0 -2
  208. package/dist/index.cjs428.js.map +0 -1
  209. package/dist/index.es408.js +0 -56
  210. package/dist/index.es408.js.map +0 -1
  211. package/dist/index.es425.js.map +0 -1
  212. package/dist/index.es427.js.map +0 -1
  213. package/dist/index.es428.js.map +0 -1
  214. /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./styles/index.css');;/* empty css */require("./index.cjs3.js");const S=require("./index.cjs4.js");require("./index.cjs5.js");const C=require("./index.cjs6.js"),p=require("./index.cjs7.js"),D=require("./index.cjs8.js"),g=require("./index.cjs9.js"),m=require("./index.cjs10.js"),T=require("./index.cjs11.js"),E=require("./index.cjs12.js"),k=require("./index.cjs13.js"),h=require("./index.cjs14.js"),A=require("./index.cjs15.js"),M=require("./index.cjs16.js"),L=require("./index.cjs17.js"),b=require("./index.cjs18.js"),H=require("./index.cjs19.js"),I=require("./index.cjs20.js"),P=require("./index.cjs21.js"),f=require("./index.cjs22.js"),F=require("./index.cjs23.js"),n=require("./index.cjs24.js"),w=require("./index.cjs25.js"),B=require("./index.cjs26.js"),v=require("./index.cjs27.js"),V=require("./index.cjs28.js"),y=require("./index.cjs29.js"),N=require("./index.cjs30.js"),O=require("./index.cjs31.js"),R=require("./index.cjs32.js"),G=require("./index.cjs33.js"),i=require("./index.cjs34.js"),o=require("./index.cjs35.js"),U=require("./index.cjs36.js"),_=require("./index.cjs37.js"),W=require("./index.cjs38.js"),Y=require("./index.cjs39.js"),z=require("./index.cjs40.js"),Q=require("./index.cjs41.js"),j=require("./index.cjs42.js"),Z=require("./index.cjs43.js"),J=require("./index.cjs44.js"),K=require("./index.cjs45.js"),X=require("./index.cjs46.js"),ee=require("./index.cjs47.js"),re=require("./index.cjs48.js"),ne=require("./index.cjs49.js"),ie=require("./index.cjs50.js"),oe=require("./index.cjs51.js"),te=require("./index.cjs52.js"),ce=require("./index.cjs53.js"),ae=require("./index.cjs54.js"),de=require("./index.cjs55.js"),se=require("./index.cjs56.js"),ue=require("./index.cjs57.js"),le=require("./index.cjs58.js"),xe=require("./index.cjs59.js"),qe=require("./index.cjs60.js"),$e=require("./index.cjs61.js"),Se=require("./index.cjs62.js"),Ce=require("./index.cjs63.js"),pe=require("./index.cjs64.js"),De=require("./index.cjs65.js"),e=require("./index.cjs66.js"),r=require("./index.cjs67.js"),ge=require("./index.cjs68.js"),me=require("./index.cjs69.js"),Te=require("./index.cjs70.js"),Ee=require("./index.cjs71.js"),ke=require("./index.cjs72.js"),he=require("./index.cjs73.js"),Ae=require("./index.cjs74.js"),Me=require("./index.cjs75.js"),Le=require("./index.cjs76.js"),be=require("./index.cjs77.js"),He=require("./index.cjs78.js"),Ie=require("./index.cjs79.js"),Pe=require("./index.cjs80.js"),fe=require("./index.cjs81.js"),Fe=require("./index.cjs82.js"),we=require("./index.cjs83.js"),Be=require("./index.cjs84.js"),ve=require("./index.cjs85.js"),Ve=require("./index.cjs86.js"),t=require("./index.cjs87.js"),c=require("./index.cjs88.js"),a=require("./index.cjs89.js"),d=require("./index.cjs90.js"),ye=require("./index.cjs91.js"),Ne=require("./index.cjs92.js"),Oe=require("./index.cjs93.js"),s=require("./index.cjs94.js"),Re=require("./index.cjs95.js"),Ge=require("./index.cjs96.js"),Ue=require("./index.cjs97.js"),_e=require("./index.cjs98.js"),We=require("./index.cjs99.js"),Ye=require("./index.cjs100.js"),ze=require("./index.cjs101.js"),Qe=require("./index.cjs102.js"),je=require("./index.cjs103.js"),Ze=require("./index.cjs104.js"),u=require("./index.cjs105.js"),Je=require("./index.cjs106.js"),Ke=require("./index.cjs107.js"),Xe=require("./index.cjs108.js"),er=require("./index.cjs109.js"),rr=require("./index.cjs110.js"),nr=require("./index.cjs111.js"),ir=require("./index.cjs112.js"),or=require("./index.cjs113.js"),tr=require("./index.cjs114.js"),l=require("./index.cjs115.js"),cr=require("./index.cjs116.js"),ar=require("./index.cjs117.js"),dr=require("./index.cjs118.js"),x=require("./index.cjs119.js"),sr=require("./index.cjs120.js"),ur=require("./index.cjs121.js"),q=require("./index.cjs122.js"),lr=require("./index.cjs123.js"),xr=require("./index.cjs124.js"),qr=require("./index.cjs125.js"),$r=require("./index.cjs126.js"),Sr=require("./index.cjs127.js"),$=require("./index.cjs128.js"),Cr=require("./index.cjs129.js"),pr=require("./index.cjs130.js"),Dr=require("./index.cjs131.js"),gr=require("./index.cjs132.js"),mr=require("./index.cjs133.js"),Tr=require("./index.cjs134.js"),Er=require("./index.cjs135.js"),kr=require("./index.cjs136.js"),hr=require("./index.cjs137.js"),Ar=require("./index.cjs138.js"),Mr=require("./index.cjs139.js"),Lr=require("./index.cjs140.js"),br=require("./index.cjs141.js"),Hr=require("./index.cjs142.js"),Ir=require("./index.cjs143.js"),Pr=require("./index.cjs144.js"),fr=require("./index.cjs145.js"),Fr=require("./index.cjs146.js"),wr=require("./index.cjs147.js"),Br=require("./index.cjs148.js"),vr=require("./index.cjs149.js"),Vr=require("./index.cjs150.js"),yr=require("./index.cjs151.js"),Nr=require("./index.cjs152.js"),Or=require("./index.cjs153.js"),Rr=require("./index.cjs154.js"),Gr=require("./index.cjs155.js"),Ur=require("./index.cjs156.js"),_r=require("./index.cjs157.js"),Wr=require("./index.cjs158.js"),Yr=require("./index.cjs159.js"),zr=require("./index.cjs160.js"),Qr=require("./index.cjs161.js"),jr=require("./index.cjs162.js"),Zr=require("./index.cjs163.js"),Jr=require("./index.cjs164.js"),Kr=require("./index.cjs165.js"),Xr=require("./index.cjs166.js"),en=require("./index.cjs167.js"),rn=require("./index.cjs168.js"),nn=require("./index.cjs169.js"),on=require("./index.cjs170.js"),tn=require("./index.cjs171.js"),cn=require("./index.cjs172.js"),an=require("./index.cjs173.js"),dn=require("./index.cjs174.js"),sn=require("./index.cjs175.js"),un=require("./index.cjs176.js"),ln=require("./index.cjs177.js"),xn=require("./index.cjs178.js"),qn=require("./index.cjs179.js"),$n=require("./index.cjs180.js"),Sn=require("./index.cjs181.js"),Cn=require("./index.cjs182.js"),pn=require("./index.cjs183.js"),Dn=require("./index.cjs184.js"),gn=require("./index.cjs185.js"),mn=require("./index.cjs186.js"),Tn=require("./index.cjs187.js"),En=require("./index.cjs188.js"),kn=require("./index.cjs189.js"),hn=require("./index.cjs190.js"),An=require("./index.cjs191.js"),Mn=require("./index.cjs192.js");S.defaultLocale="it";exports.Container=C.Container;exports.GridContainer=p.GridContainer;exports.GridItem=D.GridItem;exports.Row=g.Row;exports.Col=m.Col;exports.Search=T.Search;exports.SearchStructure=E.SearchStructure;exports.SearchService=k.SearchService;exports.SearchDocument=h.SearchDocument;exports.SearchGeneric=A.SearchGeneric;exports.Footer=M.Footer;exports.HeaderSlim=L.HeaderSlim;exports.HeaderPostLogin=b.HeaderPostLogin;exports.Breadcrumb=H.Breadcrumb;exports.TabBar=I.TabBar;exports.HeaderTopBanner=P.HeaderTopBanner;exports.Dropdown=f.Dropdown;exports.FilterDropDown=F.FilterDropDown;exports.Header=n.Header;exports.LOGOS=n.LOGOS;exports.Button=w.Button;exports.CardCategory=B.CardCategory;exports.CardMap=v.CardMap;exports.CardMapDoctor=V.CardMapDoctor;exports.CardService=y.CardService;exports.CardDocument=N.CardDocument;exports.CardOpeningHours=O.CardOpeningHours;exports.SupportBanner=R.SupportBanner;exports.TabsGlossary=G.TabsGlossary;exports.AuthenticatedModeEnum=i.AuthenticatedModeEnum;exports.AuthorWithImage=i.AuthorWithImage;exports.VIDEO_PLAYER_SIZE=o.VIDEO_PLAYER_SIZE;exports.VideoPlayer=o.VideoPlayer;exports.ArrowLink=U.ArrowLink;exports.EntryButton=_.EntryButton;exports.BaseModal=W.BaseModal;exports.ConsentModal=Y.ConsentModal;exports.DoctorModal=z.DoctorModal;exports.ProgressBar=Q.ProgressBar;exports.CardSelectDoctor=j.CardSelectDoctor;exports.CardDoctorInfo=Z.CardDoctorInfo;exports.DoctorConfirmModal=J.DoctorConfirmModal;exports.DocumentUploadModal=K.DocumentUploadModal;exports.DocumentUploadComponent=X.DocumentUploadComponent;exports.Section=ee.Section;exports.Switch=re.Switch;exports.Checkbox=ne.Checkbox;exports.BottomNavigation=ie.BottomNavigation;exports.CategoryContent=oe.CategoryContent;exports.CategoryHeader=te.CategoryHeader;exports.HeaderNavigation=ce.HeaderNavigation;exports.FiltersChips=ae.FiltersChips;exports.CardReminder=de.CardReminder;exports.CardDoctor=se.CardDoctor;exports.Avatar=ue.Avatar;exports.NavList=le.NavList;exports.RadioCard=xe.RadioCard;exports.ActionIconText=qe.ActionIconText;exports.TitleSection=$e.TitleSection;exports.CheckboxFilter=Se.CheckboxFilter;exports.CardUser=Ce.CardUser;exports.CardExemption=pe.CardExemption;exports.Loader=De.Loader;exports.Pagination=e.Pagination;exports.Table=e.Table;exports.TableBody=e.TableBody;exports.TableCell=e.TableCell;exports.TableHead=e.TableHead;exports.TableHeader=e.TableHeader;exports.TableRow=e.TableRow;exports.CardTable=r.CardTable;exports.TableMobile=r.TableMobile;exports.TableMobilePagination=r.TableMobilePagination;exports.InfoPopup=ge.InfoPopup;exports.CardNotification=me.CardNotification;exports.DatePicker=Te.DatePicker;exports.DatePickerRange=Ee.DatePickerRange;exports.NotificationsSettingsHeader=ke.NotificationsSettingsHeader;exports.InfoModal=he.InfoModal;exports.DoctorSkeleton=Ae.DoctorSkeleton;exports.InfoCardSkeleton=Me.InfoCardSkeleton;exports.TableSkeleton=Le.TableSkeleton;exports.DocumentsListSkeleton=be.DocumentsListSkeleton;exports.ServicesListSkeleton=He.ServicesListSkeleton;exports.NotificationsListSkeleton=Ie.NotificationsListSkeleton;exports.DocumentDetailSkeleton=Pe.DocumentDetailSkeleton;exports.HealthProfileSkeleton=fe.HealthProfileSkeleton;exports.AccessLogSkeleton=Fe.AccessLogSkeleton;exports.ConsentPrivacySkeleton=we.ConsentPrivacySkeleton;exports.NotificationSettingsSkeleton=Be.NotificationSettingsSkeleton;exports.SearchStructureSkeleton=ve.SearchStructureSkeleton;exports.ActionPoint=Ve.ActionPoint;exports.Blockquote=t.Blockquote;exports.BlockquoteVariantEnum=t.BlockquoteVariantEnum;exports.Callout=c.Callout;exports.CalloutVariantEnum=c.CalloutVariantEnum;exports.ActionBanner=a.ActionBanner;exports.ActionBannerVariantEnum=a.ActionBannerVariantEnum;exports.Alert=d.Alert;exports.AlertVariantEnum=d.AlertVariantEnum;exports.AlertDialogUI=ye.AlertDialogUI;exports.Link=Ne.Link;exports.GenericSkeleton=Oe.GenericSkeleton;exports.CardFile=s.CardFile;exports.CardFileActionTypeEnum=s.CardFileActionTypeEnum;exports.AuthorBlock=Re.AuthorBlock;exports.ChangeProfileModal=Ge.ChangeProfileModal;exports.ModalsHeader=Ue.ModalsHeader;exports.Tag=_e.Tag;exports.TagsGroup=We.TagsGroup;exports.DelegateCard=Ye.DelegateCard;exports.ChangeRelatedCard=ze.ChangeRelatedCard;exports.TableOfContents=Qe.TableOfContents;exports.DelegateFilterDropDown=je.DelegateFilterDropDown;exports.GroupCodeExemptionFilterDropDown=Ze.GroupCodeExemptionFilterDropDown;exports.EditorialWidget=u.EditorialWidget;exports.EditorialWidgetVariantEnum=u.EditorialWidgetVariantEnum;exports.AvatarSkeleton=Je.AvatarSkeleton;exports.NotificationsListModalSkeleton=Ke.NotificationsListModalSkeleton;exports.AccordionStepper=Xe.AccordionStepper;exports.ActionsPopup=er.ActionsPopup;exports.CardEventSlim=rr.CardEventSlim;exports.CardPreview=nr.CardPreview;exports.HomeHeaderSkeleton=ir.HomeHeaderSkeleton;exports.Carousel=or.Carousel;exports.ShareButton=tr.ShareButton;exports.StepVariantEnum=l.StepVariantEnum;exports.VerticalCardStepper=l.VerticalCardStepper;exports.FinancialClassesModal=cr.FinancialClassesModal;exports.DeclarantsSelect=ar.DeclarantsSelect;exports.Login=dr.Login;exports.HOME_SERVICES_LAYOUTS=x.HOME_SERVICES_LAYOUTS;exports.HomeServices=x.HomeServices;exports.WhatDoYouNeed=sr.WhatDoYouNeed;exports.RichText=ur.RichText;exports.SERVICES_LAYOUTS=q.SERVICES_LAYOUTS;exports.Services=q.Services;exports.SuggestedServices=lr.SuggestedServices;exports.Documents=xr.Documents;exports.Tags=qr.Tags;exports.HTMLBalancer=$r.HTMLBalancer;exports.Insights=Sr.Insights;exports.IMAGES_DESCRIPTION_LAYOUTS=$.IMAGES_DESCRIPTION_LAYOUTS;exports.ImagesDescription=$.ImagesDescription;exports.VerticalCardStepperSection=Cr.VerticalCardStepperSection;exports.World=pr.World;exports.ArrowDown=Dr.ArrowDown;exports.ExternalLink=gr.ExternalLink;exports.Hamburguer=mr.Hamburguer;exports.Close=Tr.Close;exports.Ellipse=Er.Ellipse;exports.Ellipse2=kr.Ellipse2;exports.Ellipse3=hr.Ellipse3;exports.FseDGT=Ar.FseDGT;exports.FseIT=Mr.FseIT;exports.FseMEF=Lr.FseMEF;exports.Fse=br.Fse;exports.FseMS=Hr.FseMS;exports.FseUE=Ir.FseUE;exports.Lazio=Pr.Lazio;exports.Marche=fr.Marche;exports.ArrowLeft=Fr.ArrowLeft;exports.ArrowRight=wr.ArrowRight;exports.Home=Br.Home;exports.Calendar=vr.Calendar;exports.Doctor=Vr.Doctor;exports.Document=yr.Document;exports.More=Nr.More;exports.Support=Or.Support;exports.SupportNoCircle=Rr.SupportNoCircle;exports.ListStructures=Gr.ListStructures;exports.Tool=Ur.Tool;exports.Actions=_r.Actions;exports.Favourite=Wr.Favourite;exports.File=Yr.File;exports.Obscured=zr.Obscured;exports.Visible=Qr.Visible;exports.MoreActions=jr.MoreActions;exports.Add=Zr.Add;exports.Download=Jr.Download;exports.MedicHistory=Kr.MedicHistory;exports.Shape=Xr.Shape;exports.Confirm=en.Confirm;exports.NotChecked=rn.NotChecked;exports.Spinner=nn.Spinner;exports.Attachment=on.Attachment;exports.TriangleUp=tn.TriangleUp;exports.TriangleDown=cn.TriangleDown;exports.Info=an.Info;exports.Notification=dn.Notification;exports.EditPencil=sn.EditPencil;exports.ArrowTop=un.ArrowTop;exports.ErrorExagon=ln.ErrorExagon;exports.CopyLink=xn.CopyLink;exports.ShareLink=qn.ShareLink;exports.CenterMap=$n.CenterMap;exports.DocumentPdf=Sn.DocumentPdf;exports.DocumentCsv=Cn.DocumentCsv;exports.QuestionCircle=pn.QuestionCircle;exports.CheckCircle=Dn.CheckCircle;exports.CalendarOutline=gn.CalendarOutline;exports.Email=mn.Email;exports.Linkedin=Tn.Linkedin;exports.Twitter=En.Twitter;exports.Meta=kn.Meta;exports.Whatsapp=hn.Whatsapp;exports.PlayVideo=An.PlayVideo;exports.SearchIcon=Mn.SearchIcon;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./styles/index.css');;/* empty css */require("./index.cjs3.js");const S=require("./index.cjs4.js");require("./index.cjs5.js");const C=require("./index.cjs6.js"),p=require("./index.cjs7.js"),D=require("./index.cjs8.js"),m=require("./index.cjs9.js"),g=require("./index.cjs10.js"),T=require("./index.cjs11.js"),E=require("./index.cjs12.js"),k=require("./index.cjs13.js"),h=require("./index.cjs14.js"),A=require("./index.cjs15.js"),M=require("./index.cjs16.js"),L=require("./index.cjs17.js"),b=require("./index.cjs18.js"),H=require("./index.cjs19.js"),I=require("./index.cjs20.js"),P=require("./index.cjs21.js"),f=require("./index.cjs22.js"),F=require("./index.cjs23.js"),i=require("./index.cjs24.js"),w=require("./index.cjs25.js"),B=require("./index.cjs26.js"),v=require("./index.cjs27.js"),y=require("./index.cjs28.js"),V=require("./index.cjs29.js"),N=require("./index.cjs30.js"),O=require("./index.cjs31.js"),R=require("./index.cjs32.js"),G=require("./index.cjs33.js"),o=require("./index.cjs34.js"),t=require("./index.cjs35.js"),U=require("./index.cjs36.js"),_=require("./index.cjs37.js"),W=require("./index.cjs38.js"),Y=require("./index.cjs39.js"),z=require("./index.cjs40.js"),Q=require("./index.cjs41.js"),j=require("./index.cjs42.js"),Z=require("./index.cjs43.js"),J=require("./index.cjs44.js"),K=require("./index.cjs45.js"),X=require("./index.cjs46.js"),ee=require("./index.cjs47.js"),re=require("./index.cjs48.js"),ne=require("./index.cjs49.js"),ie=require("./index.cjs50.js"),oe=require("./index.cjs51.js"),te=require("./index.cjs52.js"),ce=require("./index.cjs53.js"),ae=require("./index.cjs54.js"),de=require("./index.cjs55.js"),se=require("./index.cjs56.js"),ue=require("./index.cjs57.js"),le=require("./index.cjs58.js"),xe=require("./index.cjs59.js"),qe=require("./index.cjs60.js"),$e=require("./index.cjs61.js"),Se=require("./index.cjs62.js"),Ce=require("./index.cjs63.js"),pe=require("./index.cjs64.js"),De=require("./index.cjs65.js"),e=require("./index.cjs66.js"),r=require("./index.cjs67.js"),me=require("./index.cjs68.js"),ge=require("./index.cjs69.js"),Te=require("./index.cjs70.js"),Ee=require("./index.cjs71.js"),ke=require("./index.cjs72.js"),he=require("./index.cjs73.js"),Ae=require("./index.cjs74.js"),Me=require("./index.cjs75.js"),Le=require("./index.cjs76.js"),be=require("./index.cjs77.js"),He=require("./index.cjs78.js"),Ie=require("./index.cjs79.js"),Pe=require("./index.cjs80.js"),fe=require("./index.cjs81.js"),Fe=require("./index.cjs82.js"),we=require("./index.cjs83.js"),Be=require("./index.cjs84.js"),ve=require("./index.cjs85.js"),ye=require("./index.cjs86.js"),c=require("./index.cjs87.js"),a=require("./index.cjs88.js"),d=require("./index.cjs89.js"),s=require("./index.cjs90.js"),Ve=require("./index.cjs91.js"),Ne=require("./index.cjs92.js"),Oe=require("./index.cjs93.js"),u=require("./index.cjs94.js"),Re=require("./index.cjs95.js"),Ge=require("./index.cjs96.js"),Ue=require("./index.cjs97.js"),_e=require("./index.cjs98.js"),We=require("./index.cjs99.js"),Ye=require("./index.cjs100.js"),ze=require("./index.cjs101.js"),Qe=require("./index.cjs102.js"),je=require("./index.cjs103.js"),Ze=require("./index.cjs104.js"),l=require("./index.cjs105.js"),Je=require("./index.cjs106.js"),Ke=require("./index.cjs107.js"),Xe=require("./index.cjs108.js"),er=require("./index.cjs109.js"),rr=require("./index.cjs110.js"),nr=require("./index.cjs111.js"),ir=require("./index.cjs112.js"),or=require("./index.cjs113.js"),tr=require("./index.cjs114.js"),n=require("./index.cjs115.js"),cr=require("./index.cjs116.js"),ar=require("./index.cjs117.js"),dr=require("./index.cjs118.js"),x=require("./index.cjs119.js"),sr=require("./index.cjs120.js"),ur=require("./index.cjs121.js"),q=require("./index.cjs122.js"),lr=require("./index.cjs123.js"),xr=require("./index.cjs124.js"),qr=require("./index.cjs125.js"),$r=require("./index.cjs126.js"),Sr=require("./index.cjs127.js"),$=require("./index.cjs128.js"),Cr=require("./index.cjs129.js"),pr=require("./index.cjs130.js"),Dr=require("./index.cjs131.js"),mr=require("./index.cjs132.js"),gr=require("./index.cjs133.js"),Tr=require("./index.cjs134.js"),Er=require("./index.cjs135.js"),kr=require("./index.cjs136.js"),hr=require("./index.cjs137.js"),Ar=require("./index.cjs138.js"),Mr=require("./index.cjs139.js"),Lr=require("./index.cjs140.js"),br=require("./index.cjs141.js"),Hr=require("./index.cjs142.js"),Ir=require("./index.cjs143.js"),Pr=require("./index.cjs144.js"),fr=require("./index.cjs145.js"),Fr=require("./index.cjs146.js"),wr=require("./index.cjs147.js"),Br=require("./index.cjs148.js"),vr=require("./index.cjs149.js"),yr=require("./index.cjs150.js"),Vr=require("./index.cjs151.js"),Nr=require("./index.cjs152.js"),Or=require("./index.cjs153.js"),Rr=require("./index.cjs154.js"),Gr=require("./index.cjs155.js"),Ur=require("./index.cjs156.js"),_r=require("./index.cjs157.js"),Wr=require("./index.cjs158.js"),Yr=require("./index.cjs159.js"),zr=require("./index.cjs160.js"),Qr=require("./index.cjs161.js"),jr=require("./index.cjs162.js"),Zr=require("./index.cjs163.js"),Jr=require("./index.cjs164.js"),Kr=require("./index.cjs165.js"),Xr=require("./index.cjs166.js"),en=require("./index.cjs167.js"),rn=require("./index.cjs168.js"),nn=require("./index.cjs169.js"),on=require("./index.cjs170.js"),tn=require("./index.cjs171.js"),cn=require("./index.cjs172.js"),an=require("./index.cjs173.js"),dn=require("./index.cjs174.js"),sn=require("./index.cjs175.js"),un=require("./index.cjs176.js"),ln=require("./index.cjs177.js"),xn=require("./index.cjs178.js"),qn=require("./index.cjs179.js"),$n=require("./index.cjs180.js"),Sn=require("./index.cjs181.js"),Cn=require("./index.cjs182.js"),pn=require("./index.cjs183.js"),Dn=require("./index.cjs184.js"),mn=require("./index.cjs185.js"),gn=require("./index.cjs186.js"),Tn=require("./index.cjs187.js"),En=require("./index.cjs188.js"),kn=require("./index.cjs189.js"),hn=require("./index.cjs190.js"),An=require("./index.cjs191.js"),Mn=require("./index.cjs192.js");S.defaultLocale="it";exports.Container=C.Container;exports.GridContainer=p.GridContainer;exports.GridItem=D.GridItem;exports.Row=m.Row;exports.Col=g.Col;exports.Search=T.Search;exports.SearchStructure=E.SearchStructure;exports.SearchService=k.SearchService;exports.SearchDocument=h.SearchDocument;exports.SearchGeneric=A.SearchGeneric;exports.Footer=M.Footer;exports.HeaderSlim=L.HeaderSlim;exports.HeaderPostLogin=b.HeaderPostLogin;exports.Breadcrumb=H.Breadcrumb;exports.TabBar=I.TabBar;exports.HeaderTopBanner=P.HeaderTopBanner;exports.Dropdown=f.Dropdown;exports.FilterDropDown=F.FilterDropDown;exports.Header=i.Header;exports.LOGOS=i.LOGOS;exports.Button=w.Button;exports.CardCategory=B.CardCategory;exports.CardMap=v.CardMap;exports.CardMapDoctor=y.CardMapDoctor;exports.CardService=V.CardService;exports.CardDocument=N.CardDocument;exports.CardOpeningHours=O.CardOpeningHours;exports.SupportBanner=R.SupportBanner;exports.TabsGlossary=G.TabsGlossary;exports.AuthenticatedModeEnum=o.AuthenticatedModeEnum;exports.AuthorWithImage=o.AuthorWithImage;exports.VIDEO_PLAYER_SIZE=t.VIDEO_PLAYER_SIZE;exports.VideoPlayer=t.VideoPlayer;exports.ArrowLink=U.ArrowLink;exports.EntryButton=_.EntryButton;exports.BaseModal=W.BaseModal;exports.ConsentModal=Y.ConsentModal;exports.DoctorModal=z.DoctorModal;exports.ProgressBar=Q.ProgressBar;exports.CardSelectDoctor=j.CardSelectDoctor;exports.CardDoctorInfo=Z.CardDoctorInfo;exports.DoctorConfirmModal=J.DoctorConfirmModal;exports.DocumentUploadModal=K.DocumentUploadModal;exports.DocumentUploadComponent=X.DocumentUploadComponent;exports.Section=ee.Section;exports.Switch=re.Switch;exports.Checkbox=ne.Checkbox;exports.BottomNavigation=ie.BottomNavigation;exports.CategoryContent=oe.CategoryContent;exports.CategoryHeader=te.CategoryHeader;exports.HeaderNavigation=ce.HeaderNavigation;exports.FiltersChips=ae.FiltersChips;exports.CardReminder=de.CardReminder;exports.CardDoctor=se.CardDoctor;exports.Avatar=ue.Avatar;exports.NavList=le.NavList;exports.RadioCard=xe.RadioCard;exports.ActionIconText=qe.ActionIconText;exports.TitleSection=$e.TitleSection;exports.CheckboxFilter=Se.CheckboxFilter;exports.CardUser=Ce.CardUser;exports.CardExemption=pe.CardExemption;exports.Loader=De.Loader;exports.Pagination=e.Pagination;exports.Table=e.Table;exports.TableBody=e.TableBody;exports.TableCell=e.TableCell;exports.TableHead=e.TableHead;exports.TableHeader=e.TableHeader;exports.TableRow=e.TableRow;exports.CardTable=r.CardTable;exports.TableMobile=r.TableMobile;exports.TableMobilePagination=r.TableMobilePagination;exports.InfoPopup=me.InfoPopup;exports.CardNotification=ge.CardNotification;exports.DatePicker=Te.DatePicker;exports.DatePickerRange=Ee.DatePickerRange;exports.NotificationsSettingsHeader=ke.NotificationsSettingsHeader;exports.InfoModal=he.InfoModal;exports.DoctorSkeleton=Ae.DoctorSkeleton;exports.InfoCardSkeleton=Me.InfoCardSkeleton;exports.TableSkeleton=Le.TableSkeleton;exports.DocumentsListSkeleton=be.DocumentsListSkeleton;exports.ServicesListSkeleton=He.ServicesListSkeleton;exports.NotificationsListSkeleton=Ie.NotificationsListSkeleton;exports.DocumentDetailSkeleton=Pe.DocumentDetailSkeleton;exports.HealthProfileSkeleton=fe.HealthProfileSkeleton;exports.AccessLogSkeleton=Fe.AccessLogSkeleton;exports.ConsentPrivacySkeleton=we.ConsentPrivacySkeleton;exports.NotificationSettingsSkeleton=Be.NotificationSettingsSkeleton;exports.SearchStructureSkeleton=ve.SearchStructureSkeleton;exports.ActionPoint=ye.ActionPoint;exports.Blockquote=c.Blockquote;exports.BlockquoteVariantEnum=c.BlockquoteVariantEnum;exports.Callout=a.Callout;exports.CalloutVariantEnum=a.CalloutVariantEnum;exports.ActionBanner=d.ActionBanner;exports.ActionBannerVariantEnum=d.ActionBannerVariantEnum;exports.Alert=s.Alert;exports.AlertVariantEnum=s.AlertVariantEnum;exports.AlertDialogUI=Ve.AlertDialogUI;exports.Link=Ne.Link;exports.GenericSkeleton=Oe.GenericSkeleton;exports.CardFile=u.CardFile;exports.CardFileActionTypeEnum=u.CardFileActionTypeEnum;exports.AuthorBlock=Re.AuthorBlock;exports.ChangeProfileModal=Ge.ChangeProfileModal;exports.ModalsHeader=Ue.ModalsHeader;exports.Tag=_e.Tag;exports.TagsGroup=We.TagsGroup;exports.DelegateCard=Ye.DelegateCard;exports.ChangeRelatedCard=ze.ChangeRelatedCard;exports.TableOfContents=Qe.TableOfContents;exports.DelegateFilterDropDown=je.DelegateFilterDropDown;exports.GroupCodeExemptionFilterDropDown=Ze.GroupCodeExemptionFilterDropDown;exports.EditorialWidget=l.EditorialWidget;exports.EditorialWidgetVariantEnum=l.EditorialWidgetVariantEnum;exports.AvatarSkeleton=Je.AvatarSkeleton;exports.NotificationsListModalSkeleton=Ke.NotificationsListModalSkeleton;exports.AccordionStepper=Xe.AccordionStepper;exports.ActionsPopup=er.ActionsPopup;exports.CardEventSlim=rr.CardEventSlim;exports.CardPreview=nr.CardPreview;exports.HomeHeaderSkeleton=ir.HomeHeaderSkeleton;exports.Carousel=or.Carousel;exports.ShareButton=tr.ShareButton;exports.LinkTypeEnum=n.LinkTypeEnum;exports.StepVariantEnum=n.StepVariantEnum;exports.VerticalCardStepper=n.VerticalCardStepper;exports.FinancialClassesModal=cr.FinancialClassesModal;exports.DeclarantsSelect=ar.DeclarantsSelect;exports.Login=dr.Login;exports.HOME_SERVICES_LAYOUTS=x.HOME_SERVICES_LAYOUTS;exports.HomeServices=x.HomeServices;exports.WhatDoYouNeed=sr.WhatDoYouNeed;exports.RichText=ur.RichText;exports.SERVICES_LAYOUTS=q.SERVICES_LAYOUTS;exports.Services=q.Services;exports.SuggestedServices=lr.SuggestedServices;exports.Documents=xr.Documents;exports.Tags=qr.Tags;exports.HTMLBalancer=$r.HTMLBalancer;exports.Insights=Sr.Insights;exports.IMAGES_DESCRIPTION_LAYOUTS=$.IMAGES_DESCRIPTION_LAYOUTS;exports.ImagesDescription=$.ImagesDescription;exports.VerticalCardStepperSection=Cr.VerticalCardStepperSection;exports.World=pr.World;exports.ArrowDown=Dr.ArrowDown;exports.ExternalLink=mr.ExternalLink;exports.Hamburguer=gr.Hamburguer;exports.Close=Tr.Close;exports.Ellipse=Er.Ellipse;exports.Ellipse2=kr.Ellipse2;exports.Ellipse3=hr.Ellipse3;exports.FseDGT=Ar.FseDGT;exports.FseIT=Mr.FseIT;exports.FseMEF=Lr.FseMEF;exports.Fse=br.Fse;exports.FseMS=Hr.FseMS;exports.FseUE=Ir.FseUE;exports.Lazio=Pr.Lazio;exports.Marche=fr.Marche;exports.ArrowLeft=Fr.ArrowLeft;exports.ArrowRight=wr.ArrowRight;exports.Home=Br.Home;exports.Calendar=vr.Calendar;exports.Doctor=yr.Doctor;exports.Document=Vr.Document;exports.More=Nr.More;exports.Support=Or.Support;exports.SupportNoCircle=Rr.SupportNoCircle;exports.ListStructures=Gr.ListStructures;exports.Tool=Ur.Tool;exports.Actions=_r.Actions;exports.Favourite=Wr.Favourite;exports.File=Yr.File;exports.Obscured=zr.Obscured;exports.Visible=Qr.Visible;exports.MoreActions=jr.MoreActions;exports.Add=Zr.Add;exports.Download=Jr.Download;exports.MedicHistory=Kr.MedicHistory;exports.Shape=Xr.Shape;exports.Confirm=en.Confirm;exports.NotChecked=rn.NotChecked;exports.Spinner=nn.Spinner;exports.Attachment=on.Attachment;exports.TriangleUp=tn.TriangleUp;exports.TriangleDown=cn.TriangleDown;exports.Info=an.Info;exports.Notification=dn.Notification;exports.EditPencil=sn.EditPencil;exports.ArrowTop=un.ArrowTop;exports.ErrorExagon=ln.ErrorExagon;exports.CopyLink=xn.CopyLink;exports.ShareLink=qn.ShareLink;exports.CenterMap=$n.CenterMap;exports.DocumentPdf=Sn.DocumentPdf;exports.DocumentCsv=Cn.DocumentCsv;exports.QuestionCircle=pn.QuestionCircle;exports.CheckCircle=Dn.CheckCircle;exports.CalendarOutline=mn.CalendarOutline;exports.Email=gn.Email;exports.Linkedin=Tn.Linkedin;exports.Twitter=En.Twitter;exports.Meta=kn.Meta;exports.Whatsapp=hn.Whatsapp;exports.PlayVideo=An.PlayVideo;exports.SearchIcon=Mn.SearchIcon;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DelegateCard/DelegateCard.css');const e=require("./index.cjs212.js");;/* empty css */const f=require("react"),c=require("./index.cjs255.js"),t=require("./index.cjs9.js"),n=require("./index.cjs10.js"),w=({id:i,isSelected:x,title:d,subtitle:u,region:o,relation:r,isMe:s=!1,showRegion:l=!1,setSelectedCard:j=()=>{},className:p})=>{const m=f.useRef(null),h=a=>a.charAt(0).toUpperCase()+a.slice(1),R=()=>e.jsxRuntimeExports.jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsxRuntimeExports.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});return e.jsxRuntimeExports.jsxs(t.Row,{br:"x4",p:"x24",gap:"x16",bg:"white",text:"slate-20",ref:m,className:`${p} ${x?"ui-is-active":""} ui-card-delegate shadow cursor-pointer`,onClick:()=>{j(i)},style:{width:"100%"},children:[e.jsxRuntimeExports.jsx(c.Root,{id:i,checked:x,className:"ui-checkbox-filter",children:e.jsxRuntimeExports.jsx(c.Indicator,{children:e.jsxRuntimeExports.jsx(R,{})})}),e.jsxRuntimeExports.jsxs(t.Row,{alignItems:"flex-start",style:{width:"100%"},justifyContent:"space-between",children:[e.jsxRuntimeExports.jsxs(n.Col,{style:{flex:1},justifyContent:"center",className:"w-full",children:[e.jsxRuntimeExports.jsxs(n.Col,{gap:"x4",pb:(s||!s&&!r)&&!l?void 0:"x16",children:[e.jsxRuntimeExports.jsx("h3",{className:"flex-1 text-decoration-none fs-4 fw-semibold",children:d}),e.jsxRuntimeExports.jsx("p",{className:"fs-6 fw-normal text-slate-28",children:u})]}),e.jsxRuntimeExports.jsxs(t.Row,{gap:"x40",justifyContent:"space-between",children:[!s&&r&&e.jsxRuntimeExports.jsxs(n.Col,{gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-bold",children:"Relazione con il delegante"}),e.jsxRuntimeExports.jsx("p",{className:"fw-normal",children:r})]}),l&&o&&e.jsxRuntimeExports.jsxs(n.Col,{pr:"x104",gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-bold",children:"Regione di assistenza"}),e.jsxRuntimeExports.jsx("p",{className:"fw-normal",children:h(o)})]})]})]}),s&&e.jsxRuntimeExports.jsx(t.Row,{className:"ui-fascicolo-label fs-7 fw-bold",children:"IL TUO FASCICOLO"})]})]})};exports.DelegateCard=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DelegateCard/DelegateCard.css');const e=require("./index.cjs212.js");;/* empty css */const f=require("react"),a=require("./index.cjs255.js"),t=require("./index.cjs9.js"),n=require("./index.cjs10.js"),w=({id:i,isSelected:x,title:d,subtitle:u,region:o,relation:r,isMe:s=!1,showRegion:l=!1,setSelectedCard:j=()=>{},className:p})=>{const m=f.useRef(null),h=c=>c.charAt(0).toUpperCase()+c.slice(1),R=()=>e.jsxRuntimeExports.jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsxRuntimeExports.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});return e.jsxRuntimeExports.jsxs(t.Row,{br:"x4",p:"x24",gap:"x16",bg:"white",text:"slate-20",ref:m,className:`${p} ${x?"ui-is-active":""} ui-card-delegate shadow cursor-pointer`,onClick:()=>{j(i)},style:{width:"100%"},children:[e.jsxRuntimeExports.jsx(a.Checkbox,{id:i,checked:x,className:"ui-checkbox-filter",children:e.jsxRuntimeExports.jsx(a.CheckboxIndicator,{children:e.jsxRuntimeExports.jsx(R,{})})}),e.jsxRuntimeExports.jsxs(t.Row,{alignItems:"flex-start",style:{width:"100%"},justifyContent:"space-between",children:[e.jsxRuntimeExports.jsxs(n.Col,{style:{flex:1},justifyContent:"center",className:"w-full",children:[e.jsxRuntimeExports.jsxs(n.Col,{gap:"x4",pb:(s||!s&&!r)&&!l?void 0:"x16",children:[e.jsxRuntimeExports.jsx("h3",{className:"flex-1 text-decoration-none fs-4 fw-semibold",children:d}),e.jsxRuntimeExports.jsx("p",{className:"fs-6 fw-normal text-slate-28",children:u})]}),e.jsxRuntimeExports.jsxs(t.Row,{gap:"x40",justifyContent:"space-between",children:[!s&&r&&e.jsxRuntimeExports.jsxs(n.Col,{gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-bold",children:"Relazione con il delegante"}),e.jsxRuntimeExports.jsx("p",{className:"fw-normal",children:r})]}),l&&o&&e.jsxRuntimeExports.jsxs(n.Col,{pr:"x104",gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-bold",children:"Regione di assistenza"}),e.jsxRuntimeExports.jsx("p",{className:"fw-normal",children:h(o)})]})]})]}),s&&e.jsxRuntimeExports.jsx(t.Row,{className:"ui-fascicolo-label fs-7 fw-bold",children:"IL TUO FASCICOLO"})]})]})};exports.DelegateCard=w;
2
2
  //# sourceMappingURL=index.cjs100.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs100.js","sources":["../src/components/ui/DelegateCard/index.tsx"],"sourcesContent":["import \"./DelegateCard.scss\";\nimport { useRef } from \"react\";\nimport * as CheckboxRadix from \"@radix-ui/react-checkbox\";\nimport { Col, Region, Row } from \"@/components\";\n\nexport type DelegateCardProps = {\n id: string;\n isSelected: boolean;\n title: string;\n subtitle: string;\n relation: string;\n isMe?: boolean;\n setSelectedCard: (id: string) => void;\n className?: string;\n showRegion?: boolean;\n region?: Region;\n};\n\nexport const DelegateCard = ({\n id,\n isSelected,\n title,\n subtitle,\n region,\n relation,\n isMe = false,\n showRegion = false,\n setSelectedCard = () => {},\n className,\n}: DelegateCardProps) => {\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n const firstLetterUppercase = (str: string) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n };\n\n const CheckIcon = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10 3L4.5 8.5L2 6\"\n stroke=\"white\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n\n return (\n <Row\n br={\"x4\"}\n p={\"x24\"}\n gap={\"x16\"}\n bg={\"white\"}\n text={\"slate-20\"}\n ref={dropdownRef}\n className={`${className} ${isSelected ? \"ui-is-active\" : \"\"} ui-card-delegate shadow cursor-pointer`}\n onClick={() => {\n setSelectedCard(id);\n }}\n style={{ width: \"100%\" }}\n >\n <CheckboxRadix.Root\n id={id}\n checked={isSelected}\n className={\"ui-checkbox-filter\"}\n >\n <CheckboxRadix.Indicator>\n <CheckIcon />\n </CheckboxRadix.Indicator>\n </CheckboxRadix.Root>\n <Row\n alignItems={\"flex-start\"}\n style={{ width: \"100%\" }}\n justifyContent={\"space-between\"}\n >\n <Col style={{ flex: 1 }} justifyContent={\"center\"} className={`w-full`}>\n <Col\n gap={\"x4\"}\n pb={\n (isMe || (!isMe && !relation)) && !showRegion ? undefined : \"x16\"\n }\n >\n <h3 className=\"flex-1 text-decoration-none fs-4 fw-semibold\">\n {title}\n </h3>\n <p className=\"fs-6 fw-normal text-slate-28\">{subtitle}</p>\n </Col>\n <Row gap={\"x40\"} justifyContent={\"space-between\"}>\n {!isMe && relation && (\n <Col gap={\"x4\"}>\n <div className={\"fw-bold\"}>Relazione con il delegante</div>\n <p className={\"fw-normal\"}>{relation}</p>\n </Col>\n )}\n {showRegion && region && (\n <Col pr={\"x104\"} gap={\"x4\"}>\n <div className={\"fw-bold\"}>Regione di assistenza</div>\n <p className={\"fw-normal\"}>{firstLetterUppercase(region)}</p>\n </Col>\n )}\n </Row>\n </Col>\n {isMe && (\n <Row className={\"ui-fascicolo-label fs-7 fw-bold\"}>\n IL TUO FASCICOLO\n </Row>\n )}\n </Row>\n </Row>\n );\n};\n"],"names":["DelegateCard","id","isSelected","title","subtitle","region","relation","isMe","showRegion","setSelectedCard","className","dropdownRef","useRef","firstLetterUppercase","str","CheckIcon","jsx","jsxs","Row","CheckboxRadix.Root","CheckboxRadix.Indicator","Col"],"mappings":"qQAkBaA,EAAe,CAAC,CAC3B,GAAAC,EACA,WAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,SAAAC,EACA,KAAAC,EAAO,GACP,WAAAC,EAAa,GACb,gBAAAC,EAAkB,IAAM,CAAC,EACzB,UAAAC,CACF,IAAyB,CACjB,MAAAC,EAAcC,SAAuB,IAAI,EAEzCC,EAAwBC,GACrBA,EAAI,OAAO,CAAC,EAAE,cAAgBA,EAAI,MAAM,CAAC,EAG5CC,EAAY,IAChBC,EAAA,kBAAA,IAAC,MAAA,CACC,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,cAAY,OAEZ,SAAAA,EAAA,kBAAA,IAAC,OAAA,CACC,EAAE,oBACF,OAAO,QACP,YAAY,IACZ,cAAc,QACd,eAAe,OAAA,CAAA,CACjB,CACF,EAIA,OAAAC,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,KACJ,EAAG,MACH,IAAK,MACL,GAAI,QACJ,KAAM,WACN,IAAKP,EACL,UAAW,GAAGD,CAAS,IAAIR,EAAa,eAAiB,EAAE,0CAC3D,QAAS,IAAM,CACbO,EAAgBR,CAAE,CACpB,EACA,MAAO,CAAE,MAAO,MAAO,EAEvB,SAAA,CAAAe,EAAA,kBAAA,IAACG,EAAc,KAAd,CACC,GAAAlB,EACA,QAASC,EACT,UAAW,qBAEX,iCAACkB,YAAA,CACC,SAAAJ,wBAACD,IAAU,CACb,CAAA,CAAA,CACF,EACAE,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,WAAY,aACZ,MAAO,CAAE,MAAO,MAAO,EACvB,eAAgB,gBAEhB,SAAA,CAACD,EAAAA,kBAAAA,KAAAI,EAAAA,IAAA,CAAI,MAAO,CAAE,KAAM,GAAK,eAAgB,SAAU,UAAW,SAC5D,SAAA,CAAAJ,EAAA,kBAAA,KAACI,EAAA,IAAA,CACC,IAAK,KACL,IACGd,GAAS,CAACA,GAAQ,CAACD,IAAc,CAACE,EAAa,OAAY,MAG9D,SAAA,CAACQ,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,+CACX,SACHb,EAAA,EACCa,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,+BAAgC,SAASZ,CAAA,CAAA,CAAA,CAAA,CACxD,EACCa,EAAA,kBAAA,KAAAC,EAAA,IAAA,CAAI,IAAK,MAAO,eAAgB,gBAC9B,SAAA,CAAA,CAACX,GAAQD,GACPW,EAAA,kBAAA,KAAAI,EAAA,IAAA,CAAI,IAAK,KACR,SAAA,CAACL,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAW,SAA0B,6BAAA,EACpDA,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,YAAc,SAASV,CAAA,CAAA,CAAA,EACvC,EAEDE,GAAcH,GACbY,EAAA,kBAAA,KAACI,OAAI,GAAI,OAAQ,IAAK,KACpB,SAAA,CAACL,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAW,SAAqB,wBAAA,0BAC/C,IAAE,CAAA,UAAW,YAAc,SAAAH,EAAqBR,CAAM,CAAE,CAAA,CAAA,CAC3D,CAAA,CAAA,CAEJ,CAAA,CAAA,EACF,EACCE,GACCS,EAAA,kBAAA,IAACE,MAAI,CAAA,UAAW,kCAAmC,SAEnD,kBAAA,CAAA,CAAA,CAAA,CAAA,CAEJ,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs100.js","sources":["../src/components/ui/DelegateCard/index.tsx"],"sourcesContent":["import \"./DelegateCard.scss\";\nimport { useRef } from \"react\";\nimport * as CheckboxRadix from \"@radix-ui/react-checkbox\";\nimport { Col, Region, Row } from \"@/components\";\n\nexport type DelegateCardProps = {\n id: string;\n isSelected: boolean;\n title: string;\n subtitle: string;\n relation: string;\n isMe?: boolean;\n setSelectedCard: (id: string) => void;\n className?: string;\n showRegion?: boolean;\n region?: Region;\n};\n\nexport const DelegateCard = ({\n id,\n isSelected,\n title,\n subtitle,\n region,\n relation,\n isMe = false,\n showRegion = false,\n setSelectedCard = () => {},\n className,\n}: DelegateCardProps) => {\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n const firstLetterUppercase = (str: string) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n };\n\n const CheckIcon = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10 3L4.5 8.5L2 6\"\n stroke=\"white\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n\n return (\n <Row\n br={\"x4\"}\n p={\"x24\"}\n gap={\"x16\"}\n bg={\"white\"}\n text={\"slate-20\"}\n ref={dropdownRef}\n className={`${className} ${isSelected ? \"ui-is-active\" : \"\"} ui-card-delegate shadow cursor-pointer`}\n onClick={() => {\n setSelectedCard(id);\n }}\n style={{ width: \"100%\" }}\n >\n <CheckboxRadix.Root\n id={id}\n checked={isSelected}\n className={\"ui-checkbox-filter\"}\n >\n <CheckboxRadix.Indicator>\n <CheckIcon />\n </CheckboxRadix.Indicator>\n </CheckboxRadix.Root>\n <Row\n alignItems={\"flex-start\"}\n style={{ width: \"100%\" }}\n justifyContent={\"space-between\"}\n >\n <Col style={{ flex: 1 }} justifyContent={\"center\"} className={`w-full`}>\n <Col\n gap={\"x4\"}\n pb={\n (isMe || (!isMe && !relation)) && !showRegion ? undefined : \"x16\"\n }\n >\n <h3 className=\"flex-1 text-decoration-none fs-4 fw-semibold\">\n {title}\n </h3>\n <p className=\"fs-6 fw-normal text-slate-28\">{subtitle}</p>\n </Col>\n <Row gap={\"x40\"} justifyContent={\"space-between\"}>\n {!isMe && relation && (\n <Col gap={\"x4\"}>\n <div className={\"fw-bold\"}>Relazione con il delegante</div>\n <p className={\"fw-normal\"}>{relation}</p>\n </Col>\n )}\n {showRegion && region && (\n <Col pr={\"x104\"} gap={\"x4\"}>\n <div className={\"fw-bold\"}>Regione di assistenza</div>\n <p className={\"fw-normal\"}>{firstLetterUppercase(region)}</p>\n </Col>\n )}\n </Row>\n </Col>\n {isMe && (\n <Row className={\"ui-fascicolo-label fs-7 fw-bold\"}>\n IL TUO FASCICOLO\n </Row>\n )}\n </Row>\n </Row>\n );\n};\n"],"names":["DelegateCard","id","isSelected","title","subtitle","region","relation","isMe","showRegion","setSelectedCard","className","dropdownRef","useRef","firstLetterUppercase","str","CheckIcon","jsx","jsxs","Row","CheckboxRadix.Root","CheckboxRadix.Indicator","Col"],"mappings":"qQAkBaA,EAAe,CAAC,CAC3B,GAAAC,EACA,WAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,SAAAC,EACA,KAAAC,EAAO,GACP,WAAAC,EAAa,GACb,gBAAAC,EAAkB,IAAM,CAAC,EACzB,UAAAC,CACF,IAAyB,CACjB,MAAAC,EAAcC,SAAuB,IAAI,EAEzCC,EAAwBC,GACrBA,EAAI,OAAO,CAAC,EAAE,cAAgBA,EAAI,MAAM,CAAC,EAG5CC,EAAY,IAChBC,EAAA,kBAAA,IAAC,MAAA,CACC,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,cAAY,OAEZ,SAAAA,EAAA,kBAAA,IAAC,OAAA,CACC,EAAE,oBACF,OAAO,QACP,YAAY,IACZ,cAAc,QACd,eAAe,OAAA,CAAA,CACjB,CACF,EAIA,OAAAC,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,KACJ,EAAG,MACH,IAAK,MACL,GAAI,QACJ,KAAM,WACN,IAAKP,EACL,UAAW,GAAGD,CAAS,IAAIR,EAAa,eAAiB,EAAE,0CAC3D,QAAS,IAAM,CACbO,EAAgBR,CAAE,CACpB,EACA,MAAO,CAAE,MAAO,MAAO,EAEvB,SAAA,CAAAe,EAAA,kBAAA,IAACG,EAAc,SAAd,CACC,GAAAlB,EACA,QAASC,EACT,UAAW,qBAEX,iCAACkB,oBAAA,CACC,SAAAJ,wBAACD,IAAU,CACb,CAAA,CAAA,CACF,EACAE,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,WAAY,aACZ,MAAO,CAAE,MAAO,MAAO,EACvB,eAAgB,gBAEhB,SAAA,CAACD,EAAAA,kBAAAA,KAAAI,EAAAA,IAAA,CAAI,MAAO,CAAE,KAAM,GAAK,eAAgB,SAAU,UAAW,SAC5D,SAAA,CAAAJ,EAAA,kBAAA,KAACI,EAAA,IAAA,CACC,IAAK,KACL,IACGd,GAAS,CAACA,GAAQ,CAACD,IAAc,CAACE,EAAa,OAAY,MAG9D,SAAA,CAACQ,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,+CACX,SACHb,EAAA,EACCa,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,+BAAgC,SAASZ,CAAA,CAAA,CAAA,CAAA,CACxD,EACCa,EAAA,kBAAA,KAAAC,EAAA,IAAA,CAAI,IAAK,MAAO,eAAgB,gBAC9B,SAAA,CAAA,CAACX,GAAQD,GACPW,EAAA,kBAAA,KAAAI,EAAA,IAAA,CAAI,IAAK,KACR,SAAA,CAACL,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAW,SAA0B,6BAAA,EACpDA,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,YAAc,SAASV,CAAA,CAAA,CAAA,EACvC,EAEDE,GAAcH,GACbY,EAAA,kBAAA,KAACI,OAAI,GAAI,OAAQ,IAAK,KACpB,SAAA,CAACL,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAW,SAAqB,wBAAA,0BAC/C,IAAE,CAAA,UAAW,YAAc,SAAAH,EAAqBR,CAAM,CAAE,CAAA,CAAA,CAC3D,CAAA,CAAA,CAEJ,CAAA,CAAA,EACF,EACCE,GACCS,EAAA,kBAAA,IAACE,MAAI,CAAA,UAAW,kCAAmC,SAEnD,kBAAA,CAAA,CAAA,CAAA,CAAA,CAEJ,CAAA,CACF,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/VerticalCardStepper/VerticalCardStepper.css');const e=require("./index.cjs212.js"),d=require("./index.cjs193.js");require("./index.cjs3.js");;/* empty css */const m=require("./index.cjs36.js"),o=require("./index.cjs132.js");var n=(s=>(s.DATE="date",s.HEADLINE="headline",s.ORDERED="ordered",s.CHECK="check",s))(n||{});const j=s=>{const t=d.default.fromISO(s);return{day:t.toFormat("dd"),month:t.toFormat("LLLL"),year:t.toFormat("yyyy")}},u=({steps:s,type:t})=>e.jsxRuntimeExports.jsx("div",{className:"vertical-container",children:e.jsxRuntimeExports.jsx("div",{className:"timeline",children:s.map((r,i)=>{const a=()=>{switch(t){case"date":{if(!r.meta)return null;const{day:c,month:x,year:l}=j(r.meta);return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{className:"day",children:c}),e.jsxRuntimeExports.jsx("div",{className:"month",children:x}),e.jsxRuntimeExports.jsx("div",{className:"year",children:l})]})}case"headline":return e.jsxRuntimeExports.jsx("div",{className:"headline",children:r.meta});case"ordered":return e.jsxRuntimeExports.jsx("div",{className:"circle",children:i+1});case"check":return e.jsxRuntimeExports.jsx("div",{className:"circle",children:e.jsxRuntimeExports.jsx("div",{className:"checkmark"})});default:return null}};return e.jsxRuntimeExports.jsxs("div",{className:"step",children:[e.jsxRuntimeExports.jsx("div",{className:"meta",children:a()}),e.jsxRuntimeExports.jsx("div",{className:"vertical-line",children:e.jsxRuntimeExports.jsx("div",{className:"dot"})}),e.jsxRuntimeExports.jsxs("div",{className:"card",children:[e.jsxRuntimeExports.jsx("div",{className:"label",children:r.label}),e.jsxRuntimeExports.jsx("div",{className:"title",children:r.title}),e.jsxRuntimeExports.jsxs("div",{className:"",children:[e.jsxRuntimeExports.jsx("div",{className:"description",children:r.description}),e.jsxRuntimeExports.jsx("div",{className:"card-footer",children:r.link&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(m.ArrowLink,{href:r.link.link,className:"card-footer-detail",children:r.link.title}),e.jsxRuntimeExports.jsx(o.ExternalLink,{color:"primary",width:22,height:22})]})})]})]})]},i)})})});exports.StepVariantEnum=n;exports.VerticalCardStepper=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/VerticalCardStepper/VerticalCardStepper.css');const e=require("./index.cjs212.js"),m=require("./index.cjs193.js");require("./index.cjs3.js");;/* empty css */const o=require("./index.cjs36.js"),j=require("./index.cjs132.js");var n=(r=>(r.DATE="date",r.HEADLINE="headline",r.ORDERED="ordered",r.CHECK="check",r))(n||{}),a=(r=>(r.INTERNAL="internal",r.EXTERNAL="external",r))(a||{});const u=r=>{const t=m.default.fromISO(r);return{day:t.toFormat("dd"),month:t.toFormat("LLLL"),year:t.toFormat("yyyy")}},h=({steps:r,type:t})=>e.jsxRuntimeExports.jsx("div",{className:"vertical-container",children:e.jsxRuntimeExports.jsx("div",{className:"timeline",children:r.map((s,i)=>{const l=()=>{switch(t){case"date":{if(!s.meta)return null;const{day:c,month:x,year:d}=u(s.meta);return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{className:"day",children:c}),e.jsxRuntimeExports.jsx("div",{className:"month",children:x}),e.jsxRuntimeExports.jsx("div",{className:"year",children:d})]})}case"headline":return e.jsxRuntimeExports.jsx("div",{className:"headline",children:s.meta});case"ordered":return e.jsxRuntimeExports.jsx("div",{className:"circle",children:i+1});case"check":return e.jsxRuntimeExports.jsx("div",{className:"circle",children:e.jsxRuntimeExports.jsx("div",{className:"checkmark"})});default:return null}};return e.jsxRuntimeExports.jsxs("div",{className:"step",children:[e.jsxRuntimeExports.jsx("div",{className:"meta",children:l()}),e.jsxRuntimeExports.jsx("div",{className:"vertical-line",children:e.jsxRuntimeExports.jsx("div",{className:"dot"})}),e.jsxRuntimeExports.jsxs("div",{className:"card",children:[e.jsxRuntimeExports.jsx("div",{className:"label",children:s.label}),e.jsxRuntimeExports.jsx("div",{className:"title",children:s.title}),e.jsxRuntimeExports.jsxs("div",{className:"",children:[e.jsxRuntimeExports.jsx("div",{className:"description",children:s.description}),e.jsxRuntimeExports.jsxs("div",{className:"card-footer",children:[s.link&&(s.linkType==="internal"||!s.linkType)&&e.jsxRuntimeExports.jsx(o.ArrowLink,{href:s.link.link,className:"card-footer-detail",children:s.link.title}),s.link&&s.linkType==="external"&&e.jsxRuntimeExports.jsx(j.ExternalLink,{color:"primary",width:22,height:22})]})]})]})]},i)})})});exports.LinkTypeEnum=a;exports.StepVariantEnum=n;exports.VerticalCardStepper=h;
2
2
  //# sourceMappingURL=index.cjs115.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs115.js","sources":["../src/components/ui/VerticalCardStepper/index.tsx"],"sourcesContent":["import { DateTime } from \"luxon\";\nimport \"./VerticalCardStepper.scss\";\nimport { Link } from \"@anoki/fse-common/dist\";\nimport { ArrowLink } from \"../ArrowLink\";\nimport { ExternalLink } from \"@/icons\";\n\nexport enum StepVariantEnum {\n DATE = \"date\",\n HEADLINE = \"headline\",\n ORDERED = \"ordered\",\n CHECK = \"check\",\n}\n\nexport type Step = {\n label: string;\n title: string;\n description: string;\n meta: string; // può essere una data ISO o un testo\n link?: Link;\n};\n\ntype Props = {\n type: StepVariantEnum;\n steps: Array<Step>;\n};\n\nconst formatDateParts = (dateString: string) => {\n const date = DateTime.fromISO(dateString);\n return {\n day: date.toFormat(\"dd\"),\n month: date.toFormat(\"LLLL\"),\n year: date.toFormat(\"yyyy\"),\n };\n};\n\nexport const VerticalCardStepper = ({ steps, type }: Props) => {\n return (\n <div className=\"vertical-container\">\n <div className=\"timeline\">\n {steps.map((step, idx) => {\n const renderMeta = () => {\n switch (type) {\n case \"date\": {\n if (!step.meta) return null;\n const { day, month, year } = formatDateParts(step.meta);\n return (\n <>\n <div className=\"day\">{day}</div>\n <div className=\"month\">{month}</div>\n <div className=\"year\">{year}</div>\n </>\n );\n }\n case \"headline\":\n return <div className=\"headline\">{step.meta}</div>;\n\n case \"ordered\":\n return <div className=\"circle\">{idx + 1}</div>;\n\n case \"check\":\n return (\n <div className=\"circle\">\n <div className=\"checkmark\"></div>\n </div>\n );\n\n default:\n return null;\n }\n };\n\n return (\n <div key={idx} className=\"step\">\n <div className=\"meta\">{renderMeta()}</div>\n\n <div className=\"vertical-line\">\n <div className=\"dot\" />\n </div>\n\n <div className=\"card\">\n <div className=\"label\">{step.label}</div>\n <div className=\"title\">{step.title}</div>\n <div className=\"\">\n <div className=\"description\">{step.description}</div>\n <div className=\"card-footer\">\n {step.link && (\n <>\n <ArrowLink\n href={step.link.link}\n className=\"card-footer-detail\"\n >\n {step.link.title}\n </ArrowLink>\n <ExternalLink color=\"primary\" width={22} height={22} />\n </>\n )}\n </div>\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n"],"names":["StepVariantEnum","formatDateParts","dateString","date","DateTime","VerticalCardStepper","steps","type","jsx","step","idx","renderMeta","day","month","year","jsxs","Fragment","ArrowLink","ExternalLink"],"mappings":"+QAMY,IAAAA,GAAAA,IACVA,EAAA,KAAO,OACPA,EAAA,SAAW,WACXA,EAAA,QAAU,UACVA,EAAA,MAAQ,QAJEA,IAAAA,GAAA,CAAA,CAAA,EAoBZ,MAAMC,EAAmBC,GAAuB,CACxC,MAAAC,EAAOC,EAAAA,QAAS,QAAQF,CAAU,EACjC,MAAA,CACL,IAAKC,EAAK,SAAS,IAAI,EACvB,MAAOA,EAAK,SAAS,MAAM,EAC3B,KAAMA,EAAK,SAAS,MAAM,CAC5B,CACF,EAEaE,EAAsB,CAAC,CAAE,MAAAC,EAAO,KAAAC,KAExCC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,qBACb,SAACA,wBAAA,MAAA,CAAI,UAAU,WACZ,SAAMF,EAAA,IAAI,CAACG,EAAMC,IAAQ,CACxB,MAAMC,EAAa,IAAM,CACvB,OAAQJ,EAAM,CACZ,IAAK,OAAQ,CACP,GAAA,CAACE,EAAK,KAAa,OAAA,KACvB,KAAM,CAAE,IAAAG,EAAK,MAAAC,EAAO,KAAAC,CAAS,EAAAb,EAAgBQ,EAAK,IAAI,EACtD,OAEIM,EAAA,kBAAA,KAAAC,6BAAA,CAAA,SAAA,CAACR,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,MAAO,SAAII,EAAA,EACzBJ,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,QAAS,SAAMK,EAAA,EAC7BL,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,OAAQ,SAAKM,CAAA,CAAA,CAAA,EAC9B,CAAA,CAGJ,IAAK,WACH,OAAQN,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,WAAY,WAAK,KAAK,EAE9C,IAAK,UACH,OAAQA,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,SAAU,WAAM,EAAE,EAE1C,IAAK,QAED,OAAAA,wBAAC,OAAI,UAAU,SACb,iCAAC,MAAI,CAAA,UAAU,YAAY,CAC7B,CAAA,EAGJ,QACS,OAAA,IAAA,CAEb,EAGE,OAAAO,EAAA,kBAAA,KAAC,MAAc,CAAA,UAAU,OACvB,SAAA,CAAAP,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,OAAQ,SAAAG,EAAA,EAAa,EAEpCH,EAAAA,kBAAAA,IAAC,OAAI,UAAU,gBACb,iCAAC,MAAI,CAAA,UAAU,MAAM,CACvB,CAAA,EAEAO,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,OACb,SAAA,CAAAP,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,QAAS,SAAAC,EAAK,MAAM,EAClCD,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,QAAS,WAAK,MAAM,EACnCO,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,GACb,SAAA,CAAAP,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,cAAe,SAAAC,EAAK,YAAY,0BAC9C,MAAI,CAAA,UAAU,cACZ,SAAAA,EAAK,MAEFM,EAAAA,kBAAAA,KAAAC,EAAA,kBAAA,SAAA,CAAA,SAAA,CAAAR,EAAA,kBAAA,IAACS,EAAA,UAAA,CACC,KAAMR,EAAK,KAAK,KAChB,UAAU,qBAET,WAAK,KAAK,KAAA,CACb,0BACCS,EAAAA,aAAa,CAAA,MAAM,UAAU,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,CAAA,CACvD,CAEJ,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,EA1BQR,CA2BV,CAAA,CAEH,EACH,CACF,CAAA"}
1
+ {"version":3,"file":"index.cjs115.js","sources":["../src/components/ui/VerticalCardStepper/index.tsx"],"sourcesContent":["import { DateTime } from \"luxon\";\nimport \"./VerticalCardStepper.scss\";\nimport { Link } from \"@anoki/fse-common/dist\";\nimport { ArrowLink } from \"../ArrowLink\";\nimport { ExternalLink } from \"@/icons\";\n\nexport enum StepVariantEnum {\n DATE = \"date\",\n HEADLINE = \"headline\",\n ORDERED = \"ordered\",\n CHECK = \"check\",\n}\n\nexport enum LinkTypeEnum {\n INTERNAL = \"internal\",\n EXTERNAL = \"external\",\n}\n\nexport type Step = {\n label: string;\n title: string;\n description: string;\n meta: string; // può essere una data ISO o un testo\n link?: Link;\n linkType?: LinkTypeEnum;\n};\n\ntype Props = {\n type: StepVariantEnum;\n steps: Array<Step>;\n};\n\nconst formatDateParts = (dateString: string) => {\n const date = DateTime.fromISO(dateString);\n return {\n day: date.toFormat(\"dd\"),\n month: date.toFormat(\"LLLL\"),\n year: date.toFormat(\"yyyy\"),\n };\n};\n\nexport const VerticalCardStepper = ({ steps, type }: Props) => {\n return (\n <div className=\"vertical-container\">\n <div className=\"timeline\">\n {steps.map((step, idx) => {\n const renderMeta = () => {\n switch (type) {\n case \"date\": {\n if (!step.meta) return null;\n const { day, month, year } = formatDateParts(step.meta);\n return (\n <>\n <div className=\"day\">{day}</div>\n <div className=\"month\">{month}</div>\n <div className=\"year\">{year}</div>\n </>\n );\n }\n case \"headline\":\n return <div className=\"headline\">{step.meta}</div>;\n\n case \"ordered\":\n return <div className=\"circle\">{idx + 1}</div>;\n\n case \"check\":\n return (\n <div className=\"circle\">\n <div className=\"checkmark\"></div>\n </div>\n );\n\n default:\n return null;\n }\n };\n\n return (\n <div key={idx} className=\"step\">\n <div className=\"meta\">{renderMeta()}</div>\n\n <div className=\"vertical-line\">\n <div className=\"dot\" />\n </div>\n\n <div className=\"card\">\n <div className=\"label\">{step.label}</div>\n <div className=\"title\">{step.title}</div>\n <div className=\"\">\n <div className=\"description\">{step.description}</div>\n <div className=\"card-footer\">\n {step.link && (step.linkType === LinkTypeEnum.INTERNAL || !(step.linkType)) && (\n <ArrowLink\n href={step.link.link}\n className=\"card-footer-detail\"\n >\n {step.link.title}\n </ArrowLink>\n )}\n {step.link && step.linkType === LinkTypeEnum.EXTERNAL && (\n <ExternalLink\n color=\"primary\"\n width={22}\n height={22}\n />\n )}\n </div>\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n"],"names":["StepVariantEnum","LinkTypeEnum","formatDateParts","dateString","date","DateTime","VerticalCardStepper","steps","type","jsx","step","idx","renderMeta","day","month","year","jsxs","Fragment","ArrowLink","ExternalLink"],"mappings":"+QAMY,IAAAA,GAAAA,IACVA,EAAA,KAAO,OACPA,EAAA,SAAW,WACXA,EAAA,QAAU,UACVA,EAAA,MAAQ,QAJEA,IAAAA,GAAA,CAAA,CAAA,EAOAC,GAAAA,IACVA,EAAA,SAAW,WACXA,EAAA,SAAW,WAFDA,IAAAA,GAAA,CAAA,CAAA,EAmBZ,MAAMC,EAAmBC,GAAuB,CACxC,MAAAC,EAAOC,EAAAA,QAAS,QAAQF,CAAU,EACjC,MAAA,CACL,IAAKC,EAAK,SAAS,IAAI,EACvB,MAAOA,EAAK,SAAS,MAAM,EAC3B,KAAMA,EAAK,SAAS,MAAM,CAC5B,CACF,EAEaE,EAAsB,CAAC,CAAE,MAAAC,EAAO,KAAAC,KAExCC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,qBACb,SAACA,wBAAA,MAAA,CAAI,UAAU,WACZ,SAAMF,EAAA,IAAI,CAACG,EAAMC,IAAQ,CACxB,MAAMC,EAAa,IAAM,CACvB,OAAQJ,EAAM,CACZ,IAAK,OAAQ,CACP,GAAA,CAACE,EAAK,KAAa,OAAA,KACvB,KAAM,CAAE,IAAAG,EAAK,MAAAC,EAAO,KAAAC,CAAS,EAAAb,EAAgBQ,EAAK,IAAI,EACtD,OAEIM,EAAA,kBAAA,KAAAC,6BAAA,CAAA,SAAA,CAACR,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,MAAO,SAAII,EAAA,EACzBJ,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,QAAS,SAAMK,EAAA,EAC7BL,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,OAAQ,SAAKM,CAAA,CAAA,CAAA,EAC9B,CAAA,CAGJ,IAAK,WACH,OAAQN,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,WAAY,WAAK,KAAK,EAE9C,IAAK,UACH,OAAQA,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,SAAU,WAAM,EAAE,EAE1C,IAAK,QAED,OAAAA,wBAAC,OAAI,UAAU,SACb,iCAAC,MAAI,CAAA,UAAU,YAAY,CAC7B,CAAA,EAGJ,QACS,OAAA,IAAA,CAEb,EAGE,OAAAO,EAAA,kBAAA,KAAC,MAAc,CAAA,UAAU,OACvB,SAAA,CAAAP,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,OAAQ,SAAAG,EAAA,EAAa,EAEpCH,EAAAA,kBAAAA,IAAC,OAAI,UAAU,gBACb,iCAAC,MAAI,CAAA,UAAU,MAAM,CACvB,CAAA,EAEAO,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,OACb,SAAA,CAAAP,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,QAAS,SAAAC,EAAK,MAAM,EAClCD,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,QAAS,WAAK,MAAM,EACnCO,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,GACb,SAAA,CAAAP,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,cAAe,SAAAC,EAAK,YAAY,EAC/CM,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,cACZ,SAAA,CAAAN,EAAK,OAASA,EAAK,WAAa,YAAyB,CAAEA,EAAK,WAC/DD,EAAA,kBAAA,IAACS,EAAA,UAAA,CACC,KAAMR,EAAK,KAAK,KAChB,UAAU,qBAET,WAAK,KAAK,KAAA,CACb,EAEDA,EAAK,MAAQA,EAAK,WAAa,YAC9BD,EAAA,kBAAA,IAACU,EAAA,aAAA,CACC,MAAM,UACN,MAAO,GACP,OAAQ,EAAA,CAAA,CACV,CAEJ,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,EA9BQR,CA+BV,CAAA,CAEH,EACH,CACF,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("./index.cjs3.js"),ce=require("./index.cjs194.js"),w=require("./index.cjs4.js"),F=require("./index.cjs195.js"),O=require("./index.cjs196.js"),Q=require("./index.cjs197.js"),g=require("./index.cjs198.js"),o=require("./index.cjs199.js"),I=require("./index.cjs200.js"),de=require("./index.cjs201.js"),z=require("./index.cjs5.js"),_=require("./index.cjs202.js"),h=require("./index.cjs203.js"),f=require("./index.cjs204.js"),y=require("./index.cjs205.js"),N=require("./index.cjs206.js"),j="Invalid DateTime",fe=864e13;function W(n){return new N("unsupported zone",`the zone "${n.name}" is not supported`)}function Y(n){return n.weekData===null&&(n.weekData=h.gregorianToWeek(n.c)),n.weekData}function x(n){return n.localWeekData===null&&(n.localWeekData=h.gregorianToWeek(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function k(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new u({...t,...e,old:t})}function ne(n,e,t){let i=n-e*60*1e3;const r=t.offset(i);if(e===r)return[i,e];i-=(r-e)*60*1e3;const a=t.offset(i);return r===a?[i,r]:[n-Math.min(r,a)*60*1e3,Math.max(r,a)]}function L(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function A(n,e,t){return ne(o.objToLocalTS(n),e,t)}function J(n,e){const t=n.o,i=n.c.year+Math.trunc(e.years),r=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,a={...n.c,year:i,month:r,day:Math.min(n.c.day,o.daysInMonth(i,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=S.default.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=o.objToLocalTS(a);let[c,d]=ne(l,t,n.zone);return s!==0&&(c+=s,d=n.zone.offset(c)),{ts:c,o:d}}function E(n,e,t,i,r,a){const{setZone:s,zone:l}=t;if(n&&Object.keys(n).length!==0||e){const c=e||l,d=u.fromObject(n,{...t,zone:c,specificOffset:a});return s?d:d.setZone(l)}else return u.invalid(new N("unparsable",`the input "${r}" can't be parsed as ${i}`))}function H(n,e,t=!0){return n.isValid?O.create(g.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function G(n,e){const t=n.c.year>9999||n.c.year<0;let i="";return t&&n.c.year>=0&&(i+="+"),i+=o.padStart(n.c.year,t?6:4),e?(i+="-",i+=o.padStart(n.c.month),i+="-",i+=o.padStart(n.c.day)):(i+=o.padStart(n.c.month),i+=o.padStart(n.c.day)),i}function K(n,e,t,i,r,a){let s=o.padStart(n.c.hour);return e?(s+=":",s+=o.padStart(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(s+=":")):s+=o.padStart(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(s+=o.padStart(n.c.second),(n.c.millisecond!==0||!i)&&(s+=".",s+=o.padStart(n.c.millisecond,3))),r&&(n.isOffsetFixed&&n.offset===0&&!a?s+="Z":n.o<0?(s+="-",s+=o.padStart(Math.trunc(-n.o/60)),s+=":",s+=o.padStart(Math.trunc(-n.o%60))):(s+="+",s+=o.padStart(Math.trunc(n.o/60)),s+=":",s+=o.padStart(Math.trunc(n.o%60)))),a&&(s+="["+n.zone.ianaName+"]"),s}const ie={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},he={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},me={ordinal:1,hour:0,minute:0,second:0,millisecond:0},re=["year","month","day","hour","minute","second","millisecond"],Te=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ye=["year","ordinal","hour","minute","second","millisecond"];function ge(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new y.InvalidUnitError(n);return e}function B(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return ge(n)}}function we(n){return q[n]||(C===void 0&&(C=w.now()),q[n]=n.offset(C)),q[n]}function X(n,e){const t=I.normalizeZone(e.zone,w.defaultZone);if(!t.isValid)return u.invalid(W(t));const i=g.fromObject(e);let r,a;if(o.isUndefined(n.year))r=w.now();else{for(const c of re)o.isUndefined(n[c])&&(n[c]=ie[c]);const s=h.hasInvalidGregorianData(n)||h.hasInvalidTimeData(n);if(s)return u.invalid(s);const l=we(t);[r,a]=A(n,l,t)}return new u({ts:r,zone:t,loc:i,o:a})}function ee(n,e,t){const i=o.isUndefined(t.round)?!0:t.round,r=(s,l)=>(s=o.roundTo(s,i||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(s,l)),a=s=>t.calendary?e.hasSame(n,s)?0:e.startOf(s).diff(n.startOf(s),s).get(s):e.diff(n,s).get(s);if(t.unit)return r(a(t.unit),t.unit);for(const s of t.units){const l=a(s);if(Math.abs(l)>=1)return r(l,s)}return r(n>e?-0:0,t.units[t.units.length-1])}function te(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}let C,q={};class u{constructor(e){const t=e.zone||w.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new N("invalid input"):null)||(t.isValid?null:W(t));this.ts=o.isUndefined(e.ts)?w.now():e.ts;let r=null,a=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,a]=[e.old.c,e.old.o];else{const l=o.isNumber(e.o)&&!e.old?e.o:t.offset(this.ts);r=L(this.ts,l),i=Number.isNaN(r.year)?new N("invalid input"):null,r=i?null:r,a=i?null:l}this._zone=t,this.loc=e.loc||g.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=r,this.o=a,this.isLuxonDateTime=!0}static now(){return new u({})}static local(){const[e,t]=te(arguments),[i,r,a,s,l,c,d]=t;return X({year:i,month:r,day:a,hour:s,minute:l,second:c,millisecond:d},e)}static utc(){const[e,t]=te(arguments),[i,r,a,s,l,c,d]=t;return e.zone=Q.utcInstance,X({year:i,month:r,day:a,hour:s,minute:l,second:c,millisecond:d},e)}static fromJSDate(e,t={}){const i=o.isDate(e)?e.valueOf():NaN;if(Number.isNaN(i))return u.invalid("invalid input");const r=I.normalizeZone(t.zone,w.defaultZone);return r.isValid?new u({ts:i,zone:r,loc:g.fromObject(t)}):u.invalid(W(r))}static fromMillis(e,t={}){if(o.isNumber(e))return e<-864e13||e>fe?u.invalid("Timestamp out of range"):new u({ts:e,zone:I.normalizeZone(t.zone,w.defaultZone),loc:g.fromObject(t)});throw new y.InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(o.isNumber(e))return new u({ts:e*1e3,zone:I.normalizeZone(t.zone,w.defaultZone),loc:g.fromObject(t)});throw new y.InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=I.normalizeZone(t.zone,w.defaultZone);if(!i.isValid)return u.invalid(W(i));const r=g.fromObject(t),a=o.normalizeObject(e,B),{minDaysInFirstWeek:s,startOfWeek:l}=h.usesLocalWeekValues(a,r),c=w.now(),d=o.isUndefined(t.specificOffset)?i.offset(c):t.specificOffset,m=!o.isUndefined(a.ordinal),T=!o.isUndefined(a.year),V=!o.isUndefined(a.month)||!o.isUndefined(a.day),D=T||V,$=a.weekYear||a.weekNumber;if((D||m)&&$)throw new y.ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(V&&m)throw new y.ConflictingSpecificationError("Can't mix ordinal dates with month/day");const Z=$||a.weekday&&!D;let p,U,v=L(c,d);Z?(p=Te,U=he,v=h.gregorianToWeek(v,s,l)):m?(p=ye,U=me,v=h.gregorianToOrdinal(v)):(p=re,U=ie);let R=!1;for(const b of p){const ue=a[b];o.isUndefined(ue)?R?a[b]=U[b]:a[b]=v[b]:R=!0}const se=Z?h.hasInvalidWeekData(a,s,l):m?h.hasInvalidOrdinalData(a):h.hasInvalidGregorianData(a),P=se||h.hasInvalidTimeData(a);if(P)return u.invalid(P);const ae=Z?h.weekToGregorian(a,s,l):m?h.ordinalToGregorian(a):a,[oe,le]=A(ae,d,i),M=new u({ts:oe,zone:i,o:le,loc:r});return a.weekday&&D&&e.weekday!==M.weekday?u.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${M.toISO()}`):M.isValid?M:u.invalid(M.invalid)}static fromISO(e,t={}){const[i,r]=z.parseISODate(e);return E(i,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,r]=z.parseRFC2822Date(e);return E(i,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,r]=z.parseHTTPDate(e);return E(i,r,t,"HTTP",t)}static fromFormat(e,t,i={}){if(o.isUndefined(e)||o.isUndefined(t))throw new y.InvalidArgumentError("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:a=null}=i,s=g.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0}),[l,c,d,m]=_.parseFromTokens(s,e,t);return m?u.invalid(m):E(l,c,i,`format ${t}`,e,d)}static fromString(e,t,i={}){return u.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,r]=z.parseSQL(e);return E(i,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new y.InvalidArgumentError("need to specify a reason the DateTime is invalid");const i=e instanceof N?e:new N(e,t);if(w.throwOnInvalid)throw new y.InvalidDateTimeError(i);return new u({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const i=_.formatOptsToTokens(e,g.fromObject(t));return i?i.map(r=>r?r.val:null).join(""):null}static expandFormat(e,t={}){return _.expandMacroTokens(O.parseFormat(e),g.fromObject(t)).map(r=>r.val).join("")}static resetCache(){C=void 0,q={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Y(this).weekYear:NaN}get weekNumber(){return this.isValid?Y(this).weekNumber:NaN}get weekday(){return this.isValid?Y(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?x(this).weekday:NaN}get localWeekNumber(){return this.isValid?x(this).weekNumber:NaN}get localWeekYear(){return this.isValid?x(this).weekYear:NaN}get ordinal(){return this.isValid?h.gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?F.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?F.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?F.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?F.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,i=o.objToLocalTS(this.c),r=this.zone.offset(i-e),a=this.zone.offset(i+e),s=this.zone.offset(i-r*t),l=this.zone.offset(i-a*t);if(s===l)return[this];const c=i-s*t,d=i-l*t,m=L(c,s),T=L(d,l);return m.hour===T.hour&&m.minute===T.minute&&m.second===T.second&&m.millisecond===T.millisecond?[k(this,{ts:c}),k(this,{ts:d})]:[this]}get isInLeapYear(){return o.isLeapYear(this.year)}get daysInMonth(){return o.daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?o.daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?o.weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?o.weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:r}=O.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Q.instance(e),t)}toLocal(){return this.setZone(w.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if(e=I.normalizeZone(e,w.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||i){const a=e.offset(this.ts),s=this.toObject();[r]=A(s,a,e)}return k(this,{ts:r,zone:e})}else return u.invalid(W(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){const r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i});return k(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=o.normalizeObject(e,B),{minDaysInFirstWeek:i,startOfWeek:r}=h.usesLocalWeekValues(t,this.loc),a=!o.isUndefined(t.weekYear)||!o.isUndefined(t.weekNumber)||!o.isUndefined(t.weekday),s=!o.isUndefined(t.ordinal),l=!o.isUndefined(t.year),c=!o.isUndefined(t.month)||!o.isUndefined(t.day),d=l||c,m=t.weekYear||t.weekNumber;if((d||s)&&m)throw new y.ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new y.ConflictingSpecificationError("Can't mix ordinal dates with month/day");let T;a?T=h.weekToGregorian({...h.gregorianToWeek(this.c,i,r),...t},i,r):o.isUndefined(t.ordinal)?(T={...this.toObject(),...t},o.isUndefined(t.day)&&(T.day=Math.min(o.daysInMonth(T.year,T.month),T.day))):T=h.ordinalToGregorian({...h.gregorianToOrdinal(this.c),...t});const[V,D]=A(T,this.o,this.zone);return k(this,{ts:V,o:D})}plus(e){if(!this.isValid)return this;const t=S.default.fromDurationLike(e);return k(this,J(this,t))}minus(e){if(!this.isValid)return this;const t=S.default.fromDurationLike(e).negate();return k(this,J(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const i={},r=S.default.normalizeUnit(e);switch(r){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(r==="weeks")if(t){const a=this.loc.getStartOfWeek(),{weekday:s}=this;s<a&&(i.weekNumber=this.weekNumber-1),i.weekday=a}else i.weekday=1;if(r==="quarters"){const a=Math.ceil(this.month/3);i.month=(a-1)*3+1}return this.set(i)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?O.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):j}toLocaleString(e=f.DATE_SHORT,t={}){return this.isValid?O.create(this.loc.clone(t),e).formatDateTime(this):j}toLocaleParts(e={}){return this.isValid?O.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:r=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const s=e==="extended";let l=G(this,s);return l+="T",l+=K(this,s,t,i,r,a),l}toISODate({format:e="extended"}={}){return this.isValid?G(this,e==="extended"):null}toISOWeekDate(){return H(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:r=!1,extendedZone:a=!1,format:s="extended"}={}){return this.isValid?(r?"T":"")+K(this,s==="extended",t,e,i,a):null}toRFC2822(){return H(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return H(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?G(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(i&&(r+=" "),t?r+="z":e&&(r+="ZZ")),H(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():j}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return S.default.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...i},a=o.maybeArray(t).map(S.default.normalizeUnit),s=e.valueOf()>this.valueOf(),l=s?this:e,c=s?e:this,d=de(l,c,a,r);return s?d.negate():d}diffNow(e="milliseconds",t={}){return this.diff(u.now(),e,t)}until(e){return this.isValid?ce.fromDateTimes(this,e):this}hasSame(e,t,i){if(!this.isValid)return!1;const r=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(t,i)<=r&&r<=a.endOf(t,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||u.fromObject({},{zone:this.zone}),i=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(r=e.unit,a=void 0),ee(t,this.plus(i),{...e,numeric:"always",units:r,unit:a})}toRelativeCalendar(e={}){return this.isValid?ee(e.base||u.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(u.isDateTime))throw new y.InvalidArgumentError("min requires all arguments be DateTimes");return o.bestBy(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(u.isDateTime))throw new y.InvalidArgumentError("max requires all arguments be DateTimes");return o.bestBy(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:r=null,numberingSystem:a=null}=i,s=g.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0});return _.explainFromTokens(s,e,t)}static fromStringExplain(e,t,i={}){return u.fromFormatExplain(e,t,i)}static buildFormatParser(e,t={}){const{locale:i=null,numberingSystem:r=null}=t,a=g.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return new _.TokenParser(a,e)}static fromFormatParser(e,t,i={}){if(o.isUndefined(e)||o.isUndefined(t))throw new y.InvalidArgumentError("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:a=null}=i,s=g.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0});if(!s.equals(t.locale))throw new y.InvalidArgumentError(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`);const{result:l,zone:c,specificOffset:d,invalidReason:m}=t.explainFromTokens(e);return m?u.invalid(m):E(l,c,i,`format ${t.format}`,e,d)}static get DATE_SHORT(){return f.DATE_SHORT}static get DATE_MED(){return f.DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return f.DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return f.DATE_FULL}static get DATE_HUGE(){return f.DATE_HUGE}static get TIME_SIMPLE(){return f.TIME_SIMPLE}static get TIME_WITH_SECONDS(){return f.TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return f.TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return f.TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return f.TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return f.TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return f.TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return f.TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return f.DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return f.DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return f.DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return f.DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return f.DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return f.DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return f.DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return f.DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return f.DATETIME_HUGE_WITH_SECONDS}}function ke(n){if(u.isDateTime(n))return n;if(n&&n.valueOf&&o.isNumber(n.valueOf()))return u.fromJSDate(n);if(n&&typeof n=="object")return u.fromObject(n);throw new y.InvalidArgumentError(`Unknown datetime argument: ${n}, of type ${typeof n}`)}exports.default=u;exports.friendlyDateTime=ke;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("./index.cjs3.js"),ce=require("./index.cjs194.js"),w=require("./index.cjs4.js"),z=require("./index.cjs195.js"),O=require("./index.cjs196.js"),Q=require("./index.cjs197.js"),g=require("./index.cjs198.js"),o=require("./index.cjs199.js"),I=require("./index.cjs200.js"),de=require("./index.cjs201.js"),L=require("./index.cjs5.js"),_=require("./index.cjs202.js"),h=require("./index.cjs203.js"),f=require("./index.cjs204.js"),y=require("./index.cjs205.js"),N=require("./index.cjs206.js"),Z="Invalid DateTime",fe=864e13;function W(n){return new N("unsupported zone",`the zone "${n.name}" is not supported`)}function j(n){return n.weekData===null&&(n.weekData=h.gregorianToWeek(n.c)),n.weekData}function Y(n){return n.localWeekData===null&&(n.localWeekData=h.gregorianToWeek(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function k(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new u({...t,...e,old:t})}function ne(n,e,t){let i=n-e*60*1e3;const r=t.offset(i);if(e===r)return[i,e];i-=(r-e)*60*1e3;const a=t.offset(i);return r===a?[i,r]:[n-Math.min(r,a)*60*1e3,Math.max(r,a)]}function H(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function C(n,e,t){return ne(o.objToLocalTS(n),e,t)}function J(n,e){const t=n.o,i=n.c.year+Math.trunc(e.years),r=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,a={...n.c,year:i,month:r,day:Math.min(n.c.day,o.daysInMonth(i,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=S.default.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=o.objToLocalTS(a);let[c,d]=ne(l,t,n.zone);return s!==0&&(c+=s,d=n.zone.offset(c)),{ts:c,o:d}}function E(n,e,t,i,r,a){const{setZone:s,zone:l}=t;if(n&&Object.keys(n).length!==0||e){const c=e||l,d=u.fromObject(n,{...t,zone:c,specificOffset:a});return s?d:d.setZone(l)}else return u.invalid(new N("unparsable",`the input "${r}" can't be parsed as ${i}`))}function A(n,e,t=!0){return n.isValid?O.create(g.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function x(n,e){const t=n.c.year>9999||n.c.year<0;let i="";return t&&n.c.year>=0&&(i+="+"),i+=o.padStart(n.c.year,t?6:4),e?(i+="-",i+=o.padStart(n.c.month),i+="-",i+=o.padStart(n.c.day)):(i+=o.padStart(n.c.month),i+=o.padStart(n.c.day)),i}function K(n,e,t,i,r,a){let s=o.padStart(n.c.hour);return e?(s+=":",s+=o.padStart(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(s+=":")):s+=o.padStart(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(s+=o.padStart(n.c.second),(n.c.millisecond!==0||!i)&&(s+=".",s+=o.padStart(n.c.millisecond,3))),r&&(n.isOffsetFixed&&n.offset===0&&!a?s+="Z":n.o<0?(s+="-",s+=o.padStart(Math.trunc(-n.o/60)),s+=":",s+=o.padStart(Math.trunc(-n.o%60))):(s+="+",s+=o.padStart(Math.trunc(n.o/60)),s+=":",s+=o.padStart(Math.trunc(n.o%60)))),a&&(s+="["+n.zone.ianaName+"]"),s}const ie={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},he={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},me={ordinal:1,hour:0,minute:0,second:0,millisecond:0},re=["year","month","day","hour","minute","second","millisecond"],Te=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ye=["year","ordinal","hour","minute","second","millisecond"];function ge(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new y.InvalidUnitError(n);return e}function B(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return ge(n)}}function we(n){if(V===void 0&&(V=w.now()),n.type!=="iana")return n.offset(V);const e=n.name;let t=G.get(e);return t===void 0&&(t=n.offset(V),G.set(e,t)),t}function X(n,e){const t=I.normalizeZone(e.zone,w.defaultZone);if(!t.isValid)return u.invalid(W(t));const i=g.fromObject(e);let r,a;if(o.isUndefined(n.year))r=w.now();else{for(const c of re)o.isUndefined(n[c])&&(n[c]=ie[c]);const s=h.hasInvalidGregorianData(n)||h.hasInvalidTimeData(n);if(s)return u.invalid(s);const l=we(t);[r,a]=C(n,l,t)}return new u({ts:r,zone:t,loc:i,o:a})}function ee(n,e,t){const i=o.isUndefined(t.round)?!0:t.round,r=(s,l)=>(s=o.roundTo(s,i||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(s,l)),a=s=>t.calendary?e.hasSame(n,s)?0:e.startOf(s).diff(n.startOf(s),s).get(s):e.diff(n,s).get(s);if(t.unit)return r(a(t.unit),t.unit);for(const s of t.units){const l=a(s);if(Math.abs(l)>=1)return r(l,s)}return r(n>e?-0:0,t.units[t.units.length-1])}function te(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}let V;const G=new Map;class u{constructor(e){const t=e.zone||w.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new N("invalid input"):null)||(t.isValid?null:W(t));this.ts=o.isUndefined(e.ts)?w.now():e.ts;let r=null,a=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,a]=[e.old.c,e.old.o];else{const l=o.isNumber(e.o)&&!e.old?e.o:t.offset(this.ts);r=H(this.ts,l),i=Number.isNaN(r.year)?new N("invalid input"):null,r=i?null:r,a=i?null:l}this._zone=t,this.loc=e.loc||g.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=r,this.o=a,this.isLuxonDateTime=!0}static now(){return new u({})}static local(){const[e,t]=te(arguments),[i,r,a,s,l,c,d]=t;return X({year:i,month:r,day:a,hour:s,minute:l,second:c,millisecond:d},e)}static utc(){const[e,t]=te(arguments),[i,r,a,s,l,c,d]=t;return e.zone=Q.utcInstance,X({year:i,month:r,day:a,hour:s,minute:l,second:c,millisecond:d},e)}static fromJSDate(e,t={}){const i=o.isDate(e)?e.valueOf():NaN;if(Number.isNaN(i))return u.invalid("invalid input");const r=I.normalizeZone(t.zone,w.defaultZone);return r.isValid?new u({ts:i,zone:r,loc:g.fromObject(t)}):u.invalid(W(r))}static fromMillis(e,t={}){if(o.isNumber(e))return e<-864e13||e>fe?u.invalid("Timestamp out of range"):new u({ts:e,zone:I.normalizeZone(t.zone,w.defaultZone),loc:g.fromObject(t)});throw new y.InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(o.isNumber(e))return new u({ts:e*1e3,zone:I.normalizeZone(t.zone,w.defaultZone),loc:g.fromObject(t)});throw new y.InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=I.normalizeZone(t.zone,w.defaultZone);if(!i.isValid)return u.invalid(W(i));const r=g.fromObject(t),a=o.normalizeObject(e,B),{minDaysInFirstWeek:s,startOfWeek:l}=h.usesLocalWeekValues(a,r),c=w.now(),d=o.isUndefined(t.specificOffset)?i.offset(c):t.specificOffset,m=!o.isUndefined(a.ordinal),T=!o.isUndefined(a.year),p=!o.isUndefined(a.month)||!o.isUndefined(a.day),D=T||p,$=a.weekYear||a.weekNumber;if((D||m)&&$)throw new y.ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&m)throw new y.ConflictingSpecificationError("Can't mix ordinal dates with month/day");const q=$||a.weekday&&!D;let U,F,v=H(c,d);q?(U=Te,F=he,v=h.gregorianToWeek(v,s,l)):m?(U=ye,F=me,v=h.gregorianToOrdinal(v)):(U=re,F=ie);let R=!1;for(const b of U){const ue=a[b];o.isUndefined(ue)?R?a[b]=F[b]:a[b]=v[b]:R=!0}const se=q?h.hasInvalidWeekData(a,s,l):m?h.hasInvalidOrdinalData(a):h.hasInvalidGregorianData(a),P=se||h.hasInvalidTimeData(a);if(P)return u.invalid(P);const ae=q?h.weekToGregorian(a,s,l):m?h.ordinalToGregorian(a):a,[oe,le]=C(ae,d,i),M=new u({ts:oe,zone:i,o:le,loc:r});return a.weekday&&D&&e.weekday!==M.weekday?u.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${M.toISO()}`):M.isValid?M:u.invalid(M.invalid)}static fromISO(e,t={}){const[i,r]=L.parseISODate(e);return E(i,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,r]=L.parseRFC2822Date(e);return E(i,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,r]=L.parseHTTPDate(e);return E(i,r,t,"HTTP",t)}static fromFormat(e,t,i={}){if(o.isUndefined(e)||o.isUndefined(t))throw new y.InvalidArgumentError("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:a=null}=i,s=g.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0}),[l,c,d,m]=_.parseFromTokens(s,e,t);return m?u.invalid(m):E(l,c,i,`format ${t}`,e,d)}static fromString(e,t,i={}){return u.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,r]=L.parseSQL(e);return E(i,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new y.InvalidArgumentError("need to specify a reason the DateTime is invalid");const i=e instanceof N?e:new N(e,t);if(w.throwOnInvalid)throw new y.InvalidDateTimeError(i);return new u({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const i=_.formatOptsToTokens(e,g.fromObject(t));return i?i.map(r=>r?r.val:null).join(""):null}static expandFormat(e,t={}){return _.expandMacroTokens(O.parseFormat(e),g.fromObject(t)).map(r=>r.val).join("")}static resetCache(){V=void 0,G.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?j(this).weekYear:NaN}get weekNumber(){return this.isValid?j(this).weekNumber:NaN}get weekday(){return this.isValid?j(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Y(this).weekday:NaN}get localWeekNumber(){return this.isValid?Y(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Y(this).weekYear:NaN}get ordinal(){return this.isValid?h.gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?z.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?z.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?z.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?z.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,i=o.objToLocalTS(this.c),r=this.zone.offset(i-e),a=this.zone.offset(i+e),s=this.zone.offset(i-r*t),l=this.zone.offset(i-a*t);if(s===l)return[this];const c=i-s*t,d=i-l*t,m=H(c,s),T=H(d,l);return m.hour===T.hour&&m.minute===T.minute&&m.second===T.second&&m.millisecond===T.millisecond?[k(this,{ts:c}),k(this,{ts:d})]:[this]}get isInLeapYear(){return o.isLeapYear(this.year)}get daysInMonth(){return o.daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?o.daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?o.weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?o.weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:r}=O.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Q.instance(e),t)}toLocal(){return this.setZone(w.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if(e=I.normalizeZone(e,w.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||i){const a=e.offset(this.ts),s=this.toObject();[r]=C(s,a,e)}return k(this,{ts:r,zone:e})}else return u.invalid(W(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){const r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i});return k(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=o.normalizeObject(e,B),{minDaysInFirstWeek:i,startOfWeek:r}=h.usesLocalWeekValues(t,this.loc),a=!o.isUndefined(t.weekYear)||!o.isUndefined(t.weekNumber)||!o.isUndefined(t.weekday),s=!o.isUndefined(t.ordinal),l=!o.isUndefined(t.year),c=!o.isUndefined(t.month)||!o.isUndefined(t.day),d=l||c,m=t.weekYear||t.weekNumber;if((d||s)&&m)throw new y.ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new y.ConflictingSpecificationError("Can't mix ordinal dates with month/day");let T;a?T=h.weekToGregorian({...h.gregorianToWeek(this.c,i,r),...t},i,r):o.isUndefined(t.ordinal)?(T={...this.toObject(),...t},o.isUndefined(t.day)&&(T.day=Math.min(o.daysInMonth(T.year,T.month),T.day))):T=h.ordinalToGregorian({...h.gregorianToOrdinal(this.c),...t});const[p,D]=C(T,this.o,this.zone);return k(this,{ts:p,o:D})}plus(e){if(!this.isValid)return this;const t=S.default.fromDurationLike(e);return k(this,J(this,t))}minus(e){if(!this.isValid)return this;const t=S.default.fromDurationLike(e).negate();return k(this,J(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const i={},r=S.default.normalizeUnit(e);switch(r){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(r==="weeks")if(t){const a=this.loc.getStartOfWeek(),{weekday:s}=this;s<a&&(i.weekNumber=this.weekNumber-1),i.weekday=a}else i.weekday=1;if(r==="quarters"){const a=Math.ceil(this.month/3);i.month=(a-1)*3+1}return this.set(i)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?O.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Z}toLocaleString(e=f.DATE_SHORT,t={}){return this.isValid?O.create(this.loc.clone(t),e).formatDateTime(this):Z}toLocaleParts(e={}){return this.isValid?O.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:r=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const s=e==="extended";let l=x(this,s);return l+="T",l+=K(this,s,t,i,r,a),l}toISODate({format:e="extended"}={}){return this.isValid?x(this,e==="extended"):null}toISOWeekDate(){return A(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:r=!1,extendedZone:a=!1,format:s="extended"}={}){return this.isValid?(r?"T":"")+K(this,s==="extended",t,e,i,a):null}toRFC2822(){return A(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return A(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?x(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(i&&(r+=" "),t?r+="z":e&&(r+="ZZ")),A(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Z}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return S.default.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...i},a=o.maybeArray(t).map(S.default.normalizeUnit),s=e.valueOf()>this.valueOf(),l=s?this:e,c=s?e:this,d=de(l,c,a,r);return s?d.negate():d}diffNow(e="milliseconds",t={}){return this.diff(u.now(),e,t)}until(e){return this.isValid?ce.fromDateTimes(this,e):this}hasSame(e,t,i){if(!this.isValid)return!1;const r=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(t,i)<=r&&r<=a.endOf(t,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||u.fromObject({},{zone:this.zone}),i=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(r=e.unit,a=void 0),ee(t,this.plus(i),{...e,numeric:"always",units:r,unit:a})}toRelativeCalendar(e={}){return this.isValid?ee(e.base||u.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(u.isDateTime))throw new y.InvalidArgumentError("min requires all arguments be DateTimes");return o.bestBy(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(u.isDateTime))throw new y.InvalidArgumentError("max requires all arguments be DateTimes");return o.bestBy(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:r=null,numberingSystem:a=null}=i,s=g.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0});return _.explainFromTokens(s,e,t)}static fromStringExplain(e,t,i={}){return u.fromFormatExplain(e,t,i)}static buildFormatParser(e,t={}){const{locale:i=null,numberingSystem:r=null}=t,a=g.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return new _.TokenParser(a,e)}static fromFormatParser(e,t,i={}){if(o.isUndefined(e)||o.isUndefined(t))throw new y.InvalidArgumentError("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:a=null}=i,s=g.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0});if(!s.equals(t.locale))throw new y.InvalidArgumentError(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`);const{result:l,zone:c,specificOffset:d,invalidReason:m}=t.explainFromTokens(e);return m?u.invalid(m):E(l,c,i,`format ${t.format}`,e,d)}static get DATE_SHORT(){return f.DATE_SHORT}static get DATE_MED(){return f.DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return f.DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return f.DATE_FULL}static get DATE_HUGE(){return f.DATE_HUGE}static get TIME_SIMPLE(){return f.TIME_SIMPLE}static get TIME_WITH_SECONDS(){return f.TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return f.TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return f.TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return f.TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return f.TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return f.TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return f.TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return f.DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return f.DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return f.DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return f.DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return f.DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return f.DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return f.DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return f.DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return f.DATETIME_HUGE_WITH_SECONDS}}function ke(n){if(u.isDateTime(n))return n;if(n&&n.valueOf&&o.isNumber(n.valueOf()))return u.fromJSDate(n);if(n&&typeof n=="object")return u.fromObject(n);throw new y.InvalidArgumentError(`Unknown datetime argument: ${n}, of type ${typeof n}`)}exports.default=u;exports.friendlyDateTime=ke;
2
2
  //# sourceMappingURL=index.cjs193.js.map