@salla.sa/twilight-components 2.14.357 → 2.14.358
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/dist/cjs/{filepond-CVZ-BhRy.js → filepond-C8Iv03Xw.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-2ShKuqPr.js → filepond-plugin-file-poster-6G0m20wb.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BFWtiLWL.js → filepond-plugin-file-validate-size-BrrvFDrX.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BzqK-hKY.js → filepond-plugin-file-validate-type-BAIli6YR.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Bcnu5eSZ.js → filepond-plugin-image-edit-CLI8O8iN.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CCnsEJ8x.js → filepond-plugin-image-exif-orientation-D6pllZWx.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-kn_ZJZXi.js → filepond-plugin-image-preview-CkkozCc3.js} +1 -1
- package/dist/cjs/{index-B-qAr7bS.js → index-CiABtziQ.js} +1 -1
- package/dist/cjs/{index-CF5bZnDB.js → index-D8CYdUGa.js} +6 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +57 -47
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DuWLLDIZ.js → vanilla-picker-AGoPnWFt.js} +1 -1
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +76 -46
- package/dist/components/index.js +2 -2
- package/dist/components/salla-login-modal.js +1 -358
- package/dist/components/salla-login-modal2.js +363 -0
- package/dist/components/salla-user-menu.js +76 -47
- package/dist/esm/{filepond-BInIwZYj.js → filepond-BbukY3G5.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DRu2Mi6P.js → filepond-plugin-file-poster-DIB4KhNs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DO5zxC4X.js → filepond-plugin-file-validate-size-C2La5co0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BwxMZ28-.js → filepond-plugin-file-validate-type-s5WI8DP4.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CwEZfbKE.js → filepond-plugin-image-edit-BdW45IS3.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-B2YJJ8ni.js → filepond-plugin-image-exif-orientation-C12lmnIq.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BdiNpvoD.js → filepond-plugin-image-preview-DC2SjiV6.js} +1 -1
- package/dist/esm/{index-BKsC0x_d.js → index-COH2oGKJ.js} +1 -1
- package/dist/esm/{index-DhtEPVv1.js → index-CTOqXLNX.js} +6 -6
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +57 -47
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-9y3LOKrc.js → vanilla-picker-xnlQPhDH.js} +1 -1
- package/dist/twilight/p-030cfa72.entry.js +4 -0
- package/dist/twilight/{p-12c7abc7.entry.js → p-08085ebd.entry.js} +1 -1
- package/dist/twilight/{p-0523a5ef.entry.js → p-1a18938a.entry.js} +1 -1
- package/dist/twilight/{p-63fb4f6a.entry.js → p-1b706044.entry.js} +1 -1
- package/dist/twilight/{p-9902b843.entry.js → p-25d51430.entry.js} +1 -1
- package/dist/twilight/{p-3071d452.entry.js → p-26c0b94a.entry.js} +1 -1
- package/dist/twilight/{p-f47c7d7e.entry.js → p-26cc636d.entry.js} +1 -1
- package/dist/twilight/{p-8318e5a4.entry.js → p-2f9c2638.entry.js} +1 -1
- package/dist/twilight/{p-da2a9d5e.entry.js → p-3306aeb9.entry.js} +1 -1
- package/dist/twilight/{p-9da9a96e.entry.js → p-331cc73d.entry.js} +1 -1
- package/dist/twilight/{p-83a9dae4.entry.js → p-341b1773.entry.js} +1 -1
- package/dist/twilight/{p-ca414718.entry.js → p-342648a6.entry.js} +1 -1
- package/dist/twilight/{p-de3f8afc.entry.js → p-3cfcccd4.entry.js} +1 -1
- package/dist/twilight/{p-06af1120.entry.js → p-3d953eaa.entry.js} +1 -1
- package/dist/twilight/{p-56b5658d.entry.js → p-40fe2fdb.entry.js} +1 -1
- package/dist/twilight/{p-47bc1b0e.entry.js → p-4288fffb.entry.js} +1 -1
- package/dist/twilight/{p-378f9cb2.entry.js → p-45cfc834.entry.js} +1 -1
- package/dist/twilight/{p-17a49368.entry.js → p-4d8b8554.entry.js} +1 -1
- package/dist/twilight/{p-00c8b870.entry.js → p-53fcf35b.entry.js} +1 -1
- package/dist/twilight/{p-dbd7bab7.entry.js → p-54a1b32c.entry.js} +1 -1
- package/dist/twilight/{p-659378d1.entry.js → p-5c57f6a7.entry.js} +1 -1
- package/dist/twilight/{p-706fc07a.entry.js → p-605cf513.entry.js} +1 -1
- package/dist/twilight/{p-a5094c62.entry.js → p-61ab5693.entry.js} +1 -1
- package/dist/twilight/{p-2ab31b93.entry.js → p-66d0fc30.entry.js} +1 -1
- package/dist/twilight/{p-fd9858a0.entry.js → p-680a8a26.entry.js} +1 -1
- package/dist/twilight/{p-478da0db.entry.js → p-6b166062.entry.js} +1 -1
- package/dist/twilight/{p-6aa0b298.entry.js → p-6be952b4.entry.js} +1 -1
- package/dist/twilight/{p-b350c896.entry.js → p-6cf2ffe8.entry.js} +1 -1
- package/dist/twilight/{p-df17bdfb.entry.js → p-707bbd12.entry.js} +1 -1
- package/dist/twilight/{p-476a002f.entry.js → p-73f89ae0.entry.js} +1 -1
- package/dist/twilight/{p-5a691df0.entry.js → p-770b684e.entry.js} +1 -1
- package/dist/twilight/{p-67656ed6.entry.js → p-77380609.entry.js} +1 -1
- package/dist/twilight/{p-04871dde.entry.js → p-7fc1087d.entry.js} +1 -1
- package/dist/twilight/{p-a37b4382.entry.js → p-81148c5c.entry.js} +1 -1
- package/dist/twilight/{p-e13bcda5.entry.js → p-852f653a.entry.js} +1 -1
- package/dist/twilight/{p-6b48b78c.entry.js → p-881d81da.entry.js} +1 -1
- package/dist/twilight/{p-18c1aa82.entry.js → p-8b251669.entry.js} +1 -1
- package/dist/twilight/{p-68f77bf9.entry.js → p-8b444008.entry.js} +1 -1
- package/dist/twilight/{p-8e3ab101.entry.js → p-8c87fc89.entry.js} +1 -1
- package/dist/twilight/{p-ddf1eb8e.entry.js → p-8d380340.entry.js} +1 -1
- package/dist/twilight/{p-c623dae3.entry.js → p-9247e41a.entry.js} +1 -1
- package/dist/twilight/{p-c50ea722.entry.js → p-953dc2c7.entry.js} +1 -1
- package/dist/twilight/{p-C5JBfwX3.js → p-BTHq9O3t.js} +1 -1
- package/dist/twilight/{p-9kdhmfl0.js → p-B_QZ5Uh8.js} +2 -2
- package/dist/twilight/{p-DhtEPVv1.js → p-CTOqXLNX.js} +1 -1
- package/dist/twilight/{p-BnEemU3K.js → p-CUP6xpY8.js} +1 -1
- package/dist/twilight/{p-Oa-SLesW.js → p-CVhlRyCZ.js} +1 -1
- package/dist/twilight/p-CeLw8fUj.js +9 -0
- package/dist/twilight/{p-D5Ctrxqk.js → p-CfxXglSG.js} +1 -1
- package/dist/twilight/{p-ChWBy7Mi.js → p-D-swSluC.js} +1 -1
- package/dist/twilight/{p-sTgCEptc.js → p-DneV5uAu.js} +1 -1
- package/dist/twilight/{p-c6abc912.entry.js → p-a1fa152d.entry.js} +1 -1
- package/dist/twilight/{p-e61517dd.entry.js → p-a2536d37.entry.js} +1 -1
- package/dist/twilight/{p-ead767db.entry.js → p-a44e8395.entry.js} +1 -1
- package/dist/twilight/{p-89f4a500.entry.js → p-a6f29cf5.entry.js} +1 -1
- package/dist/twilight/{p-4d200466.entry.js → p-a84a4855.entry.js} +1 -1
- package/dist/twilight/{p-e0506d5f.entry.js → p-aa2ba103.entry.js} +1 -1
- package/dist/twilight/{p-6c9a3556.entry.js → p-aea1ea51.entry.js} +1 -1
- package/dist/twilight/{p-d597ea5a.entry.js → p-b02413c6.entry.js} +1 -1
- package/dist/twilight/{p-e0f3dcc1.entry.js → p-b8738435.entry.js} +1 -1
- package/dist/twilight/{p-3874791d.entry.js → p-b95b8e92.entry.js} +1 -1
- package/dist/twilight/{p-0317ca56.entry.js → p-bb333ec8.entry.js} +1 -1
- package/dist/twilight/{p-c2167627.entry.js → p-bff05b48.entry.js} +1 -1
- package/dist/twilight/{p-af829f6e.entry.js → p-ca96c86b.entry.js} +1 -1
- package/dist/twilight/{p-a1853dac.entry.js → p-cb619ea6.entry.js} +1 -1
- package/dist/twilight/{p-93e72677.entry.js → p-cec6fce5.entry.js} +1 -1
- package/dist/twilight/{p-e6de17d2.entry.js → p-d3852cc4.entry.js} +1 -1
- package/dist/twilight/{p-8b8442ec.entry.js → p-d8affce0.entry.js} +1 -1
- package/dist/twilight/{p-0108db0e.entry.js → p-dcb6403c.entry.js} +1 -1
- package/dist/twilight/{p-3253d74f.entry.js → p-e9619d27.entry.js} +1 -1
- package/dist/twilight/{p-e0f56ef8.entry.js → p-ed8ce802.entry.js} +1 -1
- package/dist/twilight/{p-adbb3dcd.entry.js → p-f81009de.entry.js} +1 -1
- package/dist/twilight/{p-135b2262.entry.js → p-f81e3982.entry.js} +1 -1
- package/dist/twilight/{p-b01b370a.entry.js → p-fbc8d862.entry.js} +1 -1
- package/dist/twilight/{p-5636bdc5.entry.js → p-fc958ce6.entry.js} +1 -1
- package/dist/twilight/{p-DucyXwUa.js → p-kA0d1JcV.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +7 -1
- package/dist/types/components.d.ts +10 -0
- package/package.json +5 -5
- package/dist/twilight/p-a798090d.entry.js +0 -4
- package/dist/twilight/p-upVSO4PR.js +0 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{d as e}from"./p-
|
|
4
|
+
import{d as e}from"./p-CTOqXLNX.js";function E(e,E){return E.forEach((function(E){E&&"string"!=typeof E&&!Array.isArray(E)&&Object.keys(E).forEach((function(i){if("default"!==i&&!(i in e)){var _=Object.getOwnPropertyDescriptor(E,i);Object.defineProperty(e,i,_.get?_:{enumerable:!0,get:function(){return E[i]}})}}))})),Object.freeze(e)}var i,_,l={exports:{}},n=i?l.exports:(i=1,l.exports=(_=function(e){var E=e.addFilter,i=e.utils,_=i.Type,l=i.replaceInString,n=i.toNaturalFileSize;return E("ALLOW_HOPPER_ITEM",(function(e,E){var i=E.query;if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var _=i("GET_MAX_FILE_SIZE");if(null!==_&&e.size>_)return!1;var l=i("GET_MIN_FILE_SIZE");return!(null!==l&&e.size<l)})),E("LOAD_FILE",(function(e,E){var i=E.query;return new Promise((function(E,_){if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return E(e);var t=i("GET_FILE_VALIDATE_SIZE_FILTER");if(t&&!t(e))return E(e);var I=i("GET_MAX_FILE_SIZE");if(null!==I&&e.size>I)_({status:{main:i("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MAX_FILE_SIZE"),{filesize:n(I,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});else{var L=i("GET_MIN_FILE_SIZE");if(null!==L&&e.size<L)_({status:{main:i("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MIN_FILE_SIZE"),{filesize:n(L,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});else{var a=i("GET_MAX_TOTAL_FILE_SIZE");if(null!==a&&i("GET_ACTIVE_ITEMS").reduce((function(e,E){return e+E.fileSize}),0)>a)return void _({status:{main:i("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:n(a,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});E(e)}}}))})),{options:{allowFileSizeValidation:[!0,_.BOOLEAN],maxFileSize:[null,_.INT],minFileSize:[null,_.INT],maxTotalFileSize:[null,_.INT],fileValidateSizeFilter:[null,_.FUNCTION],labelMinFileSizeExceeded:["File is too small",_.STRING],labelMinFileSize:["Minimum file size is {filesize}",_.STRING],labelMaxFileSizeExceeded:["File is too large",_.STRING],labelMaxFileSize:["Maximum file size is {filesize}",_.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",_.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",_.STRING]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:_})),_)),t=E({__proto__:null,default:e(n)},[n]);
|
|
5
5
|
/*!
|
|
6
6
|
* FilePondPluginFileValidateSize 2.2.8
|
|
7
7
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{d as i}from"./p-
|
|
4
|
+
import{d as i}from"./p-CTOqXLNX.js";function n(i,n){return n.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(t){if("default"!==t&&!(t in i)){var e=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,e.get?e:{enumerable:!0,get:function(){return n[t]}})}}))})),Object.freeze(i)}var t,e,o,E={exports:{}},r=t?E.exports:(t=1,E.exports=(e=function(i){return/^image/.test(i.type)},o=function(i){var n=i.addFilter,t=i.utils,o=t.Type,E=t.createRoute,r=t.createItemAPI,l=void 0===r?function(i){return i}:r,_=i.views.fileActionButton;n("SHOULD_REMOVE_ON_REVERT",(function(i,n){var t=n.item,o=n.query;return new Promise((function(i){var n=t.file;i(!(o("GET_ALLOW_IMAGE_EDIT")&&o("GET_IMAGE_EDIT_ALLOW_EDIT")&&e(n)))}))})),n("DID_LOAD_ITEM",(function(i,n){var t=n.query,o=n.dispatch;return new Promise((function(n,E){if(i.origin>1)n(i);else{var r=i.file;if(t("GET_ALLOW_IMAGE_EDIT")&&t("GET_IMAGE_EDIT_INSTANT_EDIT"))if(e(r)){var l=function(i,n,t){return function(e){a.shift(),e?n(i):t(i),o("KICK"),_()}},_=function(){if(a.length){var i=a[0],n=i.item;o("EDIT_ITEM",{id:n.id,handleEditorResponse:l(n,i.resolve,i.reject)})}};u({item:i,resolve:n,reject:E}),1===a.length&&_()}else n(i);else n(i)}}))})),n("DID_CREATE_ITEM",(function(i,n){var t=n.dispatch;i.extend("edit",(function(){t("EDIT_ITEM",{id:i.id})}))}));var a=[],u=function(i){return a.push(i),i};return n("CREATE_VIEW",(function(i){var n=i.is,t=i.view,o=i.query;if(o("GET_ALLOW_IMAGE_EDIT")){var r=o("GET_ALLOW_IMAGE_PREVIEW");if(n("file-info")&&!r||n("file")&&r){var a=o("GET_IMAGE_EDIT_EDITOR");if(a){a.filepondCallbackBridge||(a.outputData=!0,a.outputFile=!1,a.filepondCallbackBridge={onconfirm:a.onconfirm||function(){},oncancel:a.oncancel||function(){}});t.registerDestroyer((function(i){var n=i.root;n.ref.buttonEditItem&&n.ref.buttonEditItem.off("click",n.ref.handleEdit),n.ref.editButton&&n.ref.editButton.removeEventListener("click",n.ref.handleEdit)}));var u={EDIT_ITEM:function(i){var n=i.root,t=i.props.id,e=i.action.handleEditorResponse;a.cropAspectRatio=n.query("GET_IMAGE_CROP_ASPECT_RATIO")||a.cropAspectRatio,a.outputCanvasBackgroundColor=n.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||a.outputCanvasBackgroundColor;var o=n.query("GET_ITEM",t);if(o){var E=o.file,r=o.getMetadata("crop"),_=o.getMetadata("resize"),u=o.getMetadata("filter")||null,f=o.getMetadata("filters")||null,I=o.getMetadata("colors")||null,c=o.getMetadata("markup")||null,T={crop:r||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},size:_?{upscale:_.upscale,mode:_.mode,width:_.size.width,height:_.size.height}:null,filter:f?f.id||f.matrix:n.query("GET_ALLOW_IMAGE_FILTER")&&n.query("GET_IMAGE_FILTER_COLOR_MATRIX")&&!I?u:null,color:I,markup:c};a.onconfirm=function(i){var n=i.data,t=n.crop,E=n.size,r=n.filter,_=n.color,u=n.colorMatrix,f=n.markup,I={};if(t&&(I.crop=t),E){var c=(o.getMetadata("resize")||{}).size,T={width:E.width,height:E.height};T.width&&T.height||!c||(T.width=c.width,T.height=c.height),(T.width||T.height)&&(I.resize={upscale:E.upscale,mode:E.mode,size:T})}f&&(I.markup=f),I.colors=_,I.filters=r,I.filter=u,o.setMetadata(I),a.filepondCallbackBridge.onconfirm(n,l(o)),e&&(a.onclose=function(){e(!0),a.onclose=null})},a.oncancel=function(){a.filepondCallbackBridge.oncancel(l(o)),e&&(a.onclose=function(){e(!1),a.onclose=null})},a.open(E,T)}},DID_LOAD_ITEM:function(i){var n=i.root,E=i.props;if(o("GET_IMAGE_EDIT_ALLOW_EDIT")){var l=E.id,a=o("GET_ITEM",l);if(a&&e(a.file))if(n.ref.handleEdit=function(i){i.stopPropagation(),n.dispatch("EDIT_ITEM",{id:l})},r){var u=t.createChildView(_,{label:"edit",icon:o("GET_IMAGE_EDIT_ICON_EDIT"),opacity:0});u.element.classList.add("filepond--action-edit-item"),u.element.dataset.align=o("GET_STYLE_IMAGE_EDIT_BUTTON_EDIT_ITEM_POSITION"),u.on("click",n.ref.handleEdit),n.ref.buttonEditItem=t.appendChildView(u)}else{var f=t.element.querySelector(".filepond--file-info-main"),I=document.createElement("button");I.className="filepond--action-edit-item-alt",I.innerHTML=o("GET_IMAGE_EDIT_ICON_EDIT")+"<span>edit</span>",I.addEventListener("click",n.ref.handleEdit),f.appendChild(I),n.ref.editButton=I}}}};r&&(u.DID_IMAGE_PREVIEW_SHOW=function(i){var n=i.root;n.ref.buttonEditItem&&(n.ref.buttonEditItem.opacity=1)}),t.registerWriter(E(u))}}}})),{options:{allowImageEdit:[!0,o.BOOLEAN],styleImageEditButtonEditItemPosition:["bottom center",o.STRING],imageEditInstantEdit:[!1,o.BOOLEAN],imageEditAllowEdit:[!0,o.BOOLEAN],imageEditIconEdit:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M8.5 17h1.586l7-7L15.5 8.414l-7 7V17zm-1.707-2.707l8-8a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-8 8A1 1 0 0 1 10.5 19h-3a1 1 0 0 1-1-1v-3a1 1 0 0 1 .293-.707z" fill="currentColor" fill-rule="nonzero"/></svg>',o.STRING],imageEditEditor:[null,o.OBJECT]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:o})),o)),l=n({__proto__:null,default:i(r)},[r]);
|
|
5
5
|
/*!
|
|
6
6
|
* FilePondPluginImageEdit 1.6.3
|
|
7
7
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{d as e}from"./p-CTOqXLNX.js";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n,i,E={exports:{}},T=n?E.exports:(n=1,E.exports=(i=function(e){var t=e.addFilter,n=e.utils,i=n.Type,E=n.isString,T=n.replaceInString,r=n.guesstimateMimeType,u=n.getExtensionFromFilename,o=n.getFilenameFromURL,_=function(e,t){return e.some((function(e){return/\*$/.test(e)?(n=e,(/^[^/]+/.exec(t)||[]).pop()===n.slice(0,-2)):e===t;var n}))},a=function(e,t,n){if(0===t.length)return!0;var i=function(e){var t="";if(E(e)){var n=o(e),i=u(n);i&&(t=r(i))}else t=e.type;return t}(e);return n?new Promise((function(E,T){n(e,i).then((function(e){_(t,e)?E():T()})).catch(T)})):_(t,i)};return t("SET_ATTRIBUTE_TO_OPTION_MAP",(function(e){return Object.assign(e,{accept:"acceptedFileTypes"})})),t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||a(e,n("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,i){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var E=n("GET_ACCEPTED_FILE_TYPES"),r=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),u=a(e,E,r),o=function(){var e,t=E.map((e=n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"),function(t){return null!==e[t]&&(e[t]||t)})).filter((function(e){return!1!==e})),r=t.filter((function(e,n){return t.indexOf(e)===n}));i({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:T(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:r.join(", "),allButLastType:r.slice(0,-1).join(", "),lastType:r[t.length-1]})}})};if("boolean"==typeof u)return u?t(e):o();u.then((function(){t(e)})).catch(o)}else t(e)}))})),{options:{allowFileTypeValidation:[!0,i.BOOLEAN],acceptedFileTypes:[[],i.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",i.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",i.STRING],fileValidateTypeLabelExpectedTypesMap:[{},i.OBJECT],fileValidateTypeDetectType:[null,i.FUNCTION]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:i})),i)),r=t({__proto__:null,default:e(T)},[T]);
|
|
5
|
+
/*!
|
|
6
|
+
* FilePondPluginFileValidateType 1.2.8
|
|
7
|
+
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
8
|
+
* Please visit https://pqina.nl/filepond/ for details.
|
|
9
|
+
*/export{r as f}
|