@fluid-topics/ft-search-locale-selector 1.3.50 → 1.3.52

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";(()=>{var Wd=Object.create;var Ca=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var jd=Object.getOwnPropertyNames;var Vd=Object.getPrototypeOf,Kd=Object.prototype.hasOwnProperty;var Kt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Zd=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of jd(e))!Kd.call(t,i)&&i!==o&&Ca(t,i,{get:()=>e[i],enumerable:!(n=Gd(e,i))||n.enumerable});return t};var g=(t,e,o)=>(o=t!=null?Wd(Vd(t)):{},Zd(e||!t||!t.__esModule?Ca(o,"default",{value:t,enumerable:!0}):o,t));var R=Kt((Cp,Ea)=>{Ea.exports=ftGlobals.wcUtils});var $=Kt((Ep,Aa)=>{Aa.exports=ftGlobals.lit});var Z=Kt((Zm,Ha)=>{Ha.exports=ftGlobals.litDecorators});var fi=Kt((Zg,cs)=>{cs.exports=ftGlobals.litRepeat});var Lr=Kt((ob,As)=>{As.exports=ftGlobals.litClassMap});var il=Kt((It,nl)=>{var Mo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Fo=function(){function t(){this.fetch=!1,this.DOMException=Mo.DOMException}return t.prototype=Mo,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var x={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return i.iterable&&(x[Symbol.iterator]=function(){return x}),x}function h(y){this.map={},y instanceof h?y.forEach(function(x,P){this.append(P,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}h.prototype.append=function(y,x){y=u(y),x=p(x);var P=this.map[y];this.map[y]=P?P+", "+x:x},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,x){this.map[u(y)]=p(x)},h.prototype.forEach=function(y,x){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(x,this.map[P],P,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(x,P){y.push(P)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(x,P){y.push([P,x])}),m(y)},i.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,P){y.onload=function(){x(y.result)},y.onerror=function(){P(y.error)}})}function v(y){var x=new FileReader,P=S(x);return x.readAsArrayBuffer(y),P}function E(y){var x=new FileReader,P=S(x),G=/charset=([A-Za-z0-9_-]+)/.exec(y.type),ee=G?G[1]:"utf-8";return x.readAsText(y,ee),P}function N(y){for(var x=new Uint8Array(y),P=new Array(x.length),G=0;G<x.length;G++)P[G]=String.fromCharCode(x[G]);return P.join("")}function T(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:i.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:i.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():i.arrayBuffer&&i.blob&&a(y)?(this._bodyArrayBuffer=T(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=T(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=b(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(i.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(Re)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function M(y){var x=y.toUpperCase();return k.indexOf(x)>-1?x:y}function F(y,x){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var P=x.body;if(y instanceof F){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,x.headers||(this.headers=new h(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new h(x.headers)),this.method=M(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var U=new AbortController;return U.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var G=/([?&])_=[^&]*/;if(G.test(this.url))this.url=this.url.replace(G,"$1_="+new Date().getTime());else{var ee=/\?/;this.url+=(ee.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function Re(y){var x=new FormData;return y.trim().split("&").forEach(function(P){if(P){var G=P.split("="),ee=G.shift().replace(/\+/g," "),U=G.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ee),decodeURIComponent(U))}}),x}function ot(y){var x=new h,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(G){return G.indexOf(`
2
- `)===0?G.substr(1,G.length):G}).forEach(function(G){var ee=G.split(":"),U=ee.shift().trim();if(U){var Oo=ee.join(":").trim();try{x.append(U,Oo)}catch(Ln){console.warn("Response "+Ln.message)}}}),x}I.call(F.prototype);function Ee(y,x){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new h(x.headers),this.url=x.url||"",this._initBody(y)}I.call(Ee.prototype),Ee.prototype.clone=function(){return new Ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Ee.error=function(){var y=new Ee(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var nt=[301,302,303,307,308];Ee.redirect=function(y,x){if(nt.indexOf(x)===-1)throw new RangeError("Invalid status code");return new Ee(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,P){this.message=x,this.name=P;var G=Error(x);this.stack=G.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function fe(y,x){return new Promise(function(P,G){var ee=new F(y,x);if(ee.signal&&ee.signal.aborted)return G(new o.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Oo(){U.abort()}U.onload=function(){var he={statusText:U.statusText,headers:ot(U.getAllResponseHeaders()||"")};ee.url.indexOf("file://")===0&&(U.status<200||U.status>599)?he.status=200:he.status=U.status,he.url="responseURL"in U?U.responseURL:he.headers.get("X-Request-URL");var Vt="response"in U?U.response:U.responseText;setTimeout(function(){P(new Ee(Vt,he))},0)},U.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){G(new o.DOMException("Aborted","AbortError"))},0)};function Ln(he){try{return he===""&&n.location.href?n.location.href:he}catch{return he}}if(U.open(ee.method,Ln(ee.url),!0),ee.credentials==="include"?U.withCredentials=!0:ee.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(i.blob?U.responseType="blob":i.arrayBuffer&&(U.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof h||n.Headers&&x.headers instanceof n.Headers)){var Oa=[];Object.getOwnPropertyNames(x.headers).forEach(function(he){Oa.push(u(he)),U.setRequestHeader(he,p(x.headers[he]))}),ee.headers.forEach(function(he,Vt){Oa.indexOf(Vt)===-1&&U.setRequestHeader(Vt,he)})}else ee.headers.forEach(function(he,Vt){U.setRequestHeader(Vt,he)});ee.signal&&(ee.signal.addEventListener("abort",Oo),U.onreadystatechange=function(){U.readyState===4&&ee.signal.removeEventListener("abort",Oo)}),U.send(typeof ee._bodyInit>"u"?null:ee._bodyInit)})}return fe.polyfill=!0,n.fetch||(n.fetch=fe,n.Headers=h,n.Request=F,n.Response=Ee),o.Headers=h,o.Request=F,o.Response=Ee,o.fetch=fe,o}({})})(Fo);Fo.fetch.ponyfill=!0;delete Fo.fetch.polyfill;var Dr=Mo.fetch?Mo:Fo;It=Dr.fetch;It.default=Dr.fetch;It.fetch=Dr.fetch;It.Headers=Dr.Headers;It.Request=Dr.Request;It.Response=Dr.Response;nl.exports=It});var Zc=Kt((US,Kc)=>{Kc.exports=ftGlobals.litUnsafeHTML});var Hd=g(R());var pr=g($());var Dd=g($()),rt=g(R());var wa=g($()),bt=g(R()),wt={distance:bt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:bt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:bt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:bt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:bt.FtCssVariableFactory.external(bt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:bt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ra=wa.css`
2
+ `)===0?G.substr(1,G.length):G}).forEach(function(G){var ee=G.split(":"),U=ee.shift().trim();if(U){var Oo=ee.join(":").trim();try{x.append(U,Oo)}catch(Ln){console.warn("Response "+Ln.message)}}}),x}I.call(F.prototype);function Ee(y,x){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new h(x.headers),this.url=x.url||"",this._initBody(y)}I.call(Ee.prototype),Ee.prototype.clone=function(){return new Ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Ee.error=function(){var y=new Ee(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var nt=[301,302,303,307,308];Ee.redirect=function(y,x){if(nt.indexOf(x)===-1)throw new RangeError("Invalid status code");return new Ee(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,P){this.message=x,this.name=P;var G=Error(x);this.stack=G.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function fe(y,x){return new Promise(function(P,G){var ee=new F(y,x);if(ee.signal&&ee.signal.aborted)return G(new o.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Oo(){U.abort()}U.onload=function(){var he={statusText:U.statusText,headers:ot(U.getAllResponseHeaders()||"")};ee.url.indexOf("file://")===0&&(U.status<200||U.status>599)?he.status=200:he.status=U.status,he.url="responseURL"in U?U.responseURL:he.headers.get("X-Request-URL");var Vt="response"in U?U.response:U.responseText;setTimeout(function(){P(new Ee(Vt,he))},0)},U.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){G(new o.DOMException("Aborted","AbortError"))},0)};function Ln(he){try{return he===""&&n.location.href?n.location.href:he}catch{return he}}if(U.open(ee.method,Ln(ee.url),!0),ee.credentials==="include"?U.withCredentials=!0:ee.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(i.blob?U.responseType="blob":i.arrayBuffer&&(U.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof h||n.Headers&&x.headers instanceof n.Headers)){var Oa=[];Object.getOwnPropertyNames(x.headers).forEach(function(he){Oa.push(u(he)),U.setRequestHeader(he,p(x.headers[he]))}),ee.headers.forEach(function(he,Vt){Oa.indexOf(Vt)===-1&&U.setRequestHeader(Vt,he)})}else ee.headers.forEach(function(he,Vt){U.setRequestHeader(Vt,he)});ee.signal&&(ee.signal.addEventListener("abort",Oo),U.onreadystatechange=function(){U.readyState===4&&ee.signal.removeEventListener("abort",Oo)}),U.send(typeof ee._bodyInit>"u"?null:ee._bodyInit)})}return fe.polyfill=!0,n.fetch||(n.fetch=fe,n.Headers=h,n.Request=F,n.Response=Ee),o.Headers=h,o.Request=F,o.Response=Ee,o.fetch=fe,o}({})})(Fo);Fo.fetch.ponyfill=!0;delete Fo.fetch.polyfill;var Dr=Mo.fetch?Mo:Fo;It=Dr.fetch;It.default=Dr.fetch;It.fetch=Dr.fetch;It.Headers=Dr.Headers;It.Request=Dr.Request;It.Response=Dr.Response;nl.exports=It});var Zc=Kt((US,Kc)=>{Kc.exports=ftGlobals.litUnsafeHTML});var Hd=g(R());var pr=g($());var Dd=g($()),rt=g(R());var wa=g($()),bt=g(R()),wt={distance:bt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:bt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:bt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:bt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:bt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",bt.designSystemVariables.borderRadiusS),maxWidth:bt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ra=wa.css`
3
3
  .ft-tooltip--container {
4
4
  display: block;
5
5
  }
