@thefittingroom/shop-ui 3.1.1 → 3.1.3
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/esm/index.js +20 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +3 -3
- package/dist/esm/index.min.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.min.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v3.1.
|
|
2
|
+
* thefittingroom v3.1.3 (2025-08-01T01:11:35.663Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
function e(t,n){let i=function(){0!==n.length&&e(n.slice(-1),n.slice(0,-1))};var r=new Image;r.onload=i,r.onerror=i,r.src=t}function t(t){e(t.slice(-1),t.slice(0,-1))}const n=(e,n)=>{const i=document.getElementById(e);if(!i)throw new Error(`Slider with id ${e} not found`);return{Load(e,r){if(!Array.isArray(e)||!e.length)return console.debug("slider has no images to load"),new Error("slider has no images to load");t(e);const s=void 0!==r?r:0;i.value=s.toString(),i.max=(e.length-1).toString();const o=()=>{const t=parseInt(i.value);n(i,e[t])};return n(i,e[s]),i.removeEventListener("input",o),i.addEventListener("input",o),()=>{i.removeEventListener("input",o)}}}},i=function(e){const t=[];let n=0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&i+1<e.length&&56320==(64512&e.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++i)),t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},r={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let t=0;t<e.length;t+=3){const r=e[t],s=t+1<e.length,o=s?e[t+1]:0,a=t+2<e.length,c=a?e[t+2]:0,l=r>>2,u=(3&r)<<4|o>>4;let h=(15&o)<<2|c>>6,d=63&c;a||(d=64,s||(h=64)),i.push(n[l],n[u],n[h],n[d])}return i.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,i=0;for(;n<e.length;){const r=e[n++];if(r<128)t[i++]=String.fromCharCode(r);else if(r>191&&r<224){const s=e[n++];t[i++]=String.fromCharCode((31&r)<<6|63&s)}else if(r>239&&r<365){const s=((7&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[i++]=String.fromCharCode(55296+(s>>10)),t[i++]=String.fromCharCode(56320+(1023&s))}else{const s=e[n++],o=e[n++];t[i++]=String.fromCharCode((15&r)<<12|(63&s)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let t=0;t<e.length;){const r=n[e.charAt(t++)],o=t<e.length?n[e.charAt(t)]:0;++t;const a=t<e.length?n[e.charAt(t)]:64;++t;const c=t<e.length?n[e.charAt(t)]:64;if(++t,null==r||null==o||null==a||null==c)throw new s;const l=r<<2|o>>4;if(i.push(l),64!==a){const e=o<<4&240|a>>2;if(i.push(e),64!==c){const e=a<<6&192|c;i.push(e)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
|
|
6
6
|
/*!
|
|
7
|
-
* thefittingroom v2.0.
|
|
7
|
+
* thefittingroom v2.0.3 (2025-08-01T01:07:24.111Z)
|
|
8
8
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
9
9
|
*/class s extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const o=function(e){return function(e){const t=i(e);return r.encodeByteArray(t,!0)}(e).replace(/\./g,"")},a=function(e){try{return r.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};
|
|
10
10
|
/**
|
|
@@ -2188,7 +2188,7 @@ const cl=/^__.*__$/;class ll{constructor(e,t,n){this.data=e,this.fieldMask=t,thi
|
|
|
2188
2188
|
* See the License for the specific language governing permissions and
|
|
2189
2189
|
* limitations under the License.
|
|
2190
2190
|
*/
|
|
2191
|
-
We("firebase","11.10.0","app");class Ql{constructor(){}static getInstance(){return Ql.instance||(Ql.instance=new Ql),Ql.instance}setEnv(e){switch(e){case"production":case"prod":this.env="prod";break;default:this.env="dev"}}get firebase(){return"prod"===this.env?Yl.firebase:Jl.firebase}get api(){return"prod"===this.env?Yl.api:Jl.api}get config(){return"prod"===this.env?Yl.config:Jl.config}}const Jl={firebase:{apiKey:
|
|
2191
|
+
We("firebase","11.10.0","app");class Ql{constructor(){}static getInstance(){return Ql.instance||(Ql.instance=new Ql),Ql.instance}setEnv(e){switch(e){case"production":case"prod":this.env="prod";break;default:this.env="dev"}}get firebase(){return"prod"===this.env?Yl.firebase:Jl.firebase}get api(){return"prod"===this.env?Yl.api:Jl.api}get config(){return"prod"===this.env?Yl.config:Jl.config}}const Jl={firebase:{apiKey:void 0,authDomain:void 0,projectId:void 0,storageBucket:void 0,messagingSenderId:void 0,appId:void 0},api:{url:void 0},config:{avatarTimeout:Number(void 0),vtoTimeout:Number(void 0)}},Yl={firebase:{apiKey:void 0,authDomain:void 0,projectId:void 0,storageBucket:void 0,messagingSenderId:void 0,appId:void 0},api:{url:void 0},config:{avatarTimeout:Number(void 0),vtoTimeout:Number(void 0)}};var Xl=1e3,Zl=6e4,eu=36e5,tu="millisecond",nu="second",iu="minute",ru="hour",su="day",ou="week",au="month",cu="quarter",lu="year",uu="date",hu="Invalid Date",du=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,fu=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,pu={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},gu=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},mu={s:gu,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+gu(i,2,"0")+":"+gu(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,au),s=n-r<0,o=t.clone().add(i+(s?-1:1),au);return+(-(i+(n-r)/(s?r-o:o-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:au,y:lu,w:ou,d:su,D:uu,h:ru,m:iu,s:nu,ms:tu,Q:cu}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},vu="en",yu={};yu[vu]=pu;var wu="$isDayjsObject",bu=function(e){return e instanceof Tu||!(!e||!e[wu])},_u=function e(t,n,i){var r;if(!t)return vu;if("string"==typeof t){var s=t.toLowerCase();yu[s]&&(r=s),n&&(yu[s]=n,r=s);var o=t.split("-");if(!r&&o.length>1)return e(o[0])}else{var a=t.name;yu[a]=t,r=a}return!i&&r&&(vu=r),r||!i&&vu},Su=function(e,t){if(bu(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new Tu(n)},Eu=mu;Eu.l=_u,Eu.i=bu,Eu.w=function(e,t){return Su(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var Tu=function(){function e(e){this.$L=_u(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[wu]=!0}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(Eu.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(du);if(i){var r=i[2]-1||0,s=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(t)}(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return Eu},t.isValid=function(){return!(this.$d.toString()===hu)},t.isSame=function(e,t){var n=Su(e);return this.startOf(t)<=n&&n<=this.endOf(t)},t.isAfter=function(e,t){return Su(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<Su(e)},t.$g=function(e,t,n){return Eu.u(e)?this[t]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var n=this,i=!!Eu.u(t)||t,r=Eu.p(e),s=function(e,t){var r=Eu.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?r:r.endOf(su)},o=function(e,t){return Eu.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},a=this.$W,c=this.$M,l=this.$D,u="set"+(this.$u?"UTC":"");switch(r){case lu:return i?s(1,0):s(31,11);case au:return i?s(1,c):s(0,c+1);case ou:var h=this.$locale().weekStart||0,d=(a<h?a+7:a)-h;return s(i?l-d:l+(6-d),c);case su:case uu:return o(u+"Hours",0);case ru:return o(u+"Minutes",1);case iu:return o(u+"Seconds",2);case nu:return o(u+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var n,i=Eu.p(e),r="set"+(this.$u?"UTC":""),s=(n={},n[su]=r+"Date",n[uu]=r+"Date",n[au]=r+"Month",n[lu]=r+"FullYear",n[ru]=r+"Hours",n[iu]=r+"Minutes",n[nu]=r+"Seconds",n[tu]=r+"Milliseconds",n)[i],o=i===su?this.$D+(t-this.$W):t;if(i===au||i===lu){var a=this.clone().set(uu,1);a.$d[s](o),a.init(),this.$d=a.set(uu,Math.min(this.$D,a.daysInMonth())).$d}else s&&this.$d[s](o);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[Eu.p(e)]()},t.add=function(e,t){var n,i=this;e=Number(e);var r=Eu.p(t),s=function(t){var n=Su(i);return Eu.w(n.date(n.date()+Math.round(t*e)),i)};if(r===au)return this.set(au,this.$M+e);if(r===lu)return this.set(lu,this.$y+e);if(r===su)return s(1);if(r===ou)return s(7);var o=(n={},n[iu]=Zl,n[ru]=eu,n[nu]=Xl,n)[r]||1,a=this.$d.getTime()+e*o;return Eu.w(a,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||hu;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=Eu.z(this),s=this.$H,o=this.$m,a=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,h=function(e,n,r,s){return e&&(e[n]||e(t,i))||r[n].slice(0,s)},d=function(e){return Eu.s(s%12||12,e,"0")},f=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(fu,function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return Eu.s(t.$y,4,"0");case"M":return a+1;case"MM":return Eu.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,l,3);case"MMMM":return h(l,a);case"D":return t.$D;case"DD":return Eu.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,c,2);case"ddd":return h(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(s);case"HH":return Eu.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(s,o,!0);case"A":return f(s,o,!1);case"m":return String(o);case"mm":return Eu.s(o,2,"0");case"s":return String(t.$s);case"ss":return Eu.s(t.$s,2,"0");case"SSS":return Eu.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")})},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,t,n){var i,r=this,s=Eu.p(t),o=Su(e),a=(o.utcOffset()-this.utcOffset())*Zl,c=this-o,l=function(){return Eu.m(r,o)};switch(s){case lu:i=l()/12;break;case au:i=l();break;case cu:i=l()/3;break;case ou:i=(c-a)/6048e5;break;case su:i=(c-a)/864e5;break;case ru:i=c/eu;break;case iu:i=c/Zl;break;case nu:i=c/Xl;break;default:i=c}return n?i:Eu.a(i)},t.daysInMonth=function(){return this.endOf(au).$D},t.$locale=function(){return yu[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=_u(e,t,!0);return i&&(n.$L=i),n},t.clone=function(){return Eu.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}(),Iu=Tu.prototype;function Cu(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function ku(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}Su.prototype=Iu,[["$ms",tu],["$s",nu],["$m",iu],["$H",ru],["$W",su],["$M",au],["$y",lu],["$D",uu]].forEach(function(e){Iu[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),Su.extend=function(e,t){return e.$i||(e(t,Tu,Su),e.$i=!0),Su},Su.locale=_u,Su.isDayjs=bu,Su.unix=function(e){return Su(1e3*e)},Su.en=yu[vu],Su.Ls=yu,Su.p={},"function"==typeof SuppressedError&&SuppressedError;const Au=ku,Ru=new S("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),xu="auth/user-disabled",Nu=new B("@firebase/auth");function Ou(e,...t){Nu.logLevel<=M.ERROR&&Nu.error(`Auth (${qe}): ${e}`,...t)}
|
|
2192
2192
|
/**
|
|
2193
2193
|
* @license
|
|
2194
2194
|
* Copyright 2020 Google LLC
|