PageSourceSearch

https://panel.segmentify.com/assets/index-Bf1Ht3su.js

js segmentify.com collected 2026-09-26 03:41:35 UTC 26,677 bytes, 1 lines download raw bytes

vendor: 6,273 bytes, line 1
1import{i as rt}from"./_virtual___federation_fn_import-Dg9Cpk8k.js";import{j as b}from"./jsx-runtime-BTzVT9qC.js";import{C as we,a as Jt}from"./index-DbJYLnLl.js";import{T as Le,a as ve,b as Dt,c as Pt}from"./tabs-DjC5IeCv.js";import{S as dt}from"./skeleton-CAKsyLNV.js";import{w as Ee}from"./index-HgiQBuxo.js";import"./index-C7FClqNY.js";import"./hashHistory-y7JnZW5F.js";import"./config-c_UNAAB0.js";import{c as bt}from"./pure-utils-DczfjUPN.js";import{B as se}from"./button-nB92kKwv.js";import{A as Ce}from"./arrow-left-DtFd4I31.js";import{c as Te}from"./createLucideIcon-D4wYrho3.js";import{C as Ie,c as Ae}from"./card-BJEVXE0v.js";const De=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Pe=Te("arrow-right",De);function Oe(t){return Object.prototype.toString.call(t)==="[object Object]"}function Xt(t){return Oe(t)||Array.isArray(t)}function Me(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zt(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;const i=JSON.stringify(Object.keys(t.breakpoints||{})),o=JSON.stringify(Object.keys(e.breakpoints||{}));return i!==o?!1:n.every(s=>{const l=t[s],c=e[s];return typeof l=="function"?`${l}`==`${c}`:!Xt(l)||!Xt(c)?l===c:zt(l,c)})}function Zt(t){return t.concat().sort((e,n)=>e.name>n.name?1:-1).map(e=>e.options)}function ke(t,e){if(t.length!==e.length)return!1;const n=Zt(t),r=Zt(e);return n.every((i,o)=>{const s=r[o];return zt(i,s)})}function Rt(t){return typeof t=="number"}function kt(t){return typeof t=="string"}function Lt(t){return typeof t=="boolean"}function Wt(t){return Object.prototype.toString.call(t)==="[object Object]"}function D(t){return Math.abs(t)}function Bt(t){return Math.sign(t)}function pt(t,e){return D(t-e)}function Fe(t,e){if(t===0||e===0||D(t)<=D(e))return 0;const n=pt(D(t),D(e));return D(n/t)}function ze(t){return Math.round(t*100)/100}function ht(t){return gt(t).map(Number)}function V(t){return t[yt(t)]}function yt(t){return Math.max(0,t.length-1)}function Vt(t,e){return e===yt(t)}function te(t,e=0){return Array.from(Array(t),(n,r)=>e+r)}function gt(t){return Object.keys(t)}function re(t,e){return[t,e].reduce((n,r)=>(gt(r).forEach(i=>{const o=n[i],s=r[i],l=Wt(o)&&Wt(s);n[i]=l?re(o,s):s}),n),{})}function Ft(t,e){return typeof e.MouseEvent<"u"&&t instanceof e.MouseEvent}function Re(t,e){const n={start:r,center:i,end:o};function r(){return 0}function i(c){return o(c)/2}function o(c){return e-c}function s(c,a){return kt(t)?n[t](c):t(e,c,a)}return{measure:s}}function xt(){let t=[];function e(i,o,s,l={passive:!0}){let c;if("addEventListener"in i)i.addEventListener(o,s,l),c=()=>i.removeEventListener(o,s,l);else{const a=i;a.addListener(s),c=()=>a.removeListener(s)}return t.push(c),r}function n(){t=t.filter(i=>i())}const r={add:e,clear:n};return r}function Be(t,e,n,r){const i=xt(),o=1e3/60;let s=null,l=0,c=0;function a(){i.add(t,"visibilitychange",()=>{t.hidden&&u()})}function x(){S(),i.clear()}function d(g){if(!c)return;s||(s=g);const f=g-s;for(s=g,l+=f;l>=o;)n(),l-=o;const h=l/o;r(h),c&&(c=e.requestAnimationFrame(d))}function m(){c||(c=e.requestAnimationFrame(d))}function S(){e.cancelAnimationFrame(c),s=null,l=0,c=0}function u(){s=null,l=0}return{init:a,destroy:x,start:m,stop:S,update:n,render:r}}function Ve(t,e){const n=e==="rtl",r=t==="y",i=r?"y":"x",o=r?"x":"y",s=!r&&n?-1:1,l=x(),c=d();function a(u){const{height:p,width:g}=u;return r?p:g}function x(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function m(u){return u*s}return{scroll:i,cross:o,startEdge:l,endEdge:c,measureSize:a,direction:m}}function st(t=0,e=0){const n=D(t-e);function r(a){return a<t}function i(a){return a>e}function o(a){return r(a)||i(a)}function s(a){return o(a)?r(a)?t:e:a}function l(a){return n?a-n*Math.ceil((a-e)/n):a}return{length:n,max:e,min:t,constrain:s,reachedAny:o,reachedMax:i,reachedMin:r,removeOffset:l}}function oe(t,e,n){const{constrain:r}=st(0,t),i=t+1;let o=s(e);function s(m){return n?D((i+m)%i):r(m)}function l(){return o}function c(m){return o=s(m),d}function a(m){return x().set(l()+m)}function x(){return oe(t,l(),n)}const d={get:l,set:c,add:a,clone:x};return d}function He(t,e,n,r,i,o,s,l,c,a,x,d,m,S,u,p,g,f,h){const{cross:j,direction:L}=t,I=["INPUT","SELECT","TEXTAREA"],v={passive:!1},N=xt(),w=xt(),E=st(50,225).constrain(S.measure(20)),P={mouse:300,touch:400},C={mouse:500,touch:600},z=u?43:25;let H=!1,Y=0,G=0,W=!1,X=!1,q=!1,U=!1;function at(y){if(!h)return;function T(k){(Lt(h)||h(y,k))&&ut(k)}const O=e;N.add(O,"dragstart",k=>k.preventDefault(),v).add(O,"touchmove",()=>{},v).add(O,"touchend",()=>{}).add(O,"touchstart",T).add(O,"mousedown",T).add(O,"touchcancel",M).add(O,"contextmenu",M).add(O,"click",_,!0)}function K(){N.clear(),w.clear()}function ot(){const y=U?n:e;w.add(y,"touchmove",R,v).add(y,"touchend",M).add(y,"mousemove",R,v).add(y,"mouseup",M)}function it(y){const T=y.nodeName||"";return I.includes(T)}function Q(){return(u?C:P)[U?"mouse":"touch"]}function lt(y,T){const O=d.add(Bt(y)*-1),k=x.byDistance(y,!u).distance;return u||D(y)<E?k:g&&T?k*.5:x.byIndex(O.get(),0).distance}function ut(y){const T=Ft(y,r);U=T,q=u&&T&&!y.buttons&&H,H=pt(i.get(),s.get())>=2,!(T&&y.button!==0)&&(it(y.target)||(W=!0,o.pointerDown(y),a.useFriction(0).useDuration(0),i.set(s),ot(),Y=o.readPoint(y),G=o.readPoint(y,j),m.emit("pointerDown")))}function R(y){if(!Ft(y,r)&&y.touches.length>=2)return M(y);const O=o.readPoint(y),k=o.readPoint(y,j),$=pt(O,Y),J=pt(k,G);if(!X&&!U&&(!y.cancelable||(X=$>J,!X)))return M(y);const tt=o.pointerMove(y);$>p&&(q=!0),a.useFriction(.3).useDuration(.75),l.start(),i.add(L(tt)),y.preventDefault()}function M(y){const O=x.byDistance(0,!1).index!==d.get(),k=o.pointerUp(y)*Q(),$=lt(L(k),O),J=Fe(k,$),tt=z-10*J,Z=f+J/50;X=!1,W=!1,w.clear(),a.useDuration(tt).useFriction(Z),c.distance($,!u),U=!1,m.emit("pointerUp")}function _(y){q&&(y.stopPropagation(),y.preventDefault(),q=!1)}function B(){return W}return{init:at,destroy:K,pointerDown:B}}function Ye(t,e){let r,i;function o(d){return d.timeStamp}function s(d,m){const u=`client${(m||t.scroll)==="x"?"X":"Y"}`;return(Ft(d,e)?d:d.touches[0])[u]}function l(d){return r=d,i=d,s(d)}function c(d){const m=s(d)-s(i),S=o(d)-o(r)>170;return i=d,S&&(r=d),m}
vendor: 10,270 bytes, line 1
1function a(d){if(!r||!i)return 0;const m=s(i)-s(r),S=o(d)-o(r),u=o(d)-o(i)>170,p=m/S;return S&&!u&&D(p)>.1?p:0}return{pointerDown:l,pointerMove:c,pointerUp:a,readPoint:s}}function Ge(){function t(n){const{offsetTop:r,offsetLeft:i,offsetWidth:o,offsetHeight:s}=n;return{top:r,right:i+o,bottom:r+s,left:i,width:o,height:s}}return{measure:t}}function Ke(t){function e(r){return t*(r/100)}return{measure:e}}function $e(t,e,n,r,i,o,s){const l=[t].concat(r);let c,a,x=[],d=!1;function m(g){return i.measureSize(s.measure(g))}function S(g){if(!o)return;a=m(t),x=r.map(m);function f(h){for(const j of h){if(d)return;const L=j.target===t,I=r.indexOf(j.target),v=L?a:x[I],N=m(L?t:r[I]);if(D(N-v)>=.5){g.reInit(),e.emit("resize");break}}}c=new ResizeObserver(h=>{(Lt(o)||o(g,h))&&f(h)}),n.requestAnimationFrame(()=>{l.forEach(h=>c.observe(h))})}function u(){d=!0,c&&c.disconnect()}return{init:S,destroy:u}}function qe(t,e,n,r,i,o){let s=0,l=0,c=i,a=o,x=t.get(),d=0;function m(){const v=r.get()-t.get(),N=!c;let w=0;return N?(s=0,n.set(r),t.set(r),w=v):(n.set(t),s+=v/c,s*=a,x+=s,t.add(s),w=x-d),l=Bt(w),d=x,I}function S(){const v=r.get()-e.get();return D(v)<.001}function u(){return c}function p(){return l}function g(){return s}function f(){return j(i)}function h(){return L(o)}function j(v){return c=v,I}function L(v){return a=v,I}const I={direction:p,duration:u,velocity:g,seek:m,settled:S,useBaseFriction:h,useBaseDuration:f,useFriction:L,useDuration:j};return I}function Ue(t,e,n,r,i){const o=i.measure(10),s=i.measure(50),l=st(.1,.99);let c=!1;function a(){return!(c||!t.reachedAny(n.get())||!t.reachedAny(e.get()))}function x(S){if(!a())return;const u=t.reachedMin(e.get())?"min":"max",p=D(t[u]-e.get()),g=n.get()-e.get(),f=l.constrain(p/s);n.subtract(g*f),!S&&D(g)<o&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(S){c=!S}return{shouldConstrain:a,constrain:x,toggleActive:d}}function Qe(t,e,n,r,i){const o=st(-e+t,0),s=d(),l=x(),c=m();function a(u,p){return pt(u,p)<1}function x(){const u=s[0],p=V(s),g=s.lastIndexOf(u),f=s.indexOf(p)+1;return st(g,f)}function d(){return n.map((u,p)=>{const{min:g,max:f}=o,h=o.constrain(u),j=!p,L=Vt(n,p);return j?f:L||a(g,h)?g:a(f,h)?f:h}).map(u=>parseFloat(u.toFixed(3)))}function m(){if(e<=t+i)return[o.max];if(r==="keepSnaps")return s;const{min:u,max:p}=l;return s.slice(u,p)}return{snapsContained:c,scrollContainLimit:l}}function _e(t,e,n){const r=e[0],i=n?r-t:V(e);return{limit:st(i,r)}}function Je(t,e,n,r){const o=e.min+.1,s=e.max+.1,{reachedMin:l,reachedMax:c}=st(o,s);function a(m){return m===1?c(n.get()):m===-1?l(n.get()):!1}function x(m){if(!a(m))return;const S=t*(m*-1);r.forEach(u=>u.add(S))}return{loop:x}}function Xe(t){const{max:e,length:n}=t;function r(o){const s=o-e;return n?s/-n:0}return{get:r}}function Ze(t,e,n,r,i){const{startEdge:o,endEdge:s}=t,{groupSlides:l}=i,c=d().map(e.measure),a=m(),x=S();function d(){return l(r).map(p=>V(p)[s]-p[0][o]).map(D)}function m(){return r.map(p=>n[o]-p[o]).map(p=>-D(p))}function S(){return l(a).map(p=>p[0]).map((p,g)=>p+c[g])}return{snaps:a,snapsAligned:x}}function We(t,e,n,r,i,o){const{groupSlides:s}=i,{min:l,max:c}=r,a=x();function x(){const m=s(o),S=!t||e==="keepSnaps";return n.length===1?[o]:S?m:m.slice(l,c).map((u,p,g)=>{const f=!p,h=Vt(g,p);if(f){const j=V(g[0])+1;return te(j)}if(h){const j=yt(o)-V(g)[0]+1;return te(j,V(g)[0])}return u})}return{slideRegistry:a}}function tn(t,e,n,r,i){const{reachedAny:o,removeOffset:s,constrain:l}=r;function c(u){return u.concat().sort((p,g)=>D(p)-D(g))[0]}function a(u){const p=t?s(u):l(u),g=e.map((h,j)=>({diff:x(h-p,0),index:j})).sort((h,j)=>D(h.diff)-D(j.diff)),{index:f}=g[0];return{index:f,distance:p}}function x(u,p){const g=[u,u+n,u-n];if(!t)return u;if(!p)return c(g);const f=g.filter(h=>Bt(h)===p);return f.length?c(f):V(g)-n}function d(u,p){const g=e[u]-i.get(),f=x(g,p);return{index:u,distance:f}}function m(u,p){const g=i.get()+u,{index:f,distance:h}=a(g),j=!t&&o(g);if(!p||j)return{index:f,distance:u};const L=e[f]-h,I=u+x(L,0);return{index:f,distance:I}}return{byDistance:m,byIndex:d,shortcut:x}}function en(t,e,n,r,i,o,s){function l(d){const m=d.distance,S=d.index!==e.get();o.add(m),m&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),S&&(n.set(e.get()),e.set(d.index),s.emit("select"))}function c(d,m){const S=i.byDistance(d,m);l(S)}function a(d,m){const S=e.clone().set(d),u=i.byIndex(S.get(),m);l(u)}return{distance:c,index:a}}function nn(t,e,n,r,i,o,s,l){const c={passive:!0,capture:!0};let a=0;function x(S){if(!l)return;function u(p){if(new Date().getTime()-a>10)return;s.emit("slideFocusStart"),t.scrollLeft=0;const h=n.findIndex(j=>j.includes(p));Rt(h)&&(i.useDuration(0),r.index(h,0),s.emit("slideFocus"))}o.add(document,"keydown",d,!1),e.forEach((p,g)=>{o.add(p,"focus",f=>{(Lt(l)||l(S,f))&&u(g)},c)})}function d(S){S.code==="Tab"&&(a=new Date().getTime())}return{init:x}}function mt(t){let e=t;function n(){return e}function r(c){e=s(c)}function i(c){e+=s(c)}function o(c){e-=s(c)}function s(c){return Rt(c)?c:c.get()}return{get:n,set:r,add:i,subtract:o}}function ie(t,e){const n=t.scroll==="x"?s:l,r=e.style;let i=null,o=!1;function s(m){return`translate3d(${m}px,0px,0px)`}function l(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(o)return;const S=ze(t.direction(m));S!==i&&(r.transform=n(S),i=S)}function a(m){o=!m}function x(){o||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:x,to:c,toggleActive:a}}function sn(t,e,n,r,i,o,s,l,c){const x=ht(i),d=ht(i).reverse(),m=f().concat(h());function S(N,w){return N.reduce((E,P)=>E-i[P],w)}function u(N,w){return N.reduce((E,P)=>S(E,w)>0?E.concat([P]):E,[])}function p(N){return o.map((w,E)=>({start:w-r[E]+.5+N,end:w+e-.5+N}))}function g(N,w,E){const P=p(w);return N.map(C=>{const z=E?0:-n,H=E?n:0,Y=E?"end":"start",G=P[C][Y];return{index:C,loopPoint:G,slideLocation:mt(-1),translate:ie(t,c[C]),target:()=>l.get()>G?z:H}})}function f(){const N=s[0],w=u(d,N);return g(w,n,!1)}function h(){const N=e-s[0]-1,w=u(x,N);return g(w,-n,!0)}function j(){return m.every(({index:N})=>{const w=x.filter(E=>E!==N);return S(w,e)<=.1})}function L(){m.forEach(N=>{const{target:w,translate:E,slideLocation:P}=N,C=w();C!==P.get()&&(E.to(C),P.set(C))})}function I(){m.forEach(N=>N.translate.clear())}return{canLoop:j,clear:I,loop:L,loopPoints:m}}function rn(t,e,n){let r,i=!1;function o(c){if(!n)return;function a(x){for(const d of x)if(d.type==="childList"){c.reInit(),e.emit("slidesChanged");break}}r=new MutationObserver(x=>{i||(Lt(n)||n(c,x))&&a(x)}),r.observe(t,{childList:!0})}function s(){r&&r.disconnect(),i=!0}return{init:o,destroy:s}}function on(t,e,n,r){const i={};let o=null,s=null,l,c=!1;function a(){l=new IntersectionObserver(u=>{c||(u.forEach(p=>{const g=e.indexOf(p.target);i[g]=p}),o=null,s=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(u=>l.observe(u))}function x(){l&&l.disconnect(),c=!0}function d(u){return gt(i).reduce((p,g)=>{const f=parseInt(g),{isIntersecting:h}=i[f];return(u&&h||!u&&!h)&&p.push(f),p},[])}function m(u=!0){if(u&&o)return o;if(!u&&s)return s;const p=d(u);return u&&(o=p),u||(s=p),p}return{init:a,destroy:x,get:m}}function cn(t,e,n,r,i,o){const{measureSize:s,startEdge:l,endEdge:c}=t,a=n[0]&&i,x=u(),d=p(),m=n.map(s),S=g();function u(){if(!a)return 0;const h=n[0];return D(e[l]-h[l])}function p(){if(!a)return 0;const h=o.getComputedStyle(V(r));return parseFloat(h.getPropertyValue(`margin-${c}`))}function g(){return n.map((h,j,L)=>{const I=!j,v=Vt(L,j);return I?m[j]+x:v?m[j]+d:L[j+1][l]-h[l]}).map(D)}return{slideSizes:m,slideSizesWithGaps:S,startGap:x,endGap:d}}function an(t,e,n,r,i,o,s,l,c){const{startEdge:a,endEdge:x,direction:d}=t,m=Rt(n);function S(f,h){return ht(f).filter(j=>j%h===0).map(j=>f.slice(j,j+h))}function u(f){return f.length?ht(f).reduce((h,j,L)=>{const I=V(h)||0,v=I===0,N=j===yt(f),w=i[a]-o[I][a],E=i[a]-o[j][x],P=!r&&v?d(s):0,C=!r&&N?d(l):0,z=D(E-C-(w+P));return L&&z>e+c&&h.push(j),N&&h.push(f.length),h},[]).map((h,j,L)=>{const I=Math.max(L[j-1]||0);return f.slice(I,h)}):[]}function p(f){return m?S(f,n):u(f)}return{groupSlides:p}}function ln(t,e,n,r,i,o,s){const{align:l,axis:c,direction:a,startIndex:x,loop:d,duration:m,dragFree:S,dragThreshold:u,inViewThreshold:p,slidesToScroll:g,skipSnaps:f,containScroll:h,watchResize:j,watchSlides:L,watchDrag:I,watchFocus:v}=o,N=2,w=Ge(),E=w.measure(e),P=n.map(w.measure),C=Ve(c,a),z=C.measureSize(E),H=Ke(z),Y=Re(l,z),G=!d&&!!h,W=d||!!h,{slideSizes:X,slideSizesWithGaps:q,startGap:U,endGap:at}=cn(C,E,P,n,W,i),K=an(C,z,g,d,E,P,U,at,N),{snaps:ot,snapsAligned:it}=Ze(C,Y,E,P,K),Q=-V(ot)+V(q),{snapsContained:lt,scrollContainLimit:ut}=Qe(z,Q,it,h,N),R=G?lt:it,{limit:M}=_e(Q,R,d),_=oe(yt(R),x,d),B=_.clone(),A=ht(n),y=({dragHandler:ct,scrollBody:It,scrollBounds:At,options:{loop:St}})=>{St||At.constrain(ct.pointerDown()),It.seek()},T=({scrollBody:ct,translate:It,location:At,offsetLocation:St,previousLocation:he,scrollLooper:ge,slideLooper:xe,dragHandler:be,animation:ye,eventHandler:$t,scrollBounds:Se,options:{loop:qt}},Ut)=>{const Qt=ct.settled(),je=!Se.shouldConstrain(),_t=qt?Qt:Qt&&je;_t&&!be.pointerDown()&&(ye.stop(),$t.emit("settle")),_t||$t.emit("scroll");const Ne=At.get()*Ut+he.get()*(1-Ut);St.set(Ne),qt&&(ge.loop(ct.direction()),xe.loop()),It.to(St.get())},O=Be(r,i,()=>y(Tt),ct=>T(Tt,ct)),k=.68,$=R[_.get()],J=mt($),tt=mt($),Z=mt($),et=mt($),ft=qe(J,Z,tt,et,m,k),Et=tn(d,R,Q,M,et),Ct=en(O,_,B,ft,Et,et,s),Yt=Xe(M),Gt=xt(),me=on(e,n,s,p),{slideRegistry:Kt}=We(G,h,R,ut,K,A),pe=nn(t,n,Kt,Ct,ft,Gt,s,v),Tt={ownerDocument:r,ownerWindow:i,eventHandler:s,containerRect:E,slideRects:P,animation:O,axis:C,dragHandler:He(C,t,r,i,et,Ye(C,i),J,O,Ct,ft,Et,_,s,H,S,u,f,k,I),eventStore:Gt,percentOfView:H,index:_,indexPrevious:B,limit:M,location:J,offsetLocation:Z,previousLocation:tt,options:o,resizeHandler:$e(e,s,i,n,C,j,w),scrollBody:ft,scrollBounds:Ue(M,Z,et,ft,H),scrollLooper:Je(Q,M,Z,[J,Z,tt,et]),scrollProgress:Yt,scrollSnapList:R.map(Yt.get),scrollSnaps:R,scrollTarget:Et,scrollTo:Ct,slideLooper:sn(C,z,Q,X,q,ot,R,Z,n),slideFocus:pe,slidesHandler:rn(e,s,L),slidesInView:me,slideIndexes:A,slideRegistry:Kt,slidesToScroll:K,target:et,translate:ie(C,e)};return Tt}function un(){let t={},e;function n(a){e=a}function r(a){return t[a]||[]}
1function i(a){return r(a).forEach(x=>x(e,a)),c}function o(a,x){return t[a]=r(a).concat([x]),c}function s(a,x){return t[a]=r(a).filter(d=>d!==x),c}function l(){t={}}const c={init:n,emit:i,off:s,on:o,clear:l};return c}const fn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function dn(t){function e(o,s){return re(o,s||{})}function n(o){const s=o.breakpoints||{},l=gt(s).filter(c=>t.matchMedia(c).matches).map(c=>s[c]).reduce((c,a)=>e(c,a),{});return e(o,l)}function r(o){return o.map(s=>gt(s.breakpoints||{})).reduce((s,l)=>s.concat(l),[]).map(t.matchMedia)}return{mergeOptions:e,optionsAtMedia:n,optionsMediaQueries:r}}function mn(t){let e=[];function n(o,s){return e=s.filter(({options:l})=>t.optionsAtMedia(l).active!==!1),e.forEach(l=>l.init(o,t)),s.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){e=e.filter(o=>o.destroy())}return{init:n,destroy:r}}function wt(t,e,n){const r=t.ownerDocument,i=r.defaultView,o=dn(i),s=mn(o),l=xt(),c=un(),{mergeOptions:a,optionsAtMedia:x,optionsMediaQueries:d}=o,{on:m,off:S,emit:u}=c,p=C;let g=!1,f,h=a(fn,wt.globalOptions),j=a(h),L=[],I,v,N;function w(){const{container:A,slides:y}=j;v=(kt(A)?t.querySelector(A):A)||t.children[0];const O=kt(y)?v.querySelectorAll(y):y;N=[].slice.call(O||v.children)}function E(A){const y=ln(t,v,N,r,i,A,c);if(A.loop&&!y.slideLooper.canLoop()){const T=Object.assign({},A,{loop:!1});return E(T)}return y}function P(A,y){g||(h=a(h,A),j=x(h),L=y||L,w(),f=E(j),d([h,...L.map(({options:T})=>T)]).forEach(T=>l.add(T,"change",C)),j.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(B),f.eventHandler.init(B),f.resizeHandler.init(B),f.slidesHandler.init(B),f.options.loop&&f.slideLooper.loop(),v.offsetParent&&N.length&&f.dragHandler.init(B),I=s.init(B,L)))}function C(A,y){const T=K();z(),P(a({startIndex:T},A),y),c.emit("reInit")}function z(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),s.destroy(),l.clear()}function H(){g||(g=!0,l.clear(),z(),c.emit("destroy"),c.clear())}function Y(A,y,T){!j.active||g||(f.scrollBody.useBaseFriction().useDuration(y===!0?0:j.duration),f.scrollTo.index(A,T||0))}function G(A){const y=f.index.add(1).get();Y(y,A,-1)}function W(A){const y=f.index.add(-1).get();Y(y,A,1)}function X(){return f.index.add(1).get()!==K()}function q(){return f.index.add(-1).get()!==K()}function U(){return f.scrollSnapList}function at(){return f.scrollProgress.get(f.location.get())}function K(){return f.index.get()}function ot(){return f.indexPrevious.get()}function it(){return f.slidesInView.get()}function Q(){return f.slidesInView.get(!1)}function lt(){return I}function ut(){return f}function R(){return t}function M(){return v}function _(){return N}const B={canScrollNext:X,canScrollPrev:q,containerNode:M,internalEngine:ut,destroy:H,off:S,on:m,emit:u,plugins:lt,previousScrollSnap:ot,reInit:p,rootNode:R,scrollNext:G,scrollPrev:W,scrollProgress:at,scrollSnapList:U,scrollTo:Y,selectedScrollSnap:K,slideNodes:_,slidesInView:it,slidesNotInView:Q};return P(e,n),setTimeout(()=>c.emit("init"),0),B}wt.globalOptions=void 0;const{useRef:ee,useState:ne,useCallback:pn,useEffect:Ot}=await rt("react");function Ht(t={},e=[]){const n=ee(t),r=ee(e),[i,o]=ne(),[s,l]=ne(),c=pn(()=>{i&&i.reInit(n.current,r.current)},[i]);return Ot(()=>{zt(n.current,t)||(n.current=t,c())},[t,c]),Ot(()=>{ke(r.current,e)||(r.current=e,c())},[e,c]),Ot(()=>{if(Me()&&s){wt.globalOptions=Ht.globalOptions;const a=wt(s,n.current,r.current);return o(a),()=>a.destroy()}else o(void 0)},[s,o]),[l,i]}Ht.globalOptions=void 0;const F=await rt("react"),ce=F.createContext(null);function vt(){const t=F.useContext(ce);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}const ae=F.forwardRef(({orientation:t="horizontal",opts:e,setApi:n,plugins:r,className:i,children:o,...s},l)=>{const[c,a]=Ht({...e,axis:t==="horizontal"?"x":"y"},r),[x,d]=F.useState(!1),[m,S]=F.useState(!1),u=F.useCallback(h=>
1{h&&(d(h.canScrollPrev()),S(h.canScrollNext()))},[]),p=F.useCallback(()=>{a?.scrollPrev()},[a]),g=F.useCallback(()=>{a?.scrollNext()},[a]),f=F.useCallback(h=>{h.key==="ArrowLeft"?(h.preventDefault(),p()):h.key==="ArrowRight"&&(h.preventDefault(),g())},[p,g]);return F.useEffect(()=>{!a||!n||n(a)},[a,n]),F.useEffect(()=>{if(a)return u(a),a.on("reInit",u),a.on("select",u),()=>{a?.off("select",u)}},[a,u]),b.jsx(ce.Provider,{value:{carouselRef:c,api:a,opts:e,orientation:t||(e?.axis==="y"?"vertical":"horizontal"),scrollPrev:p,scrollNext:g,canScrollPrev:x,canScrollNext:m},children:b.jsx("div",{ref:l,onKeyDownCapture:f,className:bt("relative",i),role:"region","aria-roledescription":"carousel",...s,children:o})})});ae.displayName="Carousel";const le=F.forwardRef(({className:t,...e},n)=>{const{carouselRef:r,orientation:i}=vt();return b.jsx("div",{ref:r,className:"overflow-hidden",children:b.jsx("div",{ref:n,className:bt("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...e})})});le.displayName="CarouselContent";const ue=F.forwardRef(({className:t,...e},n)=>{const{orientation:r}=vt();return b.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:bt("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",t),...e})});ue.displayName="CarouselItem";const fe=F.forwardRef(({className:t,variant:e="outline",size:n="icon",...r},i)=>{const{orientation:o,scrollPrev:s,canScrollPrev:l}=vt();return b.jsxs(se,{ref:i,variant:e,size:n,className:bt("absolute h-8 w-8 rounded-full border border-gray-700 border-opacity-50",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!l,onClick:s,...r,children:[b.jsx(Ce,{className:"h-4 w-4 shrink-0 text-black"}),b.jsx("span",{className:"sr-only",children:"Previous slide"})]})});fe.displayName="CarouselPrevious";const de=F.forwardRef(({className:t,variant:e="outline",size:n="icon",...r},i)=>{const{orientation:o,scrollNext:s,canScrollNext:l}=vt();return b.jsxs(se,{ref:i,variant:e,size:n,className:bt("absolute h-8 w-8 rounded-full border border-gray-700 border-opacity-50",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!l,onClick:s,...r,children:[b.jsx(Pe,{className:"h-4 w-4 shrink-0 text-black"}),b.jsx("span",{className:"sr-only",children:"Next slide"})]})});de.displayName="CarouselNext";await rt("react");const hn=({product:t})=>b.jsx(Ie,{className:"h-full",children:b.jsx("a",{class:"flex flex-col h-full w-full rounded-xl",href:t.productUrl,children:b.jsxs(Ae,{className:"flex flex-col justify-between h-full !p-4 text-muted-foreground text-sm",children:[b.jsx("div",{className:"",children:b.jsx("img",{class:"w-full object-contain max-h-60 aspect-square",src:t.image,alt:t.name})}),b.jsxs("div",{class:"mt-2",children:[b.jsx("span",{class:"text-sm text-slate-900 font-semibold line-clamp-2",children:t.name}),b.jsx("div",{class:"mt-2 flex items-center justify-between",children:b.jsxs("p",{children:[b.jsx("span",{class:"text-base font-bold text-slate-900",children:t.priceText}),t.oldPrice&&b.jsx("span",{class:"text-sm text-slate-900 line-through ml-2",children:t.oldPriceText})]})})]})]})})});await rt("react");const{FormattedMessage:jt}=await rt("react-intl"),Mt=t=>!t||t.length===0?b.jsx("p",{className:"text-gray-500 text-center",children:b.jsx(jt,{id:"settings.productRecommendation.noData"})}):t.map(e=>!e.recommendedProductList||e.recommendedProductList.length===0?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"flex flex-col gap-1 items-center w-full mt-5",children:b.jsx("h3",{className:"w-full font-semibold mt-2 text-left",children:b.jsx(jt,{id:e.algorithm})})}),b.jsx("p",{className:"text-gray-500 text-center",children:b.jsx(jt,{id:"settings.productRecommendation.noData"})})]}):b.jsx(ae,{className:"m-auto mt-5",opts:{align:"start"},children:b.jsxs("div",{className:" flex flex-col gap-1 items-center w-full",children:[b.jsx("h3",{className:"font-semibold mt-2 text-left w-full",children:b.jsx(jt,{id:e.algorithm})}),b.jsxs("div",{className:"w-11/12 relative",children:[b.jsx(le,{className:"pl-2 md:pl-4",children:e.recommendedProductList?.map(n=>b.jsx(ue,{className:"md:basis-1/2 lg:basis-1/3 xl:basis-1/4 2xl:basis-1/5 h-full",children:b.jsx(hn,{product:n})}))}),b.jsx(fe,{className:"disabled:!opacity-25"}),b.jsx(de,{className:"disabled:!opacity-25"})]})]})})),gn=await rt("react"),{useState:xn}=gn,{FormattedMessage:Nt}=await rt("react-intl"),nt=Object.freeze({DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY"}),Pn=()=>{const[t,e]=xn(nt.DAILY),{data:n,isLoading:r,isSuccess:i}=Ee({timeFrame:t,enabled:!0});return b.jsxs("section",{className:"mt-5",children:[b.jsx("h2",{className:"font-semibold",children:b.jsx(Nt,{id:"settings.productRecommendation.title"})}),b.jsxs(we,{children:[b.jsx(Jt,{condition:i&&!!n,children:b.jsxs(Le,{className:"border-none",value:t,onValueChange:e,children:[b.jsxs(ve,{children:[b.jsx(Dt,{className:"w-40",value:nt.DAILY,children:b.jsx(Nt,{id:"DAILY"})}),b.jsx(Dt,{className:"w-40",value:nt.WEEKLY,children:b.jsx(Nt,{id:"WEEKLY"})}),b.jsx(Dt,{className:"w-40",value:nt.MONTHLY,children:b.jsx(Nt,{id:"MONTHLY"})})]}),b.jsx(Pt,{className:"w-auto !bg-gray-100",value:nt.DAILY,children:r?b.jsx(dt,{className:"w-10 h-4"}):n&&Mt(n)}),b.jsx(Pt,{className:"w-auto !bg-gray-100",value:nt.WEEKLY,children:r?b.jsx(dt,{className:"w-10 h-4"}):n&&Mt(n)}),b.jsx(Pt,{className:"w-auto !bg-gray-100",value:nt.MONTHLY,children:r?b.jsx(dt,{className:"w-10 h-4"}):n&&Mt(n)})]})}),b.jsx(Jt,{condition:r,children:[1,2,3,4,5].map(o=>b.jsx("div",{className:"flex flex-col gap-4 justify-between",children:b.jsxs("div",{className:"flex justify-between gap-4",children:[b.jsx(dt,{className:"w-10 h-4"}),b.jsx(dt,{className:"size-4"})]})},o))})]})]})};export{Pn as ProductRecoList};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.