@@ -82,7 +82,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?ur.error:this.warningMessages.length?ur.warning:ur.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return xe([b()],e.prototype,"warningRules",void 0),xe([b()],e.prototype,"errorRules",void 0),xe([b()],e.prototype,"validateOn",void 0),xe([b({type:Boolean})],e.prototype,"validateAtRender",void 0),xe([b()],e.prototype,"label",void 0),xe([b({type:Boolean})],e.prototype,"hideLabel",void 0),xe([b()],e.prototype,"name",void 0),xe([b({type:Boolean})],e.prototype,"disabled",void 0),xe([b()],e.prototype,"helperText",void 0),xe([b()],e.prototype,"forceStatus",void 0),xe([b({reflect:!0})],e.prototype,"value",void 0),xe([U()],e.prototype,"errorMessages",void 0),xe([U()],e.prototype,"warningMessages",void 0),xe([U()],e.prototype,"status",void 0),xe([U()],e.prototype,"focused",void 0),xe([U()],e.prototype,"additionalWarningRules",void 0),xe([U()],e.prototype,"additionalErrorRules",void 0),e});var Lo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Lo(n,e);return!0},Wn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},od=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),Wf(e)}};function zf(t){this._$AN!==void 0?(Wn(this),this._$AM=t,od(this)):this._$AM=t}function Hf(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)Lo(n[a],!1),Wn(n[a]);else n!=null&&(Lo(n,!1),Wn(n));else Lo(this,t)}var Wf=t=>{t.type==tt.CHILD&&(t._$AP??=Hf,t._$AQ??=zf)},Vn=class extends Ue{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),od(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Lo(this,e),Wn(this))}setValue(e){if(Qs(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var nd;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(nd||(nd={}));var Vf={sm:640,md:768,lg:1024,xl:1280},fs=class extends Vn{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>W);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:Vf[e]}},_0=Ke(fs);var hs,ys,ms,gs,To=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ms=(ys=(hs=window.safari)===null||hs===void 0?void 0:hs.pushNotification)===null||ys===void 0?void 0:ys.toString())!==null&&ms!==void 0?ms:"")==="[object SafariRemoteNotification]",jf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(gs=window.ftGlobals)!==null&&gs!==void 0?gs:{lit:Ai,litDecorators:_i,litRepeat:Ni,litClassMap:Ii,litStyleMap:Pi,litUnsafeHTML:Di,wcUtils:{...Wi,...$i,...Zi,...ss,...qi,...Yi,...ea,...Hi,...ma,...ps,...Qc,...ts,...Qi,...Oa,...as,...va,...$l,...Fi,...wa,...ta,...Ra,...ed,...Bl,...La,...Ja,...cs,...ga,...xa,...os,...ji,isSafari:To,isTouchScreen:jf,setVariable:O}};var Ht={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(P.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},id=N`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?ur.error:this.warningMessages.length?ur.warning:ur.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return xe([b()],e.prototype,"warningRules",void 0),xe([b()],e.prototype,"errorRules",void 0),xe([b()],e.prototype,"validateOn",void 0),xe([b({type:Boolean})],e.prototype,"validateAtRender",void 0),xe([b()],e.prototype,"label",void 0),xe([b({type:Boolean})],e.prototype,"hideLabel",void 0),xe([b()],e.prototype,"name",void 0),xe([b({type:Boolean})],e.prototype,"disabled",void 0),xe([b()],e.prototype,"helperText",void 0),xe([b()],e.prototype,"forceStatus",void 0),xe([b({reflect:!0})],e.prototype,"value",void 0),xe([U()],e.prototype,"errorMessages",void 0),xe([U()],e.prototype,"warningMessages",void 0),xe([U()],e.prototype,"status",void 0),xe([U()],e.prototype,"focused",void 0),xe([U()],e.prototype,"additionalWarningRules",void 0),xe([U()],e.prototype,"additionalErrorRules",void 0),e});var Lo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Lo(n,e);return!0},Wn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},od=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),Wf(e)}};function zf(t){this._$AN!==void 0?(Wn(this),this._$AM=t,od(this)):this._$AM=t}function Hf(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)Lo(n[a],!1),Wn(n[a]);else n!=null&&(Lo(n,!1),Wn(n));else Lo(this,t)}var Wf=t=>{t.type==tt.CHILD&&(t._$AP??=Hf,t._$AQ??=zf)},Vn=class extends Ue{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),od(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Lo(this,e),Wn(this))}setValue(e){if(Qs(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var nd;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(nd||(nd={}));var Vf={sm:640,md:768,lg:1024,xl:1280},fs=class extends Vn{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>W);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:Vf[e]}},_0=Ke(fs);var hs,ys,ms,gs,To=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ms=(ys=(hs=window.safari)===null||hs===void 0?void 0:hs.pushNotification)===null||ys===void 0?void 0:ys.toString())!==null&&ms!==void 0?ms:"")==="[object SafariRemoteNotification]",jf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(gs=window.ftGlobals)!==null&&gs!==void 0?gs:{lit:Ai,litDecorators:_i,litRepeat:Ni,litClassMap:Ii,litStyleMap:Pi,litUnsafeHTML:Di,wcUtils:{...Wi,...$i,...Zi,...ss,...qi,...Yi,...ea,...Hi,...ma,...ps,...Qc,...ts,...Qi,...Oa,...as,...va,...$l,...Fi,...wa,...ta,...Ra,...ed,...Bl,...La,...Ja,...cs,...ga,...xa,...os,...ji,isSafari:To,isTouchScreen:jf,setVariable:O}};var Ht={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",P.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},id=N`
86
86
  .ft-tooltip--container {
87
87
  display: block;
88
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-locale-selector",
3
- "version": "1.3.50",
3
+ "version": "1.3.52",
4
4
  "description": "Search locale selector for integrated fluid-topics search pages",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,16 +19,16 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-filter": "1.3.50",
23
- "@fluid-topics/ft-i18n": "1.3.50",
24
- "@fluid-topics/ft-icon": "1.3.50",
25
- "@fluid-topics/ft-search-context": "1.3.50",
26
- "@fluid-topics/ft-tooltip": "1.3.50",
27
- "@fluid-topics/ft-wc-utils": "1.3.50",
22
+ "@fluid-topics/ft-filter": "1.3.52",
23
+ "@fluid-topics/ft-i18n": "1.3.52",
24
+ "@fluid-topics/ft-icon": "1.3.52",
25
+ "@fluid-topics/ft-search-context": "1.3.52",
26
+ "@fluid-topics/ft-tooltip": "1.3.52",
27
+ "@fluid-topics/ft-wc-utils": "1.3.52",
28
28
  "lit": "3.1.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@fluid-topics/public-api": "1.0.110-alpha"
31
+ "@fluid-topics/public-api": "1.0.112"
32
32
  },
33
- "gitHead": "8624905b03e700cf33965e24ed75f491d5d39141"
33
+ "gitHead": "8cd9d8b95748384e70ead4c45af71bd9781ddf44"
34
34
  }