efficient-shell 8.33.0 → 8.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -15
- package/THIRD_PARTY_NOTICES.md +11 -2
- package/dist/{Browser-V3NK5J6A.js → Browser-ERZNOFN7.js} +14 -14
- package/dist/Calculator-NXIOZMML.js +29 -0
- package/dist/{CurrencyConverter-S7LG5PMX.js → CurrencyConverter-57WUTV4H.js} +12 -12
- package/dist/{Documents-EKGXGENC.js → Documents-POWS4L44.js} +7 -7
- package/dist/{Files-5J4CR3CU.js → Files-O44UH6ZF.js} +40 -40
- package/dist/{Notepad-GTU3U27L.js → Notepad-66ZCGUHC.js} +9 -9
- package/dist/PdfViewer-KSLOYXMD.js +1 -0
- package/dist/{PomodoroTimer-2HPCAEI5.js → PomodoroTimer-GLYNCO4H.js} +17 -17
- package/dist/{Preview-TMS6JTPA.js → Preview-WZDFVBNJ.js} +15 -15
- package/dist/Sidebar-QQFJJWE2.js +43 -0
- package/dist/{Spreadsheet-P77Z2TVQ.js → Spreadsheet-OYAVNRCT.js} +14 -14
- package/dist/{Stock-VNFYS73L.js → Stock-CIHUZOQS.js} +7 -7
- package/dist/{Weather-DS4YZ6SH.js → Weather-UKLNJ3VF.js} +13 -13
- package/dist/{WorldClock-7S4TITSF.js → WorldClock-OZ3I7D2M.js} +6 -6
- package/dist/ai/index.d.ts +48 -10
- package/dist/ai/index.js +38 -33
- package/dist/ai.css +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/chunk-243NPEG6.js +2 -0
- package/dist/{chunk-L3NYH4QV.js → chunk-2AHHM4SK.js} +39 -39
- package/dist/{chunk-7CFH6Y4T.js → chunk-2F7ZOMKK.js} +1 -1
- package/dist/chunk-2PWZNFFP.js +19 -0
- package/dist/{chunk-KIBL6M3T.js → chunk-2SHYR3RA.js} +4 -3
- package/dist/{chunk-G433MKIN.js → chunk-2U2GJCSP.js} +5 -5
- package/dist/chunk-2UCDJCGZ.js +4 -0
- package/dist/{chunk-ZN3O2KJ7.js → chunk-2WL3Q7VW.js} +12 -12
- package/dist/chunk-2ZD67TDP.js +2 -0
- package/dist/chunk-3ER2WJNL.js +2 -0
- package/dist/chunk-44F7JLNV.js +2 -0
- package/dist/chunk-474G67EG.js +6 -0
- package/dist/chunk-47OCVZXD.js +2 -0
- package/dist/chunk-4CFQXH5N.js +2 -0
- package/dist/chunk-4FNGR474.js +2 -0
- package/dist/{chunk-XWLWG4HS.js → chunk-4GVH4ZUH.js} +1 -1
- package/dist/{chunk-YRWRA7MW.js → chunk-4HCRZHIX.js} +1 -1
- package/dist/chunk-4L7GLO5W.js +2 -0
- package/dist/{chunk-MXHEREC6.js → chunk-4MO375G3.js} +3 -3
- package/dist/chunk-4RDYNULI.js +2 -0
- package/dist/{chunk-WFWDABGV.js → chunk-4RNF6MNW.js} +2 -2
- package/dist/chunk-5DFKPSJQ.js +1 -0
- package/dist/chunk-5FCEBKT2.js +7 -0
- package/dist/chunk-5HDMPCZP.js +2 -0
- package/dist/chunk-5KZ4WKUI.js +2 -0
- package/dist/{chunk-DGLCMYSQ.js → chunk-5N5DBTTF.js} +11 -11
- package/dist/{chunk-KNVE7CMS.js → chunk-5OX6KXWY.js} +1 -1
- package/dist/{chunk-PNQ4EYYM.js → chunk-5YELPBUT.js} +3 -3
- package/dist/chunk-64ZHCEZN.js +5 -0
- package/dist/{chunk-Y2D2YMFY.js → chunk-6ANFVX4M.js} +12 -12
- package/dist/chunk-6I7EODFJ.js +7 -0
- package/dist/chunk-6IUDFVTN.js +2 -0
- package/dist/chunk-75IWV4ZF.js +2 -0
- package/dist/chunk-77SI7AKG.js +2 -0
- package/dist/{chunk-KK5MX7EH.js → chunk-7ACSSYEZ.js} +13 -13
- package/dist/chunk-7GB7CVQI.js +2 -0
- package/dist/chunk-7KCJ77BP.js +2 -0
- package/dist/chunk-7P3DXO3E.js +2 -0
- package/dist/{chunk-GI7FOLDX.js → chunk-ACW3J77L.js} +1 -1
- package/dist/{chunk-ERMZ75FO.js → chunk-AF7R2MV4.js} +1 -1
- package/dist/{chunk-QQK3XS6H.js → chunk-AZU7YOES.js} +8 -8
- package/dist/{chunk-NFR4QZL2.js → chunk-BHMUOWAE.js} +4 -4
- package/dist/chunk-BWIX3YIH.js +2 -0
- package/dist/{chunk-XEKPJGVZ.js → chunk-BX2IOAD5.js} +1 -1
- package/dist/chunk-BXQYRG7P.js +2 -0
- package/dist/{chunk-UB4BTRSB.js → chunk-BYCOB6WT.js} +1 -1
- package/dist/chunk-BZMZTPS6.js +1 -0
- package/dist/chunk-BZR43D3G.js +2 -0
- package/dist/chunk-CAMLFCGY.js +29 -0
- package/dist/chunk-CAUWHLN7.js +4 -0
- package/dist/{chunk-3GT6LKCC.js → chunk-CCPNMYCK.js} +1 -1
- package/dist/{chunk-RAAUW5OZ.js → chunk-DG2WU3BU.js} +2 -2
- package/dist/chunk-DIN3EFOM.js +14 -0
- package/dist/chunk-DS6R5R3O.js +2 -0
- package/dist/{chunk-WJ3XSJ6B.js → chunk-EBC4XFL2.js} +1 -1
- package/dist/{chunk-37JDUDCO.js → chunk-ECCUEG3J.js} +1 -1
- package/dist/chunk-EHMDGAWA.js +2 -0
- package/dist/{chunk-FJXYKN7R.js → chunk-EM6BEHAD.js} +8 -8
- package/dist/chunk-EQPVQY5E.js +2 -0
- package/dist/{chunk-KFXVHP37.js → chunk-EVB35JP5.js} +1 -1
- package/dist/{chunk-FL2PUQX7.js → chunk-EW6FRPFJ.js} +1 -1
- package/dist/{chunk-JCMP5KMS.js → chunk-EZY4CO4A.js} +6 -6
- package/dist/chunk-FATXXVV3.js +2 -0
- package/dist/chunk-FEVWWOGL.js +2 -0
- package/dist/{chunk-PJCVNFWM.js → chunk-FKZEGBLK.js} +10 -10
- package/dist/chunk-FMERDO2X.js +2 -0
- package/dist/{chunk-DTSCO7VM.js → chunk-FMKTVZAO.js} +1 -1
- package/dist/chunk-FOXMWLVS.js +2 -0
- package/dist/{chunk-IZCODCSC.js → chunk-FTKKGGOQ.js} +1 -1
- package/dist/chunk-FUSCAZEK.js +2 -0
- package/dist/{chunk-4S4523B2.js → chunk-G2MJTE6X.js} +12 -12
- package/dist/chunk-G4GQOAWS.js +2 -0
- package/dist/{chunk-EZGY6CFN.js → chunk-GK3QH63P.js} +1 -1
- package/dist/{chunk-QGDZ6RAI.js → chunk-HAIMJAI4.js} +2 -2
- package/dist/chunk-HMHL27AU.js +6 -0
- package/dist/chunk-I27TFZJH.js +2 -0
- package/dist/chunk-IBHBPSQN.js +2 -0
- package/dist/{chunk-4AAGZQX7.js → chunk-IHEEJO5S.js} +1 -1
- package/dist/chunk-INUXPG27.js +2 -0
- package/dist/{chunk-WQNIXV4T.js → chunk-IUCIYWTT.js} +8 -8
- package/dist/chunk-IWQSBA3D.js +2 -0
- package/dist/chunk-JBQWR4SX.js +8 -0
- package/dist/{chunk-AX7KPMDV.js → chunk-JDKRQG7X.js} +2 -2
- package/dist/chunk-JMWKD4R5.js +2 -0
- package/dist/chunk-JREQY3YN.js +2 -0
- package/dist/chunk-JVIOAZHW.js +14 -0
- package/dist/chunk-K4RFJ7P2.js +2 -0
- package/dist/chunk-KTMEHSTB.js +2 -0
- package/dist/{chunk-FOLZVO2Z.js → chunk-L3G3YHVN.js} +13 -13
- package/dist/chunk-L65BESIE.js +1 -0
- package/dist/chunk-LQD7K7HK.js +2 -0
- package/dist/{chunk-ZEKM6HAA.js → chunk-M2AIC7IK.js} +2 -2
- package/dist/{chunk-KDZUWQEG.js → chunk-M2KV4WKR.js} +1 -1
- package/dist/{chunk-H3BC4KDE.js → chunk-M2LLVSBR.js} +1 -1
- package/dist/{chunk-SAKHGHF5.js → chunk-MC43PRTL.js} +1 -1
- package/dist/{chunk-VRUDENTZ.js → chunk-MICWRC72.js} +7 -7
- package/dist/chunk-MTZUYC4Y.js +5 -0
- package/dist/chunk-MVJ34HIV.js +2 -0
- package/dist/{chunk-WTY3SXO7.js → chunk-MY755PTJ.js} +1 -1
- package/dist/chunk-NEQFHRF3.js +2 -0
- package/dist/chunk-NFMDU4EJ.js +4 -0
- package/dist/chunk-NK7HBFNQ.js +2 -0
- package/dist/chunk-NKZNPYDB.js +3 -0
- package/dist/chunk-NTME34BP.js +2 -0
- package/dist/chunk-NTWI7EGJ.js +4 -0
- package/dist/{chunk-YSFLXPUS.js → chunk-NUSSZJF2.js} +5 -5
- package/dist/chunk-NZBQVE3Q.js +2 -0
- package/dist/{chunk-RGBX3EVC.js → chunk-O2YAB6WK.js} +8 -8
- package/dist/{chunk-TRZPF2CE.js → chunk-OFKWTOXK.js} +3 -3
- package/dist/chunk-OIH56GH5.js +2 -0
- package/dist/chunk-OKRAYHGW.js +2 -0
- package/dist/chunk-OM5K4WCB.js +2 -0
- package/dist/chunk-ONC3BFFM.js +2 -0
- package/dist/chunk-OSXM35MX.js +2 -0
- package/dist/{chunk-ZT5Y5JZB.js → chunk-P42YNSKI.js} +4 -4
- package/dist/chunk-PAZU27H5.js +2 -0
- package/dist/chunk-PBGMVLOF.js +2 -0
- package/dist/{chunk-TFMOGKW2.js → chunk-PCKYNZ5Y.js} +10 -10
- package/dist/chunk-PRJJK7VR.js +2 -0
- package/dist/chunk-PYW3HX7A.js +2 -0
- package/dist/{chunk-YW2DH6YQ.js → chunk-QPWD5CCS.js} +5 -5
- package/dist/chunk-QTM26JQP.js +2 -0
- package/dist/chunk-QYEMC2OA.js +2 -0
- package/dist/chunk-R2IXRW5N.js +2 -0
- package/dist/{chunk-RUQEB2ZC.js → chunk-R4C3GGCS.js} +3 -3
- package/dist/chunk-RAHDUMQ5.js +2 -0
- package/dist/{chunk-3V5Z2BJY.js → chunk-RB2F65YJ.js} +12 -12
- package/dist/chunk-RBXMTHOT.js +4 -0
- package/dist/chunk-ROUTBYMG.js +5 -0
- package/dist/{chunk-BZV4K6GR.js → chunk-RPJ2GC3K.js} +20 -20
- package/dist/{chunk-XC55NMXR.js → chunk-S4IW5OL3.js} +1 -1
- package/dist/chunk-S4J4B7LY.js +5 -0
- package/dist/{chunk-HVX37PKU.js → chunk-SEXLHFMR.js} +1 -1
- package/dist/{chunk-SYSDAVZ3.js → chunk-SWHRP52Y.js} +1 -1
- package/dist/chunk-T3NJAOJL.js +2 -0
- package/dist/{chunk-NWP6IJYK.js → chunk-TANR67XF.js} +2 -2
- package/dist/chunk-TI5WUO3V.js +2 -0
- package/dist/{chunk-4F3IKYUO.js → chunk-TOVHLONK.js} +6 -6
- package/dist/{chunk-JOIWDQRJ.js → chunk-TRD22FC7.js} +6 -6
- package/dist/{chunk-YGZMD6TZ.js → chunk-TTY62G5D.js} +16 -16
- package/dist/{chunk-YCQVEJOT.js → chunk-TW6WYYBC.js} +2 -2
- package/dist/{chunk-B55IXYDR.js → chunk-TZHWF3P5.js} +2 -2
- package/dist/chunk-UKC6VJE4.js +2 -0
- package/dist/chunk-URWQO4KB.js +2 -0
- package/dist/{chunk-IAQC775L.js → chunk-UZ3CZQA4.js} +1 -1
- package/dist/chunk-V3GM5NXB.js +2 -0
- package/dist/chunk-V6Q2GZAI.js +2 -0
- package/dist/chunk-VRODVMV3.js +1 -0
- package/dist/chunk-VW4FHT46.js +2 -0
- package/dist/chunk-W5DLG5T2.js +2 -0
- package/dist/chunk-W5I35GZZ.js +2 -0
- package/dist/{chunk-V4KQUOUP.js → chunk-WKRFD4E4.js} +8 -8
- package/dist/{chunk-PDXD6DT7.js → chunk-WME5DFB6.js} +1 -1
- package/dist/chunk-WYDD26UO.js +2 -0
- package/dist/{chunk-3C67XRVJ.js → chunk-XB2YPUKR.js} +8 -8
- package/dist/{chunk-DWYNPXSB.js → chunk-XDDTFV32.js} +1 -1
- package/dist/chunk-XUYWUGDM.js +2 -0
- package/dist/{chunk-UQBPKZUR.js → chunk-XZL3HCWH.js} +1 -1
- package/dist/{chunk-IK4Y7WEP.js → chunk-YBB56N6X.js} +1 -1
- package/dist/chunk-YHYAGJ6V.js +2 -0
- package/dist/chunk-YKKMR5DU.js +8 -0
- package/dist/chunk-YVULGIDQ.js +2 -0
- package/dist/chunk-Z5XEAC32.js +2 -0
- package/dist/chunk-ZBL4CN2E.js +2 -0
- package/dist/chunk-ZEN67DFI.js +2 -0
- package/dist/{chunk-X5AZHR2J.js → chunk-ZRHQGFO5.js} +2 -2
- package/dist/{chunk-O3HRFXNN.js → chunk-ZXSMSVLU.js} +3 -3
- package/dist/chunk-ZXU4DEQM.js +2 -0
- package/dist/chunk-ZZIVSJ2B.js +2 -0
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Select.d.ts +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/Switch.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.d.ts +4 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/settingRowContext.d.ts +11 -1
- package/dist/forms/settingRowContext.js +1 -1
- package/dist/forms/textAlign.d.ts +89 -0
- package/dist/forms/textAlign.js +2 -0
- package/dist/icons/efficient-glyphs.d.ts +61 -0
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.d.ts +22 -0
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient-meanings.d.ts +61 -0
- package/dist/icons/efficient-meanings.js +1 -1
- package/dist/icons/efficient.d.ts +61 -0
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/glyphs/BrandAdyenIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandAdyenIcon.js +1 -0
- package/dist/icons/glyphs/BrandAfterpayIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandAfterpayIcon.js +1 -0
- package/dist/icons/glyphs/BrandAircallIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandAircallIcon.js +1 -0
- package/dist/icons/glyphs/BrandAmericanexpressIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandAmericanexpressIcon.js +1 -0
- package/dist/icons/glyphs/BrandApplepayIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandApplepayIcon.js +1 -0
- package/dist/icons/glyphs/BrandBigcommerceIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandBigcommerceIcon.js +1 -0
- package/dist/icons/glyphs/BrandBrevoIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandBrevoIcon.js +1 -0
- package/dist/icons/glyphs/BrandCalendlyIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandCalendlyIcon.js +1 -0
- package/dist/icons/glyphs/BrandCampaignmonitorIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandCampaignmonitorIcon.js +1 -0
- package/dist/icons/glyphs/BrandDhlIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandDhlIcon.js +1 -0
- package/dist/icons/glyphs/BrandDropboxIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandDropboxIcon.js +1 -0
- package/dist/icons/glyphs/BrandEbayIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandEbayIcon.js +1 -0
- package/dist/icons/glyphs/BrandEtsyIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandEtsyIcon.js +1 -0
- package/dist/icons/glyphs/BrandFacebookIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandFacebookIcon.js +1 -0
- package/dist/icons/glyphs/BrandFedexIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandFedexIcon.js +1 -0
- package/dist/icons/glyphs/BrandGmailIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandGmailIcon.js +1 -0
- package/dist/icons/glyphs/BrandGoogleadsIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandGoogleadsIcon.js +1 -0
- package/dist/icons/glyphs/BrandGoogleanalyticsIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandGoogleanalyticsIcon.js +1 -0
- package/dist/icons/glyphs/BrandGooglecalendarIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandGooglecalendarIcon.js +1 -0
- package/dist/icons/glyphs/BrandGoogledriveIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandGoogledriveIcon.js +1 -0
- package/dist/icons/glyphs/BrandGooglepayIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandGooglepayIcon.js +1 -0
- package/dist/icons/glyphs/BrandGooglesheetsIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandGooglesheetsIcon.js +1 -0
- package/dist/icons/glyphs/BrandHubspotIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandHubspotIcon.js +1 -0
- package/dist/icons/glyphs/BrandInstagramIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandInstagramIcon.js +1 -0
- package/dist/icons/glyphs/BrandIntercomIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandIntercomIcon.js +1 -0
- package/dist/icons/glyphs/BrandKlarnaIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandKlarnaIcon.js +1 -0
- package/dist/icons/glyphs/BrandLineIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandLineIcon.js +1 -0
- package/dist/icons/glyphs/BrandLinkedinIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandLinkedinIcon.js +1 -0
- package/dist/icons/glyphs/BrandMailchimpIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandMailchimpIcon.js +1 -0
- package/dist/icons/glyphs/BrandMailgunIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandMailgunIcon.js +1 -0
- package/dist/icons/glyphs/BrandMakeIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandMakeIcon.js +1 -0
- package/dist/icons/glyphs/BrandMastercardIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandMastercardIcon.js +1 -0
- package/dist/icons/glyphs/BrandMessengerIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandMessengerIcon.js +1 -0
- package/dist/icons/glyphs/BrandMetaIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandMetaIcon.js +1 -0
- package/dist/icons/glyphs/BrandMyobIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandMyobIcon.js +1 -0
- package/dist/icons/glyphs/BrandNotionIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandNotionIcon.js +1 -0
- package/dist/icons/glyphs/BrandPaypalIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandPaypalIcon.js +1 -0
- package/dist/icons/glyphs/BrandPinterestIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandPinterestIcon.js +1 -0
- package/dist/icons/glyphs/BrandQuickbooksIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandQuickbooksIcon.js +1 -0
- package/dist/icons/glyphs/BrandSageIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandSageIcon.js +1 -0
- package/dist/icons/glyphs/BrandShopifyIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandShopifyIcon.js +1 -0
- package/dist/icons/glyphs/BrandSquareIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandSquareIcon.js +1 -0
- package/dist/icons/glyphs/BrandSquarespaceIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandSquarespaceIcon.js +1 -0
- package/dist/icons/glyphs/BrandStripeIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandStripeIcon.js +1 -0
- package/dist/icons/glyphs/BrandTelegramIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandTelegramIcon.js +1 -0
- package/dist/icons/glyphs/BrandTiktokIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandTiktokIcon.js +1 -0
- package/dist/icons/glyphs/BrandTrelloIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandTrelloIcon.js +1 -0
- package/dist/icons/glyphs/BrandUpsIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandUpsIcon.js +1 -0
- package/dist/icons/glyphs/BrandVisaIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandVisaIcon.js +1 -0
- package/dist/icons/glyphs/BrandVonageIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandVonageIcon.js +1 -0
- package/dist/icons/glyphs/BrandWechatIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandWechatIcon.js +1 -0
- package/dist/icons/glyphs/BrandWhatsappIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandWhatsappIcon.js +1 -0
- package/dist/icons/glyphs/BrandWiseIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandWiseIcon.js +1 -0
- package/dist/icons/glyphs/BrandWixIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandWixIcon.js +1 -0
- package/dist/icons/glyphs/BrandWoocommerceIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandWoocommerceIcon.js +1 -0
- package/dist/icons/glyphs/BrandXIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandXIcon.js +1 -0
- package/dist/icons/glyphs/BrandXeroIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandXeroIcon.js +1 -0
- package/dist/icons/glyphs/BrandYoutubeIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandYoutubeIcon.js +1 -0
- package/dist/icons/glyphs/BrandZapierIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandZapierIcon.js +1 -0
- package/dist/icons/glyphs/BrandZendeskIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandZendeskIcon.js +1 -0
- package/dist/icons/glyphs/BrandZoomIcon.d.ts +11 -0
- package/dist/icons/glyphs/BrandZoomIcon.js +1 -0
- package/dist/icons/index.d.ts +6 -4
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/BrandFacebookOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandFacebookOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandFacebookSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandFacebookSolidIcon.js +1 -0
- package/dist/icons/looks/BrandInstagramOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandInstagramOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandInstagramSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandInstagramSolidIcon.js +1 -0
- package/dist/icons/looks/BrandLineOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandLineOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandLineSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandLineSolidIcon.js +1 -0
- package/dist/icons/looks/BrandLinkedinOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandLinkedinOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandLinkedinSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandLinkedinSolidIcon.js +1 -0
- package/dist/icons/looks/BrandPinterestOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandPinterestOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandPinterestSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandPinterestSolidIcon.js +1 -0
- package/dist/icons/looks/BrandTelegramOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandTelegramOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandTelegramSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandTelegramSolidIcon.js +1 -0
- package/dist/icons/looks/BrandTiktokOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandTiktokOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandTiktokSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandTiktokSolidIcon.js +1 -0
- package/dist/icons/looks/BrandWechatOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandWechatOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandWechatSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandWechatSolidIcon.js +1 -0
- package/dist/icons/looks/BrandWhatsappOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandWhatsappOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandWhatsappSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandWhatsappSolidIcon.js +1 -0
- package/dist/icons/looks/BrandXOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandXOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandXSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandXSolidIcon.js +1 -0
- package/dist/icons/looks/BrandYoutubeOutlineIcon.d.ts +11 -0
- package/dist/icons/looks/BrandYoutubeOutlineIcon.js +1 -0
- package/dist/icons/looks/BrandYoutubeSolidIcon.d.ts +11 -0
- package/dist/icons/looks/BrandYoutubeSolidIcon.js +1 -0
- package/dist/icons/looks/map.d.ts +1 -1
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +174 -174
- package/dist/map/index.js +6 -6
- package/dist/markdown/index.js +1 -1
- package/dist/names-mX74Rrmy.d.ts +23 -0
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/Accordion.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.d.ts +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/Result.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.d.ts +9 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/StepChain.js +1 -1
- package/dist/shell/Stepper.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/ui/index.d.ts +3 -2
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-4JDJKSA7.js +0 -29
- package/dist/PdfViewer-67VBUIRD.js +0 -1
- package/dist/Sidebar-YB4OVUG5.js +0 -43
- package/dist/chunk-367OG4UV.js +0 -5
- package/dist/chunk-3JJFBUK6.js +0 -3
- package/dist/chunk-4AXJIJDC.js +0 -14
- package/dist/chunk-AS4CTEZD.js +0 -8
- package/dist/chunk-E4Z5OXBI.js +0 -1
- package/dist/chunk-GSS4E7X3.js +0 -1
- package/dist/chunk-PNGL4ZW2.js +0 -6
- package/dist/chunk-QWPFFWUG.js +0 -29
- package/dist/chunk-R3XAXBYV.js +0 -1
- package/dist/chunk-STA76WXF.js +0 -2
- package/dist/chunk-W7S56JZ7.js +0 -7
- package/dist/chunk-WZNGOA4Z.js +0 -1
- package/dist/chunk-X7XJBK2E.js +0 -14
- package/dist/chunk-ZLXLHKE5.js +0 -19
- package/dist/names-DYWfNBkN.d.ts +0 -21
- /package/dist/{chunk-2HDDCXTW.js → chunk-EHPZIBOL.js} +0 -0
- /package/dist/{chunk-WYHRPXEX.js → chunk-KJRYEKQP.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{CloseGlyph as e}from"./chunk-
|
|
1
|
+
import{CloseGlyph as e}from"./chunk-FMKTVZAO.js";import{humanSize as t,useFileIntake as n,FileIntakeAlert as r}from"./chunk-YDYDR72S.js";import{IconButton_default as a}from"./chunk-4CANQ3B3.js";import{Button_default as s}from"./chunk-4IU5BSVE.js";import{Icon as i}from"./chunk-2SHYR3RA.js";import{useShellStrings as c}from"./chunk-E6UCGCOC.js";import{useRef as o,useEffect as l}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
2
2
|
return d(i,{name:"attach",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function p({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
3
3
|
return d(i,{name:"page",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function h({intake:e,dropLabel:t,className:n="",children:r}){const a=c().files;/* @__PURE__ */
|
|
4
4
|
return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,children:[r,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="8.35.0",a=r;export{a as APP_VERSION,r as VERSION};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as c}from"react/jsx-runtime";function e({size:e,width:i,height:l,style:r,...h}){const a=t(e??i??l??18,1);/* @__PURE__ */
|
|
2
|
+
return c("svg",{width:a.width,height:a.height,viewBox:"-0.2 -0.2 24.4 24.4",fill:"currentColor","aria-hidden":"true",...h,style:{...a.style,...r},children:/* @__PURE__ */c("path",{d:"M12 0C5.373 0 0 5.373 0 12c0 6.628 5.373 12 12 12 6.628 0 12-5.372 12-12 0-6.627-5.372-12-12-12Zm1.236 4.924a2.21 2.21 0 0 1 1.15.299l4.457 2.557c1.495.857 1.495 3.013 0 3.87l-4.457 2.558c-1.488.854-3.342-.22-3.342-1.935v-.34a.441.441 0 0 0-.66-.383L6.287 13.9a.441.441 0 0 0 0 .765l4.096 2.35a.44.44 0 0 0 .661-.382v-.685c0-.333.36-.542.649-.376l1.041.597a.441.441 0 0 1 .222.383v.29c0 1.715-1.854 2.789-3.342 1.935L5.157 16.22c-1.495-.857-1.495-3.013 0-3.87l4.457-2.558c1.488-.854 3.342.22 3.342 1.935v.34c0 .34.366.551.66.383l4.097-2.35a.441.441 0 0 0 0-.765l-4.096-2.351a.441.441 0 0 0-.661.382v.685c0 .333-.36.541-.649.375l-1.041-.597a.442.442 0 0 1-.222-.383v-.29c0-1.285 1.043-2.21 2.192-2.233z"})})}export{e as BrandAfterpayIcon};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import{Tree as e,TreeRow as l,TreeGroup as n}from"./chunk-2U2GJCSP.js";import{MarqueeBox as a}from"./chunk-IC72MGON.js";import{EmptyState as r}from"./chunk-M2KV4WKR.js";import{ImageLightbox as i}from"./chunk-O2YAB6WK.js";import{DescriptionList as t}from"./chunk-SACUSHVN.js";import{Drawer as o}from"./chunk-QPWD5CCS.js";import{Breadcrumbs as d}from"./chunk-EBC4XFL2.js";import{ROOT_KEY as s,mediaLibraryMenu as c}from"./chunk-2F7ZOMKK.js";import{useMediaMoveItems as m}from"./chunk-DFDDRKIJ.js";import{copyToClipboard as u}from"./chunk-5PY4H4ZJ.js";import{DropdownMenu as h}from"./chunk-5FCEBKT2.js";import{MediaUploadGrid as p}from"./chunk-WKRFD4E4.js";import{MediaUsedInList as f}from"./chunk-GK3QH63P.js";import{NativeSelect as g}from"./chunk-2PWZNFFP.js";import{Segmented as v}from"./chunk-N6DTTOB6.js";import{useFileIntake as y,FileIntakeAlert as k}from"./chunk-YDYDR72S.js";import{useGridSelection as b}from"./chunk-VLKDWKVR.js";import{useMarquee as w}from"./chunk-OLFYNMTD.js";import{Checkbox_default as x}from"./chunk-CGZBDI6C.js";import{useContextMenu as C,ContextMenu as N}from"./chunk-JDKRQG7X.js";import{Banner as I}from"./chunk-MY755PTJ.js";import{Input_default as D}from"./chunk-GX2GSDJP.js";import{IconButton_default as S}from"./chunk-4CANQ3B3.js";import{ColoredBadge as j}from"./chunk-4GVH4ZUH.js";import{Button_default as z}from"./chunk-4IU5BSVE.js";import{buttonClasses as F}from"./chunk-K7U4RWXJ.js";import{Icon as T}from"./chunk-2SHYR3RA.js";import{Tooltip as P}from"./chunk-22S6LG6D.js";import{usePlotWidth as O}from"./chunk-MAFUXCPZ.js";import{useShellStrings as E}from"./chunk-E6UCGCOC.js";import{useRef as K,useMemo as L,useCallback as A,useState as M,useEffect as R}from"react";import{jsxs as U,Fragment as B,jsx as G}from"react/jsx-runtime";var W="application/x-efficient-media-files",H="application/x-efficient-media-folder",J={type:"all",use:"any",sort:"newest"},V={lock:/* @__PURE__ */G(T,{name:"lock","aria-hidden":"true",className:"h-4 w-4"}),folder:/* @__PURE__ */G(T,{name:"folder","aria-hidden":"true",className:"h-4 w-4"}),folderOpen:/* @__PURE__ */G(T,{name:"folder-open","aria-hidden":"true",className:"h-4 w-4"}),folderPlus:/* @__PURE__ */G(T,{name:"folder-plus","aria-hidden":"true",className:"h-4 w-4"}),trash:/* @__PURE__ */G(T,{name:"trash","aria-hidden":"true",className:"h-4 w-4"}),upload:/* @__PURE__ */G(T,{name:"upload","aria-hidden":"true",className:"h-4 w-4"}),search:/* @__PURE__ */G(T,{name:"search","aria-hidden":"true",className:"h-4 w-4"}),grid:/* @__PURE__ */G(T,{name:"grid","aria-hidden":"true",className:"h-4 w-4"}),list:/* @__PURE__ */G(T,{name:"list","aria-hidden":"true",className:"h-4 w-4"}),more:/* @__PURE__ */G(T,{name:"more","aria-hidden":"true",className:"h-4 w-4"}),copy:/* @__PURE__ */G(T,{name:"copy","aria-hidden":"true",className:"h-4 w-4"}),edit:/* @__PURE__ */G(T,{name:"edit","aria-hidden":"true",className:"h-4 w-4"}),swap:/* @__PURE__ */G(T,{name:"swap","aria-hidden":"true",className:"h-4 w-4"}),crop:/* @__PURE__ */G(T,{name:"crop","aria-hidden":"true",className:"h-4 w-4"}),external:/* @__PURE__ */G(T,{name:"external","aria-hidden":"true",className:"h-4 w-4"}),undo:/* @__PURE__ */G(T,{name:"undo","aria-hidden":"true",className:"h-4 w-4"})},Y={link:/* @__PURE__ */G(T,{name:"link","aria-hidden":"true",className:"h-3 w-3"}),email:/* @__PURE__ */G(T,{name:"email","aria-hidden":"true",className:"h-3 w-3"}),lock:/* @__PURE__ */G(T,{name:"lock","aria-hidden":"true",className:"h-3 w-3"}),clock:/* @__PURE__ */G(T,{name:"clock","aria-hidden":"true",className:"h-3 w-3"})};function $({value:e,label:l,onDone:n}){const[a,r]=M(e),i=K(!1),t=e=>{i.current||(i.current=!0,n(e))};/* @__PURE__ */
|
|
2
|
+
return G(D,{size:"sm",autoFocus:!0,"aria-label":l,value:a,onChange:e=>r(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:l=>{l.stopPropagation(),"Enter"===l.key?(l.preventDefault(),t(a.trim()||e)):"Escape"===l.key&&(l.preventDefault(),t(null))},onBlur:()=>t(a.trim()||e),onClick:e=>e.stopPropagation()})}function Z(T){const{mode:Z="manage",layout:Q="auto",location:X,onLocationChange:q,folders:_,products:ee,allFilesCount:le,trashCount:ne,files:ae,query:re,onQueryChange:ie,filters:te=J,onFiltersChange:oe,extraFilters:de,view:se="grid",onViewChange:ce,selectedIds:me,onSelectionChange:ue,usedIn:he,denied:pe={},accept:fe="image/*,video/*",maxSizeBytes:ge,busy:ve,progress:ye,onUpload:ke,onNewFolder:be,onRename:we,onMove:xe,onTrash:Ce,onDeleteFolder:Ne,onRestore:Ie,onDeleteForever:De,onEmptyTrash:Se,onReplace:je,onCropEdit:ze,onOpenInDesign:Fe,onChoose:Te,onCancel:Pe,pickNote:Oe,className:Ee=""}=T,Ke=E().mediaLibrary,Le=E().media,Ae="pick"===Z,Me=!Ae,Re=K(null),Ue=O(Re,"phone"===Q?343:1200),Be="phone"===Q||"auto"===Q&&Ue<640,Ge=L(()=>function(e=[]){const l=/* @__PURE__ */new Map,n=(e,a)=>{for(const r of e){const e=[...a,r];l.set(r.id,{node:r,path:e}),r.children&&n(r.children,e)}};return n(e,[]),l}(ee),[ee]),We=L(()=>new Map(_.map(e=>[e.id,e])),[_]),He=L(()=>{const e=/* @__PURE__ */new Map;for(const l of _){const n=l.parentId&&We.has(l.parentId)?l.parentId:null;e.set(n,[...e.get(n)??[],l])}return e},[_,We]),Je=A(e=>{const l=[];for(let n=e?We.get(e):void 0;n&&(l.unshift(n),!(l.length>_.length));n=n.parentId?We.get(n.parentId):void 0);return l},[We,_.length]),Ve=A((e,l)=>Je(e).some(e=>e.id===l),[Je]),[Ye,$e]=M(()=>/* @__PURE__ */new Set(["@files"])),Ze=e=>$e(l=>{const n=new Set(l);return n.has(e)?n.delete(e):n.add(e),n}),Qe=A(e=>{$e(l=>e.every(e=>l.has(e))?l:/* @__PURE__ */new Set([...l,...e]))},[]),Xe="files"===(qe=X).place?`files:${qe.folderId??""}`:"products"===qe.place?`products:${qe.nodeId??""}`:"trash";var qe;R(()=>{if("files"===X.place)Qe(["@files",...Je(X.folderId).slice(0,-1).map(e=>e.id)]);else if("products"===X.place){const e=X.nodeId?Ge.get(X.nodeId)?.path??[]:[];Qe(["@products",...e.slice(0,-1).map(e=>`p:${e.id}`)])}},[Xe]);const _e="products"===X.place,el="trash"===X.place,ll="files"===X.place,nl=ll?X.folderId:null,al=_e&&X.nodeId?Ge.get(X.nodeId)?.path[0]:void 0,rl=e=>e?.sharedFrom?`${Ke.readOnly} ${Ke.editedAtHq(e.sharedFrom)}`:Ke.readOnly,il=L(()=>ae.map(e=>e.id),[ae]),tl=L(()=>new Map(ae.map(e=>[e.id,e])),[ae]),ol=b(il),dl=L(()=>il.filter(e=>ol.selected.has(e)),[il,ol.selected]),sl=1===dl.length?tl.get(dl[0]):void 0,cl=K(!0);R(()=>{cl.current?cl.current=!1:ol.clear()},[Xe]);const ml=me?.join("\0");R(()=>{me&&ol.setSelection(me)},[ml]);const ul=K(ml??""),hl=dl.join("\0");R(()=>{ul.current!==hl&&(ul.current=hl,ue?.(dl))},[hl]);const pl=(e,l={})=>{Ae?ol.select(e):ol.select(e,{ctrl:!(!l.ctrlKey&&!l.metaKey),shift:!!l.shiftKey})},[fl,gl]=M(null),vl=e=>{const l=fl;if(gl(null),!l||null==e)return;e!==("folder"===l.kind?We.get(l.id)?.name:tl.get(l.id)?.name)&&we?.(l,e)},yl=async e=>{if(!be)return;const l=await be(e);Qe(["@files",...e?[e]:[]]),"string"==typeof l&&gl({kind:"folder",id:l})},kl=A(e=>{const l=[],n=l=>{if("files"===e.kind)return l===nl&&ll?Ke.alreadyHere:void 0;const n=We.get(e.id);return l===e.id||l&&Ve(l,e.id)?Ke.notIntoItself:(n?.parentId??null)===l?Ke.folderAlreadyHere:void 0};l.push({key:s,label:Ke.allFiles,disabledReason:n(null)});const a=(e,r)=>{for(const i of He.get(e)??[])l.push({key:i.id,label:i.name,depth:r,disabledReason:n(i.id)}),a(i.id,r+1)};return a(null,1),l},[He,We,ll,Ve,nl,Ke]),bl=A(e=>{const l=new Set(e.map(e=>tl.get(e)?.kind??"image"));return 1===l.size?[...l][0]:"file"},[tl]),[wl,xl]=M(null),Cl={words:Ke,media:Le,denied:pe,moveTargets:kl,kindOf:bl,urlOf:e=>tl.get(e)?.url,newSubfolder:be&&Me?e=>{yl(e)}:void 0,rename:we&&Me?e=>{"file"!==e.kind||ol.isSelected(e.id)||ol.select(e.id),gl(e)}:void 0,move:xe&&Me?xe:void 0,trash:Ce&&Me?Ce:void 0,deleteFolder:Ne&&Me?Ne:void 0,folderNotEmpty:e=>!!We.get(e)?.notEmpty,replace:je&&Me?je:void 0,copyUrl:e=>{const l=tl.get(e)?.url;l&&u(Ke.urlLabel,l)},openInDesign:Fe,restore:Ie,deleteForever:De},Nl=e=>c(e,Cl),Il=C(),Dl=(e,l)=>{Ae||(ol.isSelected(e)||ol.select(e),Il.open(l,(e=>{const l=ol.isSelected(e)?dl:[e];return _e?{kind:"render",id:e}:el?{kind:"trashed",ids:l}:{kind:"files",ids:l}})(e)))},[Sl,jl]=M(null),[zl,Fl]=M(null),[Tl,Pl]=M(null);R(()=>{if(!zl&&!Sl)return;const e=()=>{Fl(null),jl(null)};return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[zl,Sl]);const Ol=(e,l)=>Array.from(e.dataTransfer?.types??[]).includes(l),El=(e,l)=>!(!xe||pe.move||Ae)&&(!!Ol(e,W)||!(!Ol(e,H)||!Tl)&&(l!==Tl&&!(l&&Ve(l,Tl)))),Kl=(e,l)=>({onDragEnter:n=>{El(n,l)&&(n.preventDefault(),jl(e))},onDragOver:n=>{El(n,l)&&(n.preventDefault(),n.dataTransfer.dropEffect="move",Sl!==e&&jl(e))},onDragLeave:l=>{const n=l.relatedTarget;n&&l.currentTarget.contains(n)||jl(l=>l===e?null:l)},onDrop:e=>{if(El(e,l))if(e.preventDefault(),jl(null),Ol(e,W)){let n;try{n=JSON.parse(e.dataTransfer.getData(W))}catch{n=null}Array.isArray(n)&&n.length&&xe({kind:"files",ids:n.map(String)},l)}else Tl&&(xe({kind:"folder",id:Tl},l),Pl(null))}}),Ll=e=>{const l=e=>Ol(e,W)||Ol(e,H)||Ol(e,"Files");return{onDragEnter:n=>{l(n)&&Fl(e)},onDragOver:n=>{l(n)&&zl!==e&&Fl(e)},onDragLeave:l=>{const n=l.relatedTarget;n&&l.currentTarget.contains(n)||Fl(l=>l===e?null:l)}}},Al=(e,l,n)=>/* @__PURE__ */G(P,{side:"right",content:zl===e?Ke.noDropProducts:rl(n),open:zl===e||!zl&&void 0,children:/* @__PURE__ */G("span",{children:l})}),Ml=e=>({onContextMenu:l=>{Il.open(l,e)}}),Rl=(e,a,r)=>e.map(e=>{const i=`p:${e.id}`,t=r??e,o=Ye.has(i),d=e.children?.length?e.children:null;/* @__PURE__ */
|
|
3
|
+
return U("div",{role:"none",className:"contents",children:[
|
|
4
|
+
/* @__PURE__ */G(l,{label:Al(i,e.name,t),level:a,icon:d&&o?V.folderOpen:V.folder,badge:null!=e.count?e.count:void 0,selected:_e&&X.nodeId===e.id,expanded:d?o:void 0,onToggle:d?()=>Ze(i):void 0,onSelect:()=>q({place:"products",nodeId:e.id}),rowProps:{"data-media-row":i,...Ll(i),...Me?Ml({kind:"product-node",id:e.id}):{}}}),d&&o&&/* @__PURE__ */G(n,{children:Rl(d,a+1,t)})]},e.id)}),Ul=(e,a)=>(He.get(e)??[]).map(e=>{const r=He.get(e.id),i=Ye.has(e.id),t="folder"===fl?.kind&&fl.id===e.id,o=Nl({kind:"folder",id:e.id});/* @__PURE__ */
|
|
5
|
+
return U("div",{role:"none",className:"contents",children:[
|
|
6
|
+
/* @__PURE__ */G(l,{label:e.name,level:a,icon:r&&i?V.folderOpen:V.folder,badge:null!=e.count?e.count:void 0,selected:t||ll&&X.folderId===e.id,expanded:r?i:void 0,onToggle:r?()=>Ze(e.id):void 0,onSelect:()=>q({place:"files",folderId:e.id}),drop:Sl===e.id?"into":void 0,dragging:Tl===e.id,draggable:Me&&!!xe&&!pe.move,rename:t?/* @__PURE__ */G($,{value:e.name,label:Ke.folderName,onDone:vl}):void 0,actions:Me&&o.length?/* @__PURE__ */G(h,{align:"end","aria-label":Ke.folderActions,trigger:V.more,items:o}):void 0,rowProps:{"data-media-row":e.id,...Kl(e.id,e.id),...Me?Ml({kind:"folder",id:e.id}):{},...Me&&xe&&!pe.move?{draggable:!0,onDragStart:l=>{l.dataTransfer.effectAllowed="move",l.dataTransfer.setData(H,e.id),Pl(e.id)},onDragEnd:()=>{Pl(null),jl(null)}}:{}}}),r&&i&&/* @__PURE__ */G(n,{children:Ul(e.id,a+1)})]},e.id)}),Bl=Ye.has("@files"),Gl=Ye.has("@products"),Wl=/* @__PURE__ */U(e,{"aria-label":Ke.folders,children:[ee&&/* @__PURE__ */U(B,{children:[
|
|
7
|
+
/* @__PURE__ */G(l,{label:Al("@products",Ke.products),level:1,icon:V.lock,badge:{label:Ke.readOnlyBadge,tone:"neutral"},expanded:ee.length?Gl:void 0,onToggle:()=>Ze("@products"),selected:_e&&null==X.nodeId,onSelect:()=>q({place:"products",nodeId:null}),rowProps:{"data-media-row":"@products",...Ll("@products")}}),Gl&&ee.length>0&&/* @__PURE__ */G(n,{children:Rl(ee,2)})]}),
|
|
8
|
+
/* @__PURE__ */G(l,{label:Ke.allFiles,level:1,icon:Bl?V.folderOpen:V.folder,badge:null!=le?le:void 0,expanded:He.get(null)?.length?Bl:void 0,onToggle:()=>Ze("@files"),selected:ll&&null==X.folderId,onSelect:()=>q({place:"files",folderId:null}),drop:"@files"===Sl?"into":void 0,rowProps:{"data-media-row":"@files",...Kl("@files",null)}}),Bl&&(He.get(null)?.length??0)>0&&/* @__PURE__ */G(n,{children:Ul(null,2)}),Me&&/* @__PURE__ */G(l,{label:Ke.trash,level:1,icon:V.trash,badge:null!=ne?ne:void 0,selected:el,onSelect:()=>q({place:"trash"}),rowProps:{"data-media-row":"@trash"}})]}),Hl=(()=>{if(el)return[{label:Ke.trash}];if(_e){const e=X.nodeId?Ge.get(X.nodeId)?.path??[]:[];return[{label:Ke.products,onClick:e.length?()=>q({place:"products",nodeId:null}):void 0},...e.map((l,n)=>({label:l.name,onClick:n<e.length-1?()=>q({place:"products",nodeId:l.id}):void 0}))]}const e=Je(nl);return[{label:Ke.allFiles,onClick:e.length?()=>q({place:"files",folderId:null}):void 0},...e.map((l,n)=>({label:l.name,onClick:n<e.length-1?()=>q({place:"files",folderId:l.id}):void 0}))]})(),Jl=_e?Ke.readOnly:pe.upload,Vl=!!ke&&!el&&!Jl,Yl=y({accept:fe,maxSizeBytes:ge,multiple:!0,disabled:!Vl,onAccept:e=>ke?.(e,nl)}),$l=_e?Ke.noProductFolder:pe.newFolder,Zl=e=>e?{"aria-disabled":!0,disabledReason:e}:{},Ql=/* @__PURE__ */U("div",{className:"flex flex-wrap items-center gap-2",children:[Me&&be&&!el&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.folderPlus,onClick:()=>{yl(nl)},...Zl($l),children:Ke.newFolder}),ke&&!el&&/* @__PURE__ */G(z,{variant:"primary",size:"sm",leftIcon:V.upload,onClick:()=>Yl.open(),...Zl(Jl),children:Ke.upload}),Me&&el&&Se&&ae.length>0&&/* @__PURE__ */G(z,{variant:"danger",size:"sm",onClick:Se,...Zl(pe.deleteForever),children:Ke.emptyTrash})]}),Xl=(e,l,n,a,r)=>/* @__PURE__ */G("div",{style:{width:Be?void 0:r,flex:Be?"1 1 120px":"0 0 auto",minWidth:0},children:/* @__PURE__ */G(g,{size:"sm","aria-label":e,value:l,onChange:a,options:n})},e),ql=e=>l=>oe?.({...te,[e]:l}),_l=/* @__PURE__ */U("div",{className:"flex flex-wrap items-center gap-2",children:[ie&&/* @__PURE__ */G("div",{style:{flex:"1 1 200px",minWidth:0},children:/* @__PURE__ */G(D,{size:"sm",type:"search",leftIcon:V.search,placeholder:_e?Ke.searchProducts:Ke.search,"aria-label":_e?Ke.searchProducts:Ke.search,value:re??"",onChange:e=>ie(e.target.value)})}),oe&&Xl(Ke.mediaType,te.type,[{value:"all",label:Ke.allTypes},{value:"image",label:Ke.images},{value:"video",label:Ke.videos},{value:"svg",label:"SVG"},{value:"gif",label:"GIF"}],ql("type"),130),oe&&!_e&&!el&&Xl(Ke.use,te.use,[{value:"any",label:Ke.anyUse},{value:"email",label:Ke.emailOnly},{value:"website",label:Ke.websiteOnly},{value:"unused",label:Ke.notUsed}],ql("use"),130),oe&&Me&&Xl(Ke.sort,te.sort,[{value:"newest",label:Ke.newest},{value:"name",label:Ke.byName},{value:"size",label:Ke.bySize}],ql("sort"),110),de?.map(e=>Xl(e.label,e.value,e.options,e.onChange,120)),ce&&/* @__PURE__ */G(v,{size:"sm",label:Ke.view,value:se,onChange:ce,options:[{value:"grid",label:Ke.grid,icon:V.grid},{value:"list",label:Ke.list,icon:V.list}]})]}),en=e=>{const l=[];return null!=e.trashedDaysAgo&&l.push({key:"t",label:Ke.daysAgo(e.trashedDaysAgo),count:e.trashedDaysAgo,icon:Y.clock,tone:"neutral"}),e.usedCount&&l.push({key:"u",label:Ke.used(e.usedCount),count:e.usedCount,icon:Y.link,tone:"active"}),e.email&&l.push({key:"e",label:Ke.email,icon:Y.email,tone:"queued"}),e.private&&l.push({key:"p",label:Ke.private,icon:Y.lock,tone:"neutral"}),l},ln=e=>en(e).map(e=>/* @__PURE__ */G(j,{tone:e.tone,size:"xs",children:e.label},e.key)),nn=Me&&ll&&!!xe&&!pe.move,an=ae.map(e=>({id:e.id,url:e.thumbUrl??e.url,name:e.name,kind:e.kind,caption:e.name,badges:en(e),dragData:nn?JSON.stringify(ol.isSelected(e.id)?dl:[e.id]):void 0})),rn=Be?Math.max(72,Math.floor((Ue-24-16-1)/3)):112,tn=K(null),on=w({containerRef:tn,enabled:Me&&!Be&&ae.length>0,selected:ol.selected,setSelection:e=>ol.setSelection(e),clearSelection:ol.clear}),dn=e=>{if(Ae){const l=tl.get(e);return void(!l||l.private||l.pickDisabledReason||Te?.(l))}const l=il.indexOf(e);l>=0&&xl(l)},sn=ae.length?null:re?/* @__PURE__ */G(r,{variant:"dashed",title:Ke.noMatches}):_e?/* @__PURE__ */G(r,{variant:"dashed",title:Ke.emptyProducts,description:rl(al)}):el?/* @__PURE__ */G(r,{variant:"dashed",title:Ke.trashEmpty}):!Vl||Ae?/* @__PURE__ */G(r,{variant:"dashed",title:Ke.emptyFolder}):null,cn="list"===se&&ae.length>0,mn=sn??(cn?/* @__PURE__ */G("ul",{role:"listbox","aria-multiselectable":Me||void 0,"aria-label":Ke.folders,className:"flex flex-col gap-1",children:ae.map(e=>/* @__PURE__ */U("li",{role:"option","aria-selected":ol.isSelected(e.id),tabIndex:0,"data-grid-item":"","data-grid-id":e.id,onClick:l=>pl(e.id,l),onDoubleClick:()=>dn(e.id),onContextMenu:l=>Dl(e.id,l),onKeyDown:l=>{"Enter"!==l.key&&" "!==l.key||(l.preventDefault(),pl(e.id,l))},className:"flex h-12 cursor-pointer items-center gap-3 rounded-md px-2 text-sm rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(ol.isSelected(e.id)?"bg-blue-50 text-blue-700":"text-gray-700 hover:bg-gray-100"),children:[
|
|
9
|
+
/* @__PURE__ */G("img",{src:e.thumbUrl??e.url,alt:"",className:"h-10 w-10 shrink-0 rounded bg-gray-100 object-contain"}),
|
|
10
|
+
/* @__PURE__ */G("span",{className:"min-w-0 flex-1 truncate",children:e.name}),
|
|
11
|
+
/* @__PURE__ */G("span",{className:"flex shrink-0 items-center gap-1",children:ln(e)}),e.sizeLabel&&/* @__PURE__ */G("span",{className:"w-16 shrink-0 text-right text-xs text-gray-500",children:e.sizeLabel})]},e.id))}):/* @__PURE__ */G(p,{items:an,readOnly:!Vl||Ae,onFiles:Vl&&!Ae?e=>ke(e,nl):void 0,accept:fe,maxSizeBytes:ge,busy:ve,progress:ye,fit:"contain",thumbSize:rn,dragType:nn?W:void 0,selected:ol.selected,onItemClick:pl,onItemDoubleClick:dn,onItemContextMenu:Me?Dl:void 0,menuOnMedia:Me})),un=m({count:dl.length,kind:bl(dl),targets:kl({kind:"files",ids:dl}),onPick:e=>xe?.({kind:"files",ids:dl},e.key===s?null:e.key)}),hn=F({variant:"secondary",size:"sm"}),pn=/* @__PURE__ */G(h,{align:"start",triggerClassName:hn,trigger:/* @__PURE__ */U(B,{children:[V.folder,Ke.moveTo]}),items:un,disabled:!!pe.move}),fn=Me&&dl.length>1&&!_e?/* @__PURE__ */U("div",{"data-media-bulk":"",className:"flex flex-wrap items-center gap-2 rounded-lg border border-gray-200 px-3 py-2",children:[
|
|
12
|
+
/* @__PURE__ */G(x,{checked:dl.length===ae.length,indeterminate:dl.length<ae.length,onChange:e=>e?ol.selectAll():ol.clear(),label:Ke.selected(dl.length)}),/* @__PURE__ */U(B,el?{children:[Ie&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.undo,onClick:()=>Ie(dl),...Zl(pe.restore),children:Ke.restore}),De&&/* @__PURE__ */G(z,{variant:"secondary-danger",size:"sm",onClick:()=>De(dl),...Zl(pe.deleteForever),children:Ke.deleteForever})]}:{children:[xe&&pn,we&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.edit,disabled:!0,children:Ke.rename}),Ce&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.trash,onClick:()=>Ce({kind:"files",ids:dl}),...Zl(pe.trash),children:Ke.moveFilesToTrash(dl.length)})]}),
|
|
13
|
+
/* @__PURE__ */G(z,{variant:"ghost",size:"sm",onClick:ol.clear,children:Ke.clearSelection})]}):null,gn=e=>{const l=[],n=(e,n,a)=>{null!=a&&""!==a&&l.push({key:e,label:n,value:a})},a="file"===fl?.kind&&fl.id===e.id;n("name",Ke.name,a?/* @__PURE__ */G($,{value:e.name,label:Ke.fileName,onDone:vl}):e.name),n("type",Ke.type,e.typeLabel),n("size",Ke.size,e.sizeLabel),n("resolution",Ke.resolution,e.resolution),_e?(n("design",Ke.design,e.design),n("finish",Ke.finish,e.finish),n("angle",Ke.angleLug,e.angleLug),n("owner",Ke.owner,e.owner)):(n("added",Ke.addedBy,e.addedBy),n("folder",Ke.folder,e.folderPath)),n("used",Ke.usedIn,null!=e.usedCount?Ke.places(e.usedCount):void 0);const r=c({kind:"files",ids:[e.id]},Cl).find(e=>"submenu"===e.type);/* @__PURE__ */
|
|
14
|
+
return U("div",{"data-media-details":"",className:"flex flex-col gap-3",children:[
|
|
15
|
+
/* @__PURE__ */G("img",{src:e.url,alt:e.name,className:"aspect-square w-full rounded-lg bg-gray-100 object-contain"}),_e&&/* @__PURE__ */G(I,{tone:"neutral",title:Ke.readOnlyBadge,children:rl(al)}),
|
|
16
|
+
/* @__PURE__ */G(t,{size:"sm",columns:1,items:l}),!el&&/* @__PURE__ */U("div",{className:"flex gap-2",children:[
|
|
17
|
+
/* @__PURE__ */G("div",{style:{flex:"1 1 0",minWidth:0},children:/* @__PURE__ */G(D,{size:"sm",readOnly:!0,value:e.url,"aria-label":Ke.fileUrl,onFocus:e=>e.currentTarget.select()})}),
|
|
18
|
+
/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.copy,onClick:()=>Cl.copyUrl(e.id),children:Ke.copyUrl})]}),ll&&Me&&/* @__PURE__ */U("div",{className:"flex flex-wrap gap-2",children:[je&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.swap,onClick:()=>je(e.id),...Zl(pe.replace),children:Ke.replace}),ze&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.crop,onClick:()=>ze(e.id),children:Ke.cropEdit}),xe&&"submenu"===r?.type&&/* @__PURE__ */G(h,{align:"start",triggerClassName:hn,trigger:/* @__PURE__ */U(B,{children:[V.folder,Ke.moveTo]}),items:r.items,disabled:!!pe.move}),we&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.edit,onClick:()=>gl({kind:"file",id:e.id}),...Zl(pe.rename),children:Ke.rename}),Ce&&/* @__PURE__ */G(S,{"aria-label":Ke.moveToTrash,size:"sm",onClick:()=>Ce({kind:"files",ids:[e.id]}),disabledReason:pe.trash,"aria-disabled":!!pe.trash||void 0,children:V.trash})]}),el&&Me&&/* @__PURE__ */U("div",{className:"flex flex-wrap gap-2",children:[Ie&&/* @__PURE__ */G(z,{variant:"primary",size:"sm",leftIcon:V.undo,onClick:()=>Ie([e.id]),...Zl(pe.restore),children:Ke.restore}),De&&/* @__PURE__ */G(z,{variant:"danger",size:"sm",onClick:()=>De([e.id]),...Zl(pe.deleteForever),children:Ke.deleteForever})]}),_e&&Fe&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:V.external,onClick:()=>Fe({kind:"render",id:e.id}),children:Ke.openInDesign}),he&&/* @__PURE__ */G(f,{items:he})]})},vn=sl?sl.private?Ke.privateNoPick:sl.pickDisabledReason:void 0,yn=Ae?/* @__PURE__ */U("div",{"data-media-picker-footer":"",className:"flex flex-wrap items-center justify-between gap-2 border-t border-gray-200 px-3 py-2",children:[
|
|
19
|
+
/* @__PURE__ */G("span",{className:"min-w-0 truncate text-sm text-gray-500",children:sl?Ke.oneChosen(sl.name):Ke.noneChosen}),
|
|
20
|
+
/* @__PURE__ */U("div",{className:"flex gap-2",children:[Pe&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",onClick:Pe,children:Ke.cancel}),
|
|
21
|
+
/* @__PURE__ */G(z,{variant:"primary",size:"sm",disabled:!sl,...Zl(vn),onClick:()=>{sl&&!vn&&Te?.(sl)},children:Ke.chooseImage})]})]}):null,kn=Me&&!!sl,bn=/* @__PURE__ */U("div",{className:"flex min-w-0 flex-col gap-3",children:[Oe&&/* @__PURE__ */G(I,{tone:"neutral",children:Oe}),
|
|
22
|
+
/* @__PURE__ */U("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[
|
|
23
|
+
/* @__PURE__ */G(d,{items:Hl}),Ql]}),_l,fn,
|
|
24
|
+
/* @__PURE__ */U("div",{ref:tn,className:"relative",onPointerDown:on.onPointerDown,onKeyDown:e=>{Me&&(e.ctrlKey||e.metaKey)&&"a"===e.key.toLowerCase()?(e.preventDefault(),ol.selectAll()):"Escape"===e.key&&ol.size&&ol.clear()},children:[mn,
|
|
25
|
+
/* @__PURE__ */G(a,{rect:on.rect})]}),Vl&&/* @__PURE__ */G("input",{...Yl.inputProps}),
|
|
26
|
+
/* @__PURE__ */G(k,{rejections:Yl.rejections})]});/* @__PURE__ */
|
|
27
|
+
return U("div",{ref:Re,"data-media-library":"","data-layout":Be?"phone":"wide",className:`flex h-full min-h-0 min-w-0 flex-col ${Ee}`.trim(),children:[/* @__PURE__ */U("div",Be?{className:"flex flex-col gap-3 p-3",children:[Wl,bn]}:{className:"flex min-h-0 min-w-0 flex-1",children:[
|
|
28
|
+
/* @__PURE__ */G("div",{className:"shrink-0 overflow-y-auto border-r border-gray-200 p-3",style:{width:280,"--rosh-tree-ground":"var(--surface)"},children:Wl}),
|
|
29
|
+
/* @__PURE__ */G("div",{className:"min-w-0 flex-1 overflow-y-auto p-3",children:bn}),kn&&/* @__PURE__ */G("div",{className:"shrink-0 overflow-y-auto border-l border-gray-200 p-3",style:{width:300},children:gn(sl)})]}),yn,Be&&/* @__PURE__ */G(o,{open:kn,onClose:ol.clear,side:"bottom",title:sl?.name,children:sl&&gn(sl)}),Il.state&&/* @__PURE__ */G(N,{...Il.props,items:Nl(Il.state.data)}),null!=wl&&ae.length>0&&/* @__PURE__ */G(i,{images:ae.map(e=>({url:e.url,caption:e.name})),startIndex:Math.min(wl,ae.length-1),onClose:()=>xl(null)})]})}export{W as MEDIA_FILES_DRAG_TYPE,H as MEDIA_FOLDER_DRAG_TYPE,Z as MediaLibrary};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";function o({size:o=18,...t}){/* @__PURE__ */
|
|
2
|
+
return r("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none","aria-hidden":"true",...t,children:[
|
|
3
|
+
/* @__PURE__ */e("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"}),
|
|
4
|
+
/* @__PURE__ */e("path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"})]})}export{o as BrandLineSolidIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SidebarLayout as e}from"./chunk-
|
|
1
|
+
import{SidebarLayout as e}from"./chunk-PCKYNZ5Y.js";import{Avatar as t}from"./chunk-MMFJBWJC.js";import{Input_default as a}from"./chunk-GX2GSDJP.js";import{Button_default as i}from"./chunk-4IU5BSVE.js";import{useState as s}from"react";import{jsx as l,jsxs as n}from"react/jsx-runtime";var r=[{id:1,name:"Priya Patel",last:"Sounds good — shipping it now",time:"9:41",status:"online"},{id:2,name:"Design team",last:"Marco: updated the tokens",time:"9:12",status:"away"},{id:3,name:"Tom Becker",last:"Thanks!",time:"Yest",status:"offline"},{id:4,name:"Sara Lind",last:"See you Friday 🎉",time:"Yest",status:"busy"}],m=[{mine:!1,text:"Hey! Did the latest build go out?"},{mine:!0,text:"Just merged — deploying now."},{mine:!1,text:"Nice. Any breaking changes for the portal?"},{mine:!0,text:"Nope, fully additive. New components only."},{mine:!1,text:"Sounds good — shipping it now"}];function d(){const[d,o]=s(1),c=r.find(e=>e.id===d)??r[0];/* @__PURE__ */
|
|
2
2
|
return l("div",{className:"h-full",children:/* @__PURE__ */l(e,{side:"left",defaultWidth:260,sidebar:/* @__PURE__ */l("div",{className:"h-full overflow-auto",children:r.map(e=>/* @__PURE__ */n("button",{onClick:()=>o(e.id),className:"flex w-full items-center gap-3 border-b border-gray-100 px-3 py-3 text-left hover:bg-gray-50 "+(e.id===d?"bg-blue-50/50":""),children:[
|
|
3
3
|
/* @__PURE__ */l(t,{name:e.name,status:e.status}),
|
|
4
4
|
/* @__PURE__ */n("div",{className:"min-w-0 flex-1",children:[
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{navIcons as e}from"./chunk-CY5N5OA3.js";import{Icon as t}from"./chunk-
|
|
1
|
+
import{navIcons as e}from"./chunk-CY5N5OA3.js";import{Icon as t}from"./chunk-2SHYR3RA.js";import{isValidElement as r,cloneElement as n}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";var l=["from-blue-500 to-blue-700","from-indigo-500 to-purple-600","from-purple-500 to-pink-600","from-pink-500 to-rose-600","from-red-500 to-rose-600","from-orange-500 to-red-600","from-amber-500 to-orange-600","from-yellow-500 to-amber-500","from-lime-500 to-green-600","from-green-500 to-emerald-600","from-emerald-500 to-teal-600","from-teal-500 to-cyan-600","from-cyan-500 to-sky-600","from-sky-500 to-blue-600","from-violet-500 to-fuchsia-600"];function a(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r);return l[Math.abs(t)%l.length]}var d={order:"text-blue-600",purchase_order:"text-purple-600",invoice:"text-green-600",client:"text-indigo-600",manufacturer:"text-orange-600",shipment:"text-teal-600",part_number:"text-gray-600",project:"text-pink-600",mould:"text-red-600",design:"text-cyan-600",brand:"text-amber-600",price_sheet:"text-emerald-600",folder:"text-yellow-600",page:"text-blue-500"},s={order:"SO",purchase_order:"PO",invoice:"INV",client:"CLI",manufacturer:"MFR",shipment:"DN",part_number:"PN",project:"PRJ",mould:"MLD",design:"DSN",brand:"BRD",price_sheet:"PS",vendor_invoice:"VI",vendor_payment:"VP",warranty_claim:"WC",qc_report:"QC",vendor_shipment:"GRN",bank_account:"BA",wheel_finish:"WF",weight_log:"WL",production_progress:"PP",vendor_price_sheet:"VPS",proposal:"PR",folder:"FLD"},c={pdf:"PDF",dxf:"DXF","3d":"STP",image:"IMG",csv:"CSV"},f={pdf:"text-red-600",dxf:"text-blue-600","3d":"text-purple-600",image:"text-emerald-600",csv:"text-green-600"};function p({className:e}){/* @__PURE__ */
|
|
2
2
|
return o(t,{name:"folder",look:"solid",className:e})}function u(t,r){return r&&e[r]||(t?e[t]:void 0)}var m=/* @__PURE__ */o("svg",{className:"h-7 w-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */o("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6z"})});function h({entityType:e,isSelected:t,entityId:l,label:h,fileKind:w}){const g="preview-file"===e&&w,y=g?f[w]:null,x=g?c[w]:null;if("folder"===e)/* @__PURE__ */
|
|
3
3
|
return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o(p,{className:"h-12 w-12 text-amber-500 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]"})});if("page"===e){const e=u(l,h),i=a(l||h||"page");/* @__PURE__ */
|
|
4
4
|
return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o("span",{className:`h-11 w-11 rounded-xl bg-gradient-to-br ${i} flex items-center justify-center text-white border border-white/30 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]`,children:e&&r(e)?n(e,{className:"h-7 w-7 text-white"}):m})})}/* @__PURE__ */
|
|
@@ -10,4 +10,4 @@ return i("div",{className:"w-12 h-12 relative flex items-center justify-center "
|
|
|
10
10
|
/* @__PURE__ */o("span",{className:`absolute inset-0 flex items-center justify-center text-3xs font-bold pt-2 ${y??d[e]??"text-gray-600"}`,children:x??s[e]??e.slice(0,3).toUpperCase()})]})}function w({item:e}){if("folder"===e.entityType)/* @__PURE__ */
|
|
11
11
|
return o(p,{className:"h-4 w-4 shrink-0 text-amber-500"});if("page"===e.entityType){const t=u(e.entityId,e.label);/* @__PURE__ */
|
|
12
12
|
return o("span",{className:`h-4 w-4 rounded bg-gradient-to-br ${a(e.entityId||e.label||"page")} flex items-center justify-center text-white shrink-0`,children:t&&r(t)?n(t,{className:"h-3 w-3 text-white"}):/* @__PURE__ */o("span",{className:"h-1.5 w-1.5 rounded-[2px] border border-white/80"})})}const i=("preview-file"===e.entityType&&e.fileKind?f[e.fileKind]:d[e.entityType])??"text-gray-400";/* @__PURE__ */
|
|
13
|
-
return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function g(e){return"preview-file"===e.entityType&&e.fileKind?c[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":s[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var y=null,x=/* @__PURE__ */new Set;function b(e){y=e,x.forEach(e=>e())}function v(e){return x.add(e),()=>{x.delete(e)}}function _(){return y}var k="__REACT_OS_SHELL_FILES_VIEW__",N="react-os-shell:files-show-trash",C="react-os-shell:files-open-desktop-folder";function j(){"undefined"!=typeof window&&(window[k]="trash",window.dispatchEvent(new CustomEvent(N)))}function I(e){"undefined"!=typeof window&&(window[k]={view:"desktop-folder",folderId:e},window.dispatchEvent(new CustomEvent(C,{detail:{folderId:e}})))}function
|
|
13
|
+
return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function g(e){return"preview-file"===e.entityType&&e.fileKind?c[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":s[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var y=null,x=/* @__PURE__ */new Set;function b(e){y=e,x.forEach(e=>e())}function v(e){return x.add(e),()=>{x.delete(e)}}function _(){return y}var k="__REACT_OS_SHELL_FILES_VIEW__",N="react-os-shell:files-show-trash",C="react-os-shell:files-open-desktop-folder";function j(){"undefined"!=typeof window&&(window[k]="trash",window.dispatchEvent(new CustomEvent(N)))}function I(e){"undefined"!=typeof window&&(window[k]={view:"desktop-folder",folderId:e},window.dispatchEvent(new CustomEvent(C,{detail:{folderId:e}})))}function S(){if("undefined"==typeof window)return null;const e=window[k];return"trash"===e?"trash":e&&"object"==typeof e&&"desktop-folder"===e.view&&"string"==typeof e.folderId?e:null}function T(){const e=S();return"undefined"!=typeof window&&(window[k]=null),e}export{w as DesktopItemMiniIcon,C as FILES_OPEN_DESKTOP_FOLDER_EVENT,N as FILES_SHOW_TRASH_EVENT,h as FileIconTile,p as FolderGlyph,T as consumeFilesViewRequest,g as desktopItemTypeLabel,_ as getDesktopFoldersSnapshot,S as peekFilesViewRequest,b as publishDesktopFolders,I as requestFilesDesktopFolderView,j as requestFilesTrashView,v as subscribeDesktopFolders};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{SearchableSelect as e}from"./chunk-5N5DBTTF.js";import{labelClasses as a}from"./chunk-EQKUFYX6.js";import{Select_default as l}from"./chunk-2PWZNFFP.js";import{isSafeLinkHref as t}from"./chunk-PJPK2ADX.js";import{Input_default as r}from"./chunk-GX2GSDJP.js";import{INPUT_SIZES as n}from"./chunk-PF3ANJFI.js";import{Button_default as i}from"./chunk-4IU5BSVE.js";import{Icon as o}from"./chunk-2SHYR3RA.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as u}from"./chunk-E6UCGCOC.js";import{useId as d,useRef as c,useState as p,useEffect as m}from"react";import{jsx as f,jsxs as v,Fragment as g}from"react/jsx-runtime";function h(e){return"select"===e.type?e.options:"groups"===e.type?e.groups.flatMap(e=>e.options):[]}var b="address",x={kindOf:()=>b,targetOf:e=>e,readFilter:()=>null,withFilter:e=>e},y=e=>t(e.trim());function k(t){const{value:n,kinds:o,rules:k=x,filtersFor:w,label:N,readOnly:C,placeholder:F,className:j=""}=t,O=void 0!==t.onApply,P=u().link,$=k.isSafe??y,E=d(),z=c(null),A=c(null),[D,U]=p({url:n}),S=O?D.url:n,[T,R]=p(!1),[W,G]=p(null),[J,K]=p(null),X=c(()=>{});X.current=O?t.onCancel:()=>{},m(()=>{if(O)return s(e=>{const a=z.current;return!!("Escape"===e.key&&a&&e.target instanceof Node&&a.contains(e.target))&&(X.current(),!0)},()=>z.current)},[O]),m(()=>{if(!O)return;const e=A.current;e?(e.focus(),e.select()):z.current?.querySelector("button, input")?.focus()},[]);const B=o??[{value:b,label:P.address,target:{type:"text"}}],H=W&&W.against===S?W.kind:k.kindOf(S),I=B.filter(e=>!e.hideWhenEmpty||h(e.target).length>0||e.value===H),L=I.find(e=>"text"===e.target.type),M=I.find(e=>e.value===H)??L??I[0];if(!M)return null;const Q="text"!==M.target.type,V=Q?k.targetOf(S):S,Y=h(M.target),q=Y.find(e=>e.value===V),Z=e=>({value:e,label:P.unavailable(e)}),_="select"===M.target.type&&V&&w?w(V):null,ee=_?k.readFilter(S):null,ae=ee?_?.find(e=>e.param===ee.param):void 0,le=J&&J.against===S?J.text:S,te=!Q&&""!==le.trim()&&!$(le),re=te&&(!O||T),ne=(e,a)=>{O?U({url:e,name:a}):void 0===a?t.onChange(e):t.onChange(e,a)},ie=(e,a)=>{G(a=>a?{...a,against:e}:a),ne(e,a)},oe=e=>{if(!e)return ie("");const a=Y.find(a=>a.value===e);ie(e,a?.label)},se=Q?S:le.trim(),ue=()=>{if(!O||!se)return;if(!Q&&te)return void R(!0);const e=Q&&D.url===se?D.name:void 0,a=t.onApply;void 0===e?a(se):a(se,e)},de=(e,a)=>a&&!e.some(e=>e.value===a)?[Z(a),...e]:[...e],ce=(a,t,r,n,i)=>{const o=[];for(const e of r){const a=o[o.length-1],l={value:e.value,label:e.label};e.group?a&&"options"in a&&a.label===e.group?a.options.push(l):o.push({label:e.group,options:[l]}):o.push(l)}if(i){const l=r.some(e=>""===e.value);/* @__PURE__ */
|
|
2
|
+
return f(e,{"aria-label":a,value:t,options:o,disabled:C,clearable:l,placeholder:r.find(e=>""===e.value)?.label,onChange:n})}/* @__PURE__ */
|
|
3
|
+
return f(l,{size:"sm","aria-label":a,value:t,options:o,readOnly:C,onChange:n})};let pe;if("text"===M.target.type)pe=/* @__PURE__ */f(r,{ref:A,id:`${E}-address`,size:"sm",type:"text",invalid:re,"aria-label":P.address,"aria-describedby":re?`${E}-why`:void 0,placeholder:F??P.addressPlaceholder,spellCheck:!1,autoComplete:"off",value:le,readOnly:C,onChange:e=>(e=>{R(!1);const a=e.trim();a?$(e)?(K({text:e,against:a}),ie(a)):K({text:e,against:S}):(K({text:e,against:""}),ie(""))})(e.target.value)});else{const e="groups"===M.target.type?M.target.groups.flatMap(e=>e.options.map(a=>({value:a.value,label:a.label,group:e.label}))):M.target.options.map(e=>({value:e.value,label:e.label})),a=[{value:"",label:M.target.placeholder},...de(e,V)];pe=ce(M.label,V,a,oe,e.length>10)}const me=/* @__PURE__ */v(g,{children:[o&&ce(P.linkType,M.value,I.map(e=>({value:e.value,label:e.label})),e=>{K(null),R(!1);const a=I.find(a=>a.value===e);if(!a||"text"===a.target.type)return void G({kind:e,against:S});const l=h(a.target)[0];G({kind:e,against:l?l.value:""}),l?ne(l.value,l.label):ne("")},!1),pe,_&&ce(P.filter,ee?.param??"",[{value:"",label:P.noFilter},...ee&&!ae?[Z(ee.param)]:[],..._.map(e=>({value:e.param,label:e.label}))],e=>{if(!e)return ie(V,q?.label);const a=_?.find(a=>a.param===e),l=a?.values[0];l&&ie(k.withFilter(V,{param:e,value:l.value}),l.label)},!1),_&&ee&&ce(P.value,ee.value,de((ae?.values??[]).map(e=>({value:e.value,label:e.label})),ee.value),e=>{if(!ee)return;const a=ae?.values.find(a=>a.value===e);ie(k.withFilter(V,{param:ee.param,value:e}),a?.label)},(ae?.values.length??0)>10),re&&/* @__PURE__ */f("p",{id:`${E}-why`,role:"alert",className:"text-2xs leading-4 text-red-600",children:P.unsafe}),M.hint&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-gray-400",children:M.hint}),_&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-gray-400",children:P.filterHint})]});if(!O)/* @__PURE__ */
|
|
4
|
+
return f("div",{ref:z,className:`flex min-w-0 flex-auto flex-col gap-2 ${j}`.trim(),role:N?"group":void 0,"aria-label":N,children:me});const fe=t.onRemove;/* @__PURE__ */
|
|
5
|
+
return v("div",{ref:z,role:"dialog","aria-label":N??P.title,className:`flex min-w-0 flex-col gap-2 rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${j}`.trim(),onKeyDown:e=>{"Enter"!==e.key||e.defaultPrevented||e.target instanceof Element&&e.target.closest("button")||(e.preventDefault(),ue())},children:[Q?/* @__PURE__ */f("span",{className:a({inline:!0}),children:P.title}):/* @__PURE__ */f("label",{htmlFor:`${E}-address`,className:a({inline:!0}),children:P.title}),me,
|
|
6
|
+
/* @__PURE__ */v("div",{className:"flex items-center justify-between gap-2",children:[fe?/* @__PURE__ */f(i,{variant:"ghost-danger",size:"sm","data-window-action":"remove",onClick:fe,children:P.remove}):null,
|
|
7
|
+
/* @__PURE__ */v("span",{className:"ml-auto flex gap-1",children:[
|
|
8
|
+
/* @__PURE__ */f(i,{variant:"secondary",size:"sm","data-window-action":"cancel",onClick:()=>X.current(),children:P.cancel}),
|
|
9
|
+
/* @__PURE__ */f(i,{variant:"primary",size:"sm","data-window-action":"apply",onClick:ue,disabled:C||""===se,children:P.apply})]})]})]})}function w({label:e,text:a,onTextChange:l,link:t,onLinkChange:i,kinds:s,rules:m,filtersFor:g,textPlaceholder:h,readOnly:b,className:x=""}){const y=u().link,[w,N]=p(!1),C=c(null),F=d(),j=()=>{N(!1),C.current?.focus()};/* @__PURE__ */
|
|
10
|
+
return v("div",{className:`flex min-w-0 flex-auto flex-col ${x}`.trim(),children:[
|
|
11
|
+
/* @__PURE__ */f(r,{size:"sm",type:"text",className:"rounded-b-none","aria-label":y.text(e),placeholder:h,value:a,readOnly:b,onChange:e=>l(e.target.value)}),
|
|
12
|
+
/* @__PURE__ */v("button",{ref:C,type:"button","aria-label":y.linkOf(e,t),"aria-expanded":w,"aria-controls":w?F:void 0,disabled:b,onClick:()=>N(e=>!e),className:`flex w-full min-w-0 items-center gap-2 rounded-b-(--radius-control) border border-t-0 border-gray-300 bg-gray-50 ${n.sm} text-left hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60`,children:[
|
|
13
|
+
/* @__PURE__ */f(o,{name:"link",strokeWidth:1.5,className:"h-4 w-4 shrink-0 "+(t?"text-blue-600":"text-gray-400")}),
|
|
14
|
+
/* @__PURE__ */f("span",{className:"min-w-0 truncate "+(t?"text-blue-600":"text-gray-400"),children:t||y.addLink})]}),w&&/* @__PURE__ */f("div",{id:F,className:"mt-2",children:/* @__PURE__ */f(k,{value:t,label:y.linkOf(e,t),kinds:s,rules:m,filtersFor:g,onApply:(e,a)=>{void 0===a?i(e):i(e,a),j()},onRemove:t?()=>{i(""),j()}:void 0,onCancel:j})})]})}export{k as LinkPicker,w as TextLinkField};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function h({size:h,width:i,height:r,style:o,...l}){const n=t(h??i??r??18,1.196);/* @__PURE__ */
|
|
2
|
+
return e("svg",{width:n.width,height:n.height,viewBox:"-0.2 1.8 24.4 20.4",fill:"currentColor","aria-hidden":"true",...l,style:{...n.style,...o},children:/* @__PURE__ */e("path",{d:"M4.592 2v20H0V2h4.592zm11.46 0c0 4.194-1.583 8.105-4.415 11.068l-.278.283L17.702 22h-5.668l-6.893-9.4 1.779-1.332c2.858-2.14 4.535-5.378 4.637-8.924L11.562 2h4.49zM21.5 17a2.5 2.5 0 110 5 2.5 2.5 0 010-5z"})})}export{h as BrandKlarnaIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Icon as e}from"./chunk-
|
|
1
|
+
import{Icon as e}from"./chunk-2SHYR3RA.js";import{useShellStrings as i}from"./chunk-E6UCGCOC.js";import{Fragment as t}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var s=/* @__PURE__ */n(e,{name:"chevron-right",look:"mini",className:"h-3.5 w-3.5 shrink-0 text-gray-300","aria-hidden":!0}),r="inline-flex min-w-0 items-center gap-1 truncate rounded px-1 -mx-1 text-gray-500 transition-colors hover:text-gray-900 hover:underline rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]";function l({items:e,separator:l,maxItems:c=0,className:m}){const o=i().breadcrumbs;if(0===e.length)return null;const h=l??s,d=[],u=e.length-1;if(c>0&&e.length>c&&c>=2){const i=Math.max(1,c-1);d.push({kind:"item",item:e[0],isLast:!1}),d.push({kind:"ellipsis"});for(let t=e.length-i;t<=u;t++)d.push({kind:"item",item:e[t],isLast:t===u})}else e.forEach((e,i)=>d.push({kind:"item",item:e,isLast:i===u}));/* @__PURE__ */
|
|
2
2
|
return n("nav",{"aria-label":o.label,className:`min-w-0 ${m??""}`,children:/* @__PURE__ */n("ol",{className:"flex items-center gap-2 text-sm",children:d.map((e,i)=>/* @__PURE__ */a(t,{children:[i>0&&/* @__PURE__ */n("li",{"aria-hidden":!0,className:"flex items-center",children:h}),
|
|
3
3
|
/* @__PURE__ */n("li",{className:"flex min-w-0 items-center",children:"ellipsis"===e.kind?/* @__PURE__ */n("span",{className:"px-0.5 text-gray-400 select-none","aria-label":o.hidden,children:"…"}):e.isLast||!e.item.href&&!e.item.onClick?/* @__PURE__ */a("span",{"aria-current":e.isLast?"page":void 0,className:"inline-flex min-w-0 items-center gap-1 truncate "+(e.isLast?"font-medium text-gray-900":"text-gray-500"),children:[e.item.icon,
|
|
4
4
|
/* @__PURE__ */n("span",{className:"truncate",children:e.item.label})]}):e.item.href?/* @__PURE__ */a("a",{href:e.item.href,onClick:e.item.onClick,className:r,children:[e.item.icon,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{isSafeLinkHref as e}from"./chunk-PJPK2ADX.js";import{Button_default as t}from"./chunk-4IU5BSVE.js";import{Icon as r}from"./chunk-
|
|
1
|
+
import{isSafeLinkHref as e}from"./chunk-PJPK2ADX.js";import{Button_default as t}from"./chunk-4IU5BSVE.js";import{Icon as r}from"./chunk-2SHYR3RA.js";import{useShellStrings as n}from"./chunk-E6UCGCOC.js";import{createContext as l,useContext as s}from"react";import{jsx as a,jsxs as c}from"react/jsx-runtime";var o=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,i=l(void 0);function d({href:t,children:r}){const n=s(i),l=(t=>e(t.trim()))(t)?t:void 0;/* @__PURE__ */
|
|
2
2
|
return a("a",{href:l,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",onClick:l&&n?e=>{(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))(e)&&n(l)&&e.preventDefault()}:void 0,children:r})}function m(e){const t=[];let r,n=0,l=0;const s=new RegExp(o.source,"g");for(;null!==(r=s.exec(e));)r.index>n&&t.push(e.slice(n,r.index)),void 0!==r[1]?t.push(
|
|
3
3
|
/* @__PURE__ */c("span",{className:"text-gray-400",children:["[",r[1],"]"]},l++)):void 0!==r[3]?t.push(
|
|
4
4
|
/* @__PURE__ */a(d,{href:r[4],children:r[3]},l++)):void 0!==r[5]?t.push(
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function h({size:h,width:i,height:r,style:c,...o}){const n=t(h??i??r??18,1.004);/* @__PURE__ */
|
|
2
|
+
return e("svg",{width:n.width,height:n.height,viewBox:"-0.2 -0.156 24.4 24.312",fill:"currentColor","aria-hidden":"true",...o,style:{...n.style,...c},children:/* @__PURE__ */e("path",{d:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"})})}export{h as BrandFacebookIcon};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import{Card as e}from"./chunk-VU6VPKM3.js";import{Radio_default as a}from"./chunk-NI5FXWK5.js";import{Select_default as l}from"./chunk-
|
|
1
|
+
import{Card as e}from"./chunk-VU6VPKM3.js";import{Radio_default as a}from"./chunk-NI5FXWK5.js";import{Select_default as l}from"./chunk-2PWZNFFP.js";import{FormField as r}from"./chunk-MVQBVPWP.js";import{Checkbox_default as n}from"./chunk-CGZBDI6C.js";import{Textarea_default as i}from"./chunk-7PCI6AUU.js";import{Input_default as c}from"./chunk-GX2GSDJP.js";import{Button_default as o}from"./chunk-4IU5BSVE.js";import{useState as t}from"react";import{jsx as m,jsxs as d}from"react/jsx-runtime";function s(){const[s,h]=t("pro"),[u,p]=t(!0),[f,g]=t("us");/* @__PURE__ */
|
|
2
2
|
return m("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */d("form",{className:"mx-auto max-w-2xl space-y-5",onSubmit:e=>e.preventDefault(),children:[
|
|
3
3
|
/* @__PURE__ */d("div",{children:[
|
|
4
4
|
/* @__PURE__ */m("h1",{className:"text-xl font-semibold text-gray-900",children:"Account settings"}),
|
|
5
5
|
/* @__PURE__ */m("p",{className:"text-sm text-gray-500",children:"Update your profile and preferences."})]}),
|
|
6
6
|
/* @__PURE__ */m(e,{header:"Profile",children:/* @__PURE__ */d("div",{className:"space-y-4",children:[
|
|
7
7
|
/* @__PURE__ */d("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[
|
|
8
|
-
/* @__PURE__ */m(
|
|
9
|
-
/* @__PURE__ */m(
|
|
10
|
-
/* @__PURE__ */m(
|
|
11
|
-
/* @__PURE__ */m(
|
|
8
|
+
/* @__PURE__ */m(r,{label:"First name",htmlFor:"fn",required:!0,children:/* @__PURE__ */m(c,{id:"fn",defaultValue:"Alice"})}),
|
|
9
|
+
/* @__PURE__ */m(r,{label:"Last name",htmlFor:"ln",required:!0,children:/* @__PURE__ */m(c,{id:"ln",defaultValue:"Nguyen"})})]}),
|
|
10
|
+
/* @__PURE__ */m(r,{label:"Email",htmlFor:"email",hint:"We'll never share your email.",children:/* @__PURE__ */m(c,{id:"email",type:"email",defaultValue:"alice@acme.co"})}),
|
|
11
|
+
/* @__PURE__ */m(r,{label:"Bio",htmlFor:"bio",hint:"Brief description for your profile.",children:/* @__PURE__ */m(i,{id:"bio",autoGrow:!0,defaultValue:"Product designer at Acme."})})]})}),
|
|
12
12
|
/* @__PURE__ */m(e,{header:"Preferences",children:/* @__PURE__ */d("div",{className:"space-y-4",children:[
|
|
13
13
|
/* @__PURE__ */d("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[
|
|
14
|
-
/* @__PURE__ */m(
|
|
15
|
-
/* @__PURE__ */m(
|
|
14
|
+
/* @__PURE__ */m(r,{label:"Country",htmlFor:"country",children:/* @__PURE__ */m(l,{value:f,onChange:g,options:[{value:"us",label:"United States"},{value:"de",label:"Germany"},{value:"jp",label:"Japan"}]})}),
|
|
15
|
+
/* @__PURE__ */m(r,{label:"Plan",children:/* @__PURE__ */d("div",{className:"space-y-2 pt-1",children:[
|
|
16
16
|
/* @__PURE__ */m(a,{name:"plan",checked:"free"===s,onChange:()=>h("free"),label:"Free"}),
|
|
17
17
|
/* @__PURE__ */m(a,{name:"plan",checked:"pro"===s,onChange:()=>h("pro"),label:"Pro"}),
|
|
18
18
|
/* @__PURE__ */m(a,{name:"plan",checked:"team"===s,onChange:()=>h("team"),label:"Team"})]})})]}),
|
|
19
|
-
/* @__PURE__ */m(
|
|
19
|
+
/* @__PURE__ */m(n,{checked:u,onChange:p,label:"Email me product updates",description:"Occasional news — no more than once a month."})]})}),
|
|
20
20
|
/* @__PURE__ */d("div",{className:"flex items-center justify-end gap-2",children:[
|
|
21
21
|
/* @__PURE__ */m(o,{variant:"secondary",children:"Cancel"}),
|
|
22
22
|
/* @__PURE__ */m(o,{type:"submit",children:"Save changes"})]})]})})}export{s as FormLayoutPage};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";function e({size:e=18,...t}){/* @__PURE__ */
|
|
2
|
+
return r("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t,children:/* @__PURE__ */r("path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01"})})}export{e as BrandLineOutlineIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{useShellLanguage as e}from"./chunk-QQCHLRKG.js";import{RadioGroup as a}from"./chunk-TZSPJIP4.js";import{Select_default as n}from"./chunk-
|
|
1
|
+
import{useShellLanguage as e}from"./chunk-QQCHLRKG.js";import{RadioGroup as a}from"./chunk-TZSPJIP4.js";import{Select_default as n}from"./chunk-2PWZNFFP.js";import{Icon as t}from"./chunk-2SHYR3RA.js";import{useShellStrings as l}from"./chunk-E6UCGCOC.js";import{jsxs as s,jsx as i}from"react/jsx-runtime";function r(e){const a=Math.max(0,...e.map(e=>[...e].reduce((e,a)=>e+((a.codePointAt(0)??0)>=11904?1:.62),0)));return Math.round(10*(a+3.5))/10}function m({size:a="sm",className:m=""}){const{language:o,languages:c,setLanguage:g}=e(),u=l().language;return c.length<2?null:/* @__PURE__ */s("span",{className:`inline-flex items-center gap-2 text-gray-500 ${m}`.trim(),children:[
|
|
2
2
|
/* @__PURE__ */i(t,{name:"globe","aria-hidden":!0,className:"h-4 w-4 shrink-0"}),
|
|
3
3
|
/* @__PURE__ */i("span",{className:"block",style:{width:`${r(c.map(e=>e.name))}em`},children:/* @__PURE__ */i(n,{size:a,touchSize:a,"aria-label":u.title,value:o,onChange:e=>{g(e)},options:c.map(({tag:e,name:a})=>({value:e,label:a,lang:e}))})})]})}function o({description:n,className:t=""}){const{language:r,languages:m,setLanguage:o}=e(),c=l().language;return m.length<2?null:/* @__PURE__ */s("div",{className:`space-y-4 ${t}`.trim(),children:[
|
|
4
4
|
/* @__PURE__ */s("div",{children:[
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Icon as e}from"./chunk-
|
|
1
|
+
import{Icon as e}from"./chunk-2SHYR3RA.js";import{useShellStrings as t}from"./chunk-E6UCGCOC.js";import{useState as r,useRef as o,useEffect as c,useCallback as i}from"react";import{jsx as n}from"react/jsx-runtime";function a(e){const[t,n]=r(!1),a=o(void 0);c(()=>()=>clearTimeout(a.current),[]);return{copied:t,copy:i(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),clearTimeout(a.current),a.current=setTimeout(()=>n(!1),1500)},()=>{})},[e])}}function u({copied:t,className:r="w-4 h-4"}){/* @__PURE__ */
|
|
2
2
|
return n(e,t?{name:"check",className:`${r} text-green-600`,"aria-hidden":"true"}:{name:"copy",className:r,"aria-hidden":"true"})}function m({text:e}){const{copied:r,copy:o}=a(e),c=t().copy;/* @__PURE__ */
|
|
3
3
|
return n("button",{onClick:o,title:r?c.copiedValue:c.copyValue(e),className:"shrink-0 text-gray-400 hover:text-gray-600 transition-colors",children:/* @__PURE__ */n(u,{copied:r})})}export{m as CopyButton,u as CopyGlyph,a as useCopyText};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ImageFocusPoint as e}from"./chunk-GATKJSGL.js";import{FormField as a}from"./chunk-MVQBVPWP.js";import{Segmented as i}from"./chunk-N6DTTOB6.js";import{isVideoUrl as t,mediaPromptLine as r,mediaFileName as o,FilenameBadge as n,BusyOverlay as l,UploadGlyph as s,dropzoneClass as c,zoneFocusClass as d}from"./chunk-FMKTVZAO.js";import{TransferProgress as u}from"./chunk-S7VSXUKS.js";import{useFileIntake as m,FileIntakeAlert as h}from"./chunk-YDYDR72S.js";import{Icon as p}from"./chunk-2SHYR3RA.js";import{useShellStrings as b}from"./chunk-E6UCGCOC.js";import{useState as g,useRef as v,useEffect as f,useId as y}from"react";import{jsxs as k,jsx as j,Fragment as x}from"react/jsx-runtime";var N=["flex h-8 items-center justify-center rounded-(--radius-control) text-(--status-on-solid)","not-disabled:hover:bg-white/10 disabled:cursor-not-allowed disabled:opacity-60","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]"].join(" ");function w({value:w,onChange:L,onPick:R,onFile:C,label:U,hint:F,error:O,required:S,className:P,accept:$="image/*",maxSizeBytes:z,fit:V="cover",height:A=112,placeholder:B,cta:H,acceptHint:K,showFilename:T=!0,allowReplace:q=!0,allowRemove:D=!0,replaceLabel:G,removeLabel:Y,busy:I=!1,busyLabel:M,choosingLabel:W,pickFailedLabel:_,progress:E,disabled:J=!1,kind:Q,onKindChange:X,focus:Z,onFocusChange:ee,focusLabel:ae}){const ie=b().media,te=H??ie.cta,re=Q??(/video/.test($)&&!/image/.test($)?"video":"image"),oe="string"==typeof Y&&Y?Y:ie.remove,[ne,le]=g(!1),[se,ce]=g(!1),de=v(!0);f(()=>()=>{de.current=!1},[]);const ue=I||ne,me=ne&&!I?W??ie.choosing:M??ie.uploading,he=O??(se?_??ie.pickFailed:void 0),pe=e=>{if(!R)return;ce(!1);const a=R(e);a&&"function"==typeof a.then&&(le(!0),a.then(e=>{de.current&&(le(!1),"string"==typeof e&&e&&L(e))},()=>{de.current&&(le(!1),ce(!0))}))},be=y(),ge=v(null),[ve,fe]=g(null);f(()=>()=>{ge.current&&URL.revokeObjectURL(ge.current)},[]);const ye=J||ue,ke=!!w&&(t(w,$)||w===ve),je=B??r($,ie),xe=G??(ke||"video"===re?ie.changeVideo:ie.changeImage),Ne=e=>{R?pe(e):C?C(e):(e=>{ge.current&&URL.revokeObjectURL(ge.current);const a=URL.createObjectURL(e);ge.current=a,fe(e.type.startsWith("video/")?a:null),L(a)})(e)},we=m({accept:$,maxSizeBytes:z,acceptHint:K,multiple:!1,disabled:ye,onAccept:([e])=>Ne(e)}),{dragOver:Le}=we,Re=()=>{ye||(R?pe():we.open())},Ce=w?o(w):"",Ue=!ke&&!!ee,Fe=J||!q&&!D?null:/* @__PURE__ */k("div",{"data-media-bar":"",className:["absolute inset-x-0 bottom-0 flex items-center gap-1 p-1 text-(--status-on-solid)","opacity-0 transition-opacity duration-(--motion-fast)","group-hover/media:opacity-100 group-focus-within/media:opacity-100 [@media(hover:none)]:opacity-100"].join(" "),style:{background:"var(--rosh-media-scrim-button)"},children:[q&&/* @__PURE__ */k("button",{id:Ue?void 0:be,type:"button","aria-labelledby":`${be}-change`,onClick:()=>Re(),disabled:ue,className:`min-w-0 flex-1 gap-1 px-2 text-sm font-medium ${N}`,children:[
|
|
2
2
|
/* @__PURE__ */j(p,{name:"swap","aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
|
|
3
|
-
/* @__PURE__ */j("span",{id:`${be}-change`,className:"truncate",children:xe})]}),
|
|
4
|
-
/* @__PURE__ */j(
|
|
5
|
-
/* @__PURE__ */j("span",{className:"text-gray-400",children:/* @__PURE__ */j(
|
|
3
|
+
/* @__PURE__ */j("span",{id:`${be}-change`,className:"truncate",children:xe})]}),D&&/* @__PURE__ */j("button",{type:"button","aria-label":oe,onClick:()=>{ge.current&&(URL.revokeObjectURL(ge.current),ge.current=null),fe(null),L("")},disabled:ue,className:`ml-auto w-8 shrink-0 ${N}`,children:/* @__PURE__ */j(p,{name:"trash","aria-hidden":"true",className:"h-4 w-4"})})]}),Oe=/* @__PURE__ */k("div",{...we.zoneProps,"data-media-frame":"",className:["group/media relative overflow-hidden rounded-(--radius-control) border transition-colors",Ue?"":"bg-gray-100",Le?"border-blue-500":"border-gray-200"].join(" "),style:Ue?void 0:{height:A},children:[Ue?
|
|
4
|
+
/* @__PURE__ */j(e,{value:Z??"",onChange:e=>ee?.(e),label:ae??ie.focus,image:w,hint:null,id:be,disabled:ye,className:"[&_[data-image-focus-picture]]:rounded-none [&_[data-image-focus-picture]]:border-0"}):ke?/* @__PURE__ */j("video",{src:w??void 0,muted:!0,playsInline:!0,preload:"metadata","aria-label":Ce||void 0,className:"h-full w-full",style:{objectFit:V}}):/* @__PURE__ */j("img",{src:w??void 0,alt:Ce,className:"h-full w-full",style:{objectFit:V,objectPosition:Z||void 0}}),T&&w&&/* @__PURE__ */j(n,{children:Ce}),Fe,ue&&/* @__PURE__ */j(l,{label:me,progress:E,rounded:"rounded-md"})]}),Se=/* @__PURE__ */j("button",{type:"button",id:be,onClick:()=>Re(),disabled:ye,"aria-label":"string"==typeof je?je:ie.upload,"aria-busy":ue||void 0,"aria-invalid":!!he||void 0,"aria-required":S||void 0,"aria-describedby":he?`${be}-error`:F?`${be}-hint`:void 0,...we.zoneProps,className:c(Le,ye,d(ye)),style:{minHeight:A},children:ue?/* @__PURE__ */j(u,{state:"busy",verb:me,pct:E}):/* @__PURE__ */k(x,{children:[
|
|
5
|
+
/* @__PURE__ */j("span",{className:"text-gray-400",children:/* @__PURE__ */j(s,{})}),
|
|
6
6
|
/* @__PURE__ */j("span",{className:"px-3 text-xs text-gray-500",children:je}),
|
|
7
7
|
/* @__PURE__ */j("span",{className:"text-sm font-medium text-blue-600",children:te}),K&&/* @__PURE__ */j("span",{className:"text-xs text-gray-400",children:K})]})});/* @__PURE__ */
|
|
8
|
-
return k(
|
|
9
|
-
/* @__PURE__ */j(
|
|
8
|
+
return k(a,{label:U,htmlFor:be,hint:F,error:he,required:S,className:P,children:[X&&/* @__PURE__ */j("div",{"data-media-kind":"",className:"mb-2",children:/* @__PURE__ */j(i,{value:re,onChange:e=>X(e),options:[{value:"image",label:ie.image,icon:/* @__PURE__ */j(p,{name:"image","aria-hidden":"true",className:"h-4 w-4"}),disabled:ye},{value:"video",label:ie.video,icon:/* @__PURE__ */j(p,{name:"play","aria-hidden":"true",className:"h-4 w-4"}),disabled:ye}],block:!0,size:"md",label:"string"==typeof U&&U?U:ie.upload})}),w?Oe:Se,!R&&/* @__PURE__ */j("input",{...we.inputProps}),
|
|
9
|
+
/* @__PURE__ */j(h,{rejections:we.rejections})]})}export{w as MediaUploadField};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function e({size:e,width:h,height:i,style:r,...l}){const m=c(e??h??i??18,1);/* @__PURE__ */
|
|
2
|
+
return t("svg",{width:m.width,height:m.height,viewBox:"-0.2 -0.2 24.4 24.4",fill:"currentColor","aria-hidden":"true",...l,style:{...m.style,...r},children:/* @__PURE__ */t("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm6.585 14.655c-1.485 0-2.69-1.206-2.69-2.689 0-1.485 1.207-2.691 2.69-2.691 1.485 0 2.69 1.207 2.69 2.691s-1.207 2.689-2.69 2.689zM7.53 14.644c-.099 0-.192-.041-.267-.116l-2.043-2.04-2.052 2.047c-.069.068-.16.108-.258.108-.202 0-.368-.166-.368-.368 0-.099.04-.191.111-.263l2.04-2.05-2.038-2.047c-.075-.069-.113-.162-.113-.261 0-.203.166-.366.368-.366.098 0 .188.037.258.105l2.055 2.048 2.048-2.045c.069-.071.162-.108.26-.108.211 0 .375.165.375.366 0 .098-.029.188-.104.258l-2.056 2.055 2.055 2.051c.068.069.104.16.104.258 0 .202-.165.368-.365.368h-.01zm8.017-4.591c-.796.101-.882.476-.882 1.404v2.787c0 .202-.165.366-.366.366-.203 0-.367-.165-.368-.366v-4.53c0-.204.16-.366.362-.366.166 0 .316.125.346.289.27-.209.6-.317.93-.317h.105c.195 0 .359.165.359.368 0 .201-.164.352-.375.359 0 0-.09 0-.164.008l.053-.002zm-3.091 2.205H8.625c0 .019.003.037.006.057.02.105.045.211.083.31.194.531.765 1.275 1.829 1.29.33-.003.631-.086.9-.229.21-.12.391-.271.525-.428.045-.058.09-.112.12-.168.18-.229.405-.186.54-.083.164.135.18.391.045.57l-.016.016c-.21.27-.435.495-.689.66-.255.164-.525.284-.811.345-.33.09-.645.104-.975.06-1.095-.135-2.01-.93-2.28-2.01-.06-.21-.09-.42-.09-.645 0-.855.421-1.695 1.125-2.205.885-.615 2.085-.66 3-.075.63.405 1.035 1.021 1.185 1.771.075.419-.21.794-.734.81l.068-.046zm6.129-2.223c-1.064 0-1.931.865-1.931 1.931 0 1.064.866 1.931 1.931 1.931s1.931-.867 1.931-1.931c0-1.065-.866-1.933-1.931-1.933v.002zm0 2.595c-.367 0-.666-.297-.666-.666 0-.367.3-.665.666-.665.367 0 .667.299.667.665 0 .369-.3.667-.667.666zm-8.04-2.603c-.91 0-1.672.623-1.886 1.466v.03h3.776c-.203-.855-.973-1.494-1.891-1.494v-.002z"})})}export{e as BrandXeroIcon};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";function r({size:r=18,...e}){/* @__PURE__ */
|
|
2
|
+
return l("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none","aria-hidden":"true",...e,children:/* @__PURE__ */l("path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z"})})}export{r as BrandXSolidIcon};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return k("span","checkbox"===e?{"aria-hidden":!0,"data-menu-check":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border "+(t?"border-blue-600 bg-blue-600 text-white":"border-gray-400"),children:t&&
|
|
3
|
-
return x("button",{ref:f,id:d,role:"radio"===
|
|
1
|
+
import{keepsNativeMenu as e}from"./chunk-5QFPTDQF.js";import{optionNoteClass as t}from"./chunk-QR4RM7PO.js";import{Icon as n}from"./chunk-2SHYR3RA.js";import{onOverlayOpen as r}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as o}from"./chunk-62LW225J.js";import{useHydrated as i,useBrowserLayoutEffect as a}from"./chunk-D65T4H6J.js";import{glassStyle as l,GLASS_DIVIDER as c}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{createContext as u,forwardRef as d,useContext as p,useId as m,useRef as h,useState as f,useEffect as g,useMemo as y,useCallback as b}from"react";import{createPortal as w}from"react-dom";import{jsxs as x,jsx as k,Fragment as v}from"react/jsx-runtime";function N(e,t,n){return e.length===t+1&&e[t].key===n.key?e:[...e.slice(0,t),n]}function C(e,t){const n=Math.max(0,t);return e.length>n?e.slice(0,n):e}function T(e,t,n){if(0===t.length||0===e.length)return[];const r=[e];for(let e=1;e<t.length;e++){const o=r[e-1].find(n=>n.to===t[e].key),i=o?n(o):[];if(0===i.length)break;r.push(i)}return r}function E(e,t,n,r){const o=Math.max(0,r-n),i=Math.min(t,o),a=e-i/2;return a<n?n:a+i>r?Math.max(n,r-i):a}function M(e,t,n,r,o,i=!1,a=8){const l=t+o,c=e-o-n,s=c>=a;return i&&s?{left:c,flipped:!0}:l+n<=r-a?{left:l,flipped:!1}:s?{left:c,flipped:!0}:i?{left:a,flipped:!0}:{left:Math.max(a,r-a-n),flipped:!1}}function R(){try{return getComputedStyle(document.documentElement).getPropertyValue("--menu-density")?.trim()||"normal"}catch{return"normal"}}var W=u(null),$=u(!1);function L({children:t,style:n,className:a="",onClose:c,minWidth:u=180,portal:d=!1}){const p=h(null),b=m(),[x,v]=f([]),T=h();g(()=>()=>clearTimeout(T.current),[]);const E=i(),M=y(()=>{const e=()=>clearTimeout(T.current);return{id:b,depth:0,path:x,open:(t,n)=>{e(),v(e=>N(e,t,n))},scheduleClose:t=>{e(),T.current=setTimeout(()=>v(e=>C(e,t)),200)},closeBelow:t=>{e(),v(e=>C(e,t))},cancelClose:e,closeTree:()=>{e(),v([]),c?.()},root:p}},[b,x,c]);g(()=>{if(!c)return;const e=e=>{e.target.closest("[data-menu-toggle]")||e.target.closest?.(`[data-popup-menu-tree="${b}"]`)||p.current&&!p.current.contains(e.target)&&c()},t=e=>{"Escape"===e.key&&c()};window.addEventListener("pointerdown",e),window.addEventListener("keydown",t);const n=r(c),o=s(()=>!1,()=>p.current);return()=>{window.removeEventListener("pointerdown",e),window.removeEventListener("keydown",t),n(),o()}},[c,b]),g(()=>{const e=p.current;e&&requestAnimationFrame(()=>{const t=e.getBoundingClientRect();if(t.right>window.innerWidth-8){const n=t.right-window.innerWidth+8;e.style.left?e.style.left=parseFloat(e.style.left)-n+"px":e.style.right||(e.style.left=t.left-n+"px")}if(t.left<8&&(e.style.left?e.style.left="8px":e.style.right&&(e.style.right=window.innerWidth-t.width-8+"px")),t.bottom>window.innerHeight-8){const n=t.bottom-window.innerHeight+8;e.style.top?e.style.top=parseFloat(e.style.top)-n+"px":e.style.bottom?e.style.bottom="8px":e.style.top=t.top-n+"px"}t.top<8&&(e.style.top?e.style.top="8px":e.style.bottom&&(e.style.bottom=window.innerHeight-t.height-8+"px"))})});const $=R(),L=/(^|[\s:])!?z-/.test(a),j=/* @__PURE__ */k("div",{ref:p,"data-popup-menu-tree":b,className:`fixed rounded-(--radius-popup) ${"tight"===$?"py-1":"large"===$?"py-2":"py-1"} ${a}`,onContextMenu:t=>{e(t.target)||t.preventDefault()},style:{...L?{}:{zIndex:o.menu},minWidth:u,animation:"popup-in 0.12s ease-out",...l(),...n},children:/* @__PURE__ */k(W.Provider,{value:M,children:t})});return d?E?w(j,document.body):null:j}function j(e,t,n,r=!1){const o=R(),i="tight"===o?"0.25rem":"large"===o?"0.6rem":0;return{className:`w-full flex items-center gap-2 text-left transition-colors rounded-lg mx-auto\n ${e?"text-red-600 not-disabled:not-aria-disabled:hover:bg-red-50":r?"bg-blue-50 text-blue-700":"text-gray-700 not-disabled:not-aria-disabled:hover:bg-blue-50 not-disabled:not-aria-disabled:hover:text-blue-700"}\n ${t?"opacity-40 cursor-not-allowed":""}\n ${n}`,style:{width:"calc(100% - 8px)",marginLeft:4,marginRight:4,fontSize:"var(--menu-font-size, 14px)",paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:i,paddingBottom:i,..."normal"===o?{minHeight:"calc(var(--row-height-menu, 2.25rem) + 2 * (var(--menu-padding-y, 0.5rem) - 0.5rem))"}:{}}}}var B=/* @__PURE__ */k(n,{name:"check","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2});function D({kind:e,checked:t}){/* @__PURE__ */
|
|
2
|
+
return k("span","checkbox"===e?{"aria-hidden":!0,"data-menu-check":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border "+(t?"border-blue-600 bg-blue-600 text-white":"border-gray-400"),children:t&&B}:{"aria-hidden":!0,"data-menu-check":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:t&&B})}var P=d(function({onClick:e,children:n,className:r="",danger:o,disabled:i,role:a,checked:l,icon:c,description:s,tabIndex:u,id:d,onMouseEnter:h},f){const g=p(W),y=m(),b=null!=s&&!1!==s,w=`${d??y}-label`,N=`${d??y}-note`,C=p($),T=j(o,i,r),E=void 0===l?null:"menuitemradio"===a?"radio":"checkbox";/* @__PURE__ */
|
|
3
|
+
return x("button",{ref:f,id:d,role:"radio"===E?"menuitemradio":"checkbox"===E?"menuitemcheckbox":a??(C?"menuitem":void 0),"aria-checked":E?l:void 0,"aria-labelledby":b?w:void 0,"aria-describedby":b?N:void 0,tabIndex:u,onClick:()=>{e?.(),g&&g.depth>0&&"checkbox"!==E&&g.closeTree()},onMouseEnter:()=>{g?.scheduleClose(g.depth),h?.()},disabled:i,className:T.className,style:T.style,children:[E&&/* @__PURE__ */k(D,{kind:E,checked:!!l}),b?
|
|
4
4
|
/* @__PURE__ */x("span",{className:"block min-w-0 flex-1 py-2",children:[
|
|
5
5
|
/* @__PURE__ */x("span",{className:"flex items-center gap-2",children:[null!=c&&/* @__PURE__ */k(A,{children:c}),
|
|
6
6
|
/* @__PURE__ */k("span",{id:w,className:"min-w-0",children:n})]}),
|
|
7
|
-
/* @__PURE__ */k("span",{id:N,"data-menu-note":"",className:
|
|
8
|
-
return k("span",{"aria-hidden":"true","data-menu-icon":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e})}var
|
|
7
|
+
/* @__PURE__ */k("span",{id:N,"data-menu-note":"",className:t(),style:null!=c?{paddingLeft:"1.5rem"}:void 0,children:s})]}):/* @__PURE__ */x(v,{children:[null!=c&&/* @__PURE__ */k(A,{children:c}),n]})]})});function A({children:e}){/* @__PURE__ */
|
|
8
|
+
return k("span",{"aria-hidden":"true","data-menu-icon":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e})}var H=/* @__PURE__ */k(n,{name:"chevron-right","aria-hidden":!0,className:"h-3.5 w-3.5 shrink-0 ml-auto",strokeWidth:2});function F(e){let t=o.menu;for(let n=e;n&&n!==document.body;n=n.parentElement){const e=parseInt(getComputedStyle(n).zIndex,10);Number.isNaN(e)||(t=e)}return t}function I(e){return e?[...e.querySelectorAll("button:not([disabled]), a[href]")].filter(t=>t.closest("[data-popup-submenu-panel]")===e):[]}function S({label:t,icon:n,children:r,disabled:o,className:i="",minWidth:c=180,maxHeight:u,rowProps:d}){const f=p(W),N=m(),C=h(null),T=h(null),$=h(),L=h(!1),B=`${N}-menu`;g(()=>()=>clearTimeout($.current),[]);const D=f?.depth??0,P=f?.path[D],A=!!P&&P.key===N&&!o,S=b(e=>{if(!f||o||!C.current)return;clearTimeout($.current),L.current=e;const t=C.current.getBoundingClientRect(),n=C.current.closest("[data-popup-submenu-panel]")??C.current.closest("[data-popup-menu-tree]"),r=n?.getBoundingClientRect()??t,i=D>0&&(f.path[D-1]?.flipped??!1),a=M(r.left,r.right,c,window.innerWidth,4,i);f.open(D,{key:N,y:t.top,...a})},[f,o,D,N,c]),z=e=>{f?.closeBelow(D),C.current?.focus()};g(()=>{if(A)return s(e=>"Escape"===e.key&&(!(f&&f.path.length>D+1)&&(z(),!0)),()=>T.current)}),a(()=>{if(!A||!P)return;const e=()=>{const e=T.current;if(!e||!C.current)return;const t=C.current.closest("[data-popup-submenu-panel]")??C.current.closest("[data-popup-menu-tree]"),n=t?.getBoundingClientRect()??C.current.getBoundingClientRect(),r=D>0&&(f?.path[D-1]?.flipped??!1),o=e.offsetWidth||c,i=M(n.left,n.right,o,window.innerWidth,4,r,8),a=e.offsetHeight,l=E(C.current.getBoundingClientRect().top+a/2,a,8,window.innerHeight-8);e.style.left=`${i.left}px`,e.style.top=`${l}px`,e.dataset.flipped=String(i.flipped)};e();let t=0;const n=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>{cancelAnimationFrame(n),cancelAnimationFrame(t)}}),g(()=>{A&&L.current&&(L.current=!1,I(T.current)[0]?.focus())},[A]);const q=y(()=>f&&{...f,depth:D+1},[f,D]);if(!f)throw new Error("PopupSubmenu must be rendered inside a PopupMenu");const Q=j(!1,o,i,A),U=R();/* @__PURE__ */
|
|
9
9
|
return x(v,{children:[
|
|
10
|
-
/* @__PURE__ */x("button",{ref:C,type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":A,"aria-controls":A?
|
|
11
|
-
/* @__PURE__ */k("span",{className:"min-w-0 flex-1 truncate",children:
|
|
12
|
-
/* @__PURE__ */k("div",{ref:T,id:
|
|
13
|
-
return k("div",{className:`border-t ${c} ${"tight"===e?"my-0.5":"large"===e?"my-2":"my-1"} mx-3`})}function q(){const e=
|
|
10
|
+
/* @__PURE__ */x("button",{ref:C,type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":A,"aria-controls":A?B:void 0,disabled:o,"data-popup-submenu-row":!0,className:Q.className,style:Q.style,onClick:e=>{const t=0===e.detail;A?t&&I(T.current)[0]?.focus():S(t)},...d,onKeyDown:e=>{"ArrowRight"===e.key&&(e.preventDefault(),e.stopPropagation(),S(!0))},onMouseEnter:()=>{d?.onMouseEnter?.(),o||(f.cancelClose(),A?f.closeBelow(D+1):(clearTimeout($.current),$.current=setTimeout(()=>S(!1),120)))},onMouseLeave:()=>{clearTimeout($.current),f.scheduleClose(D)},children:[n,
|
|
11
|
+
/* @__PURE__ */k("span",{className:"min-w-0 flex-1 truncate",children:t}),H]}),A&&w(
|
|
12
|
+
/* @__PURE__ */k("div",{ref:T,id:B,role:"menu","data-popup-menu-tree":f.id,"data-popup-submenu-panel":!0,className:"fixed rounded-(--radius-popup) overflow-x-hidden overflow-y-auto overscroll-contain "+("tight"===U?"py-1":"large"===U?"py-2":"py-1"),style:{left:P.left,top:P.y,minWidth:c,maxHeight:void 0===u?"calc(100vh - 16px)":`min(${"number"==typeof u?`${u}px`:u}, calc(100vh - 16px))`,zIndex:F(f.root.current)+D+1,animation:(P.flipped?"popup-submenu-in-left":"popup-submenu-in")+" 0.1s ease-out",...l()},onKeyDown:e=>{if(e.target.closest("[data-popup-submenu-panel]")!==e.currentTarget)return;const t=I(T.current),n=t.indexOf(document.activeElement),r=n=>{e.preventDefault(),e.stopPropagation(),t[(n+t.length)%t.length]?.focus()};"ArrowDown"===e.key?r(n+1):"ArrowUp"===e.key?r(n<0?t.length-1:n-1):"Home"===e.key?r(0):"End"===e.key?r(t.length-1):"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),z())},onMouseEnter:()=>{f.cancelClose(),clearTimeout($.current)},onMouseLeave:()=>f.scheduleClose(D+1),onContextMenu:t=>{e(t.target)||t.preventDefault()},children:/* @__PURE__ */k(W.Provider,{value:q,children:r})}),document.body)]})}function z(){const e=R();/* @__PURE__ */
|
|
13
|
+
return k("div",{className:`border-t ${c} ${"tight"===e?"my-0.5":"large"===e?"my-2":"my-1"} mx-3`})}function q(){const e=R(),t="tight"===e?"0.125rem":"large"===e?"0.375rem":"0.25rem";return{color:"var(--ink-muted)",paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:t,paddingBottom:t}}function Q({children:e}){/* @__PURE__ */
|
|
14
14
|
return k("div",{className:"text-xs font-medium uppercase tracking-wide",style:q(),children:e})}function U({d:e,className:t="h-4 w-4"}){/* @__PURE__ */
|
|
15
|
-
return k("svg",{className:t,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */k("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})})}export{D as MenuCheckMark,U as MenuIcon,$ as MenuSemanticsContext,
|
|
15
|
+
return k("svg",{className:t,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */k("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})})}export{D as MenuCheckMark,U as MenuIcon,$ as MenuSemanticsContext,L as PopupMenu,z as PopupMenuDivider,P as PopupMenuItem,Q as PopupMenuLabel,S as PopupSubmenu,E as clampMenuTop,C as closeMenuBelow,j as itemLook,M as menuPanelLeft,q as menuTextRowStyle,N as openMenuLevel,T as resolveMenuLevels};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{brandBox as h}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function e({size:e,width:i,height:c,style:l,...r}){const o=h(e??i??c??18,.875);/* @__PURE__ */
|
|
2
|
+
return t("svg",{width:o.width,height:o.height,viewBox:"1.321 -0.2 21.358 24.4",fill:"currentColor","aria-hidden":"true",...r,style:{...o.style,...l},children:/* @__PURE__ */t("path",{d:"M8.559 2.445c0-.325.033-.52.59-.52h7.465c1.3 0 2.02 1.11 2.54 3.193l.42 1.666h1.27c.23-4.728.43-6.784.43-6.784s-3.196.36-5.09.36H6.635L1.521.196v1.37l1.725.326c1.21.24 1.5.496 1.6 1.606 0 0 .11 3.27.11 8.64 0 5.385-.09 8.61-.09 8.61 0 .973-.39 1.333-1.59 1.573l-1.722.33V24l5.13-.165h8.55c1.935 0 6.39.165 6.39.165.105-1.17.75-6.48.855-7.064h-1.2l-1.284 2.91c-1.005 2.28-2.476 2.445-4.11 2.445h-4.906c-1.63 0-2.415-.64-2.415-2.05V12.8s3.62 0 4.79.096c.912.064 1.463.325 1.76 1.598l.39 1.695h1.41l-.09-4.278.192-4.305h-1.391l-.45 1.89c-.283 1.244-.48 1.47-1.754 1.6-1.666.17-4.815.14-4.815.14V2.45h-.05z"})})}export{e as BrandEtsyIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{TransferProgress as e}from"./chunk-S7VSXUKS.js";import{Icon as r}from"./chunk-
|
|
1
|
+
import{TransferProgress as e}from"./chunk-S7VSXUKS.js";import{Icon as r}from"./chunk-2SHYR3RA.js";import{DEFAULT_SHELL_STRINGS as t}from"./chunk-E6UCGCOC.js";import{jsx as o}from"react/jsx-runtime";var n=/^data:([a-z0-9!#$&^_.+-]+)\/([a-z0-9!#$&^_.+-]+)/i;function i(e){if(/^data:/i.test(e||""))return function(e){const r=n.exec(e);if(!r)return"media";const[,t,o]=r,i=o.split("+")[0].split(".").pop().replace(/^x-/i,"");return i?`${t.toLowerCase()}.${i.toLowerCase()}`:"media"}(e);const r=(e||"").split("?")[0].split("#")[0],t=r.substring(r.lastIndexOf("/")+1);try{return decodeURIComponent(t.replace(/^[0-9a-f]{32}_/i,""))||t||"media"}catch{return t||"media"}}var s=/\.(mp4|webm|ogg|ogv|mov|m4v)(\?|#|$)/i;function a(e,r=t.media){const o=function(e){const r=e.includes("video"),t=e.includes("image")||"*"===e||""===e;return r&&!t?"video":t&&!r?"image":"file"}(e);return"image"===o?r.uploadImage:"video"===o?r.uploadVideo:r.uploadFile}function u(e,r,t="",o="p-4"){return["flex w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed text-center transition-colors",o,r?"cursor-not-allowed opacity-60":"cursor-pointer",e?"border-blue-500 bg-blue-50":"border-gray-300 bg-gray-50 hover:bg-gray-100",t].filter(Boolean).join(" ")}function c(e){return e?"rosh-focus-ring":"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-zone)]"}function d({label:r,progress:t,rounded:n="rounded-lg"}){/* @__PURE__ */
|
|
2
2
|
return o("div",{className:`absolute inset-0 flex items-center justify-center bg-white/60 ${n}`,children:/* @__PURE__ */o(e,{state:"busy",verb:r,pct:t})})}function l({children:e}){/* @__PURE__ */
|
|
3
3
|
return o("span",{className:"absolute inset-x-1 bottom-1 truncate rounded px-2 py-0.5 text-xs text-white",style:{background:"var(--rosh-media-scrim)"},children:e})}function m(e,r=""){if(!e)return!1;const t=n.exec(e);if(t)return"video"===t[1].toLowerCase();const o=r.includes("video"),i=r.includes("image")||"*"===r||""===r;return s.test(e)||o&&!i}function f({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
4
4
|
return o(r,{name:"close",className:e,strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})}function p({className:e="h-6 w-6"}){/* @__PURE__ */
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";function e({size:e=18,...a}){/* @__PURE__ */
|
|
2
|
+
return r("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none","aria-hidden":"true",...a,children:/* @__PURE__ */r("path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336"})})}export{e as BrandPinterestSolidIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Banner as e}from"./chunk-
|
|
1
|
+
import{Banner as e}from"./chunk-MY755PTJ.js";import{Button_default as t}from"./chunk-4IU5BSVE.js";import{useShellStrings as n}from"./chunk-E6UCGCOC.js";import{useState as r,useEffect as i}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";var s=6e4;function c({currentVersion:e,versionUrl:t="/version.json",pollMs:n=6e4}){const[o,a]=r(null);return i(()=>{if(!e||null!==o)return;let r=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const n=t.includes("?")?"&":"?",i=await fetch(`${t}${n}t=${Date.now()}`,{cache:"no-store"});if(!i.ok)return;const o=await i.json(),s=o&&"object"==typeof o&&"string"==typeof o.version?o.version:null;!r&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},n),c=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",c),()=>{r=!0,clearInterval(s),document.removeEventListener("visibilitychange",c)}},[e,t,n,o]),o}function l({currentVersion:r,versionUrl:i,pollMs:s,message:l,onRefresh:m,className:u=""}){const d=c({currentVersion:r,versionUrl:i,pollMs:s}),p=n();if(null===d)return null;const f=m??(()=>window.location.reload());/* @__PURE__ */
|
|
2
2
|
return o("div",{"data-app-update-banner":"",className:`fixed left-1/2 top-3 z-(--z-toast) w-max max-w-[calc(100vw-1.5rem)] -translate-x-1/2 ${u}`.trim(),children:/* @__PURE__ */a(e,{tone:"warning",className:"shadow-lg",action:/* @__PURE__ */o(t,{type:"button",variant:"primary",size:"md",onClick:f,children:p.update.refreshNow}),children:[
|
|
3
3
|
/* @__PURE__ */o("span",{className:"font-medium",children:l??p.update.available}),
|
|
4
4
|
/* @__PURE__ */a("span",{className:"ml-2 whitespace-nowrap font-mono text-xs text-gray-500",children:[r," → ",d]})]})})}export{s as APP_UPDATE_POLL_MS,l as AppUpdateBanner,c as useAppUpdate};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function e({size:e,width:i,height:r,style:h,...o}){const s=c(e??i??r??18,1);/* @__PURE__ */
|
|
2
|
+
return t("svg",{width:s.width,height:s.height,viewBox:"-0.2 -0.2 24.4 24.4",fill:"currentColor","aria-hidden":"true",...o,style:{...s.style,...h},children:/* @__PURE__ */t("path",{d:"M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"})})}export{e as BrandIntercomIcon};
|