@salla.sa/twilight-components 2.14.290 → 2.14.291
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-CsSVZI6b.js → filepond-l0In8JzI.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DJjaIMfQ.js → filepond-plugin-file-poster--TMslLdw.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DGUa4QzB.js → filepond-plugin-file-validate-size-asc4GviL.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DJmeqtsg.js → filepond-plugin-file-validate-type-MAcIW_lX.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-5OewQYOY.js → filepond-plugin-image-edit-8yC2fM_b.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CG2IXf0d.js → filepond-plugin-image-exif-orientation-D2TaYNJz.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CBLsOLDc.js → filepond-plugin-image-preview-ZhHJTUGt.js} +1 -1
- package/dist/cjs/{index-DaoXQTQv.js → index-BCqSMje8.js} +1 -1
- package/dist/cjs/{index-QiRNeWgQ.js → index-CD__TuQ1.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion_62.cjs.entry.js +20 -15
- package/dist/cjs/salla-advertisement.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-cart-item-offers.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-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.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-metadata.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.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 +13 -8
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.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-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +3 -3
- package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.js +12 -7
- package/dist/components/index.js +2 -2
- package/dist/components/salla-login-modal.js +3 -3
- package/dist/components/salla-order-totals-card.js +12 -7
- package/dist/components/salla-quick-buy2.js +8 -3
- package/dist/esm/{filepond-DG5ftHEu.js → filepond-D-hh7StM.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DJnNcY8m.js → filepond-plugin-file-poster-B9peApDJ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Ij_3QNnX.js → filepond-plugin-file-validate-size-Clsj6zmt.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-KfkcHm4r.js → filepond-plugin-file-validate-type-NUNR5wrE.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DGwQ9z-F.js → filepond-plugin-image-edit-D9mIu1qc.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-D3He5h3f.js → filepond-plugin-image-exif-orientation-DjJUiKBi.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CW-_uvrw.js → filepond-plugin-image-preview-Dqa9Qh69.js} +1 -1
- package/dist/esm/{index-BSnsSL0d.js → index-BdPAI7KX.js} +2 -2
- package/dist/esm/{index-D4ggsvU3.js → index-r_fPtAzd.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion_62.entry.js +20 -15
- package/dist/esm/salla-advertisement.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-cart-item-offers.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-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-installment.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-metadata.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.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 +13 -8
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-review-card.entry.js +1 -1
- package/dist/esm/salla-reviews-page.entry.js +1 -1
- package/dist/esm/salla-reviews.entry.js +1 -1
- package/dist/esm/salla-social.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-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/twilight/p-0230315b.entry.js +4 -0
- package/dist/twilight/{p-b3d1e538.entry.js → p-025d49de.entry.js} +1 -1
- package/dist/twilight/{p-ebe69ca5.entry.js → p-0a7758ed.entry.js} +1 -1
- package/dist/twilight/{p-b8229259.entry.js → p-0c5e2e36.entry.js} +1 -1
- package/dist/twilight/{p-7434d2ef.entry.js → p-23541825.entry.js} +1 -1
- package/dist/twilight/{p-0619cc09.entry.js → p-2684045e.entry.js} +1 -1
- package/dist/twilight/{p-34ed3d3f.entry.js → p-2a4d5b5a.entry.js} +1 -1
- package/dist/twilight/p-2d563fd2.entry.js +4 -0
- package/dist/twilight/{p-6299bd02.entry.js → p-2d7377e6.entry.js} +1 -1
- package/dist/twilight/{p-5ae41031.entry.js → p-2e338f09.entry.js} +1 -1
- package/dist/twilight/{p-5aba0f7f.entry.js → p-2ebf898f.entry.js} +1 -1
- package/dist/twilight/{p-0beb6f5d.entry.js → p-3420836d.entry.js} +1 -1
- package/dist/twilight/{p-736693a1.entry.js → p-362bbc51.entry.js} +1 -1
- package/dist/twilight/{p-00955919.entry.js → p-4b2e8325.entry.js} +1 -1
- package/dist/twilight/{p-d3e3e3c0.entry.js → p-54a6b727.entry.js} +1 -1
- package/dist/twilight/{p-06cc0ac3.entry.js → p-5b2567af.entry.js} +1 -1
- package/dist/twilight/{p-06af203a.entry.js → p-5bff3464.entry.js} +1 -1
- package/dist/twilight/{p-33712517.entry.js → p-62f6d935.entry.js} +1 -1
- package/dist/twilight/p-70567b55.entry.js +11 -0
- package/dist/twilight/{p-c00a7ae6.entry.js → p-7ce146ac.entry.js} +1 -1
- package/dist/twilight/{p-532376e1.entry.js → p-8110e635.entry.js} +1 -1
- package/dist/twilight/{p-672f8206.entry.js → p-84f7d6ff.entry.js} +1 -1
- package/dist/twilight/{p-36fb1519.entry.js → p-85d33ec2.entry.js} +1 -1
- package/dist/twilight/{p-f9202fc1.entry.js → p-9706a388.entry.js} +1 -1
- package/dist/twilight/{p-7684f980.entry.js → p-9b001f92.entry.js} +1 -1
- package/dist/twilight/{p-43dbbda5.entry.js → p-9e190a6a.entry.js} +1 -1
- package/dist/twilight/{p-B2wjlPIP.js → p-BOK_dArT.js} +1 -1
- package/dist/twilight/{p-B1hrg10h.js → p-BUxBV1_U.js} +1 -1
- package/dist/twilight/{p-BSnsSL0d.js → p-BdPAI7KX.js} +1 -1
- package/dist/twilight/{p-DP8Fqw7G.js → p-CJ4oSd-N.js} +1 -1
- package/dist/twilight/{p-CaOlYtot.js → p-DVxWyl5d.js} +1 -1
- package/dist/twilight/p-Dkl8u_H6.js +9 -0
- package/dist/twilight/{p-DuneTSVd.js → p-DuzBFC4S.js} +1 -1
- package/dist/twilight/{p-Bgf4h7Oc.js → p-TjgJW4j-.js} +1 -1
- package/dist/twilight/{p-977818f1.entry.js → p-aa85a960.entry.js} +1 -1
- package/dist/twilight/{p-e9340ae5.entry.js → p-b2378248.entry.js} +1 -1
- package/dist/twilight/{p-075b3b52.entry.js → p-b354fb32.entry.js} +1 -1
- package/dist/twilight/{p-823e64aa.entry.js → p-b609c0a3.entry.js} +1 -1
- package/dist/twilight/{p-6e6f80ef.entry.js → p-c96ebac7.entry.js} +1 -1
- package/dist/twilight/{p-5c58eb9d.entry.js → p-ef28a883.entry.js} +1 -1
- package/dist/twilight/{p-0b3f063c.entry.js → p-efdf02d5.entry.js} +1 -1
- package/dist/twilight/{p-DdxZpDbY.js → p-oMzSzsXO.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-order-totals-card/interfaces.d.ts +1 -0
- package/dist/types/components/salla-order-totals-card/salla-order-totals-card.d.ts +2 -1
- package/package.json +5 -5
- package/dist/twilight/p-06b5b3e4.entry.js +0 -4
- package/dist/twilight/p-51c65ed9.entry.js +0 -11
- package/dist/twilight/p-9Dp5S3a0.js +0 -9
- package/dist/twilight/p-ceb2f617.entry.js +0 -4
|
@@ -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-BdPAI7KX.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,I=o.getMetadata("filters")||null,f=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:I?I.id||I.matrix:n.query("GET_ALLOW_IMAGE_FILTER")&&n.query("GET_IMAGE_FILTER_COLOR_MATRIX")&&!f?u:null,color:f,markup:c};a.onconfirm=function(i){var n=i.data,t=n.crop,E=n.size,r=n.filter,_=n.color,u=n.colorMatrix,I=n.markup,f={};if(t&&(f.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)&&(f.resize={upscale:E.upscale,mode:E.mode,size:T})}I&&(f.markup=I),f.colors=_,f.filters=r,f.filter=u,o.setMetadata(f),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 I=t.element.querySelector(".filepond--file-info-main"),f=document.createElement("button");f.className="filepond--action-edit-item-alt",f.innerHTML=o("GET_IMAGE_EDIT_ICON_EDIT")+"<span>edit</span>",f.addEventListener("click",n.ref.handleEdit),I.appendChild(f),n.ref.editButton=f}}}};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/
|