toshub-widget 1.0.16 → 1.0.18
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/README.md +6 -12
- package/dist/widget.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,22 +11,16 @@
|
|
|
11
11
|
```html
|
|
12
12
|
<script>
|
|
13
13
|
(() => {
|
|
14
|
+
const widget = document.createElement("toshub-widget");
|
|
15
|
+
document.body.appendChild(widget);
|
|
14
16
|
const e = document.createElement("script");
|
|
15
17
|
(e.src = "https://unpkg.com/toshub-widget/dist/widget.min.js"),
|
|
16
18
|
(e.defer = !0),
|
|
17
19
|
document.body.appendChild(e);
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.join("");
|
|
23
|
-
const t = xorString(
|
|
24
|
-
"\x1f\x15\x11\x0e\x06\x0f\x15\x11\x02\x07\x11\x07\x1d\x0c\x02\x03\x16\x03\x0d\x0d\x0e\x16\x0f",
|
|
25
|
-
42
|
|
26
|
-
),
|
|
27
|
-
a = xorString("\x1e\x0e\x13\x0b\x05\x06\x11", 42),
|
|
28
|
-
s = "apikey";
|
|
29
|
-
window[t] = { [a]: s };
|
|
20
|
+
const t = "X1RPU0hVQldJREdFVF9TRVRUSU5HUw==",
|
|
21
|
+
a = "YXBpa2V5",
|
|
22
|
+
s = "apikeybase64encoded";
|
|
23
|
+
window[atob(t)] = { [atob(a)]: atob(s) };
|
|
30
24
|
})();
|
|
31
25
|
</script>
|
|
32
26
|
```
|
package/dist/widget.min.js
CHANGED
|
@@ -45,5 +45,5 @@ Error generating stack: `+o.message+`
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var On=B;function Xp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zp=typeof Object.is=="function"?Object.is:Xp,Jp=On.useState,qp=On.useEffect,bp=On.useLayoutEffect,e0=On.useDebugValue;function t0(e,t){var n=t(),r=Jp({inst:{value:n,getSnapshot:t}}),l=r[0].inst,o=r[1];return bp(function(){l.value=n,l.getSnapshot=t,ko(l)&&o({inst:l})},[e,n,t]),qp(function(){return ko(l)&&o({inst:l}),e(function(){ko(l)&&o({inst:l})})},[e]),e0(n),n}function ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zp(e,n)}catch{return!0}}function n0(e,t){return t()}var r0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n0:t0;nf.useSyncExternalStore=On.useSyncExternalStore!==void 0?On.useSyncExternalStore:r0;tf.exports=nf;var l0=tf.exports;const xt=()=>{},Se=xt(),_o=Object,D=e=>e===Se,qe=e=>typeof e=="function",Mt=(e,t)=>({...e,...t}),o0=e=>qe(e.then),Qr=new WeakMap;let i0=0;const Er=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let l,o;if(_o(e)===e&&!r&&n!=RegExp){if(l=Qr.get(e),l)return l;if(l=++i0+"~",Qr.set(e,l),n==Array){for(l="@",o=0;o<e.length;o++)l+=Er(e[o])+",";Qr.set(e,l)}if(n==_o){l="#";const i=_o.keys(e).sort();for(;!D(o=i.pop());)D(e[o])||(l+=o+":"+Er(e[o])+",");Qr.set(e,l)}}else l=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return l},ut=new WeakMap,Co={},Kr={},Eu="undefined",Ql=typeof window!=Eu,Si=typeof document!=Eu,u0=()=>Ql&&typeof window.requestAnimationFrame!=Eu,rf=(e,t)=>{const n=ut.get(e);return[()=>!D(t)&&e.get(t)||Co,r=>{if(!D(t)){const l=e.get(t);t in Kr||(Kr[t]=l),n[5](t,Mt(l,r),l||Co)}},n[6],()=>!D(t)&&t in Kr?Kr[t]:!D(t)&&e.get(t)||Co]};let Ei=!0;const s0=()=>Ei,[ki,_i]=Ql&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[xt,xt],a0=()=>{const e=Si&&document.visibilityState;return D(e)||e!=="hidden"},c0=e=>(Si&&document.addEventListener("visibilitychange",e),ki("focus",e),()=>{Si&&document.removeEventListener("visibilitychange",e),_i("focus",e)}),f0=e=>{const t=()=>{Ei=!0,e()},n=()=>{Ei=!1};return ki("online",t),ki("offline",n),()=>{_i("online",t),_i("offline",n)}},d0={isOnline:s0,isVisible:a0},p0={initFocus:c0,initReconnect:f0},Fs=!Li.useId,kr=!Ql||"Deno"in window,m0=e=>u0()?window.requestAnimationFrame(e):setTimeout(e,1),xo=kr?B.useEffect:B.useLayoutEffect,To=typeof navigator<"u"&&navigator.connection,As=!kr&&To&&(["slow-2g","2g"].includes(To.effectiveType)||To.saveData),ku=e=>{if(qe(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Er(e):"",[e,t]};let h0=0;const Ci=()=>++h0,lf=0,of=1,uf=2,v0=3;var Hn={__proto__:null,ERROR_REVALIDATE_EVENT:v0,FOCUS_EVENT:lf,MUTATE_EVENT:uf,RECONNECT_EVENT:of};async function sf(...e){const[t,n,r,l]=e,o=Mt({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let i=o.populateCache;const u=o.rollbackOnError;let s=o.optimisticData;const f=p=>typeof u=="function"?u(p):u!==!1,h=o.throwOnError;if(qe(n)){const p=n,y=[],S=t.keys();for(const w of S)!/^\$(inf|sub)\$/.test(w)&&p(t.get(w)._k)&&y.push(w);return Promise.all(y.map(m))}return m(n);async function m(p){const[y]=ku(p);if(!y)return;const[S,w]=rf(t,y),[j,a,c,d]=ut.get(t),v=()=>{const le=j[y];return(qe(o.revalidate)?o.revalidate(S().data,p):o.revalidate!==!1)&&(delete c[y],delete d[y],le&&le[0])?le[0](uf).then(()=>S().data):S().data};if(e.length<3)return v();let E=r,_;const T=Ci();a[y]=[T,0];const k=!D(s),M=S(),N=M.data,te=M._c,xe=D(te)?N:te;if(k&&(s=qe(s)?s(xe,N):s,w({data:s,_c:xe})),qe(E))try{E=E(xe)}catch(le){_=le}if(E&&o0(E))if(E=await E.catch(le=>{_=le}),T!==a[y][0]){if(_)throw _;return E}else _&&k&&f(_)&&(i=!0,w({data:xe,_c:Se}));if(i&&!_)if(qe(i)){const le=i(E,xe);w({data:le,error:Se,_c:Se})}else w({data:E,error:Se,_c:Se});if(a[y][1]=Ci(),Promise.resolve(v()).then(()=>{w({_c:Se})}),_){if(h)throw _;return}return E}}const Us=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},y0=(e,t)=>{if(!ut.has(e)){const n=Mt(p0,t),r={},l=sf.bind(Se,e);let o=xt;const i={},u=(h,m)=>{const p=i[h]||[];return i[h]=p,p.push(m),()=>p.splice(p.indexOf(m),1)},s=(h,m,p)=>{e.set(h,m);const y=i[h];if(y)for(const S of y)S(m,p)},f=()=>{if(!ut.has(e)&&(ut.set(e,[r,{},{},{},l,s,u]),!kr)){const h=n.initFocus(setTimeout.bind(Se,Us.bind(Se,r,lf))),m=n.initReconnect(setTimeout.bind(Se,Us.bind(Se,r,of)));o=()=>{h&&h(),m&&m(),ut.delete(e)}}};return f(),[e,l,f,o]}return[e,ut.get(e)[4]]},g0=(e,t,n,r,l)=>{const o=n.errorRetryCount,i=l.retryCount,u=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!D(o)&&i>o||setTimeout(r,u,l)},w0=(e,t)=>Er(e)==Er(t),[af,S0]=y0(new Map),E0=Mt({onLoadingSlow:xt,onSuccess:xt,onError:xt,onErrorRetry:g0,onDiscarded:xt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:As?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:As?5e3:3e3,compare:w0,isPaused:()=>!1,cache:af,mutate:S0,fallback:{}},d0),k0=(e,t)=>{const n=Mt(e,t);if(t){const{use:r,fallback:l}=e,{use:o,fallback:i}=t;r&&o&&(n.use=r.concat(o)),l&&i&&(n.fallback=Mt(l,i))}return n},_0=B.createContext({}),C0="$inf$",cf=Ql&&window.__SWR_DEVTOOLS_USE__,x0=cf?window.__SWR_DEVTOOLS_USE__:[],T0=()=>{cf&&(window.__SWR_DEVTOOLS_REACT__=Li)},N0=e=>qe(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],P0=()=>Mt(E0,B.useContext(_0)),R0=e=>(t,n,r)=>e(t,n&&((...o)=>{const[i]=ku(t),[,,,u]=ut.get(af);if(i.startsWith(C0))return n(...o);const s=u[i];return D(s)?n(...o):(delete u[i],s)}),r),L0=x0.concat(R0),O0=e=>function(...n){const r=P0(),[l,o,i]=N0(n),u=k0(r,i);let s=e;const{use:f}=u,h=(f||[]).concat(L0);for(let m=h.length;m--;)s=h[m](s);return s(l,o||u.fetcher||null,u)},z0=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const l=r.indexOf(n);l>=0&&(r[l]=r[r.length-1],r.pop())}};T0();const Vs=Li.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),No={dedupe:!0},D0=(e,t,n)=>{const{cache:r,compare:l,suspense:o,fallbackData:i,revalidateOnMount:u,revalidateIfStale:s,refreshInterval:f,refreshWhenHidden:h,refreshWhenOffline:m,keepPreviousData:p}=n,[y,S,w,j]=ut.get(r),[a,c]=ku(e),d=B.useRef(!1),v=B.useRef(!1),E=B.useRef(a),_=B.useRef(t),T=B.useRef(n),k=()=>T.current,M=()=>k().isVisible()&&k().isOnline(),[N,te,xe,le]=rf(r,a),tt=B.useRef({}).current,Kl=D(i)?n.fallback[a]:i,tn=(V,$)=>{for(const ae in tt){const Z=ae;if(Z==="data"){if(!l(V[Z],$[Z])&&(!D(V[Z])||!l(vt,$[Z])))return!1}else if($[Z]!==V[Z])return!1}return!0},nn=B.useMemo(()=>{const V=!a||!t?!1:D(u)?k().isPaused()||o?!1:D(s)?!0:s:u,$=me=>{const rt=Mt(me);return delete rt._k,V?{isValidating:!0,isLoading:!0,...rt}:rt},ae=N(),Z=le(),Ge=$(ae),rn=ae===Z?Ge:$(Z);let oe=Ge;return[()=>{const me=$(N());return tn(me,oe)?(oe.data=me.data,oe.isLoading=me.isLoading,oe.isValidating=me.isValidating,oe.error=me.error,oe):(oe=me,me)},()=>rn]},[r,a]),C=l0.useSyncExternalStore(B.useCallback(V=>xe(a,($,ae)=>{tn(ae,$)||V()}),[r,a]),nn[0],nn[1]),P=!d.current,R=y[a]&&y[a].length>0,F=C.data,U=D(F)?Kl:F,nt=C.error,Ke=B.useRef(U),vt=p?D(F)?Ke.current:F:U,Ye=R&&!D(nt)?!1:P&&!D(u)?u:k().isPaused()?!1:o?D(U)?!1:s:D(U)||s,Vt=!!(a&&t&&P&&Ye),Sf=D(C.isValidating)?Vt:C.isValidating,Ef=D(C.isLoading)?Vt:C.isLoading,jn=B.useCallback(async V=>{const $=_.current;if(!a||!$||v.current||k().isPaused())return!1;let ae,Z,Ge=!0;const rn=V||{},oe=!w[a]||!rn.dedupe,me=()=>Fs?!v.current&&a===E.current&&d.current:a===E.current,rt={isValidating:!1,isLoading:!1},xu=()=>{te(rt)},Tu=()=>{const ze=w[a];ze&&ze[1]===Z&&delete w[a]},Nu={isValidating:!0};D(N().data)&&(Nu.isLoading=!0);try{if(oe&&(te(Nu),n.loadingTimeout&&D(N().data)&&setTimeout(()=>{Ge&&me()&&k().onLoadingSlow(a,n)},n.loadingTimeout),w[a]=[$(c),Ci()]),[ae,Z]=w[a],ae=await ae,oe&&setTimeout(Tu,n.dedupingInterval),!w[a]||w[a][1]!==Z)return oe&&me()&&k().onDiscarded(a),!1;rt.error=Se;const ze=S[a];if(!D(ze)&&(Z<=ze[0]||Z<=ze[1]||ze[1]===0))return xu(),oe&&me()&&k().onDiscarded(a),!1;const lt=N().data;rt.data=l(lt,ae)?lt:ae,oe&&me()&&k().onSuccess(ae,a,n)}catch(ze){Tu();const lt=k(),{shouldRetryOnError:Yl}=lt;lt.isPaused()||(rt.error=ze,oe&&me()&&(lt.onError(ze,a,lt),(Yl===!0||qe(Yl)&&Yl(ze))&&(!k().revalidateOnFocus||!k().revalidateOnReconnect||M())&<.onErrorRetry(ze,a,lt,kf=>{const Gl=y[a];Gl&&Gl[0]&&Gl[0](Hn.ERROR_REVALIDATE_EVENT,kf)},{retryCount:(rn.retryCount||0)+1,dedupe:!0})))}return Ge=!1,xu(),!0},[a,r]),Cu=B.useCallback((...V)=>sf(r,E.current,...V),[]);if(xo(()=>{_.current=t,T.current=n,D(F)||(Ke.current=F)}),xo(()=>{if(!a)return;const V=jn.bind(Se,No);let $=0;const Z=z0(a,y,(Ge,rn={})=>{if(Ge==Hn.FOCUS_EVENT){const oe=Date.now();k().revalidateOnFocus&&oe>$&&M()&&($=oe+k().focusThrottleInterval,V())}else if(Ge==Hn.RECONNECT_EVENT)k().revalidateOnReconnect&&M()&&V();else{if(Ge==Hn.MUTATE_EVENT)return jn();if(Ge==Hn.ERROR_REVALIDATE_EVENT)return jn(rn)}});return v.current=!1,E.current=a,d.current=!0,te({_k:c}),Ye&&(D(U)||kr?V():m0(V)),()=>{v.current=!0,Z()}},[a]),xo(()=>{let V;function $(){const Z=qe(f)?f(N().data):f;Z&&V!==-1&&(V=setTimeout(ae,Z))}function ae(){!N().error&&(h||k().isVisible())&&(m||k().isOnline())?jn(No).then($):$()}return $(),()=>{V&&(clearTimeout(V),V=-1)}},[f,h,m,a]),B.useDebugValue(vt),o&&D(U)&&a){if(!Fs&&kr)throw new Error("Fallback data is required when using suspense in SSR.");_.current=t,T.current=n,v.current=!1;const V=j[a];if(!D(V)){const $=Cu(V);Vs($)}if(D(nt)){const $=jn(No);D(vt)||($.status="fulfilled",$.value=!0),Vs($)}else throw nt}return{mutate:Cu,get data(){return tt.data=!0,vt},get error(){return tt.error=!0,nt},get isValidating(){return tt.isValidating=!0,Sf},get isLoading(){return tt.isLoading=!0,Ef}}},I0=O0(D0),_u=(e,t=!0)=>!t&&!window._TOSHUBWIDGET_SETTINGS?e:window._TOSHUBWIDGET_SETTINGS?window._TOSHUBWIDGET_SETTINGS[e]:null,ff={start_place:"start_place",end_place:"end_place",categories:"category",type_of_tour:"strengths"},j0="https://hub.tourofsicily.com/wp-json/hub-api/v1",M0=(e,t)=>fetch(e,{method:"GET",headers:{"X-Toshub":`${t}`}}).then(n=>n.json()),xi=e=>Object.values(e).every(t=>t==="0"),F0=(e,t)=>{if(xi(t))return[];const n=Object.keys(t).filter(r=>t[r]!=="0");return e.filter(r=>n.every(l=>r[ff[l]].includes(parseInt(t[l]))))},A0=e=>e.sort((t,n)=>t.name.localeCompare(n.name)),U0=(e,t,n)=>{const r=new Set(t.map(l=>l[ff[e]]).flat());return A0(n.filter(l=>r.has(l.id)))},V0={"Day tours":"purple","Shore-Excursion":"cyan","Straight Transfer":"red","Transfer-Tour":"green"};var df={exports:{}},$0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",W0=$0,B0=W0;function pf(){}function mf(){}mf.resetWarningCache=pf;var H0=function(){function e(r,l,o,i,u,s){if(s!==B0){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:mf,resetWarningCache:pf};return n.PropTypes=n,n};df.exports=H0();var Q0=df.exports;const kt=$s(Q0);function hf({options:e,taxon:t,setSelectedFilters:n,selectedFilters:r,products:l}){const o=s=>{n(f=>({...f,[t]:s.target.value}))},[i,u]=B.useState([]);return B.useEffect(()=>{if(l.length>0){const s=U0(t,l,e);u(s)}},[l,e,t,r]),L.jsxs("select",{id:t,name:t,onChange:o,className:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[L.jsx("option",{value:"0",children:"Select an option"}),i.map(s=>L.jsx("option",{value:s.id,children:s.name},s.id))]})}hf.propTypes={options:kt.array,taxon:kt.string,setSelectedFilters:kt.func,selectedFilters:kt.object,products:kt.array};function vf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=vf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function K0(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=vf(e))&&(r&&(r+=" "),r+=t);return r}function yf({product:e}){let t="https://product.tourofsicily.com/";const n="p/"+e.ID,r="transfer/"+e.ID,l=e.label,i=`bg-${V0[l]||"gray"}-500`;return l==="Straight Transfer"?t+=r:t+=n,L.jsxs("a",{href:t,target:"_blank",className:"block overflow-hidden w-full p-6 bg-white border border-gray-200 rounded-lg shadow hover:bg-gray-100 relative product-card",children:[L.jsx("span",{className:"absolute top-4 right-4 w-8 h-8 flex items-center justify-center bg-white rounded-lg shadow-sm",children:L.jsx("svg",{xmlns:" http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})}),L.jsx("div",{className:"h-48 -m-6 overflow-hidden",children:e.cover&&L.jsx("img",{src:e.cover,className:"h-full w-full object-cover",alt:e.post_title})}),L.jsx("span",{className:K0("absolute shadow top-4 left-4 px-2 py-1 text-xs font-semibold leading-none tracking-tighter text-white uppercase rounded-full",i),children:l}),L.jsx("h5",{className:"mb-2 text-2xl font-bold tracking-tight text-gray-900 mt-8",children:e.post_title}),L.jsx("p",{className:"font-normal text-gray-700",children:e.post_excerpt})]})}yf.propTypes={product:kt.object};function gf({products:e}){return L.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-8 mt-8 justify-items-center",children:e.map(t=>L.jsx(yf,{product:t},t.id))})}gf.propTypes={products:kt.array};function wf({productTaxons:e}){const t=[{taxon:"start_place",label:"Starting from"},{taxon:"end_place",label:"Ending location"},{taxon:"categories",label:"Category"},{taxon:"type_of_tour",label:"Type of tour"}],[n,r]=B.useState({start_place:"0",end_place:"0",categories:"0",type_of_tour:"0"}),l=(i,u)=>{r(s=>({...s,[i]:"0"})),u.closest("div").querySelector("select").value="0"},o=xi(n)?e.products:F0(e.products,n);return L.jsxs("div",{children:[L.jsx("div",{className:"md:grid md:grid-cols-2 xl:grid-cols-4 gap-8",children:t.map(({taxon:i,label:u})=>L.jsxs("div",{children:[L.jsxs("label",{htmlFor:i,className:"flex justify-between text-sm font-medium leading-6 text-left min-h-8",children:[L.jsx("span",{children:u}),n[i]!=="0"&&L.jsx("button",{type:"button",title:"Reset",className:"hover:bg-gray-100 p-1 rounded",onClick:s=>l(i,s.target),children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-6",children:L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]}),L.jsx(hf,{taxon:i,setSelectedFilters:r,selectedFilters:n,options:e[i],products:o}),n[i]!=="0"&&L.jsx("p",{className:"text-xs p-1",children:"if you like to change selection, please use the button reset before update your choice"})]},i))}),L.jsx("div",{children:L.jsx(gf,{products:xi(n)?[]:o})})]})}wf.propTypes={productTaxons:kt.object.isRequired};function Y0(){return L.jsxs("div",{role:"status",children:[L.jsxs("svg",{"aria-hidden":"true",className:"w-8 h-8 text-gray-200 animate-spin fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),L.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),L.jsx("span",{className:"sr-only",children:"Loading..."})]})}function G0(){const{data:e,error:t,isLoading:n}=I0(j0+"/productTaxons",o=>M0(o,_u("apikey"))),[r,l]=B.useState({products:[],start_place:[],end_place:[],categories:[],type_of_tour:[]});return B.useEffect(()=>{e!=null&&e.success&&l(e.data)},[e]),L.jsxs("div",{className:"relative",children:[(n||t||!e.success)&&L.jsx("div",{className:"absolute z-10 bg-white/70 w-full h-full flex",children:L.jsxs("div",{className:"m-auto",children:[n&&!t&&L.jsx(Y0,{}),t||e&&!(e!=null&&e.success)&&L.jsx("div",{className:"py-1 px-2 bg-zinc-900 text-white rounded",children:"An error occurred during loading products widget, please try again in few seconds."})]})}),!t&&!n&&e&&L.jsx(wf,{productTaxons:r})]})}const X0=()=>L.jsx(G0,{}),Z0=e=>{const t=document.createElement("style");t.textContent+=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.absolute{position:absolute}.relative{position:relative}.left-4{left:1rem}.right-4{right:1rem}.top-4{top:1rem}.z-10{z-index:10}.-m-6{margin:-1.5rem}.m-auto{margin:auto}.mb-2{margin-bottom:.5rem}.mt-2{margin-top:.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.grid{display:grid}.size-6{width:1.5rem;height:1.5rem}.h-48{height:12rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-8{min-height:2rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-8{gap:2rem}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.bg-cyan-500{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/70{background-color:#ffffffb3}.bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity))}.fill-blue-600{fill:#2563eb}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.text-left{text-align:left}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width: 768px){.md\:grid{display:grid}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
|
|
48
|
+
*/var On=B;function Xp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zp=typeof Object.is=="function"?Object.is:Xp,Jp=On.useState,qp=On.useEffect,bp=On.useLayoutEffect,e0=On.useDebugValue;function t0(e,t){var n=t(),r=Jp({inst:{value:n,getSnapshot:t}}),l=r[0].inst,o=r[1];return bp(function(){l.value=n,l.getSnapshot=t,ko(l)&&o({inst:l})},[e,n,t]),qp(function(){return ko(l)&&o({inst:l}),e(function(){ko(l)&&o({inst:l})})},[e]),e0(n),n}function ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zp(e,n)}catch{return!0}}function n0(e,t){return t()}var r0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n0:t0;nf.useSyncExternalStore=On.useSyncExternalStore!==void 0?On.useSyncExternalStore:r0;tf.exports=nf;var l0=tf.exports;const xt=()=>{},Se=xt(),_o=Object,D=e=>e===Se,qe=e=>typeof e=="function",Mt=(e,t)=>({...e,...t}),o0=e=>qe(e.then),Qr=new WeakMap;let i0=0;const Er=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let l,o;if(_o(e)===e&&!r&&n!=RegExp){if(l=Qr.get(e),l)return l;if(l=++i0+"~",Qr.set(e,l),n==Array){for(l="@",o=0;o<e.length;o++)l+=Er(e[o])+",";Qr.set(e,l)}if(n==_o){l="#";const i=_o.keys(e).sort();for(;!D(o=i.pop());)D(e[o])||(l+=o+":"+Er(e[o])+",");Qr.set(e,l)}}else l=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return l},ut=new WeakMap,Co={},Kr={},Eu="undefined",Ql=typeof window!=Eu,Si=typeof document!=Eu,u0=()=>Ql&&typeof window.requestAnimationFrame!=Eu,rf=(e,t)=>{const n=ut.get(e);return[()=>!D(t)&&e.get(t)||Co,r=>{if(!D(t)){const l=e.get(t);t in Kr||(Kr[t]=l),n[5](t,Mt(l,r),l||Co)}},n[6],()=>!D(t)&&t in Kr?Kr[t]:!D(t)&&e.get(t)||Co]};let Ei=!0;const s0=()=>Ei,[ki,_i]=Ql&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[xt,xt],a0=()=>{const e=Si&&document.visibilityState;return D(e)||e!=="hidden"},c0=e=>(Si&&document.addEventListener("visibilitychange",e),ki("focus",e),()=>{Si&&document.removeEventListener("visibilitychange",e),_i("focus",e)}),f0=e=>{const t=()=>{Ei=!0,e()},n=()=>{Ei=!1};return ki("online",t),ki("offline",n),()=>{_i("online",t),_i("offline",n)}},d0={isOnline:s0,isVisible:a0},p0={initFocus:c0,initReconnect:f0},Fs=!Li.useId,kr=!Ql||"Deno"in window,m0=e=>u0()?window.requestAnimationFrame(e):setTimeout(e,1),xo=kr?B.useEffect:B.useLayoutEffect,To=typeof navigator<"u"&&navigator.connection,As=!kr&&To&&(["slow-2g","2g"].includes(To.effectiveType)||To.saveData),ku=e=>{if(qe(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Er(e):"",[e,t]};let h0=0;const Ci=()=>++h0,lf=0,of=1,uf=2,v0=3;var Hn={__proto__:null,ERROR_REVALIDATE_EVENT:v0,FOCUS_EVENT:lf,MUTATE_EVENT:uf,RECONNECT_EVENT:of};async function sf(...e){const[t,n,r,l]=e,o=Mt({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let i=o.populateCache;const u=o.rollbackOnError;let s=o.optimisticData;const f=p=>typeof u=="function"?u(p):u!==!1,h=o.throwOnError;if(qe(n)){const p=n,y=[],S=t.keys();for(const w of S)!/^\$(inf|sub)\$/.test(w)&&p(t.get(w)._k)&&y.push(w);return Promise.all(y.map(m))}return m(n);async function m(p){const[y]=ku(p);if(!y)return;const[S,w]=rf(t,y),[j,a,c,d]=ut.get(t),v=()=>{const le=j[y];return(qe(o.revalidate)?o.revalidate(S().data,p):o.revalidate!==!1)&&(delete c[y],delete d[y],le&&le[0])?le[0](uf).then(()=>S().data):S().data};if(e.length<3)return v();let E=r,_;const T=Ci();a[y]=[T,0];const k=!D(s),M=S(),N=M.data,te=M._c,xe=D(te)?N:te;if(k&&(s=qe(s)?s(xe,N):s,w({data:s,_c:xe})),qe(E))try{E=E(xe)}catch(le){_=le}if(E&&o0(E))if(E=await E.catch(le=>{_=le}),T!==a[y][0]){if(_)throw _;return E}else _&&k&&f(_)&&(i=!0,w({data:xe,_c:Se}));if(i&&!_)if(qe(i)){const le=i(E,xe);w({data:le,error:Se,_c:Se})}else w({data:E,error:Se,_c:Se});if(a[y][1]=Ci(),Promise.resolve(v()).then(()=>{w({_c:Se})}),_){if(h)throw _;return}return E}}const Us=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},y0=(e,t)=>{if(!ut.has(e)){const n=Mt(p0,t),r={},l=sf.bind(Se,e);let o=xt;const i={},u=(h,m)=>{const p=i[h]||[];return i[h]=p,p.push(m),()=>p.splice(p.indexOf(m),1)},s=(h,m,p)=>{e.set(h,m);const y=i[h];if(y)for(const S of y)S(m,p)},f=()=>{if(!ut.has(e)&&(ut.set(e,[r,{},{},{},l,s,u]),!kr)){const h=n.initFocus(setTimeout.bind(Se,Us.bind(Se,r,lf))),m=n.initReconnect(setTimeout.bind(Se,Us.bind(Se,r,of)));o=()=>{h&&h(),m&&m(),ut.delete(e)}}};return f(),[e,l,f,o]}return[e,ut.get(e)[4]]},g0=(e,t,n,r,l)=>{const o=n.errorRetryCount,i=l.retryCount,u=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!D(o)&&i>o||setTimeout(r,u,l)},w0=(e,t)=>Er(e)==Er(t),[af,S0]=y0(new Map),E0=Mt({onLoadingSlow:xt,onSuccess:xt,onError:xt,onErrorRetry:g0,onDiscarded:xt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:As?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:As?5e3:3e3,compare:w0,isPaused:()=>!1,cache:af,mutate:S0,fallback:{}},d0),k0=(e,t)=>{const n=Mt(e,t);if(t){const{use:r,fallback:l}=e,{use:o,fallback:i}=t;r&&o&&(n.use=r.concat(o)),l&&i&&(n.fallback=Mt(l,i))}return n},_0=B.createContext({}),C0="$inf$",cf=Ql&&window.__SWR_DEVTOOLS_USE__,x0=cf?window.__SWR_DEVTOOLS_USE__:[],T0=()=>{cf&&(window.__SWR_DEVTOOLS_REACT__=Li)},N0=e=>qe(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],P0=()=>Mt(E0,B.useContext(_0)),R0=e=>(t,n,r)=>e(t,n&&((...o)=>{const[i]=ku(t),[,,,u]=ut.get(af);if(i.startsWith(C0))return n(...o);const s=u[i];return D(s)?n(...o):(delete u[i],s)}),r),L0=x0.concat(R0),O0=e=>function(...n){const r=P0(),[l,o,i]=N0(n),u=k0(r,i);let s=e;const{use:f}=u,h=(f||[]).concat(L0);for(let m=h.length;m--;)s=h[m](s);return s(l,o||u.fetcher||null,u)},z0=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const l=r.indexOf(n);l>=0&&(r[l]=r[r.length-1],r.pop())}};T0();const Vs=Li.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),No={dedupe:!0},D0=(e,t,n)=>{const{cache:r,compare:l,suspense:o,fallbackData:i,revalidateOnMount:u,revalidateIfStale:s,refreshInterval:f,refreshWhenHidden:h,refreshWhenOffline:m,keepPreviousData:p}=n,[y,S,w,j]=ut.get(r),[a,c]=ku(e),d=B.useRef(!1),v=B.useRef(!1),E=B.useRef(a),_=B.useRef(t),T=B.useRef(n),k=()=>T.current,M=()=>k().isVisible()&&k().isOnline(),[N,te,xe,le]=rf(r,a),tt=B.useRef({}).current,Kl=D(i)?n.fallback[a]:i,tn=(V,$)=>{for(const ae in tt){const Z=ae;if(Z==="data"){if(!l(V[Z],$[Z])&&(!D(V[Z])||!l(vt,$[Z])))return!1}else if($[Z]!==V[Z])return!1}return!0},nn=B.useMemo(()=>{const V=!a||!t?!1:D(u)?k().isPaused()||o?!1:D(s)?!0:s:u,$=me=>{const rt=Mt(me);return delete rt._k,V?{isValidating:!0,isLoading:!0,...rt}:rt},ae=N(),Z=le(),Ge=$(ae),rn=ae===Z?Ge:$(Z);let oe=Ge;return[()=>{const me=$(N());return tn(me,oe)?(oe.data=me.data,oe.isLoading=me.isLoading,oe.isValidating=me.isValidating,oe.error=me.error,oe):(oe=me,me)},()=>rn]},[r,a]),C=l0.useSyncExternalStore(B.useCallback(V=>xe(a,($,ae)=>{tn(ae,$)||V()}),[r,a]),nn[0],nn[1]),P=!d.current,R=y[a]&&y[a].length>0,F=C.data,U=D(F)?Kl:F,nt=C.error,Ke=B.useRef(U),vt=p?D(F)?Ke.current:F:U,Ye=R&&!D(nt)?!1:P&&!D(u)?u:k().isPaused()?!1:o?D(U)?!1:s:D(U)||s,Vt=!!(a&&t&&P&&Ye),Sf=D(C.isValidating)?Vt:C.isValidating,Ef=D(C.isLoading)?Vt:C.isLoading,jn=B.useCallback(async V=>{const $=_.current;if(!a||!$||v.current||k().isPaused())return!1;let ae,Z,Ge=!0;const rn=V||{},oe=!w[a]||!rn.dedupe,me=()=>Fs?!v.current&&a===E.current&&d.current:a===E.current,rt={isValidating:!1,isLoading:!1},xu=()=>{te(rt)},Tu=()=>{const ze=w[a];ze&&ze[1]===Z&&delete w[a]},Nu={isValidating:!0};D(N().data)&&(Nu.isLoading=!0);try{if(oe&&(te(Nu),n.loadingTimeout&&D(N().data)&&setTimeout(()=>{Ge&&me()&&k().onLoadingSlow(a,n)},n.loadingTimeout),w[a]=[$(c),Ci()]),[ae,Z]=w[a],ae=await ae,oe&&setTimeout(Tu,n.dedupingInterval),!w[a]||w[a][1]!==Z)return oe&&me()&&k().onDiscarded(a),!1;rt.error=Se;const ze=S[a];if(!D(ze)&&(Z<=ze[0]||Z<=ze[1]||ze[1]===0))return xu(),oe&&me()&&k().onDiscarded(a),!1;const lt=N().data;rt.data=l(lt,ae)?lt:ae,oe&&me()&&k().onSuccess(ae,a,n)}catch(ze){Tu();const lt=k(),{shouldRetryOnError:Yl}=lt;lt.isPaused()||(rt.error=ze,oe&&me()&&(lt.onError(ze,a,lt),(Yl===!0||qe(Yl)&&Yl(ze))&&(!k().revalidateOnFocus||!k().revalidateOnReconnect||M())&<.onErrorRetry(ze,a,lt,kf=>{const Gl=y[a];Gl&&Gl[0]&&Gl[0](Hn.ERROR_REVALIDATE_EVENT,kf)},{retryCount:(rn.retryCount||0)+1,dedupe:!0})))}return Ge=!1,xu(),!0},[a,r]),Cu=B.useCallback((...V)=>sf(r,E.current,...V),[]);if(xo(()=>{_.current=t,T.current=n,D(F)||(Ke.current=F)}),xo(()=>{if(!a)return;const V=jn.bind(Se,No);let $=0;const Z=z0(a,y,(Ge,rn={})=>{if(Ge==Hn.FOCUS_EVENT){const oe=Date.now();k().revalidateOnFocus&&oe>$&&M()&&($=oe+k().focusThrottleInterval,V())}else if(Ge==Hn.RECONNECT_EVENT)k().revalidateOnReconnect&&M()&&V();else{if(Ge==Hn.MUTATE_EVENT)return jn();if(Ge==Hn.ERROR_REVALIDATE_EVENT)return jn(rn)}});return v.current=!1,E.current=a,d.current=!0,te({_k:c}),Ye&&(D(U)||kr?V():m0(V)),()=>{v.current=!0,Z()}},[a]),xo(()=>{let V;function $(){const Z=qe(f)?f(N().data):f;Z&&V!==-1&&(V=setTimeout(ae,Z))}function ae(){!N().error&&(h||k().isVisible())&&(m||k().isOnline())?jn(No).then($):$()}return $(),()=>{V&&(clearTimeout(V),V=-1)}},[f,h,m,a]),B.useDebugValue(vt),o&&D(U)&&a){if(!Fs&&kr)throw new Error("Fallback data is required when using suspense in SSR.");_.current=t,T.current=n,v.current=!1;const V=j[a];if(!D(V)){const $=Cu(V);Vs($)}if(D(nt)){const $=jn(No);D(vt)||($.status="fulfilled",$.value=!0),Vs($)}else throw nt}return{mutate:Cu,get data(){return tt.data=!0,vt},get error(){return tt.error=!0,nt},get isValidating(){return tt.isValidating=!0,Sf},get isLoading(){return tt.isLoading=!0,Ef}}},I0=O0(D0),_u=(e,t=!0)=>!t&&!window._TOSHUBWIDGET_SETTINGS?e:window._TOSHUBWIDGET_SETTINGS?window._TOSHUBWIDGET_SETTINGS[e]:null,ff={start_place:"start_place",end_place:"end_place",categories:"category",type_of_tour:"strengths"},j0="https://hub.tourofsicily.com/wp-json/hub-api/v1",M0=(e,t)=>fetch(e,{method:"GET",headers:{"X-Toshub":`${t}`}}).then(n=>n.json()),xi=e=>Object.values(e).every(t=>t==="0"),F0=(e,t)=>{if(xi(t))return[];const n=Object.keys(t).filter(r=>t[r]!=="0");return e.filter(r=>n.every(l=>r[ff[l]].includes(parseInt(t[l]))))},A0=e=>e.sort((t,n)=>t.name.localeCompare(n.name)),U0=(e,t,n)=>{const r=new Set(t.map(l=>l[ff[e]]).flat());return A0(n.filter(l=>r.has(l.id)))},V0={"Day tours":"purple","Shore-Excursion":"cyan","Straight Transfer":"red","Transfer-Tour":"green"};var df={exports:{}},$0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",W0=$0,B0=W0;function pf(){}function mf(){}mf.resetWarningCache=pf;var H0=function(){function e(r,l,o,i,u,s){if(s!==B0){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:mf,resetWarningCache:pf};return n.PropTypes=n,n};df.exports=H0();var Q0=df.exports;const kt=$s(Q0);function hf({options:e,taxon:t,setSelectedFilters:n,selectedFilters:r,products:l}){const o=s=>{n(f=>({...f,[t]:s.target.value}))},[i,u]=B.useState([]);return B.useEffect(()=>{if(l.length>0){const s=U0(t,l,e);u(s)}},[l,e,t,r]),L.jsxs("select",{id:t,name:t,onChange:o,className:"mt-2 block w-full rounded-md border-0 py-2 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",children:[L.jsx("option",{value:"0",children:"Select an option"}),i.map(s=>L.jsx("option",{value:s.id,children:s.name},s.id))]})}hf.propTypes={options:kt.array,taxon:kt.string,setSelectedFilters:kt.func,selectedFilters:kt.object,products:kt.array};function vf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=vf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function K0(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=vf(e))&&(r&&(r+=" "),r+=t);return r}function yf({product:e}){let t="https://product.tourofsicily.com/";const n="p/"+e.ID,r="transfer/"+e.ID,l=e.label,i=`bg-${V0[l]||"gray"}-500`;return l==="Straight Transfer"?t+=r:t+=n,L.jsxs("a",{href:t,target:"_blank",className:"block overflow-hidden w-full p-6 bg-white border border-gray-200 rounded-lg shadow hover:bg-gray-100 relative product-card",children:[L.jsx("span",{className:"absolute top-4 right-4 w-8 h-8 flex items-center justify-center bg-white rounded-lg shadow-sm",children:L.jsx("svg",{xmlns:" http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})}),L.jsx("div",{className:"h-48 -m-6 overflow-hidden",children:e.cover&&L.jsx("img",{src:e.cover,className:"h-full w-full object-cover",alt:e.post_title})}),L.jsx("span",{className:K0("absolute shadow top-4 left-4 px-2 py-1 text-xs font-semibold leading-none tracking-tighter text-white uppercase rounded-full",i),children:l}),L.jsx("h5",{className:"mb-2 text-2xl font-bold tracking-tight text-gray-900 mt-8",children:e.post_title}),L.jsx("p",{className:"font-normal text-gray-700",children:e.post_excerpt})]})}yf.propTypes={product:kt.object};function gf({products:e}){return L.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-8 mt-8 justify-items-center",children:e.map(t=>L.jsx(yf,{product:t},t.id))})}gf.propTypes={products:kt.array};function wf({productTaxons:e}){const t=[{taxon:"start_place",label:"Starting from"},{taxon:"end_place",label:"Ending location"},{taxon:"categories",label:"Category"},{taxon:"type_of_tour",label:"Type of tour"}],[n,r]=B.useState({start_place:"0",end_place:"0",categories:"0",type_of_tour:"0"}),l=(i,u)=>{r(s=>({...s,[i]:"0"})),u.closest("div").querySelector("select").value="0"},o=xi(n)?e.products:F0(e.products,n);return L.jsxs("div",{children:[L.jsx("div",{className:"md:grid md:grid-cols-2 xl:grid-cols-4 gap-8",children:t.map(({taxon:i,label:u})=>L.jsxs("div",{children:[L.jsxs("label",{htmlFor:i,className:"flex justify-between text-sm font-medium leading-6 text-left",children:[L.jsx("span",{children:u}),n[i]!=="0"&&L.jsx("button",{type:"button",title:"Reset",className:"hover:bg-gray-100 p-1 rounded",onClick:s=>l(i,s.target),children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-6",children:L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]}),L.jsx(hf,{taxon:i,setSelectedFilters:r,selectedFilters:n,options:e[i],products:o}),n[i]!=="0"&&L.jsx("p",{className:"text-xs p-1",children:"if you like to change selection, please use the button reset before update your choice"})]},i))}),L.jsx("div",{children:L.jsx(gf,{products:xi(n)?[]:o})})]})}wf.propTypes={productTaxons:kt.object.isRequired};function Y0(){return L.jsxs("div",{role:"status",children:[L.jsxs("svg",{"aria-hidden":"true",className:"w-8 h-8 text-gray-200 animate-spin fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),L.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),L.jsx("span",{className:"sr-only",children:"Loading..."})]})}function G0(){const{data:e,error:t,isLoading:n}=I0(j0+"/productTaxons",o=>M0(o,_u("apikey"))),[r,l]=B.useState({products:[],start_place:[],end_place:[],categories:[],type_of_tour:[]});return B.useEffect(()=>{e!=null&&e.success&&l(e.data)},[e]),L.jsxs("div",{className:"relative",children:[(n||t||!e.success)&&L.jsx("div",{className:"absolute z-10 bg-white/70 w-full h-full flex",children:L.jsxs("div",{className:"m-auto",children:[n&&!t&&L.jsx(Y0,{}),t||e&&!(e!=null&&e.success)&&L.jsx("div",{className:"py-1 px-2 bg-zinc-900 text-white rounded",children:"An error occurred during loading products widget, please try again in few seconds."})]})}),!t&&!n&&e&&L.jsx(wf,{productTaxons:r})]})}const X0=()=>L.jsx(G0,{}),Z0=e=>{const t=document.createElement("style");t.textContent+=`*,\:before,\:after{box-sizing\:border-box;border-width\:0;border-style\:solid;border-color\:#e5e7eb}\:before,\:after{--tw-content\: ""}html,\:host{line-height\:1.5;-webkit-text-size-adjust\:100%;-moz-tab-size\:4;-o-tab-size\:4;tab-size\:4;font-family\:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings\:normal;font-variation-settings\:normal;-webkit-tap-highlight-color\:transparent}body{margin\:0;line-height\:inherit}hr{height\:0;color\:inherit;border-top-width\:1px}abbr\:where([title]){-webkit-text-decoration\:underline dotted;text-decoration\:underline dotted}h1,h2,h3,h4,h5,h6{font-size\:inherit;font-weight\:inherit}a{color\:inherit;text-decoration\:inherit}b,strong{font-weight\:bolder}code,kbd,samp,pre{font-family\:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings\:normal;font-variation-settings\:normal;font-size\:1em}small{font-size\:80%}sub,sup{font-size\:75%;line-height\:0;position\:relative;vertical-align\:baseline}sub{bottom\:-.25em}sup{top\:-.5em}table{text-indent\:0;border-color\:inherit;border-collapse\:collapse}button,input,optgroup,select,textarea{font-family\:inherit;font-feature-settings\:inherit;font-variation-settings\:inherit;font-size\:100%;font-weight\:inherit;line-height\:inherit;letter-spacing\:inherit;color\:inherit;margin\:0;padding\:0}button,select{text-transform\:none}button,input\:where([type=button]),input\:where([type=reset]),input\:where([type=submit]){-webkit-appearance\:button;background-color\:transparent;background-image\:none}\:-moz-focusring{outline\:auto}\:-moz-ui-invalid{box-shadow\:none}progress{vertical-align\:baseline}\:\:-webkit-inner-spin-button,\:\:-webkit-outer-spin-button{height\:auto}[type=search]{-webkit-appearance\:textfield;outline-offset\:-2px}\:\:-webkit-search-decoration{-webkit-appearance\:none}\:\:-webkit-file-upload-button{-webkit-appearance\:button;font\:inherit}summary{display\:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin\:0}fieldset{margin\:0;padding\:0}legend{padding\:0}ol,ul,menu{list-style\:none;margin\:0;padding\:0}dialog{padding\:0}textarea{resize\:vertical}input\:\:-moz-placeholder,textarea\:\:-moz-placeholder{opacity\:1;color\:#9ca3af}input\:\:placeholder,textarea\:\:placeholder{opacity\:1;color\:#9ca3af}button,[role=button]{cursor\:pointer}\:disabled{cursor\:default}img,svg,video,canvas,audio,iframe,embed,object{display\:block;vertical-align\:middle}img,video{max-width\:100%;height\:auto}[hidden]{display\:none}*,\:before,\:after{--tw-border-spacing-x\: 0;--tw-border-spacing-y\: 0;--tw-translate-x\: 0;--tw-translate-y\: 0;--tw-rotate\: 0;--tw-skew-x\: 0;--tw-skew-y\: 0;--tw-scale-x\: 1;--tw-scale-y\: 1;--tw-pan-x\: ;--tw-pan-y\: ;--tw-pinch-zoom\: ;--tw-scroll-snap-strictness\: proximity;--tw-gradient-from-position\: ;--tw-gradient-via-position\: ;--tw-gradient-to-position\: ;--tw-ordinal\: ;--tw-slashed-zero\: ;--tw-numeric-figure\: ;--tw-numeric-spacing\: ;--tw-numeric-fraction\: ;--tw-ring-inset\: ;--tw-ring-offset-width\: 0px;--tw-ring-offset-color\: #fff;--tw-ring-color\: rgb(59 130 246 / .5);--tw-ring-offset-shadow\: 0 0 #0000;--tw-ring-shadow\: 0 0 #0000;--tw-shadow\: 0 0 #0000;--tw-shadow-colored\: 0 0 #0000;--tw-blur\: ;--tw-brightness\: ;--tw-contrast\: ;--tw-grayscale\: ;--tw-hue-rotate\: ;--tw-invert\: ;--tw-saturate\: ;--tw-sepia\: ;--tw-drop-shadow\: ;--tw-backdrop-blur\: ;--tw-backdrop-brightness\: ;--tw-backdrop-contrast\: ;--tw-backdrop-grayscale\: ;--tw-backdrop-hue-rotate\: ;--tw-backdrop-invert\: ;--tw-backdrop-opacity\: ;--tw-backdrop-saturate\: ;--tw-backdrop-sepia\: ;--tw-contain-size\: ;--tw-contain-layout\: ;--tw-contain-paint\: ;--tw-contain-style\: }\:\:backdrop{--tw-border-spacing-x\: 0;--tw-border-spacing-y\: 0;--tw-translate-x\: 0;--tw-translate-y\: 0;--tw-rotate\: 0;--tw-skew-x\: 0;--tw-skew-y\: 0;--tw-scale-x\: 1;--tw-scale-y\: 1;--tw-pan-x\: ;--tw-pan-y\: ;--tw-pinch-zoom\: ;--tw-scroll-snap-strictness\: proximity;--tw-gradient-from-position\: ;--tw-gradient-via-position\: ;--tw-gradient-to-position\: ;--tw-ordinal\: ;--tw-slashed-zero\: ;--tw-numeric-figure\: ;--tw-numeric-spacing\: ;--tw-numeric-fraction\: ;--tw-ring-inset\: ;--tw-ring-offset-width\: 0px;--tw-ring-offset-color\: #fff;--tw-ring-color\: rgb(59 130 246 / .5);--tw-ring-offset-shadow\: 0 0 #0000;--tw-ring-shadow\: 0 0 #0000;--tw-shadow\: 0 0 #0000;--tw-shadow-colored\: 0 0 #0000;--tw-blur\: ;--tw-brightness\: ;--tw-contrast\: ;--tw-grayscale\: ;--tw-hue-rotate\: ;--tw-invert\: ;--tw-saturate\: ;--tw-sepia\: ;--tw-drop-shadow\: ;--tw-backdrop-blur\: ;--tw-backdrop-brightness\: ;--tw-backdrop-contrast\: ;--tw-backdrop-grayscale\: ;--tw-backdrop-hue-rotate\: ;--tw-backdrop-invert\: ;--tw-backdrop-opacity\: ;--tw-backdrop-saturate\: ;--tw-backdrop-sepia\: ;--tw-contain-size\: ;--tw-contain-layout\: ;--tw-contain-paint\: ;--tw-contain-style\: }.sr-only{position\:absolute;width\:1px;height\:1px;padding\:0;margin\:-1px;overflow\:hidden;clip\:rect(0,0,0,0);white-space\:nowrap;border-width\:0}.absolute{position\:absolute}.relative{position\:relative}.left-4{left\:1rem}.right-4{right\:1rem}.top-4{top\:1rem}.z-10{z-index\:10}.-m-6{margin\:-1.5rem}.m-auto{margin\:auto}.mb-2{margin-bottom\:.5rem}.mt-2{margin-top\:.5rem}.mt-8{margin-top\:2rem}.block{display\:block}.flex{display\:flex}.grid{display\:grid}.size-6{width\:1.5rem;height\:1.5rem}.h-48{height\:12rem}.h-6{height\:1.5rem}.h-8{height\:2rem}.h-full{height\:100%}.w-6{width\:1.5rem}.w-8{width\:2rem}.w-full{width\:100%}@keyframes spin{to{transform\:rotate(360deg)}}.animate-spin{animation\:spin 1s linear infinite}.grid-cols-1{grid-template-columns\:repeat(1,minmax(0,1fr))}.items-center{align-items\:center}.justify-center{justify-content\:center}.justify-between{justify-content\:space-between}.justify-items-center{justify-items\:center}.gap-8{gap\:2rem}.overflow-hidden{overflow\:hidden}.rounded{border-radius\:.25rem}.rounded-full{border-radius\:9999px}.rounded-lg{border-radius\:.5rem}.rounded-md{border-radius\:.375rem}.border{border-width\:1px}.border-0{border-width\:0px}.border-gray-200{--tw-border-opacity\: 1;border-color\:rgb(229 231 235 / var(--tw-border-opacity))}.bg-cyan-500{--tw-bg-opacity\: 1;background-color\:rgb(6 182 212 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity\: 1;background-color\:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity\: 1;background-color\:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity\: 1;background-color\:rgb(168 85 247 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity\: 1;background-color\:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity\: 1;background-color\:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/70{background-color\:#ffffffb3}.bg-zinc-900{--tw-bg-opacity\: 1;background-color\:rgb(24 24 27 / var(--tw-bg-opacity))}.fill-blue-600{fill\:#2563eb}.object-cover{-o-object-fit\:cover;object-fit\:cover}.p-1{padding\:.25rem}.p-6{padding\:1.5rem}.px-2{padding-left\:.5rem;padding-right\:.5rem}.py-1{padding-top\:.25rem;padding-bottom\:.25rem}.py-2{padding-top\:.5rem;padding-bottom\:.5rem}.pl-3{padding-left\:.75rem}.pr-10{padding-right\:2.5rem}.text-left{text-align\:left}.text-2xl{font-size\:1.5rem;line-height\:2rem}.text-sm{font-size\:.875rem;line-height\:1.25rem}.text-xs{font-size\:.75rem;line-height\:1rem}.font-bold{font-weight\:700}.font-medium{font-weight\:500}.font-normal{font-weight\:400}.font-semibold{font-weight\:600}.uppercase{text-transform\:uppercase}.leading-6{line-height\:1.5rem}.leading-none{line-height\:1}.tracking-tight{letter-spacing\:-.025em}.tracking-tighter{letter-spacing\:-.05em}.text-gray-200{--tw-text-opacity\: 1;color\:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity\: 1;color\:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity\: 1;color\:rgb(17 24 39 / var(--tw-text-opacity))}.text-white{--tw-text-opacity\: 1;color\:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow\: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored\: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow\:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow\: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored\: 0 1px 2px 0 var(--tw-shadow-color);box-shadow\:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow\: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow\: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow\:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset\: inset}.ring-gray-300{--tw-ring-opacity\: 1;--tw-ring-color\: rgb(209 213 219 / var(--tw-ring-opacity))}.filter{filter\:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-gray-100\:hover{--tw-bg-opacity\: 1;background-color\:rgb(243 244 246 / var(--tw-bg-opacity))}.focus\\:ring-2\:focus{--tw-ring-offset-shadow\: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow\: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow\:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-indigo-600\:focus{--tw-ring-opacity\: 1;--tw-ring-color\: rgb(79 70 229 / var(--tw-ring-opacity))}@media (min-width\: 640px){.sm\\:text-sm{font-size\:.875rem;line-height\:1.25rem}.sm\\:leading-6{line-height\:1.5rem}}@media (min-width\: 768px){.md\\:grid{display\:grid}.md\\:grid-cols-2{grid-template-columns\:repeat(2,minmax(0,1fr))}}@media (min-width\: 1280px){.xl\\:grid-cols-4{grid-template-columns\:repeat(4,minmax(0,1fr))}}
|
|
49
49
|
`,_u("isShadow")??!0?e.appendChild(t):document.head.appendChild(t)},J0=e=>{const n=_u("isShadow")??!0?e.attachShadow({mode:"open"}):e;Z0(n),ef(n).render(X0())},q0=e=>{const t=document.querySelector("toshub-widget");t.id="toshub-widget",J0(t)};typeof window<"u"&&q0();
|