@qratilabs/qrati-connect 2.33.0 → 2.33.1
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/element/{BX09gwBu.js → 73mz8Fz4.js} +1 -1
- package/element/{CfNXbM5H.js → BC9KIhak.js} +1 -1
- package/element/{ILtcTVir.js → BCE50OwS.js} +1 -1
- package/element/{DMAkdDxr.js → BFC2aU2J.js} +2 -2
- package/element/{D9jzGMeN.js → BSGK1Ri1.js} +1 -1
- package/element/{DjKx2bl9.js → Bb_tv1V-.js} +1 -1
- package/element/{plowVrDm.js → BiNwD6VL.js} +1 -1
- package/element/{BtLTtkX8.js → BiZqzQNR.js} +1 -1
- package/element/{BuT9kfma.js → BlwHCgeI.js} +1 -1
- package/element/{xPFFaUda.js → BxxWXMGe.js} +1 -1
- package/element/{ThvpIBOm.js → CTTFfh11.js} +1 -1
- package/element/{BzXQkPAW.js → CW7Iwd96.js} +1 -1
- package/element/{qTO-oPOF.js → CX1SNDQH.js} +1 -1
- package/element/{DExU6-v2.js → CeJICm77.js} +1 -1
- package/element/{X8kQCV14.js → CmtEFeGF.js} +1 -1
- package/element/{BgmJHB_q.js → CnxxYHOX.js} +2 -2
- package/element/{DjFlbVE4.js → Cs6qJQxX.js} +1 -1
- package/element/{k9JmIPl-.js → Cx6rq6N5.js} +1 -1
- package/element/{Bpjf4eY9.js → Czk6IR70.js} +1 -1
- package/element/{DkrE1H9J.js → D1TFBkCS.js} +1 -1
- package/element/{PxjP9VKW.js → DA0XxXKx.js} +1 -1
- package/element/{BhPQW37y.js → DB6HdxlA.js} +1 -1
- package/element/{SAPFe3AV.js → DHBHbWIA.js} +1 -1
- package/element/{CrZvMeF8.js → DKRKwBRc.js} +1 -1
- package/element/{BhUO8wHu.js → DV8JHO97.js} +1 -1
- package/element/{Bx-BFs7B.js → DVDZfY1d.js} +1 -1
- package/element/{Crg6P9Om.js → DdLLa5wm.js} +1 -1
- package/element/{DnrkqfsH.js → DjHszKev.js} +1 -1
- package/element/{RLxieWpc.js → DmaTYIJu.js} +1 -1
- package/element/{CGJtMtq6.js → Dr2e01jA.js} +2 -2
- package/element/{CVlMw3Vf.js → DuVfaq4G.js} +1 -1
- package/element/{ChW2P7vL.js → Dubduzq7.js} +1 -1
- package/element/{x3_URwMQ.js → DwhpFWNq.js} +1 -1
- package/element/{BhYfK52W.js → FE0pIRqe.js} +5 -5
- package/element/{pRu0r7dI.js → HkakucIO.js} +1 -1
- package/element/{ZWATOkpE.js → V6RGWsa9.js} +1 -1
- package/element/{Bjbk1Zhj.js → XIzy_5YD.js} +1 -1
- package/element/{BjDK8Ljd.js → hjsqLu1P.js} +2 -2
- package/element/web.es.js +1 -1
- package/embed/embed.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{un as a}from"./
|
|
1
|
+
import{un as a}from"./FE0pIRqe.js";var t=()=>/* @__PURE__ */a("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-full",width:"800",height:"469.317",viewBox:"0 0 800 469.317",role:"img","aria-hidden":"true",children:/* @__PURE__ */a("g",{transform:"translate(-443.142 -257.876)",children:[
|
|
2
2
|
/* @__PURE__ */a("path",{d:"M898.247,664.1H371.155a30.276,30.276,0,0,1-30.241-30.241V352.525a30.276,30.276,0,0,1,30.241-30.241H898.247a30.276,30.276,0,0,1,30.241,30.241V633.862A30.276,30.276,0,0,1,898.247,664.1Z",transform:"translate(308.867 25.517)",fill:"#fff"}),
|
|
3
3
|
/* @__PURE__ */a("path",{d:"M557.334,341.82H30.241A30.276,30.276,0,0,1,0,311.578V30.241A30.276,30.276,0,0,1,30.241,0H557.334a30.276,30.276,0,0,1,30.241,30.241V311.578A30.276,30.276,0,0,1,557.334,341.82ZM30.241,1.833A28.441,28.441,0,0,0,1.833,30.241V311.578a28.441,28.441,0,0,0,28.409,28.409H557.334a28.441,28.441,0,0,0,28.409-28.409V30.241A28.441,28.441,0,0,0,557.334,1.833Z",transform:"matrix(0.999, -0.035, 0.035, 0.999, 643.995, 358.158)",fill:"#d6d6e3"}),
|
|
4
4
|
/* @__PURE__ */a("path",{d:"M754.171,630.2l-509.5-135.058a30.276,30.276,0,0,1-21.483-36.981L295.28,186.212a30.276,30.276,0,0,1,36.981-21.483l509.5,135.058a30.276,30.276,0,0,1,21.483,36.981L791.152,608.712A30.276,30.276,0,0,1,754.171,630.2Z",transform:"translate(220.958 94.156)",fill:"#f2f2f2"}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as t}from"./
|
|
1
|
+
import{q as t}from"./FE0pIRqe.js";var e='url("https://res.cloudinary.com/dectzk2b2/image/upload/v1736933014/black_rpie3v.png")',n=class{constructor(t){this.backdropOn=!1,this.lightbox=t,this.backgroundElement=null,this.backgroundVideoElement=null,this.referenceVideoElement=null,this.options={toggleBackdropButtonOrder:7},t.on("init",()=>{this.initPswpEvents(t.pswp)})}getRootNode(){return this.lightbox?.pswp?.element?.getRootNode?.()||document}querySelector(t){return this.getRootNode().querySelector?.(t)||document.querySelector(t)}initPswpEvents(t){t.on("afterInit",()=>{setTimeout(()=>{this.backgroundElement.style.display="block",this.backgroundVideoElement.style.display="block"},[500])}),t.on("uiRegister",()=>{t.ui.registerElement({name:"toggle-backdrop-button",title:"Toggle blur backdrop",order:this.options.toggleBackdropButtonOrder,isButton:!0,html:'<svg aria-hidden="true" class="pswp__icn p-0.5" viewBox="0 0 24 24"><use class="pswp__icn-shadow" xlink:href="#pswp__icn-show-backdrop"/><use class="pswp__icn-shadow" xlink:href="#pswp__icn-hide-backdrop"/><path id="pswp__icn-show-backdrop" style="display:none" d="M3 14.5q-.2 0-.35-.15T2.5 14t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m0-4q-.2 0-.35-.15T2.5 10t.15-.35T3 9.5t.35.15t.15.35t-.15.35t-.35.15M6 19q-.425 0-.712-.288T5 18t.288-.712T6 17t.713.288T7 18t-.288.713T6 19m0-4q-.425 0-.712-.288T5 14t.288-.712T6 13t.713.288T7 14t-.288.713T6 15m0-4q-.425 0-.712-.288T5 10t.288-.712T6 9t.713.288T7 10t-.288.713T6 11m0-4q-.425 0-.712-.288T5 6t.288-.712T6 5t.713.288T7 6t-.288.713T6 7m4 8.5q-.625 0-1.062-.437T8.5 14t.438-1.062T10 12.5t1.063.438T11.5 14t-.437 1.063T10 15.5m0-4q-.625 0-1.062-.437T8.5 10t.438-1.062T10 8.5t1.063.438T11.5 10t-.437 1.063T10 11.5m0 7.5q-.425 0-.712-.288T9 18t.288-.712T10 17t.713.288T11 18t-.288.713T10 19m0-12q-.425 0-.712-.288T9 6t.288-.712T10 5t.713.288T11 6t-.288.713T10 7m0 14.5q-.2 0-.35-.15T9.5 21t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m0-18q-.2 0-.35-.15T9.5 3t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m4 12q-.625 0-1.062-.437T12.5 14t.438-1.062T14 12.5t1.063.438T15.5 14t-.437 1.063T14 15.5m0-4q-.625 0-1.062-.437T12.5 10t.438-1.062T14 8.5t1.063.438T15.5 10t-.437 1.063T14 11.5m0 7.5q-.425 0-.712-.288T13 18t.288-.712T14 17t.713.288T15 18t-.288.713T14 19m0-12q-.425 0-.712-.288T13 6t.288-.712T14 5t.713.288T15 6t-.288.713T14 7m0 14.5q-.2 0-.35-.15T13.5 21t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m0-18q-.2 0-.35-.15T13.5 3t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15M18 19q-.425 0-.712-.288T17 18t.288-.712T18 17t.713.288T19 18t-.288.713T18 19m0-4q-.425 0-.712-.288T17 14t.288-.712T18 13t.713.288T19 14t-.288.713T18 15m0-4q-.425 0-.712-.288T17 10t.288-.712T18 9t.713.288T19 10t-.288.713T18 11m0-4q-.425 0-.712-.288T17 6t.288-.712T18 5t.713.288T19 6t-.288.713T18 7m3 7.5q-.2 0-.35-.15T20.5 14t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m0-4q-.2 0-.35-.15T20.5 10t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15"/><path id="pswp__icn-hide-backdrop" d="m19.1 21.9l-17-17q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l17 17q.275.275.275.7t-.275.7t-.7.275t-.7-.275m-9.1-.4q-.2 0-.35-.15T9.5 21t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m4 0q-.2 0-.35-.15T13.5 21t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15M6 19q-.425 0-.712-.288T5 18t.288-.712T6 17t.713.288T7 18t-.288.713T6 19m4 0q-.425 0-.712-.288T9 18t.288-.712T10 17t.713.288T11 18t-.288.713T10 19m4 0q-.425 0-.712-.288T13 18t.288-.712T14 17t.713.288T15 18t-.288.713T14 19m-4-3.5q-.65 0-1.075-.425T8.5 14t.425-1.075T10 12.5t1.075.425T11.5 14t-.425 1.075T10 15.5M6 15q-.425 0-.712-.288T5 14t.288-.712T6 13t.713.288T7 14t-.288.713T6 15m11.8-.025l-.775-.775q-.1-.5.213-.85T18 13q.425 0 .713.288T19 14q0 .45-.35.763t-.85.212M3 14.5q-.2 0-.35-.15T2.5 14t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m18 0q-.2 0-.35-.15T20.5 14t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m-6.7-3.05L12.55 9.7q.125-.525.5-.862T14 8.5q.65 0 1.075.425T15.5 10q0 .575-.35.963t-.85.487M6 11q-.425 0-.712-.287T5 10t.288-.712T6 9t.713.288T7 10t-.288.713T6 11m12 0q-.425 0-.712-.288T17 10t.288-.712T18 9t.713.288T19 10t-.288.713T18 11m-15-.5q-.2 0-.35-.15T2.5 10t.15-.35T3 9.5t.35.15t.15.35t-.15.35t-.35.15m18 0q-.2 0-.35-.15T20.5 10t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15M14 7q-.425 0-.712-.288T13 6t.288-.712T14 5t.713.288T15 6t-.288.713T14 7m-4.175-.025l-.8-.8q-.075-.5.225-.837T10 5q.425 0 .712.287T11 6q0 .45-.337.75t-.838.225M18 7q-.425 0-.712-.288T17 6t.288-.712T18 5t.713.288T19 6t-.288.713T18 7m-8-3.5q-.2 0-.35-.15T9.5 3t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m4 0q-.2 0-.35-.15T13.5 3t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15" /></svg>',onClick:()=>{this.toggleBackdrop(t)}}),this.createBlurBackground(t)}),t.on("change",()=>{this.backdropOn&&this.updateBlurBackground(t)}),t.on("close",()=>{this.removeBlurBackground(),this.backdropOn=!1})}createBlurBackground(t){const n=t.element;if(!this.backgroundElement){const t=document.createElement("div");t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="100vw",t.style.height="100vh",t.style.backgroundSize="cover",t.style.backgroundPosition="center",t.style.filter="blur(44px)",t.style.zIndex=-1,t.style.transition="background-image 0.5s ease, opacity 0.5s ease",t.style.display="none",t.style.backgroundImage=e,n.append(t),this.backgroundElement=t}if(!this.backgroundVideoElement){const t=document.createElement("video");t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="100vw",t.style.height="100vh",t.style.objectFit="cover",t.style.filter="blur(44px)",t.style.zIndex=-1,t.style.display="none",t.style.transition="opacity 0.5s ease",t.muted=!0,t.loop=!0,t.autoplay=!1,t.muted=!0,t.volume=0,n.append(t),this.backgroundVideoElement=t}}toggleBackdrop(t){this.backdropOn?(this.backgroundElement.style.backgroundImage=e,this.backgroundVideoElement.style.opacity=0,this.backgroundVideoElement.pause(),this.backdropOn=!1):(this.updateBlurBackground(t),this.backdropOn=!0);const n=this.querySelector("#pswp__icn-hide-backdrop"),o=this.querySelector("#pswp__icn-show-backdrop");n&&(n.style.display=this.backdropOn?"none":"inline"),o&&(o.style.display=this.backdropOn?"inline":"none")}updateBlurBackground(n){const o=n.currSlide;if(o?.data)if("video"===o.data.type){const t=this.backgroundVideoElement,e=o.content.element;"video"===e?.tagName?.toLowerCase()&&(this.referenceVideoElement=e,this.registerVideoEvents(e,t)),t.style.opacity=0,setTimeout(()=>{t.src=o.data.src,t.load(),this.initBackgroundVideo(),t.style.opacity=1},500),this.backgroundElement&&(this.backgroundElement.style.opacity=0)}else{if(this.backgroundElement){const n=((e,n=32,o=32)=>{if(!e||e.length<6||"undefined"==typeof document)return null;try{const i=t(e,n,o),s=document.createElement("canvas");s.width=n,s.height=o;const r=s.getContext("2d");if(!r)return null;const a=r.createImageData(n,o);return a.data.set(i),r.putImageData(a,0,0),s.toDataURL()}catch(i){return console.warn("[PhotoSwipeBackdrop] Failed to decode blurhash:",i),null}})(o.data.blurhash)||o.data.thumbnailUrl||o.data.src;this.backgroundElement.style.backgroundImage=n?`url("${n}")`:e,this.backgroundElement.style.backgroundColor="transparent",this.backgroundElement.style.opacity=1}this.backgroundVideoElement&&(this.backgroundVideoElement.style.opacity=0,this.backgroundVideoElement.src="")}}initBackgroundVideo(){this.referenceVideoElement&&(this.backgroundVideoElement.currentTime=this.referenceVideoElement.currentTime,this.referenceVideoElement.currentTime>0&&!this.referenceVideoElement.paused&&!this.referenceVideoElement.ended&&this.referenceVideoElement.readyState>2&&this.backgroundVideoElement.play())}removeBlurBackground(){this.backgroundElement&&(this.backgroundElement.remove(),this.backgroundVideoElement.remove(),this.backgroundElement=null,this.backgroundVideoElement=null)}registerVideoEvents(t,e){this.foregroundVideoElement=t,t.addEventListener("play",()=>{e.currentTime=t.currentTime,e.play()}),t.addEventListener("pause",()=>{e.pause()}),t.addEventListener("ended",()=>{e.pause(),e.currentTime=0})}};export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Cn as t,an as s,fn as e,in as i,ln as r,nn as n,on as o,rn as u,sn as a,tn as h,wn as c,xn as l}from"./
|
|
1
|
+
import{Cn as t,an as s,fn as e,in as i,ln as r,nn as n,on as o,rn as u,sn as a,tn as h,wn as c,xn as l}from"./FE0pIRqe.js";var p=class extends u{#t;#s=void 0;#e;#i;constructor(t,s){super(),this.#t=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#t.defaultMutationOptions(t),o(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#e,observer:this}),s?.mutationKey&&this.options.mutationKey&&i(s.mutationKey)!==i(this.options.mutationKey)?this.reset():"pending"===this.#e?.state.status&&this.#e.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#e&&(this.#e.addObserver(this),this.#r())}onUnsubscribe(){this.hasListeners()||this.#e?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#n(t)}getCurrentResult(){return this.#s}reset(){this.#e?.removeObserver(this),this.#e=void 0,this.#r(),this.#n()}mutate(t,s){return this.#i=s,this.#e?.removeObserver(this),this.#e=this.#t.getMutationCache().build(this.#t,this.options),this.#e.addObserver(this),this.#e.execute(t)}#r(){const t=this.#e?.state??h();this.#s={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#n(t){n.batch(()=>{const s=this.#i;if(s&&this.hasListeners()){const i=this.#s.variables,r=this.#s.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===t?.type){try{s.onSuccess?.(t.data,i,r,n)}catch(e){Promise.reject(e)}try{s.onSettled?.(t.data,null,i,r,n)}catch(e){Promise.reject(e)}}else if("error"===t?.type){try{s.onError?.(t.error,i,r,n)}catch(e){Promise.reject(e)}try{s.onSettled?.(void 0,t.error,i,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(t=>{t(this.#s)})})}};function d(i,o){const u=r(o),[h]=l(()=>new p(u,i));t(()=>{h.setOptions(i)},[h,i]);const d=e(c(t=>h.subscribe(n.batchCalls(t)),[h]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),m=c((...t)=>{h.mutate(t[0],t[1]).catch(s)},[h]);if(d.error&&a(h.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}export{d as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./BlsbPO0-.js";import{An as r,Cn as i,Ct as n,Et as o,Gt as s,I as a,K as l,Kt as c,Mt as d,Rt as u,Sn as h,Tn as p,Tt as m,Wt as g,Zt as f,_n as v,_t as y,gn as b,hn as w,i as x,it as S,kt as T,mn as C,nt as F,pt as M,st as E,un as k,vn as _,vt as U,wn as R,xn as I,xt as N,yn as P,yt as O}from"./
|
|
1
|
+
import{r as e,t}from"./BlsbPO0-.js";import{An as r,Cn as i,Ct as n,Et as o,Gt as s,I as a,K as l,Kt as c,Mt as d,Rt as u,Sn as h,Tn as p,Tt as m,Wt as g,Zt as f,_n as v,_t as y,gn as b,hn as w,i as x,it as S,kt as T,mn as C,nt as F,pt as M,st as E,un as k,vn as _,vt as U,wn as R,xn as I,xt as N,yn as P,yt as O}from"./FE0pIRqe.js";import{r as A}from"./Czk6IR70.js";import{t as q}from"./Cx6rq6N5.js";import{t as D}from"./DdLLa5wm.js";import{a as L,i as z,n as j,o as $,r as B,s as H}from"./BC9KIhak.js";import{a as V,i as W,n as G,o as X,r as Y,t as K}from"./Bb_tv1V-.js";import{t as Q}from"./DmaTYIJu.js";import{i as J,n as Z,r as ee,t as te}from"./BiZqzQNR.js";var re=[];for(let yn=0;yn<256;++yn)re.push((yn+256).toString(16).slice(1));var ie=/* @__PURE__ */new Uint8Array(16);function ne(e,t,r){return t||e||!crypto.randomUUID?function(e,t,r){const i=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(ie);if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return(re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]).toLowerCase()}(i)}(e,t,r):crypto.randomUUID()}function oe({checked:e,defaultChecked:t,onChange:r,onBlur:i,label:o,className:s,disabled:a}){const l=e??t??!1,c=l?"checked":"unchecked",d=h();/* @__PURE__ */
|
|
2
2
|
return k("label",{htmlFor:d,className:n("flex items-center gap-2",a&&"cursor-not-allowed opacity-50",!a&&"cursor-pointer"),children:[/* @__PURE__ */k("button",{type:"button",id:d,role:"switch","aria-checked":l,disabled:a,"data-state":c,onBlur:i,onClick:()=>!a&&r?.(!l),className:n("peer relative inline-flex h-6 w-11 shrink-0 items-center rounded-full border-2 transition-colors","border-border bg-muted","focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=checked]:border-primary data-[state=checked]:bg-primary","disabled:cursor-not-allowed disabled:opacity-50",!a&&"cursor-pointer",s),children:/* @__PURE__ */k("span",{"data-state":c,style:{transform:l?"translateX(1.25rem)":"translateX(0)"},className:n("pointer-events-none block size-5 translate-x-0 rounded-full shadow transition-transform","border-border bg-background border","data-[state=checked]:bg-primary-foreground data-[state=checked]:translate-x-5 data-[state=checked]:border-transparent")})}),o&&/* @__PURE__ */k("span",{className:"text-sm font-medium",children:o})]})}var se=["jpg","jpeg","png","webp","heic","tiff","bmp","avif"],ae=["mp4","webm","ogg","mov","avi","flv","wmv","mkv","3gp","m4v","mpg","mpeg"];function le({open:e,oversizedUids:t,onClose:r,onRemoveAndUpload:i}){const n=Object.values(t),o=n.filter(e=>"image"===e).length,s=n.filter(e=>"video"===e).length,a=[];return o>0&&a.push(`${o} image${o>1?"s":""}`),s>0&&a.push(`${s} video${s>1?"s":""}`),/* @__PURE__ */k(K,{open:e,onOpenChange:e=>!e&&r(),children:/* @__PURE__ */k(G,{children:[/* @__PURE__ */k(V,{children:[/* @__PURE__ */k(X,{children:"Some files are too large"}),/* @__PURE__ */k(Y,{children:[a.join(" and ")," exceed",1===n.length?"s":""," the size limit (25 MB for images, 250 MB for videos) and won't be uploaded."]})]}),/* @__PURE__ */k(W,{children:/* @__PURE__ */k(q,{onClick:i,children:"Remove and Upload"})})]})})}function ce({open:e,count:t,onResume:r,onDiscard:i}){/* @__PURE__ */
|
|
3
3
|
return k(K,{open:e,onOpenChange:e=>!e&&i(),children:/* @__PURE__ */k(G,{children:[/* @__PURE__ */k(V,{children:[/* @__PURE__ */k(X,{children:"Resume your upload?"}),/* @__PURE__ */k(Y,{children:["We found ",t," unfinished upload",t>1?"s":""," from your last visit. Resume where you left off, or remove ",t>1?"them":"it"," and start over."]})]}),/* @__PURE__ */k(W,{children:[/* @__PURE__ */k(q,{variant:"outlined",onClick:i,children:"Remove All"}),/* @__PURE__ */k(q,{onClick:r,children:"Resume"})]})]})})}var de=["6a385dabb04f4d8783b14fe1","69ada0f82889f080a9ca53df"],ue=({open:e,onClose:t,onSuccess:r})=>{const{t:i}=A(),[n,o]=I(!1),s=N(),a=s.props?.organizationId??s.organization?._id,{user:l,updateUser:c}=s,d=!!a&&de.includes(a.trim()),u=d?"https://qrati.com/terms-of-use-wedding-private-events":"https://qrati.com/terms-of-use",h=d?"https://qrati.com/privacy-policy-wedding-private-events":"https://qrati.com/privacy-policy";/* @__PURE__ */
|
|
4
4
|
return k(K,{open:e,onOpenChange:e=>!e&&t(),children:/* @__PURE__ */k(G,{className:"text-foreground",children:/* @__PURE__ */k("div",{className:"mx-auto max-w-sm p-4 text-center sm:max-w-lg",children:[
|
|
@@ -25,7 +25,7 @@ return k("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",view
|
|
|
25
25
|
return k("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */k("path",{fill:"currentColor",d:"M6 18H4q-.425 0-.712-.288T3 17t.288-.712T4 16h3q.425 0 .713.288T8 17v3q0 .425-.288.713T7 21t-.712-.288T6 20zm12 0v2q0 .425-.288.713T17 21t-.712-.288T16 20v-3q0-.425.288-.712T17 16h3q.425 0 .713.288T21 17t-.288.713T20 18zM6 6V4q0-.425.288-.712T7 3t.713.288T8 4v3q0 .425-.288.713T7 8H4q-.425 0-.712-.288T3 7t.288-.712T4 6zm12 0h2q.425 0 .713.288T21 7t-.288.713T20 8h-3q-.425 0-.712-.288T16 7V4q0-.425.288-.712T17 3t.713.288T18 4z"})})}function ct({className:e}){/* @__PURE__ */
|
|
26
26
|
return k("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */k("path",{fill:"currentColor",d:"M5 19h2q.425 0 .713.288T8 20t-.288.713T7 21H4q-.425 0-.712-.288T3 20v-3q0-.425.288-.712T4 16t.713.288T5 17zm14 0v-2q0-.425.288-.712T20 16t.713.288T21 17v3q0 .425-.288.713T20 21h-3q-.425 0-.712-.288T16 20t.288-.712T17 19zM5 5v2q0 .425-.288.713T4 8t-.712-.288T3 7V4q0-.425.288-.712T4 3h3q.425 0 .713.288T8 4t-.288.713T7 5zm14 0h-2q-.425 0-.712-.288T16 4t.288-.712T17 3h3q.425 0 .713.288T21 4v3q0 .425-.288.713T20 8t-.712-.288T19 7z"})})}function dt(e){return e.flatMap(e=>{const t=e.config.adjustableKeys;if(!t?.length||!e.config.templateId)return[];const r=xe(e.config.templateId);return r?r.variableSchema.filter(e=>t.includes(e.key)).map(t=>({filterId:e.id,filterName:e.name,v:t})):[]})}function ut({filters:e,overrides:t,onChange:r}){const i=dt(e);return 0===i.length?null:/* @__PURE__ */k("div",{className:"space-y-4",children:i.map(({filterId:e,filterName:n,v:o})=>{const s=t?.[e]?.[o.key]??o.default;/* @__PURE__ */
|
|
27
27
|
return k("div",{className:"space-y-1",children:[
|
|
28
|
-
/* @__PURE__ */k("label",{htmlFor:`${e}:${o.key}`,className:"flex items-center justify-between text-sm",children:[/* @__PURE__ */k("span",{children:[o.label,i.length>1&&/* @__PURE__ */k("span",{className:"text-muted-foreground ml-1 text-xs",children:["(",n,")"]})]}),/* @__PURE__ */k("span",{className:"text-muted-foreground",children:String(s)})]}),"number"===o.type&&/* @__PURE__ */k("input",{type:"range",id:`${e}:${o.key}`,className:"w-full",value:s,min:o.min,max:o.max,step:o.step,onInput:t=>r(e,o.key,parseFloat(t.target.value))}),"boolean"===o.type&&/* @__PURE__ */k("input",{type:"checkbox",id:`${e}:${o.key}`,checked:s,onChange:t=>r(e,o.key,t.target.checked)})]},`${e}:${o.key}`)})})}var ht=v(()=>import("./
|
|
28
|
+
/* @__PURE__ */k("label",{htmlFor:`${e}:${o.key}`,className:"flex items-center justify-between text-sm",children:[/* @__PURE__ */k("span",{children:[o.label,i.length>1&&/* @__PURE__ */k("span",{className:"text-muted-foreground ml-1 text-xs",children:["(",n,")"]})]}),/* @__PURE__ */k("span",{className:"text-muted-foreground",children:String(s)})]}),"number"===o.type&&/* @__PURE__ */k("input",{type:"range",id:`${e}:${o.key}`,className:"w-full",value:s,min:o.min,max:o.max,step:o.step,onInput:t=>r(e,o.key,parseFloat(t.target.value))}),"boolean"===o.type&&/* @__PURE__ */k("input",{type:"checkbox",id:`${e}:${o.key}`,checked:s,onChange:t=>r(e,o.key,t.target.checked)})]},`${e}:${o.key}`)})})}var ht=v(()=>import("./BxxWXMGe.js").then(e=>({default:e.ReactCompareSlider})));function pt({open:e,onClose:t,file:r,filters:o,isVideo:s,trimRange:a,overrides:l,onOverrideChange:c,onReset:d}){const[u,h]=I(),[p,m]=I(),[g,f]=I(!0),[v,y]=I(!1),[b,x]=I(!1),[T,C]=I(),[F,M]=I(0),[E,U]=I(!1),[R,N]=I(null),[P,O]=I(null),[A,D]=I(!1),[L,z]=I(!0),[j,$]=I(!0),H=_(null),Y=_(!1),Q=_([]),J=_(null),Z=_(null),te=_(null),re=_(o);re.current=o,i(()=>()=>{Q.current.forEach(e=>URL.revokeObjectURL(e))},[]);const ie=()=>{document.fullscreenElement?document.exitFullscreen():H.current?.requestFullscreen()};i(()=>{const e=()=>U(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]),i(()=>{D(!!R&&!!P)},[R,P]),i(()=>{R&&(R.muted=L)},[R,L]),i(()=>{if(!e||s)return;let t=!1;return Y.current?y(!0):f(!0),x(!1),(async()=>{const e=await B(r),i=await createImageBitmap(e),n=Math.min(1,1600/Math.max(i.width,i.height)),s=Math.round(i.width*n),a=Math.round(i.height*n),l=new OffscreenCanvas(s,a);if(l.getContext("2d").drawImage(i,0,0,s,a),i.close(),t)return;C(s/a);const c=await l.convertToBlob({type:"image/jpeg",quality:.92});if(t)return;const d=await Oe(c,o,1600,"image/jpeg",.92);if(t)return;const u=URL.createObjectURL(c),p=URL.createObjectURL(d.blob);Q.current.forEach(e=>URL.revokeObjectURL(e)),Q.current=[u,p],h(u),m(p),Y.current=!0})().catch(()=>{t||Y.current||x(!0)}).finally(()=>{t||(f(!1),y(!1))}),()=>{t=!0}},[e,s,r,o]),i(()=>{if(!e||!s||!A)return;const t=R,i=P;if(!t||!i)return;let n=!1,o=null;const l=URL.createObjectURL(r);f(!0),x(!1),M(0);const c=a?.startTime??0,d=c+5,u=e=>new Promise(t=>{let r=!1;const i=()=>{r||(r=!0,t())};"function"==typeof e.requestVideoFrameCallback?e.requestVideoFrameCallback(i):requestAnimationFrame(i),setTimeout(i,600)}),h=e=>{const t=e.data;for(let r=3;r<t.length;r+=4)if(0!==t[r])return!1;return!0};return t.addEventListener("loadeddata",async()=>{if(n)return;M(15);let e=t.videoWidth||640,r=t.videoHeight||360;const s=Math.min(1,720/Math.max(e,r));e=Math.round(e*s),r=Math.round(r*s),i.width=e,i.height=r,C(e/r);const l=i.getContext("2d",{willReadFrequently:!0});if(!l)return f(!1),void x(!0);if(Math.abs(t.currentTime-c)>.05&&(await new Promise(e=>{const r=()=>{t.removeEventListener("seeked",r),e()};t.addEventListener("seeked",r,{once:!0}),t.currentTime=c}),n))return;M(40);const p=new OffscreenCanvas(e,r),m=p.getContext("2d",{willReadFrequently:!0});let g=null;t.muted=!0;try{await t.play()}catch{}if(n)return;for(let i=0;i<6&&!n;i++){if(await u(t),n)return;if(m.drawImage(t,0,0,e,r),!h(m.getImageData(0,0,e,r))){g=await p.convertToBlob({type:"image/jpeg",quality:.85});break}if(t.paused)break}if(n)return;if(!g)return f(!1),void x(!0);M(60),Z.current=g,te.current={w:e,h:r};const v=await Ae(re.current,g,e,r);if(n)return;if(!v.appliedFilters.length)return f(!1),void x(!0);J.current=v.transform,M(100),f(!1),Y.current=!0;const y=a?Math.min(a.endTime,d):Math.min(t.duration||d,d),b=()=>{if(!n){if(l.drawImage(t,0,0,e,r),J.current&&l.putImageData(J.current(l.getImageData(0,0,e,r)),0,0),t.currentTime>=y||t.currentTime<c){const e=()=>{t.removeEventListener("seeked",e),n||(o=t.requestVideoFrameCallback(b))};return t.addEventListener("seeked",e,{once:!0}),void(t.currentTime=c)}o=t.requestVideoFrameCallback(b)}};o=t.requestVideoFrameCallback(b)},{once:!0}),t.src=l,t.load(),()=>{n=!0,null!==o&&t.cancelVideoFrameCallback(o),t.pause(),t.removeAttribute("src"),t.load(),URL.revokeObjectURL(l)}},[e,s,r,a,A]),i(()=>{if(!e||!s||!A)return;if(!Z.current||!te.current)return;let t=!1;return y(!0),(async()=>{const{w:e,h:r}=te.current,i=await Ae(o,Z.current,e,r);t||i.appliedFilters.length>0&&(J.current=i.transform)})().catch(()=>{}).finally(()=>{t||y(!1)}),()=>{t=!0}},[e,s,o,A]);const ne=E?"100vh":"70vh",oe=!!c&&dt(o).length>0;/* @__PURE__ */
|
|
29
29
|
return k(K,{open:e,onOpenChange:e=>!e&&t(),children:/* @__PURE__ */k(G,{className:n(E?"max-w-none rounded-none":"max-w-2xl sm:w-2xl"),children:/* @__PURE__ */k("div",{className:"bg-background",children:[/* @__PURE__ */k(V,{className:"flex-row items-center justify-between space-y-0",children:[/* @__PURE__ */k(X,{children:"Compare original & filtered"}),/* @__PURE__ */k(ee,{size:"sm",variant:"ghost","aria-label":E?"Exit fullscreen":"Fullscreen",tooltip:E?"Exit fullscreen":"Fullscreen",icon:/* @__PURE__ */k(E?lt:ct,{}),onClick:ie})]}),/* @__PURE__ */k("div",{ref:H,className:n("relative p-4 pt-0",E&&"bg-background flex h-screen w-screen items-center justify-center p-0"),children:[E&&/* @__PURE__ */k(ee,{size:"sm",variant:"ghost","aria-label":"Exit fullscreen",tooltip:"Exit fullscreen",className:"absolute top-2 right-2 z-30",icon:/* @__PURE__ */k(lt,{}),onClick:ie}),g&&/* @__PURE__ */k("div",{className:"flex h-64 flex-col items-center justify-center gap-2",children:[/* @__PURE__ */k(S,{}),s&&/* @__PURE__ */k("p",{className:"text-muted-foreground text-sm",children:["Generating preview… ",F,"%"]})]}),b&&!g&&/* @__PURE__ */k("div",{className:"text-muted-foreground flex h-64 items-center justify-center text-sm",children:"Couldn't generate preview."}),v&&!g&&!b&&/* @__PURE__ */k("div",{className:"bg-background/90 text-muted-foreground absolute top-16 left-1/2 z-20 flex -translate-x-1/2 items-center gap-1.5 rounded-full px-3 py-1 text-xs shadow",children:[/* @__PURE__ */k(S,{className:"size-3.5"}),"Updating…"]}),!s&&!g&&!b&&u&&p&&/* @__PURE__ */k(w,{fallback:null,children:/* @__PURE__ */k(ht,{style:{width:"100%",maxHeight:ne,aspectRatio:T},defaultPosition:50,onlyHandleDraggable:!0,itemOne:/* @__PURE__ */k("div",{className:"relative size-full",children:[/* @__PURE__ */k("img",{alt:"Original",className:"size-full object-contain",src:u}),/* @__PURE__ */k(mt,{position:"left",children:"Original"})]}),itemTwo:/* @__PURE__ */k("div",{className:"relative size-full",children:[/* @__PURE__ */k("img",{alt:"Filtered",className:"size-full object-contain",src:p}),/* @__PURE__ */k(mt,{position:"right",children:"Filtered"})]})})}),s&&/* @__PURE__ */k("div",{className:"relative",style:{visibility:g||b?"hidden":"visible"},children:[/* @__PURE__ */k(w,{fallback:null,children:/* @__PURE__ */k(ht,{style:{width:"100%",maxHeight:ne,aspectRatio:T},defaultPosition:50,onlyHandleDraggable:!0,itemOne:/* @__PURE__ */k("div",{className:"relative size-full",children:[/* @__PURE__ */k("video",{ref:N,playsInline:!0,className:"pointer-events-none size-full object-contain"}),/* @__PURE__ */k(mt,{position:"left",children:"Original"})]}),itemTwo:/* @__PURE__ */k("div",{className:"relative size-full",children:[/* @__PURE__ */k("canvas",{ref:O,className:"size-full object-contain"}),/* @__PURE__ */k(mt,{position:"right",children:"Filtered"})]})})}),/* @__PURE__ */k("div",{className:"bg-background/80 absolute bottom-2 left-1/2 z-20 flex -translate-x-1/2 gap-1 rounded-full p-1 shadow",children:[/* @__PURE__ */k(ee,{size:"sm",variant:"ghost","aria-label":L?"Unmute":"Mute",tooltip:L?"Unmute":"Mute",icon:/* @__PURE__ */k(L?st:at,{}),onClick:()=>z(e=>!e)}),/* @__PURE__ */k(ee,{size:"sm",variant:"ghost","aria-label":j?"Pause":"Play",tooltip:j?"Pause":"Play",icon:/* @__PURE__ */k(j?nt:ot,{}),onClick:()=>{R&&(R.paused?(R.play(),$(!0)):(R.pause(),$(!1)))}})]})]}),c&&!E&&/* @__PURE__ */k("div",{className:"mt-4",children:/* @__PURE__ */k(ut,{filters:o,overrides:l,onChange:c})}),oe&&!E&&/* @__PURE__ */k(W,{className:"mt-4",children:[/* @__PURE__ */k(q,{variant:"outlined",color:"foreground",onClick:d,children:"Reset"}),/* @__PURE__ */k(q,{onClick:t,children:"Apply"})]})]})]})})})}function mt({position:e,children:t}){/* @__PURE__ */
|
|
30
30
|
return k("div",{className:"bg-background/80 text-foreground pointer-events-none absolute bottom-2 z-10 rounded-full px-2 py-0.5 text-[10px] font-semibold shadow "+("left"===e?"left-2":"right-2"),children:t})}var gt=(e,t,r)=>Math.min(Math.max(e,t),r),ft=e=>Math.max(0,Math.min(100,e)),vt=["nw","ne","sw","se"],yt=({open:e,onClose:t,imageSrc:r,outputSrc:i,aspectRatio:n,initialCrop:o,onCropComplete:s,title:a})=>{const l=_(null),[c,d]=I(null),[u,h]=I(!1),p=_(null),g=R((e,t)=>{const r=l.current.getBoundingClientRect();return{px:Math.min(Math.max(e-r.left,0),r.width),py:Math.min(Math.max(t-r.top,0),r.height)}},[]),f=R(e=>{const t=p.current,r=l.current;var i,o,s,a,c;if(t&&r)if("move"===t.mode)d((i=t.start,o=e.clientX-t.clientX,s=e.clientY-t.clientY,a=r.width,c=r.height,{...i,x:gt(i.x+o,0,a-i.w),y:gt(i.y+s,0,c-i.h)}));else{const{px:i,py:o}=g(e.clientX,e.clientY);d(function(e,t,r,i,n,o,s){const a=t.includes("e")?1:-1,l=t.includes("s")?1:-1,c=a>0?e.x:e.x+e.w,d=l>0?e.y:e.y+e.h,u=a>0?n-c:c,h=l>0?o-d:d;let p=gt((r-c)*a,20,u),m=gt((i-d)*l,20,h);return s&&(m=p/s,m<20&&(m=20,p=m*s),m>h&&(m=h,p=m*s),p>u&&(p=u,m=p/s)),{x:a>0?c:c-p,y:l>0?d:d-m,w:p,h:m}}(t.start,t.corner,i,o,r.width,r.height,n))}},[n,g]),v=R(()=>{p.current=null,window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",v)},[f]),y=(e,t)=>r=>{c&&(r.preventDefault(),r.stopPropagation(),p.current={mode:e,corner:t,start:c,clientX:r.clientX,clientY:r.clientY},window.addEventListener("pointermove",f),window.addEventListener("pointerup",v))},b=R(()=>{d(null),t()},[t]),w=e=>({position:"absolute",width:"14px",height:"14px",background:"#fff",border:"1px solid rgba(0,0,0,.4)",borderRadius:"2px",touchAction:"none",cursor:`${e}-resize`,...e.includes("n")?{top:"-7px"}:{bottom:"-7px"},...e.includes("w")?{left:"-7px"}:{right:"-7px"}});/* @__PURE__ */
|
|
31
31
|
return k(K,{open:e,onOpenChange:b,children:/* @__PURE__ */k(G,{className:"flex h-[90vh] min-w-xl flex-col overflow-hidden p-0",children:[
|
package/element/web.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as r,r as s,t as a}from"./
|
|
1
|
+
import{n as r,r as s,t as a}from"./FE0pIRqe.js";export{s as QratiConnect,a as QratiConnectElement,r as renderComponent};
|
package/embed/embed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(){var c=typeof document<"u"?document.currentScript:null,d={"organization-id":"organization-id",router:"router",uid:"uid",fname:"fname",lname:"lname",theme:"theme"};function u(e){return new URL("../element/web.es.js",e).href}function l(){const e=document.createElement("div");e.setAttribute("data-qrati-placeholder",""),e.setAttribute("aria-hidden","true"),e.style.cssText="display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;padding:16px 0";const n=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;for(let t=0;t<6;t++){const r=document.createElement("div");r.style.cssText="height:288px;background:#e8e8e8;border-radius:4px",n||r.animate?.([{opacity:1},{opacity:.5},{opacity:1}],{duration:2e3,iterations:1/0}),e.appendChild(r)}return e}function s(e){const n={};for(const t of Object.keys(d)){const r=t.replace(/-([a-z])/g,(a,i)=>i.toUpperCase()),o=e.dataset[r];o!=null&&o!==""&&(n[d[t]]=o)}return n}function f(e){const n=e.dataset.target;if(n){try{const t=document.querySelector(n);if(t)return{parent:t,before:null}}catch{}console.warn(`[QratiConnect] data-target "${n}" not found; mounting next to the script tag.`)}return e.parentNode?{parent:e.parentNode,before:e.nextSibling}:{parent:document.body,before:null}}function m(e){if(!e.src){console.error("[QratiConnect] embed loader could not determine its own script src.");return}const n=s(e);if(!n["organization-id"]){console.error("[QratiConnect] embed requires a data-organization-id attribute.");return}const t=document.createElement("qrati-connect");for(const[a,i]of Object.entries(n))t.setAttribute(a,i);t.appendChild(l());const{parent:r,before:o}=f(e);r.insertBefore(t,o),import(u(e.src)).catch(a=>{console.error("[QratiConnect] failed to load the element bundle:",a)})}c&&typeof document<"u"?m(c):typeof document<"u"&&console.error('[QratiConnect] embed loader requires a classic <script> tag (no type="module"). document.currentScript was null.')})();
|