@getmicdrop/venue-calendar 4.3.136 → 4.3.139
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 +895 -840
- package/dist/AddOnCard-Dlt_4lut.js +475 -0
- package/dist/AppError-t1LnBwj_.js +30 -0
- package/dist/{ArrowLeftIcon-OhmQKtD4.js → ArrowLeftIcon-P8BRVhVl.js} +2 -3
- package/dist/Badge-CmYqIClC.js +51 -0
- package/dist/BottomSheet-D27k0B05.js +154 -0
- package/dist/Button-Ch5dRGa2.js +149 -0
- package/dist/Button-DpeQSoQ7.js +247 -0
- package/dist/Calendar-CNWS2xiR.js +396 -0
- package/dist/CalendarFoundryView-B5puOxH5.js +16431 -0
- package/dist/{CalendarIcon-DCLzgpBo.js → CalendarIcon-MAVEqtql.js} +2 -3
- package/dist/{ChevronDownOutline-D7YDiKBF.js → CalendarOutline-CApIWx8i.js} +2 -3
- package/dist/{ChartBlock-SYOAO1s_.js → ChartBlock-vihMKVdW.js} +85 -112
- package/dist/{CheckIcon-BjPbytbt.js → CheckIcon-BH9EAoee.js} +2 -3
- package/dist/{Checkout-JdT81S88.js → Checkout-B2FvX6Af.js} +356 -368
- package/dist/Checkout-y0x-v-XH.js +1995 -0
- package/dist/{ChevronDownIcon-O-Q8C_Qg.js → ChevronDownIcon-Bkts84qA.js} +2 -3
- package/dist/{ChevronRightOutline-CiG8UHni.js → ChevronRightOutline-D-5Qw6-Y.js} +2 -4
- package/dist/CloseIcon-DRlYvIPc.js +24 -0
- package/dist/{CloseOutline-qpVa62mu.js → CloseOutline-Bh9UO94v.js} +1 -2
- package/dist/CollectionView-CcLlV-1f.js +129 -0
- package/dist/CropImage-DqLAGy5s.js +547 -0
- package/dist/DatePicker-D20Te0JY.js +657 -0
- package/dist/{EmptyState-CMFePII9.js → EmptyState-BhK78ogy.js} +10 -12
- package/dist/{Event-BHnHfeO-.js → Event-DoIU0o6C.js} +1199 -1202
- package/dist/{EventCard-DIFJADV7.js → EventCard-B8MYLyIW.js} +15 -15
- package/dist/EventPage-DM4tjCcL.js +1298 -0
- package/dist/{ExclamationCircleOutline-D3XbhOwM.js → ExclamationCircleOutline-CPelT1Bu.js} +1 -2
- package/dist/FilterChipGroup-BCjc7-pE.js +103 -0
- package/dist/Grid-DRRXcWRE.js +41 -0
- package/dist/{Heading-vOVPxhJF.js → Heading-WcF3Rh3o.js} +4 -6
- package/dist/Image-dhbgrhG-.js +89 -0
- package/dist/ImageUploader-BzxKIyLN.js +999 -0
- package/dist/{Input-BG9DbwUe.js → Input-Bp5EgI1F.js} +47 -45
- package/dist/LiveRegion-Ds0mjIVj.js +17 -0
- package/dist/{LocationIcon-BEx96ng8.js → LocationIcon-BNPEzWv2.js} +3 -5
- package/dist/Modal-C6EXgkuF.js +159 -0
- package/dist/ModalFooter-C4TD3-zP.js +299 -0
- package/dist/ModalTitle-BP4Bm3sA.js +26 -0
- package/dist/{PasswordInput-BQdpZ9HL.js → PasswordInput-BlzSrkPs.js} +11 -13
- package/dist/{PhoneInput-5l-M5ykF.js → PhoneInput-_ByjRGQ0.js} +80 -89
- package/dist/{RecommendationsRail-BRthm1Iu.js → RecommendationsRail-BDNnbL-p.js} +161 -172
- package/dist/RequiredIndicator-CRZ_coyR.js +16 -0
- package/dist/Search-vhGEpog6.js +82 -0
- package/dist/SearchIcon-BzOhoKm8.js +24 -0
- package/dist/SeriesPage-YE8czX1M.js +32 -0
- package/dist/SheetHandle-CCfYCPbY.js +66 -0
- package/dist/SkeletonLoader-Beh2izdy.js +121 -0
- package/dist/Spinner-DgubkWKo.js +88 -0
- package/dist/Stack-Ck1wrJ0l.js +34 -0
- package/dist/{Success-DWdMk7gp.js → Success-CN5HB8gN.js} +271 -305
- package/dist/{TagIcon-BIJYPXYq.js → TagIcon-Dp7n6eKU.js} +2 -3
- package/dist/TimePicker-BDuy9Ap8.js +215 -0
- package/dist/ValidationError-BxKB_SVA.js +48 -0
- package/dist/{ViewTicketsEmbed-CjH3N_VJ.js → ViewTicketsEmbed-DvoMIiKJ.js} +226 -244
- package/dist/{WarningCircleIcon-Uuc8KHJN.js → WarningCircleIcon-jC3nXehu.js} +4 -7
- package/dist/{WarningTriIcon-SX24XObM.js → WarningTriIcon-BMa-jcUr.js} +2 -3
- package/dist/address-field-DOalICpt.js +295 -0
- package/dist/{href-ZuPjzr6t.js → allowlist-DinkGF2L.js} +254 -316
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +331 -322
- package/dist/api/client.d.ts +14 -53
- package/dist/api/cta.d.ts +4 -0
- package/dist/api/events.d.ts +28 -1
- package/dist/api/result.d.ts +9 -0
- package/dist/api-CsAx0rmV.js +507 -0
- package/dist/avatar-picker-field-CV4vRxTB.js +115 -0
- package/dist/{browser-BzcyBbWS.js → browser-DEUBVMmV.js} +8 -9
- package/dist/bundle-mjs-COnlheJX.js +1776 -0
- package/dist/{buyerEmail-BfCq-gDt.js → buyerEmail-CvPpEiON.js} +2 -3
- package/dist/checkout-libs/4.3.139/phone.js +6 -0
- package/dist/checkout-libs/{4.3.136 → 4.3.139}/qrcode.js +3 -3
- package/dist/{checkoutState-wrwq9TD7.js → checkoutState-DSx7g3Vy.js} +18 -30
- package/dist/classNames-CPSQ9uy4.js +25 -0
- package/dist/clickOutside-D448uRpo.js +22 -0
- package/dist/{client-SmFkruvn.js → client-SaDt6559.js} +22 -19
- package/dist/colors-CdP193E5.js +106 -0
- package/dist/colors-D67OMr_8.js +22 -0
- package/dist/{constants-D_7LswXe.js → constants-sRRJh0u-.js} +3 -5
- package/dist/controlAria-Do9QK0WI.js +13 -0
- package/dist/{copyToClipboard-BzoArVPb.js → copyToClipboard-CjNjDZeW.js} +3 -5
- package/dist/createErrorGate.svelte-DUXI6Yor.js +82 -0
- package/dist/date-field-DylJx0y7.js +88 -0
- package/dist/date-range-field-BOV1V2ab.js +163 -0
- package/dist/{de-DC0pKC1H.js → de-CzkX3H3B.js} +2 -2
- package/dist/{de-BbjhLBzm.js → de-vKpbo9Zl.js} +1 -2
- package/dist/defaultLabels-DLK6rq4q.js +564 -0
- package/dist/defaults-Cbuin1WS.js +147 -0
- package/dist/deprecation-BCjqE5lW.js +4 -0
- package/dist/{dist-bwbfGPKR.js → dist-Dptst9ym.js} +2 -4
- package/dist/{es-38yS4d3G.js → es-8qe0Mo-8.js} +1 -2
- package/dist/{es-DxoJfXOC.js → es-BOLzv8eD.js} +2 -2
- package/dist/{event-DXsgCbu0.js → event-ClsLWtR0.js} +3 -4
- package/dist/event-transform-Cs63X0hI.js +250 -0
- package/dist/{eventStatusStream-JWP2AXnQ.js → eventStatusStream-BAh5nJP2.js} +4 -7
- package/dist/field-rules-Yb2JY1qT.js +416 -0
- package/dist/file-field-Dwo80kDg.js +210 -0
- package/dist/{filepond-plugin-file-validate-size-DNnItZ84.js → filepond-plugin-file-validate-size-CuNOjGbP.js} +20 -27
- package/dist/{filepond-plugin-file-validate-type-CUMTkI8X.js → filepond-plugin-file-validate-type-CVtQwdIK.js} +25 -27
- package/dist/{filepond-plugin-image-exif-orientation-GEwHZTBU.js → filepond-plugin-image-exif-orientation-CMPs7yGQ.js} +21 -23
- package/dist/{filepond-plugin-image-preview-DKfgAnVa.js → filepond-plugin-image-preview-DKsOZAGe.js} +12 -27
- package/dist/{floatingPosition-XIv5DYuP.js → floatingPosition-BCUPmGCN.js} +8 -13
- package/dist/format-CehusdDg.js +1718 -0
- package/dist/formatters-DUWbI_Eg.js +103 -0
- package/dist/foundryRuntime-DKyfdkUY.js +13 -0
- package/dist/{fr-LivMhlfx.js → fr-BmpShjUG.js} +1 -2
- package/dist/{fr-DCdoZpLm.js → fr-DYTIBBXo.js} +2 -2
- package/dist/{gate-password-cache-oOcDm9Ki.js → gate-password-cache-zIbewXQ2.js} +1 -2
- package/dist/hexToHsl-D-BPy03y.js +24 -0
- package/dist/href-BXhNawil.js +18 -0
- package/dist/i18n-BNF6a-QA.js +720 -0
- package/dist/i18n-F_QOaHVh.js +26 -0
- package/dist/iconWeight-BRXEDAh2.js +12 -0
- package/dist/{id-XuEVsPu6.js → id-CIyIkGhH.js} +2 -2
- package/dist/{id-BvOr8-aw.js → id-_6GFAYBn.js} +1 -2
- package/dist/image-field-DeLzsJlz.js +139 -0
- package/dist/{imageUrl-xyMedKrE.js → imageUrl-iAS2Xo17.js} +1 -2
- package/dist/{it-RdUTxnO5.js → it-CF4Db_nK.js} +2 -2
- package/dist/{it-mzikQJIm.js → it-Dc-H_PdY.js} +1 -2
- package/dist/{ja-DgVJimHs.js → ja-5-7WNHD1.js} +2 -2
- package/dist/{ja-D9PSUNMd.js → ja-Cobhk-xH.js} +1 -2
- package/dist/keyboard-Dk2PfrEz.js +28 -0
- package/dist/{ko-DEgW43V6.js → ko-CyTlg6vA.js} +1 -2
- package/dist/{ko-CcPM8_aU.js → ko-huIzHR3W.js} +2 -2
- package/dist/labels-CjSrA6gx.js +9 -0
- package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-jG8k1apa.js} +1 -2
- package/dist/loaders.static-Bw9asjrm.js +3 -0
- package/dist/locales/4.3.139/main/de.js +1 -0
- package/dist/locales/4.3.139/main/es.js +1 -0
- package/dist/locales/4.3.139/main/fr.js +1 -0
- package/dist/locales/4.3.139/main/id.js +1 -0
- package/dist/locales/4.3.139/main/it.js +1 -0
- package/dist/locales/4.3.139/main/ja.js +1 -0
- package/dist/locales/4.3.139/main/ko.js +1 -0
- package/dist/locales/4.3.139/main/nl.js +1 -0
- package/dist/locales/4.3.139/main/pl.js +1 -0
- package/dist/locales/4.3.139/main/pt-br.js +1 -0
- package/dist/locales/4.3.139/main/tr.js +1 -0
- package/dist/locales/4.3.139/main/zh.js +1 -0
- package/dist/logger-DM8WW61-.js +89 -0
- package/dist/look-island.svelte-D87MvHNy.js +1296 -0
- package/dist/look-names-B9MywEzX.js +185 -0
- package/dist/looks/4.3.139/AddOnCard-CKdkGcHH.js +1 -0
- package/dist/looks/4.3.139/Checkout-D7CaFYTE.js +1 -0
- package/dist/looks/4.3.139/Checkout-DuP46PMi.js +3 -0
- package/dist/looks/4.3.139/CollectionView-CWm57JCx.js +1 -0
- package/dist/looks/4.3.139/Event-ePupb4qY.js +8 -0
- package/dist/looks/4.3.139/EventPage-CgexXhEU.js +1 -0
- package/dist/looks/4.3.139/RecommendationsRail-Bz-Mj_r4.js +2 -0
- package/dist/looks/4.3.139/SeriesPage-DI2uFF0Y.js +1 -0
- package/dist/looks/4.3.139/Success-BkMzmgmc.js +3 -0
- package/dist/looks/4.3.139/ViewTicketsEmbed-CbEJwRry.js +1 -0
- package/dist/looks/4.3.139/_vc-foundry-calendar-stub-BVbAFEK2.js +1 -0
- package/dist/looks/4.3.139/buyerEmail-CqCYa9UL.js +1 -0
- package/dist/looks/4.3.139/constants-CU_ZgyQu.js +3 -0
- package/dist/looks/4.3.139/defaults-B46SFFK4.js +2 -0
- package/dist/looks/4.3.139/dist-BWGSqtWN.js +1 -0
- package/dist/looks/4.3.139/eventStatusStream-CW5lJwsa.js +10 -0
- package/dist/looks/4.3.139/first-core-DrYq9wBy.js +151 -0
- package/dist/looks/4.3.139/first-mount.svelte-DFSLaJWm.js +1 -0
- package/dist/looks/4.3.139/first-seo-DvHuCXT6.js +1 -0
- package/dist/looks/4.3.139/first.js +1 -0
- package/dist/looks/4.3.139/full-widget-DDBk3i4U.js +2 -0
- package/dist/looks/4.3.139/gate-password-cache-D4Zls6QM.js +1 -0
- package/dist/looks/4.3.139/i18n-DRaFNYsQ.js +1 -0
- package/dist/looks/4.3.139/listing-BSaRTkxW.js +1 -0
- package/dist/looks/4.3.139/loaders.runtime-BNG8O6-A.js +1 -0
- package/dist/looks/4.3.139/looks.js +1 -0
- package/dist/looks/4.3.139/modalManager.svelte-CqQWYz9Y.js +1 -0
- package/dist/looks/4.3.139/rolldown-runtime-4tVxZq34.js +1 -0
- package/dist/looks/4.3.139/serverTotals-Bu1fAPLB.js +1 -0
- package/dist/looks/4.3.139/showcase-state-options-CpCMAKVD.js +1 -0
- package/dist/looks/4.3.139/utils-pGRhH4A-.js +1 -0
- package/dist/media-field-PW8ye6EL.js +65 -0
- package/dist/modalManager.svelte-BHE0t9q3.js +79 -0
- package/dist/multiselect-field-CmocFs5f.js +61 -0
- package/dist/navigation-B8rkS2On.js +348 -0
- package/dist/{nl-DdxH5fLm.js → nl-B1dv1lqk.js} +2 -2
- package/dist/{nl-DjFukZvI.js → nl-BObQMscG.js} +1 -2
- package/dist/{normalizers-CqGXhPZo.js → normalizers-WYh8Nr3V.js} +3 -5
- package/dist/number-field-CUD936Ai.js +126 -0
- package/dist/numeric-filter-field-BmgSYhOt.js +131 -0
- package/dist/password-field-BfvcZUi_.js +157 -0
- package/dist/phone-CVYVhLn8.js +5 -0
- package/dist/phone-field-DO0U_YZ6.js +128 -0
- package/dist/{phoneShape-DlWC17He.js → phoneShape-VqbamHOn.js} +1 -2
- package/dist/{phoneUtils-CL8tIxoM.js → phoneUtils-BhOvrS4S.js} +133 -193
- package/dist/{pixels-DO7kbZa_.js → pixels-ipedGW6i.js} +18 -24
- package/dist/{pl-B99nQZCh.js → pl-DLlM_IPo.js} +2 -2
- package/dist/{pl-COAiNJDs.js → pl-_Sbz4Ou-.js} +1 -2
- package/dist/portal-BSuo4flQ.js +64 -0
- package/dist/portalContainment-DSZUw-No.js +78 -0
- package/dist/{pt-br-jT56QM8s.js → pt-br-8V3mf7pu.js} +2 -2
- package/dist/{pt-br-_KntrgGE.js → pt-br-CpmhafxS.js} +1 -2
- package/dist/qrcode-By7ce_6K.js +5 -0
- package/dist/repeating-field-BwtJ6VS1.js +488 -0
- package/dist/richtext-field-DvLCxPvq.js +212 -0
- package/dist/{rolldown-runtime-DtPi1Y-2.js → rolldown-runtime-CYdcPHCu.js} +2 -3
- package/dist/scarcity-DfQvyhJP.js +165 -0
- package/dist/searchable-select-field-zuIqfoQM.js +138 -0
- package/dist/select-field-DNNN-a9q.js +72 -0
- package/dist/seo/HostSeoController.d.ts +13 -0
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.mjs +42 -53
- package/dist/seo/types.d.ts +4 -1
- package/dist/serverTotals-BprgDwOw.js +950 -0
- package/dist/{showcase-state-options-D5UTR7zF.js → showcase-state-options-bKRf48yz.js} +5 -5
- package/dist/sizing-Chy28j6-.js +61 -0
- package/dist/{sortable.esm--ZtTTTPp.js → sortable.esm-Wq6bSSEz.js} +29 -49
- package/dist/spacing-Y1dLegqt.js +48 -0
- package/dist/{src-DZgagYE3.js → src-BpVpi-n3.js} +256 -398
- package/dist/time-field-DmPCoppV.js +53 -0
- package/dist/to-event-card-props-KVcCJ2JF.js +245 -0
- package/dist/{tr-8IIuKwpQ.js → tr-CN8DGCc-.js} +1 -2
- package/dist/{tr-B5sI__p7.js → tr-DiUEV65j.js} +2 -2
- package/dist/transitions-DST-mWoo.js +201 -0
- package/dist/tree-picker-field-BJwSFAqm.js +344 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/typography-CKwYSv07.js +57 -0
- package/dist/{utils-S6mZHEaC.js → utils-x8YXRKvr.js} +16 -19
- package/dist/variants-B46fK2iV.js +63 -0
- package/dist/venue-BjLCg-PW.js +38 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1822 -1872
- package/dist/venue-calendar.iife.js +1 -69
- package/dist/venue-calendar.umd.js +77 -79
- package/dist/{widget-key-context-Xn6MT23x.js → widget-key-context-dHM9FiuJ.js} +34 -78
- package/dist/{zh-apNTBV5B.js → zh-BaZ_hYJV.js} +1 -2
- package/dist/{zh-DLwlt3JO.js → zh-Cej2EPQt.js} +2 -2
- package/package.json +14 -14
- package/src/lib/constants/scarcity.ts +1 -2
- package/src/lib/theme.js +222 -222
- package/dist/AddOnCard-Ck_b8lsf.js +0 -351
- package/dist/BlockPlaceholder-Cjbm5hoG.js +0 -52
- package/dist/Button-B58iYo_t.js +0 -1951
- package/dist/Button-VUB2WJ88.js +0 -178
- package/dist/Calendar-B6yNPdBl.js +0 -466
- package/dist/CalendarFoundryView-BfGZj-_Z.js +0 -21608
- package/dist/CartView-CA_wZlil.js +0 -2304
- package/dist/Checkbox-BtJwg_CF.js +0 -61
- package/dist/Checkout-C_Dn_RZI.js +0 -1878
- package/dist/CheckoutTimer-DzYupNUI.js +0 -44
- package/dist/CloseIcon-40klpaYz.js +0 -35
- package/dist/CollectionView-Dp529P99.js +0 -141
- package/dist/CropImage-D1M-bKxG.js +0 -548
- package/dist/EventPage-DGrkeBd_.js +0 -1356
- package/dist/Grid-kuP6V0GW.js +0 -89
- package/dist/Modal-rt9KVfYa.js +0 -103
- package/dist/ModalFooter-Cru7v0io.js +0 -394
- package/dist/ModalHeader-CpgkuttK.js +0 -18
- package/dist/ScarcityBadge-Dt0r5r2M.js +0 -145
- package/dist/SeriesPage-0sHD6hcq.js +0 -35
- package/dist/Spinner-e-Mg0Eyb.js +0 -19
- package/dist/Textarea-Cymhixzd.js +0 -72
- package/dist/__SKIP_NAVIGATION__-AOx8SI54.js +0 -6
- package/dist/__SKIP_PATHS__-C0ixDSSm.js +0 -6
- package/dist/action-test-id-7RXdHucW.js +0 -145
- package/dist/adapter-z116JHU0.js +0 -164
- package/dist/api-Dvn2tGdx.js +0 -489
- package/dist/checkout-libs/4.3.136/phone.js +0 -6
- package/dist/controlAria-CGb-KeRn.js +0 -30
- package/dist/createErrorGate.svelte-CZVc_TpX.js +0 -114
- package/dist/cta-CTb57V0F.js +0 -116
- package/dist/datetime-Co_z9IUQ.js +0 -410
- package/dist/defaultLabels-Q5_A1ZrR.js +0 -2558
- package/dist/defaults-BDbx3_c0.js +0 -96
- package/dist/event-transform-iOZIJrTf.js +0 -353
- package/dist/i18n-Xwod-PFp.js +0 -497
- package/dist/i18n-cI0EPfvw.js +0 -28
- package/dist/imageOptimizer-Gew5vPWh.js +0 -224
- package/dist/keyboard-DhCcdIyh.js +0 -55
- package/dist/labels-BGvfcm36.js +0 -228
- package/dist/loaders.static-xwcJwfk2.js +0 -4
- package/dist/locales/4.3.136/main/de.js +0 -1
- package/dist/locales/4.3.136/main/es.js +0 -1
- package/dist/locales/4.3.136/main/fr.js +0 -1
- package/dist/locales/4.3.136/main/id.js +0 -1
- package/dist/locales/4.3.136/main/it.js +0 -1
- package/dist/locales/4.3.136/main/ja.js +0 -1
- package/dist/locales/4.3.136/main/ko.js +0 -1
- package/dist/locales/4.3.136/main/nl.js +0 -1
- package/dist/locales/4.3.136/main/pl.js +0 -1
- package/dist/locales/4.3.136/main/pt-br.js +0 -1
- package/dist/locales/4.3.136/main/tr.js +0 -1
- package/dist/locales/4.3.136/main/zh.js +0 -1
- package/dist/look-island.svelte-BldqMkPS.js +0 -1305
- package/dist/looks/4.3.136/looks.js +0 -242
- package/dist/modalManager.svelte-Cz_6x1Qd.js +0 -37
- package/dist/navigation-D6W4anEV.js +0 -245
- package/dist/phone-D76_-CNi.js +0 -6
- package/dist/portal-D-oaEWsY.js +0 -43
- package/dist/portalContainment-CeAVqIb-.js +0 -281
- package/dist/qrcode-Cehaq1db.js +0 -6
- package/dist/serverTotals-C-S3hONA.js +0 -712
- package/dist/sizing-B7ixYndz.js +0 -216
- package/dist/to-event-card-props-CPYickue.js +0 -205
- package/dist/venue-BBoZBuhu.js +0 -13
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/de.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/es.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/id.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/it.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/zh.js +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/micdrop-wordmark-BYMG6vLR.svg +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/microphone-Ccv4r-kd.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/superuser-CZF6a5gO.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/treasury-DUE7lZzT.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/user-image-yuS4errP.svg +0 -0
|
@@ -1,548 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./Button-B58iYo_t.js";
|
|
2
|
-
import { s as t } from "./keyboard-DhCcdIyh.js";
|
|
3
|
-
import { g as n, h as r, m as i, v as a } from "./sizing-B7ixYndz.js";
|
|
4
|
-
import { t as o } from "./CloseOutline-qpVa62mu.js";
|
|
5
|
-
import { a as s, i as c, o as l, r as u, t as d } from "./imageOptimizer-Gew5vPWh.js";
|
|
6
|
-
import { a as f, d as ee, i as p, n as m, o as h, r as g, t as _ } from "./ModalFooter-Cru7v0io.js";
|
|
7
|
-
import { t as v } from "./ModalHeader-CpgkuttK.js";
|
|
8
|
-
import "svelte/internal/disclose-version";
|
|
9
|
-
import * as y from "svelte/internal/client";
|
|
10
|
-
import { MediaQuery as b } from "svelte/reactivity";
|
|
11
|
-
import { onDestroy as x, onMount as te } from "svelte";
|
|
12
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/MinusOutline.svelte
|
|
13
|
-
var S = y.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"2\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M19.5 12h-15\"></path></svg>");
|
|
14
|
-
function C(e, t) {
|
|
15
|
-
let n = y.prop(t, "size", 3, "24"), r = y.prop(t, "color", 3, "currentColor"), i = y.prop(t, "class", 3, "");
|
|
16
|
-
var a = S();
|
|
17
|
-
y.template_effect(() => {
|
|
18
|
-
y.set_class(a, 0, y.clsx(i())), y.set_attribute(a, "width", n()), y.set_attribute(a, "height", n()), y.set_attribute(a, "stroke", r());
|
|
19
|
-
}), y.append(e, a);
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalClose.svelte
|
|
23
|
-
function w(n, r) {
|
|
24
|
-
y.push(r, !0);
|
|
25
|
-
let i = { close: "Close" }, s = y.prop(r, "disabled", 3, !1), c = y.prop(r, "labels", 19, () => ({})), l = h(), u = y.derived(() => a(i, c()));
|
|
26
|
-
{
|
|
27
|
-
let i = y.derived(() => t(r.class));
|
|
28
|
-
e(n, {
|
|
29
|
-
variant: "icon",
|
|
30
|
-
size: "xs",
|
|
31
|
-
get disabled() {
|
|
32
|
-
return s();
|
|
33
|
-
},
|
|
34
|
-
get class() {
|
|
35
|
-
return y.get(i);
|
|
36
|
-
},
|
|
37
|
-
get "aria-label"() {
|
|
38
|
-
return y.get(u).close;
|
|
39
|
-
},
|
|
40
|
-
onclick: () => l.resetModal(),
|
|
41
|
-
children: (e, t) => {
|
|
42
|
-
o(e, { class: "w-3 h-3" });
|
|
43
|
-
},
|
|
44
|
-
$$slots: { default: !0 }
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
y.pop();
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region node_modules/svelte-easy-crop/dist/helpers.js
|
|
51
|
-
function T(e, t, n) {
|
|
52
|
-
return e >= t * n ? {
|
|
53
|
-
width: t * n,
|
|
54
|
-
height: t
|
|
55
|
-
} : {
|
|
56
|
-
width: e,
|
|
57
|
-
height: e / n
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function E(e, t, n, r) {
|
|
61
|
-
return {
|
|
62
|
-
x: D(e.x, t.width, n.width, r),
|
|
63
|
-
y: D(e.y, t.height, n.height, r)
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function D(e, t, n, r) {
|
|
67
|
-
let i = Math.abs(t * r / 2 - n / 2);
|
|
68
|
-
return Math.min(i, Math.max(e, -i));
|
|
69
|
-
}
|
|
70
|
-
function O(e, t) {
|
|
71
|
-
return Math.sqrt((e.y - t.y) ** 2 + (e.x - t.x) ** 2);
|
|
72
|
-
}
|
|
73
|
-
function k(e, t, n, r, i, a = !0) {
|
|
74
|
-
let o = a ? A : j, s = {
|
|
75
|
-
x: o(100, ((t.width - n.width / i) / 2 - e.x / i) / t.width * 100),
|
|
76
|
-
y: o(100, ((t.height - n.height / i) / 2 - e.y / i) / t.height * 100),
|
|
77
|
-
width: o(100, n.width / t.width * 100 / i),
|
|
78
|
-
height: o(100, n.height / t.height * 100 / i)
|
|
79
|
-
}, c = o(t.naturalWidth, s.width * t.naturalWidth / 100, !0), l = o(t.naturalHeight, s.height * t.naturalHeight / 100, !0), u = t.naturalWidth >= t.naturalHeight * r ? {
|
|
80
|
-
width: Math.round(l * r),
|
|
81
|
-
height: l
|
|
82
|
-
} : {
|
|
83
|
-
width: c,
|
|
84
|
-
height: Math.round(c / r)
|
|
85
|
-
};
|
|
86
|
-
return {
|
|
87
|
-
croppedAreaPercentages: s,
|
|
88
|
-
croppedAreaPixels: {
|
|
89
|
-
...u,
|
|
90
|
-
x: o(t.naturalWidth - u.width, s.x * t.naturalWidth / 100, !0),
|
|
91
|
-
y: o(t.naturalHeight - u.height, s.y * t.naturalHeight / 100, !0)
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function A(e, t, n = !1) {
|
|
96
|
-
return Math.min(e, Math.max(0, n ? Math.round(t) : t));
|
|
97
|
-
}
|
|
98
|
-
function j(e, t) {
|
|
99
|
-
return t;
|
|
100
|
-
}
|
|
101
|
-
function M(e, t) {
|
|
102
|
-
return {
|
|
103
|
-
x: (t.x + e.x) / 2,
|
|
104
|
-
y: (t.y + e.y) / 2
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region node_modules/svelte-easy-crop/dist/Cropper.svelte
|
|
109
|
-
var N = y.from_html("<div data-testid=\"cropper\"></div>"), P = y.from_html("<div class=\"svelte-easy-crop-container svelte-1yetlj5\" role=\"button\" data-testid=\"container\"><img class=\"svelte-easy-crop-image svelte-1yetlj5\" alt=\"\"/> <!></div>");
|
|
110
|
-
function F(e, t) {
|
|
111
|
-
y.push(t, !0);
|
|
112
|
-
let n = y.prop(t, "crop", 31, () => y.proxy({
|
|
113
|
-
x: 0,
|
|
114
|
-
y: 0
|
|
115
|
-
})), r = y.prop(t, "zoom", 15, 1), i = y.prop(t, "minZoom", 11, 1), a = y.prop(t, "maxZoom", 11, 3), o = y.prop(t, "aspect", 3, 4 / 3), s = y.prop(t, "cropSize", 3, null), c = y.prop(t, "cropShape", 3, "rect"), l = y.prop(t, "showGrid", 3, !0), u = y.prop(t, "zoomSpeed", 3, 1), d = y.prop(t, "crossOrigin", 3, null), f = y.prop(t, "restrictPosition", 3, !0), ee = y.prop(t, "tabindex", 3, void 0), p = y.state(null), m = y.state(y.proxy({
|
|
116
|
-
width: 0,
|
|
117
|
-
height: 0,
|
|
118
|
-
naturalWidth: 0,
|
|
119
|
-
naturalHeight: 0
|
|
120
|
-
})), h = y.state(null), g = y.state(null), _ = y.state(null), v = y.state(y.proxy({
|
|
121
|
-
x: 0,
|
|
122
|
-
y: 0
|
|
123
|
-
})), b = y.state(y.proxy({
|
|
124
|
-
x: 0,
|
|
125
|
-
y: 0
|
|
126
|
-
})), S = y.state(0), C = y.state(null), w = y.state(null);
|
|
127
|
-
te(() => {
|
|
128
|
-
y.get(_) && y.get(_).complete && j(), y.get(h) && (y.get(h).addEventListener("gesturestart", D), y.get(h).addEventListener("gesturechange", D));
|
|
129
|
-
}), x(() => {
|
|
130
|
-
y.get(h) && (y.get(h).removeEventListener("gesturestart", D), y.get(h).removeEventListener("gesturechange", D)), A();
|
|
131
|
-
});
|
|
132
|
-
let D = (e) => e.preventDefault(), A = () => {
|
|
133
|
-
typeof document < "u" && (document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", G), document.removeEventListener("touchmove", H), document.removeEventListener("touchend", G));
|
|
134
|
-
}, j = () => {
|
|
135
|
-
I(), Z();
|
|
136
|
-
}, F = () => s() ? s().width / s().height : o(), I = () => {
|
|
137
|
-
y.get(_) && (y.set(m, {
|
|
138
|
-
width: y.get(_).width,
|
|
139
|
-
height: y.get(_).height,
|
|
140
|
-
naturalWidth: y.get(_).naturalWidth,
|
|
141
|
-
naturalHeight: y.get(_).naturalHeight
|
|
142
|
-
}, !0), y.set(p, s() ? s() : T(y.get(_).width, y.get(_).height, o()), !0)), y.get(h) && y.set(g, y.get(h).getBoundingClientRect(), !0);
|
|
143
|
-
}, L = (e) => ({
|
|
144
|
-
x: Number(e.clientX),
|
|
145
|
-
y: Number(e.clientY)
|
|
146
|
-
}), R = (e) => ({
|
|
147
|
-
x: Number(e.clientX),
|
|
148
|
-
y: Number(e.clientY)
|
|
149
|
-
}), z = (e) => {
|
|
150
|
-
e.preventDefault(), document.addEventListener("mousemove", B), document.addEventListener("mouseup", G), U(L(e));
|
|
151
|
-
}, B = (e) => W(L(e)), V = (e) => {
|
|
152
|
-
e.preventDefault(), document.addEventListener("touchmove", H, { passive: !1 }), document.addEventListener("touchend", G), e.touches.length === 2 ? K(e) : e.touches.length === 1 && U(R(e.touches[0]));
|
|
153
|
-
}, H = (e) => {
|
|
154
|
-
e.preventDefault(), e.touches.length === 2 ? q(e) : e.touches.length === 1 && W(R(e.touches[0]));
|
|
155
|
-
}, U = ({ x: e, y: t }) => {
|
|
156
|
-
y.set(v, {
|
|
157
|
-
x: e,
|
|
158
|
-
y: t
|
|
159
|
-
}, !0), y.set(b, {
|
|
160
|
-
x: n().x,
|
|
161
|
-
y: n().y
|
|
162
|
-
}, !0);
|
|
163
|
-
}, W = ({ x: e, y: t }) => {
|
|
164
|
-
y.get(C) && window.cancelAnimationFrame(y.get(C)), y.set(C, window.requestAnimationFrame(() => {
|
|
165
|
-
if (e === void 0 || t === void 0 || !y.get(p)) return;
|
|
166
|
-
let i = e - y.get(v).x, a = t - y.get(v).y, o = {
|
|
167
|
-
x: y.get(b).x + i,
|
|
168
|
-
y: y.get(b).y + a
|
|
169
|
-
};
|
|
170
|
-
n(f() ? E(o, y.get(m), y.get(p), r()) : o);
|
|
171
|
-
}), !0);
|
|
172
|
-
}, G = () => {
|
|
173
|
-
A(), Z();
|
|
174
|
-
}, K = (e) => {
|
|
175
|
-
let t = R(e.touches[0]), n = R(e.touches[1]);
|
|
176
|
-
y.set(S, O(t, n), !0), U(M(t, n));
|
|
177
|
-
}, q = (e) => {
|
|
178
|
-
let t = R(e.touches[0]), n = R(e.touches[1]), i = M(t, n);
|
|
179
|
-
W(i), y.get(w) && window.cancelAnimationFrame(y.get(w)), y.set(w, window.requestAnimationFrame(() => {
|
|
180
|
-
let e = O(t, n), a = r() * (e / y.get(S));
|
|
181
|
-
X(a, i), y.set(S, e, !0);
|
|
182
|
-
}), !0);
|
|
183
|
-
}, J = (e) => {
|
|
184
|
-
e.preventDefault();
|
|
185
|
-
let t = L(e), n = r() - e.deltaY * u() / 200;
|
|
186
|
-
X(n, t);
|
|
187
|
-
}, ne = ({ x: e, y: t }) => {
|
|
188
|
-
if (!y.get(g)) throw Error("The Cropper is not mounted");
|
|
189
|
-
return {
|
|
190
|
-
x: y.get(g).width / 2 - (e - y.get(g).left),
|
|
191
|
-
y: y.get(g).height / 2 - (t - y.get(g).top)
|
|
192
|
-
};
|
|
193
|
-
}, Y = ({ x: e, y: t }) => ({
|
|
194
|
-
x: (e + n().x) / r(),
|
|
195
|
-
y: (t + n().y) / r()
|
|
196
|
-
}), X = (e, t) => {
|
|
197
|
-
if (!y.get(p)) return;
|
|
198
|
-
let o = ne(t), s = Y(o);
|
|
199
|
-
r(Math.min(a(), Math.max(e, i())));
|
|
200
|
-
let c = {
|
|
201
|
-
x: s.x * r() - o.x,
|
|
202
|
-
y: s.y * r() - o.y
|
|
203
|
-
};
|
|
204
|
-
n(f() ? E(c, y.get(m), y.get(p), r()) : c);
|
|
205
|
-
}, Z = () => {
|
|
206
|
-
if (!y.get(p) || y.get(p).width === 0) return;
|
|
207
|
-
let { croppedAreaPercentages: e, croppedAreaPixels: i } = k(f() ? E(n(), y.get(m), y.get(p), r()) : n(), y.get(m), y.get(p), F(), r(), f());
|
|
208
|
-
t.oncropcomplete?.({
|
|
209
|
-
percent: e,
|
|
210
|
-
pixels: i
|
|
211
|
-
});
|
|
212
|
-
};
|
|
213
|
-
y.user_effect(() => {
|
|
214
|
-
y.get(_) && y.set(p, s() ? s() : T(y.get(_).width, y.get(_).height, o()), !0);
|
|
215
|
-
}), y.user_effect(() => {
|
|
216
|
-
r() && Z();
|
|
217
|
-
});
|
|
218
|
-
let re = (e) => {
|
|
219
|
-
y.user_effect(() => (e.addEventListener("touchstart", V), e.addEventListener("mousedown", z), e.addEventListener("wheel", J, { passive: !1 }), () => {
|
|
220
|
-
e.removeEventListener("touchstart", V), e.removeEventListener("mousedown", z), e.removeEventListener("wheel", J);
|
|
221
|
-
}));
|
|
222
|
-
};
|
|
223
|
-
var Q = P();
|
|
224
|
-
y.event("resize", y.window, I);
|
|
225
|
-
var $ = y.child(Q);
|
|
226
|
-
y.bind_this($, (e) => y.set(_, e), () => y.get(_));
|
|
227
|
-
var ie = y.sibling($, 2), ae = (e) => {
|
|
228
|
-
var t = N();
|
|
229
|
-
let n;
|
|
230
|
-
y.template_effect(() => {
|
|
231
|
-
n = y.set_class(t, 1, "svelte-easy-crop-area svelte-1yetlj5", null, n, {
|
|
232
|
-
"svelte-easy-crop-round": c() === "round",
|
|
233
|
-
"svelte-easy-crop-grid": l()
|
|
234
|
-
}), y.set_style(t, `width: ${y.get(p).width ?? ""}px; height: ${y.get(p).height ?? ""}px;`);
|
|
235
|
-
}), y.append(e, t);
|
|
236
|
-
};
|
|
237
|
-
y.if(ie, (e) => {
|
|
238
|
-
y.get(p) && e(ae);
|
|
239
|
-
}), y.reset(Q), y.bind_this(Q, (e) => y.set(h, e), () => y.get(h)), y.action(Q, (e) => re?.(e)), y.template_effect(() => {
|
|
240
|
-
y.set_attribute(Q, "tabindex", ee()), y.set_attribute($, "src", t.image), y.set_style($, `transform: translate(${n().x ?? ""}px, ${n().y ?? ""}px) scale(${r() ?? ""});`), y.set_attribute($, "crossorigin", d());
|
|
241
|
-
}), y.event("load", $, j), y.replay_events($), y.append(e, Q), y.pop();
|
|
242
|
-
}
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region node_modules/svelte-easy-crop/dist/index.js
|
|
245
|
-
var I = F, L = y.from_html("<div class=\"absolute inset-0 flex items-center justify-center bg-bg-tertiary z-sticky\"><span> </span></div>"), R = y.from_html("<p> </p>"), z = y.from_html("<div><!> <!></div> <div class=\"flex-1\"><p> </p> <div class=\"flex items-center justify-center gap-3 max-w-xs mx-auto\"><!> <input type=\"range\" min=\"1\" max=\"3\" step=\"0.1\" class=\"flex-1 w-full h-2 bg-bg-tertiary rounded-lg appearance-none cursor-pointer accent-primary\" data-purpose=\"ui-only\"/> <!></div> <!></div>", 1), B = y.from_html("<!> <!>", 1), V = y.from_html("<div class=\"flex gap-3\"><!></div>"), H = y.from_html("<div class=\"flex flex-col gap-4 landscape:flex-row landscape:items-center landscape:gap-6\"><!></div>"), U = y.from_html("<!> <!> <!>", 1);
|
|
246
|
-
function W(t, o) {
|
|
247
|
-
y.push(o, !0);
|
|
248
|
-
let h = (t, n = y.noop) => {
|
|
249
|
-
var r = z(), a = y.first_child(r), o = y.child(a), s = (e) => {
|
|
250
|
-
var t = L(), n = y.child(t), r = y.child(n, !0);
|
|
251
|
-
y.reset(n), y.reset(t), y.template_effect(() => {
|
|
252
|
-
y.set_class(n, 1, y.clsx(i.smMuted)), y.set_text(r, y.get(N).loading);
|
|
253
|
-
}), y.append(e, t);
|
|
254
|
-
};
|
|
255
|
-
y.if(o, (e) => {
|
|
256
|
-
y.get(G) && e(s);
|
|
257
|
-
}), I(y.sibling(o, 2), {
|
|
258
|
-
get image() {
|
|
259
|
-
return D();
|
|
260
|
-
},
|
|
261
|
-
aspect: 1,
|
|
262
|
-
minZoom: 1,
|
|
263
|
-
maxZoom: 3,
|
|
264
|
-
showGrid: !0,
|
|
265
|
-
oncropcomplete: J,
|
|
266
|
-
get crop() {
|
|
267
|
-
return y.get(P);
|
|
268
|
-
},
|
|
269
|
-
set crop(e) {
|
|
270
|
-
y.set(P, e, !0);
|
|
271
|
-
},
|
|
272
|
-
get zoom() {
|
|
273
|
-
return y.get(F);
|
|
274
|
-
},
|
|
275
|
-
set zoom(e) {
|
|
276
|
-
y.set(F, e, !0);
|
|
277
|
-
}
|
|
278
|
-
}), y.reset(a);
|
|
279
|
-
var c = y.sibling(a, 2), u = y.child(c), d = y.child(u, !0);
|
|
280
|
-
y.reset(u);
|
|
281
|
-
var f = y.sibling(u, 2), p = y.child(f);
|
|
282
|
-
e(p, {
|
|
283
|
-
variant: "outline",
|
|
284
|
-
size: "sm",
|
|
285
|
-
class: "rounded-full! w-9! h-9! p-0! shrink-0",
|
|
286
|
-
onclick: () => y.set(F, Math.max(1, y.get(F) - .2), !0),
|
|
287
|
-
get "aria-label"() {
|
|
288
|
-
return y.get(N).zoomOut;
|
|
289
|
-
},
|
|
290
|
-
children: (e, t) => {
|
|
291
|
-
C(e, { class: "w-4 h-4" });
|
|
292
|
-
},
|
|
293
|
-
$$slots: { default: !0 }
|
|
294
|
-
});
|
|
295
|
-
var m = y.sibling(p, 2);
|
|
296
|
-
y.remove_input_defaults(m);
|
|
297
|
-
var h = y.sibling(m, 2);
|
|
298
|
-
e(h, {
|
|
299
|
-
variant: "outline",
|
|
300
|
-
size: "sm",
|
|
301
|
-
class: "rounded-full! w-9! h-9! p-0! shrink-0",
|
|
302
|
-
onclick: () => y.set(F, Math.min(3, y.get(F) + .2), !0),
|
|
303
|
-
get "aria-label"() {
|
|
304
|
-
return y.get(N).zoomIn;
|
|
305
|
-
},
|
|
306
|
-
children: (e, t) => {
|
|
307
|
-
l(e, { class: "w-4 h-4" });
|
|
308
|
-
},
|
|
309
|
-
$$slots: { default: !0 }
|
|
310
|
-
}), y.reset(f);
|
|
311
|
-
var g = y.sibling(f, 2);
|
|
312
|
-
ee(g, {
|
|
313
|
-
role: "alert",
|
|
314
|
-
politeness: "assertive",
|
|
315
|
-
visible: !0,
|
|
316
|
-
children: (e, t) => {
|
|
317
|
-
var n = y.comment(), r = y.first_child(n), a = (e) => {
|
|
318
|
-
var t = R(), n = y.child(t, !0);
|
|
319
|
-
y.reset(t), y.template_effect(() => {
|
|
320
|
-
y.set_class(t, 1, `${i.body} text-accent-danger text-center mt-4`), y.set_text(n, k());
|
|
321
|
-
}), y.append(e, t);
|
|
322
|
-
};
|
|
323
|
-
y.if(r, (e) => {
|
|
324
|
-
k() && e(a);
|
|
325
|
-
}), y.append(e, n);
|
|
326
|
-
},
|
|
327
|
-
$$slots: { default: !0 }
|
|
328
|
-
}), y.reset(c), y.template_effect(() => {
|
|
329
|
-
y.set_class(a, 1, y.clsx(n())), y.set_class(u, 1, `${i.smMuted} text-center mb-4`), y.set_text(d, y.get(N).dragToPosition), y.set_attribute(m, "aria-label", y.get(N).zoomLevel);
|
|
330
|
-
}), y.bind_value(m, () => y.get(F), (e) => y.set(F, e)), y.append(t, r);
|
|
331
|
-
}, x = (t, n = y.noop) => {
|
|
332
|
-
var r = B(), i = y.first_child(r);
|
|
333
|
-
{
|
|
334
|
-
let t = y.derived(() => y.get(K) || O());
|
|
335
|
-
e(i, {
|
|
336
|
-
type: "button",
|
|
337
|
-
variant: "alternative",
|
|
338
|
-
size: "md",
|
|
339
|
-
get class() {
|
|
340
|
-
return n();
|
|
341
|
-
},
|
|
342
|
-
onclick: Y,
|
|
343
|
-
get disabled() {
|
|
344
|
-
return y.get(t);
|
|
345
|
-
},
|
|
346
|
-
children: (e, t) => {
|
|
347
|
-
y.next();
|
|
348
|
-
var n = y.text();
|
|
349
|
-
y.template_effect(() => y.set_text(n, y.get(N).cancel)), y.append(e, n);
|
|
350
|
-
},
|
|
351
|
-
$$slots: { default: !0 }
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
var a = y.sibling(i, 2);
|
|
355
|
-
{
|
|
356
|
-
let t = y.derived(() => y.get(G) || y.get(K) || O());
|
|
357
|
-
e(a, {
|
|
358
|
-
type: "button",
|
|
359
|
-
size: "md",
|
|
360
|
-
get class() {
|
|
361
|
-
return n();
|
|
362
|
-
},
|
|
363
|
-
onclick: ne,
|
|
364
|
-
get disabled() {
|
|
365
|
-
return y.get(t);
|
|
366
|
-
},
|
|
367
|
-
children: (e, t) => {
|
|
368
|
-
var n = y.comment(), r = y.first_child(n), i = (e) => {
|
|
369
|
-
var t = y.text();
|
|
370
|
-
y.template_effect(() => y.set_text(t, y.get(N).uploading)), y.append(e, t);
|
|
371
|
-
}, a = (e) => {
|
|
372
|
-
var t = y.text();
|
|
373
|
-
y.template_effect(() => y.set_text(t, y.get(N).save)), y.append(e, t);
|
|
374
|
-
};
|
|
375
|
-
y.if(r, (e) => {
|
|
376
|
-
y.get(K) || O() ? e(i) : e(a, -1);
|
|
377
|
-
}), y.append(e, n);
|
|
378
|
-
},
|
|
379
|
-
$$slots: { default: !0 }
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
y.append(t, r);
|
|
383
|
-
}, te = n("CropImage"), S = new b("(max-width: 767px), (max-height: 500px)", !1), T = {
|
|
384
|
-
cropImageTitle: "Crop image",
|
|
385
|
-
loading: "Loading...",
|
|
386
|
-
dragToPosition: "Drag to position. Pinch or use slider to zoom.",
|
|
387
|
-
cancel: "Cancel",
|
|
388
|
-
uploading: "Uploading...",
|
|
389
|
-
save: "Save",
|
|
390
|
-
closeModal: "Close modal",
|
|
391
|
-
zoomOut: "Zoom out",
|
|
392
|
-
zoomIn: "Zoom in",
|
|
393
|
-
zoomLevel: "Zoom level",
|
|
394
|
-
cropFailed: "Couldn't read that photo. Please try a different one."
|
|
395
|
-
}, E = y.prop(o, "showModal", 15, !1), D = y.prop(o, "imageSrc", 15, ""), O = y.prop(o, "isUploadingImage", 3, !1), k = y.prop(o, "error", 15, ""), A = y.prop(o, "labels", 19, () => ({}));
|
|
396
|
-
o.onSave && !o.onsave && r("CropImage: prop \"onSave\" is deprecated. Use \"onsave\" instead."), o.onCancel && !o.oncancel && r("CropImage: prop \"onCancel\" is deprecated. Use \"oncancel\" instead.");
|
|
397
|
-
let j = y.derived(() => o.onsave ?? o.onSave ?? (() => {})), M = y.derived(() => o.oncancel ?? o.onCancel ?? (() => {})), N = y.derived(() => a(T, A())), P = y.state(y.proxy({
|
|
398
|
-
x: 0,
|
|
399
|
-
y: 0
|
|
400
|
-
})), F = y.state(1), W = y.state(null), G = y.state(!0), K = y.state(!1), q = D();
|
|
401
|
-
y.user_effect(() => {
|
|
402
|
-
E() && D() && (y.set(P, {
|
|
403
|
-
x: 0,
|
|
404
|
-
y: 0
|
|
405
|
-
}, !0), y.set(F, 1), y.set(W, null), y.set(G, !0), y.set(K, !1), D() !== q && (q = D(), k("")));
|
|
406
|
-
});
|
|
407
|
-
function J(e) {
|
|
408
|
-
y.set(W, e.pixels, !0), y.set(G, !1);
|
|
409
|
-
}
|
|
410
|
-
async function ne() {
|
|
411
|
-
if (!(!y.get(W) || y.get(K))) {
|
|
412
|
-
y.set(K, !0), k("");
|
|
413
|
-
try {
|
|
414
|
-
let e = await X(D(), y.get(W));
|
|
415
|
-
y.get(j)(e);
|
|
416
|
-
} catch (e) {
|
|
417
|
-
y.set(K, !1), k(y.get(N).cropFailed), te.error("Crop failed:", e);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
function Y() {
|
|
422
|
-
E(!1), D(""), y.set(P, {
|
|
423
|
-
x: 0,
|
|
424
|
-
y: 0
|
|
425
|
-
}, !0), y.set(F, 1), y.set(W, null), y.set(K, !1), k(""), y.get(M)();
|
|
426
|
-
}
|
|
427
|
-
async function X(e, t) {
|
|
428
|
-
let n = await d(e), r = document.createElement("canvas"), i = r.getContext("2d"), a = 1e3;
|
|
429
|
-
r.width = a, r.height = a, i.imageSmoothingEnabled = !0, i.imageSmoothingQuality = "high", i.drawImage(n, t.x, t.y, t.width, t.height, 0, 0, a, a);
|
|
430
|
-
let o = u(), s = o ? "image/webp" : "image/jpeg", c = o ? .8 : .85, l = o ? "webp" : "jpg";
|
|
431
|
-
return new Promise((e) => {
|
|
432
|
-
r.toBlob((t) => {
|
|
433
|
-
e(new File([t], `cropped-image.${l}`, { type: s }));
|
|
434
|
-
}, s, c);
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
var Z = y.comment(), re = y.first_child(Z), Q = (e) => {
|
|
438
|
-
s(e, {
|
|
439
|
-
get open() {
|
|
440
|
-
return E();
|
|
441
|
-
},
|
|
442
|
-
get title() {
|
|
443
|
-
return y.get(N).cropImageTitle;
|
|
444
|
-
},
|
|
445
|
-
alwaysSheet: !0,
|
|
446
|
-
get "data-testid"() {
|
|
447
|
-
return o["data-testid"];
|
|
448
|
-
},
|
|
449
|
-
onclose: () => {
|
|
450
|
-
!y.get(K) && !O() && Y();
|
|
451
|
-
},
|
|
452
|
-
actions: (e) => {
|
|
453
|
-
var t = V(), n = y.child(t);
|
|
454
|
-
x(n, () => "flex-1"), y.reset(t), y.append(e, t);
|
|
455
|
-
},
|
|
456
|
-
children: (e, t) => {
|
|
457
|
-
var n = H(), r = y.child(n);
|
|
458
|
-
h(r, () => "relative w-full max-w-[50dvh] landscape:max-w-[35dvh] shrink-0 mx-auto aspect-square bg-bg-secondary rounded-lg overflow-hidden"), y.reset(n), y.append(e, n);
|
|
459
|
-
},
|
|
460
|
-
$$slots: {
|
|
461
|
-
actions: !0,
|
|
462
|
-
default: !0
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
}, $ = (e) => {
|
|
466
|
-
{
|
|
467
|
-
let t = y.derived(() => y.get(K) || O());
|
|
468
|
-
f(e, {
|
|
469
|
-
get open() {
|
|
470
|
-
return E();
|
|
471
|
-
},
|
|
472
|
-
variant: "dialog",
|
|
473
|
-
get persistent() {
|
|
474
|
-
return y.get(t);
|
|
475
|
-
},
|
|
476
|
-
get "data-testid"() {
|
|
477
|
-
return o["data-testid"];
|
|
478
|
-
},
|
|
479
|
-
oncancel: Y,
|
|
480
|
-
children: (e, t) => {
|
|
481
|
-
var n = B(), r = y.first_child(n);
|
|
482
|
-
p(r, {});
|
|
483
|
-
var a = y.sibling(r, 2);
|
|
484
|
-
g(a, {
|
|
485
|
-
class: "max-w-lg",
|
|
486
|
-
children: (e, t) => {
|
|
487
|
-
var n = U(), r = y.first_child(n);
|
|
488
|
-
v(r, {
|
|
489
|
-
class: "flex items-center justify-between gap-3 border-b border-border pb-4",
|
|
490
|
-
children: (e, t) => {
|
|
491
|
-
var n = B(), r = y.first_child(n);
|
|
492
|
-
c(r, {
|
|
493
|
-
get class() {
|
|
494
|
-
return i.h2;
|
|
495
|
-
},
|
|
496
|
-
children: (e, t) => {
|
|
497
|
-
y.next();
|
|
498
|
-
var n = y.text();
|
|
499
|
-
y.template_effect(() => y.set_text(n, y.get(N).cropImageTitle)), y.append(e, n);
|
|
500
|
-
},
|
|
501
|
-
$$slots: { default: !0 }
|
|
502
|
-
});
|
|
503
|
-
var a = y.sibling(r, 2);
|
|
504
|
-
{
|
|
505
|
-
let e = y.derived(() => y.get(K) || O()), t = y.derived(() => ({ close: y.get(N).closeModal }));
|
|
506
|
-
w(a, {
|
|
507
|
-
get disabled() {
|
|
508
|
-
return y.get(e);
|
|
509
|
-
},
|
|
510
|
-
get labels() {
|
|
511
|
-
return y.get(t);
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
y.append(e, n);
|
|
516
|
-
},
|
|
517
|
-
$$slots: { default: !0 }
|
|
518
|
-
});
|
|
519
|
-
var a = y.sibling(r, 2);
|
|
520
|
-
m(a, {
|
|
521
|
-
class: "space-y-4",
|
|
522
|
-
children: (e, t) => {
|
|
523
|
-
h(e, () => "relative w-full aspect-square sm:aspect-[4/3] max-h-80 sm:max-h-96 bg-bg-secondary rounded-lg overflow-hidden");
|
|
524
|
-
},
|
|
525
|
-
$$slots: { default: !0 }
|
|
526
|
-
});
|
|
527
|
-
var o = y.sibling(a, 2);
|
|
528
|
-
_(o, {
|
|
529
|
-
class: "border-t border-border pt-4",
|
|
530
|
-
children: (e, t) => {
|
|
531
|
-
x(e, () => "");
|
|
532
|
-
},
|
|
533
|
-
$$slots: { default: !0 }
|
|
534
|
-
}), y.append(e, n);
|
|
535
|
-
},
|
|
536
|
-
$$slots: { default: !0 }
|
|
537
|
-
}), y.append(e, n);
|
|
538
|
-
},
|
|
539
|
-
$$slots: { default: !0 }
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
y.if(re, (e) => {
|
|
544
|
-
S.current ? e(Q) : e($, -1);
|
|
545
|
-
}), y.append(t, Z), y.pop();
|
|
546
|
-
}
|
|
547
|
-
//#endregion
|
|
548
|
-
export { W as default };
|