@salla.sa/twilight-components 2.11.85 → 2.11.86
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/_commonjsHelpers-f57e29ee.js +256 -0
- package/dist/cjs/{app-globals-08c1c2af.js → app-globals-bf20263f.js} +2007 -40
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-button_37.cjs.entry.js +7 -3
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +5 -1
- package/dist/components/index.js +2006 -38
- package/dist/components/salla-localization-modal.js +5 -1
- package/dist/components/salla-quick-buy2.js +228 -2
- package/dist/esm/_commonjsHelpers-a7c4abac.js +250 -0
- package/dist/esm/{app-globals-3e9f7127.js → app-globals-30874674.js} +2006 -39
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-button_37.entry.js +7 -3
- package/dist/esm/twilight.js +2 -2
- package/dist/esm-es5/_commonjsHelpers-a7c4abac.js +4 -0
- package/dist/esm-es5/app-globals-30874674.js +30 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-button_37.entry.js +2 -2
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/{p-20bef15d.system.entry.js → p-0d221d45.system.entry.js} +9 -9
- package/dist/twilight/p-71b1ddca.js +24 -0
- package/dist/twilight/{p-7ea02f41.system.js → p-7f520307.system.js} +1 -1
- package/dist/twilight/p-854e2c89.system.js +30 -0
- package/dist/twilight/p-99ed8fff.system.js +4 -0
- package/dist/twilight/p-ce54db8d.js +4 -0
- package/dist/twilight/p-df0e0ea8.entry.js +36 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/package.json +5 -5
- package/dist/cjs/_commonjsHelpers-691dd63b.js +0 -28
- package/dist/esm/_commonjsHelpers-1415ffd3.js +0 -24
- package/dist/esm-es5/_commonjsHelpers-1415ffd3.js +0 -4
- package/dist/esm-es5/app-globals-3e9f7127.js +0 -24
- package/dist/twilight/p-45b4a309.entry.js +0 -36
- package/dist/twilight/p-63b59f65.js +0 -24
- package/dist/twilight/p-9beb6b7b.system.js +0 -4
- package/dist/twilight/p-b87e4299.system.js +0 -24
- package/dist/twilight/p-f84bae34.js +0 -4
package/dist/esm/loader.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { C as CSS, p as plt, w as win, a as promiseResolve, b as bootstrapLazy } from './index-f1d446ac.js';
|
|
5
|
-
import { g as globalScripts } from './app-globals-
|
|
6
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { g as globalScripts } from './app-globals-30874674.js';
|
|
6
|
+
import './_commonjsHelpers-a7c4abac.js';
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-f1d446ac.js';
|
|
5
5
|
import { C as Cart } from './cart-8c60b447.js';
|
|
6
|
-
import { a as createCommonjsModule, c as commonjsGlobal,
|
|
6
|
+
import { a as createCommonjsModule, c as commonjsGlobal, d as getDefaultExportFromCjs, b as browser$1 } from './_commonjsHelpers-a7c4abac.js';
|
|
7
7
|
import { C as CameraIcon } from './camera-647ab50f.js';
|
|
8
8
|
|
|
9
9
|
const sallaButtonCss = "";
|
|
@@ -21619,7 +21619,11 @@ const SallaLocalizationModal = class {
|
|
|
21619
21619
|
})
|
|
21620
21620
|
.then(() => this.btn.stop())
|
|
21621
21621
|
.then(() => this.close())
|
|
21622
|
-
.then(() =>
|
|
21622
|
+
.then(() => {
|
|
21623
|
+
if (url) {
|
|
21624
|
+
window.location.href = url.replace(`/${salla.config.get('user.language_code')}/`, `/${this.language}/`);
|
|
21625
|
+
}
|
|
21626
|
+
});
|
|
21623
21627
|
}
|
|
21624
21628
|
render() {
|
|
21625
21629
|
return (h("salla-modal", { isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { slot: 'loading' }, h("div", { class: "s-localization-modal-skeleton" }, h("salla-skeleton", { width: '25%', height: '15px' }), h("div", { class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { width: '25%', height: '15px' }), h("div", { class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { height: '40px', width: '100%' }))), !!this.hasError ?
|
|
@@ -24614,7 +24618,7 @@ function getDefaultAdapter() {
|
|
|
24614
24618
|
if (typeof XMLHttpRequest !== 'undefined') {
|
|
24615
24619
|
// For browsers use XHR adapter
|
|
24616
24620
|
adapter = xhr;
|
|
24617
|
-
} else if (typeof
|
|
24621
|
+
} else if (typeof browser$1 !== 'undefined' && Object.prototype.toString.call(browser$1) === '[object process]') {
|
|
24618
24622
|
// For node use HTTP adapter
|
|
24619
24623
|
adapter = xhr;
|
|
24620
24624
|
}
|
package/dist/esm/twilight.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { p as plt, w as win, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-f1d446ac.js';
|
|
5
|
-
import { g as globalScripts } from './app-globals-
|
|
6
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { g as globalScripts } from './app-globals-30874674.js';
|
|
6
|
+
import './_commonjsHelpers-a7c4abac.js';
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==="function"){cachedSetTimeout=setTimeout}if(typeof global$1.clearTimeout==="function"){cachedClearTimeout=clearTimeout}function runTimeout(e){if(cachedSetTimeout===setTimeout){return setTimeout(e,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(e,0)}try{return cachedSetTimeout(e,0)}catch(r){try{return cachedSetTimeout.call(null,e,0)}catch(r){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout){return clearTimeout(e)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(e)}try{return cachedClearTimeout(e)}catch(r){try{return cachedClearTimeout.call(null,e)}catch(r){return cachedClearTimeout.call(this,e)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var e=runTimeout(cleanUpNextTick);draining=true;var r=queue.length;while(r){currentQueue=queue;queue=[];while(++queueIndex<r){if(currentQueue){currentQueue[queueIndex].run()}}queueIndex=-1;r=queue.length}currentQueue=null;draining=false;runClearTimeout(e)}function nextTick(e){var r=new Array(arguments.length-1);if(arguments.length>1){for(var t=1;t<arguments.length;t++){r[t-1]=arguments[t]}}queue.push(new Item(e,r));if(queue.length===1&&!draining){runTimeout(drainQueue)}}function Item(e,r){this.fun=e;this.array=r}Item.prototype.run=function(){this.fun.apply(null,this.array)};var title="browser";var platform="browser";var browser=true;var env={};var argv=[];var version="";var versions={};var release={};var config={};function noop(){}var on=noop;var addListener=noop;var once=noop;var off=noop;var removeListener=noop;var removeAllListeners=noop;var emit=noop;function binding(e){throw new Error("process.binding is not supported")}function cwd(){return"/"}function chdir(e){throw new Error("process.chdir is not supported")}function umask(){return 0}var performance=global$1.performance||{};var performanceNow=performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return(new Date).getTime()};function hrtime(e){var r=performanceNow.call(performance)*.001;var t=Math.floor(r);var n=Math.floor(r%1*1e9);if(e){t=t-e[0];n=n-e[1];if(n<0){t--;n+=1e9}}return[t,n]}var startTime=new Date;function uptime(){var e=new Date;var r=e-startTime;return r/1e3}var browser$1={nextTick:nextTick,title:title,browser:browser,env:env,argv:argv,version:version,versions:versions,on:on,addListener:addListener,once:once,off:off,removeListener:removeListener,removeAllListeners:removeAllListeners,emit:emit,binding:binding,cwd:cwd,chdir:chdir,umask:umask,hrtime:hrtime,platform:platform,release:release,config:config,uptime:uptime};var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function createCommonjsModule(e,r,t){return t={path:r,exports:{},require:function(e,r){return commonjsRequire()}},e(t,t.exports),t.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}export{createCommonjsModule as a,browser$1 as b,commonjsGlobal as c,getDefaultExportFromCjs as d,global$1 as g};
|