@ozdao/martyrs 0.2.456 → 0.2.458
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Media-1oukRVfv.js → Media-B9V7fmz-.js} +1 -1
- package/dist/{Media-q-XJSM_H.mjs → Media-Df1hO2ZT.mjs} +1 -1
- package/dist/{main-yXkgrjj8.mjs → main-DbrX42CV.mjs} +99 -95
- package/dist/{main-C7jGMDJC.js → main-DviXUDiB.js} +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +0 -93
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +1 -94
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +93 -0
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +94 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Tab/{Tab.vue.cjs → Tab.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
- package/dist/martyrs/src/components/Tab/{Tab.vue.cjs.map → Tab.vue2.js.map} +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/community.client.js +27 -27
- package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +6 -5
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +6 -5
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.cjs +14 -6
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.js +14 -6
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +15 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +15 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +23 -28
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +24 -29
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs +1 -3
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js +1 -3
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.cjs +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/style.css +87 -113
- package/package.json +1 -1
- package/src/components/Slider/Slider.vue +35 -11
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +5 -5
- package/src/modules/events/components/pages/Events.vue +1 -1
- package/src/modules/events/components/sections/SelectDate.vue +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
- package/src/modules/globals/views/components/layouts/App.vue +16 -7
- package/src/modules/globals/views/components/layouts/Client.vue +17 -1
- package/src/modules/globals/views/components/partials/Footer.vue +2 -2
- package/src/modules/globals/views/components/partials/Navigation.vue +19 -65
- package/src/modules/globals/views/components/partials/Sidebar.vue +1 -11
- package/src/modules/landing/components/sections/SectionFeatures.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
- package/src/modules/orders/components/pages/Orders.vue +1 -1
- package/src/modules/reports/components/pages/BackofficeReports.vue +1 -1
- package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
- package/src/modules/wallet/views/components/pages/Wallet.vue +2 -2
- package/src/styles/config.scss +11 -0
- package/src/styles/responsive.scss +1 -1
- package/dist/martyrs/src/components/Slider/Slider.vue.cjs +0 -110
- package/dist/martyrs/src/components/Slider/Slider.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Slider/Slider.vue.js +0 -110
- package/dist/martyrs/src/components/Slider/Slider.vue.js.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
|
@@ -8,4 +8,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
void main() {
|
|
9
9
|
gl_Position = aVertexPosition;
|
|
10
10
|
}
|
|
11
|
-
`,i=n.shader;function s(p,h,m){const v=p.createShader(h);return p.shaderSource(v,m),p.compileShader(v),p.getShaderParameter(v,p.COMPILE_STATUS)?v:(alert("An error occurred compiling the shaders: "+p.getShaderInfoLog(v)),p.deleteShader(v),null)}const d=s(a,a.VERTEX_SHADER,l),u=s(a,a.FRAGMENT_SHADER,i),c=a.createProgram();a.attachShader(c,d),a.attachShader(c,u),a.linkProgram(c),a.getProgramParameter(c,a.LINK_STATUS)||alert("Unable to initialize the shader program: "+a.getProgramInfoLog(c));function f(p){const h=p.clientWidth*window.devicePixelRatio,m=p.clientHeight*window.devicePixelRatio;return p.width!==h||p.height!==m?(p.width=h,p.height=m,!0):!1}function $(){f(a.canvas)&&a.viewport(0,0,a.canvas.width,a.canvas.height),a.clearColor(0,0,0,1),a.clearDepth(1),a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),a.useProgram(c);const p=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,p);const h=[-1,1,1,1,-1,-1,1,-1];a.bufferData(a.ARRAY_BUFFER,new Float32Array(h),a.STATIC_DRAW);const m=a.getAttribLocation(c,"aVertexPosition");a.vertexAttribPointer(m,2,a.FLOAT,!1,0,0),a.enableVertexAttribArray(m);const v=a.getUniformLocation(c,"iTime"),g=a.getUniformLocation(c,"iResolution");a.uniform1f(v,performance.now()/3e3),a.uniform2f(g,a.canvas.width,a.canvas.height),a.drawArrays(a.TRIANGLE_STRIP,0,4),requestAnimationFrame($)}requestAnimationFrame($)}),(o,a)=>(t.openBlock(),t.createElementBlock("canvas",{ref_key:"refCanvas",ref:r},null,512))}},Yn=W(Zd,[["__scopeId","data-v-d6d39ab2"]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"}));function Xd(e){return Object.prototype.toString.call(e)==="[object Object]"}function un(e){return Xd(e)||Array.isArray(e)}function Jd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bt(e,n){const r=Object.keys(e),o=Object.keys(n);if(r.length!==o.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),l=JSON.stringify(Object.keys(n.breakpoints||{}));return a!==l?!1:r.every(i=>{const s=e[i],d=n[i];return typeof s=="function"?`${s}`==`${d}`:!un(s)||!un(d)?s===d:bt(s,d)})}function cn(e){return e.concat().sort((n,r)=>n.name>r.name?1:-1).map(n=>n.options)}function Qd(e,n){if(e.length!==n.length)return!1;const r=cn(e),o=cn(n);return r.every((a,l)=>{const i=o[l];return bt(a,i)})}function Ct(e){return typeof e=="number"}function ot(e){return typeof e=="string"}function Ae(e){return typeof e=="boolean"}function fn(e){return Object.prototype.toString.call(e)==="[object Object]"}function U(e){return Math.abs(e)}function kt(e){return Math.sign(e)}function ke(e,n){return U(e-n)}function eu(e,n){if(e===0||n===0||U(e)<=U(n))return 0;const r=ke(U(e),U(n));return U(r/e)}function tu(e){return Math.round(e*100)/100}function Ee(e){return Te(e).map(Number)}function oe(e){return e[Ne(e)]}function Ne(e){return Math.max(0,e.length-1)}function wt(e,n){return n===Ne(e)}function $n(e,n=0){return Array.from(Array(e),(r,o)=>n+o)}function Te(e){return Object.keys(e)}function Zn(e,n){return[e,n].reduce((r,o)=>(Te(o).forEach(a=>{const l=r[a],i=o[a],s=fn(l)&&fn(i);r[a]=s?Zn(l,i):i}),r),{})}function at(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function nu(e,n){const r={start:o,center:a,end:l};function o(){return 0}function a(d){return l(d)/2}function l(d){return n-d}function i(d,u){return ot(e)?r[e](d):e(n,d,u)}return{measure:i}}function Oe(){let e=[];function n(a,l,i,s={passive:!0}){let d;if("addEventListener"in a)a.addEventListener(l,i,s),d=()=>a.removeEventListener(l,i,s);else{const u=a;u.addListener(i),d=()=>u.removeListener(i)}return e.push(d),o}function r(){e=e.filter(a=>a())}const o={add:n,clear:r};return o}function ru(e,n,r,o){const a=Oe(),l=1e3/60;let i=null,s=0,d=0;function u(){a.add(e,"visibilitychange",()=>{e.hidden&&h()})}function c(){p(),a.clear()}function f(v){if(!d)return;i||(i=v,r(),r());const g=v-i;for(i=v,s+=g;s>=l;)r(),s-=l;const C=s/l;o(C),d&&(d=n.requestAnimationFrame(f))}function $(){d||(d=n.requestAnimationFrame(f))}function p(){n.cancelAnimationFrame(d),i=null,s=0,d=0}function h(){i=null,s=0}return{init:u,destroy:c,start:$,stop:p,update:r,render:o}}function ou(e,n){const r=n==="rtl",o=e==="y",a=o?"y":"x",l=o?"x":"y",i=!o&&r?-1:1,s=c(),d=f();function u(h){const{height:m,width:v}=h;return o?m:v}function c(){return o?"top":r?"right":"left"}function f(){return o?"bottom":r?"left":"right"}function $(h){return h*i}return{scroll:a,cross:l,startEdge:s,endEdge:d,measureSize:u,direction:$}}function fe(e=0,n=0){const r=U(e-n);function o(u){return u<e}function a(u){return u>n}function l(u){return o(u)||a(u)}function i(u){return l(u)?o(u)?e:n:u}function s(u){return r?u-r*Math.ceil((u-n)/r):u}return{length:r,max:n,min:e,constrain:i,reachedAny:l,reachedMax:a,reachedMin:o,removeOffset:s}}function Wn(e,n,r){const{constrain:o}=fe(0,e),a=e+1;let l=i(n);function i($){return r?U((a+$)%a):o($)}function s(){return l}function d($){return l=i($),f}function u($){return c().set(s()+$)}function c(){return Wn(e,s(),r)}const f={get:s,set:d,add:u,clone:c};return f}function au(e,n,r,o,a,l,i,s,d,u,c,f,$,p,h,m,v,g,C){const{cross:E,direction:N}=e,w=["INPUT","SELECT","TEXTAREA"],k={passive:!1},O=Oe(),D=Oe(),I=fe(50,225).constrain(p.measure(20)),L={mouse:300,touch:400},P={mouse:500,touch:600},R=h?43:25;let G=!1,V=0,z=0,b=!1,T=!1,x=!1,F=!1;function M(B){if(!C)return;function y(_){(Ae(C)||C(B,_))&&ce(_)}const S=n;O.add(S,"dragstart",_=>_.preventDefault(),k).add(S,"touchmove",()=>{},k).add(S,"touchend",()=>{}).add(S,"touchstart",y).add(S,"mousedown",y).add(S,"touchcancel",q).add(S,"contextmenu",q).add(S,"click",ne,!0)}function K(){O.clear(),D.clear()}function J(){const B=F?r:n;D.add(B,"touchmove",Z,k).add(B,"touchend",q).add(B,"mousemove",Z,k).add(B,"mouseup",q)}function H(B){const y=B.nodeName||"";return w.includes(y)}function te(){return(h?P:L)[F?"mouse":"touch"]}function ue(B,y){const S=f.add(kt(B)*-1),_=c.byDistance(B,!h).distance;return h||U(B)<I?_:v&&y?_*.5:c.byIndex(S.get(),0).distance}function ce(B){const y=at(B,o);F=y,x=h&&y&&!B.buttons&&G,G=ke(a.get(),i.get())>=2,!(y&&B.button!==0)&&(H(B.target)||(b=!0,l.pointerDown(B),u.useFriction(0).useDuration(0),a.set(i),J(),V=l.readPoint(B),z=l.readPoint(B,E),$.emit("pointerDown")))}function Z(B){if(!at(B,o)&&B.touches.length>=2)return q(B);const S=l.readPoint(B),_=l.readPoint(B,E),A=ke(S,V),Y=ke(_,z);if(!T&&!F&&(!B.cancelable||(T=A>Y,!T)))return q(B);const ee=l.pointerMove(B);A>m&&(x=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(N(ee)),B.preventDefault()}function q(B){const S=c.byDistance(0,!1).index!==f.get(),_=l.pointerUp(B)*te(),A=ue(N(_),S),Y=eu(_,A),ee=R-10*Y,re=g+Y/50;T=!1,b=!1,D.clear(),u.useDuration(ee).useFriction(re),d.distance(A,!h),F=!1,$.emit("pointerUp")}function ne(B){x&&(B.stopPropagation(),B.preventDefault(),x=!1)}function Q(){return b}return{init:M,destroy:K,pointerDown:Q}}function lu(e,n){let o,a;function l(f){return f.timeStamp}function i(f,$){const h=`client${($||e.scroll)==="x"?"X":"Y"}`;return(at(f,n)?f:f.touches[0])[h]}function s(f){return o=f,a=f,i(f)}function d(f){const $=i(f)-i(a),p=l(f)-l(o)>170;return a=f,p&&(o=f),$}function u(f){if(!o||!a)return 0;const $=i(a)-i(o),p=l(f)-l(o),h=l(f)-l(a)>170,m=$/p;return p&&!h&&U(m)>.1?m:0}return{pointerDown:s,pointerMove:d,pointerUp:u,readPoint:i}}function iu(){function e(r){const{offsetTop:o,offsetLeft:a,offsetWidth:l,offsetHeight:i}=r;return{top:o,right:a+l,bottom:o+i,left:a,width:l,height:i}}return{measure:e}}function su(e){function n(o){return e*(o/100)}return{measure:n}}function du(e,n,r,o,a,l,i){const s=[e].concat(o);let d,u,c=[],f=!1;function $(v){return a.measureSize(i.measure(v))}function p(v){if(!l)return;u=$(e),c=o.map($);function g(C){for(const E of C){if(f)return;const N=E.target===e,w=o.indexOf(E.target),k=N?u:c[w],O=$(N?e:o[w]);if(U(O-k)>=.5){v.reInit(),n.emit("resize");break}}}d=new ResizeObserver(C=>{(Ae(l)||l(v,C))&&g(C)}),r.requestAnimationFrame(()=>{s.forEach(C=>d.observe(C))})}function h(){f=!0,d&&d.disconnect()}return{init:p,destroy:h}}function uu(e,n,r,o,a,l){let i=0,s=0,d=a,u=l,c=e.get(),f=0;function $(){const k=o.get()-e.get(),O=!d;let D=0;return O?(i=0,r.set(o),e.set(o),D=k):(r.set(e),i+=k/d,i*=u,c+=i,e.add(i),D=c-f),s=kt(D),f=c,w}function p(){const k=o.get()-n.get();return U(k)<.001}function h(){return d}function m(){return s}function v(){return i}function g(){return E(a)}function C(){return N(l)}function E(k){return d=k,w}function N(k){return u=k,w}const w={direction:m,duration:h,velocity:v,seek:$,settled:p,useBaseFriction:C,useBaseDuration:g,useFriction:N,useDuration:E};return w}function cu(e,n,r,o,a){const l=a.measure(10),i=a.measure(50),s=fe(.1,.99);let d=!1;function u(){return!(d||!e.reachedAny(r.get())||!e.reachedAny(n.get()))}function c(p){if(!u())return;const h=e.reachedMin(n.get())?"min":"max",m=U(e[h]-n.get()),v=r.get()-n.get(),g=s.constrain(m/i);r.subtract(v*g),!p&&U(v)<l&&(r.set(e.constrain(r.get())),o.useDuration(25).useBaseFriction())}function f(p){d=!p}return{shouldConstrain:u,constrain:c,toggleActive:f}}function fu(e,n,r,o,a){const l=fe(-n+e,0),i=f(),s=c(),d=$();function u(h,m){return ke(h,m)<=1}function c(){const h=i[0],m=oe(i),v=i.lastIndexOf(h),g=i.indexOf(m)+1;return fe(v,g)}function f(){return r.map((h,m)=>{const{min:v,max:g}=l,C=l.constrain(h),E=!m,N=wt(r,m);return E?g:N||u(v,C)?v:u(g,C)?g:C}).map(h=>parseFloat(h.toFixed(3)))}function $(){if(n<=e+a)return[l.max];if(o==="keepSnaps")return i;const{min:h,max:m}=s;return i.slice(h,m)}return{snapsContained:d,scrollContainLimit:s}}function $u(e,n,r){const o=n[0],a=r?o-e:oe(n);return{limit:fe(a,o)}}function pu(e,n,r,o){const l=n.min+.1,i=n.max+.1,{reachedMin:s,reachedMax:d}=fe(l,i);function u($){return $===1?d(r.get()):$===-1?s(r.get()):!1}function c($){if(!u($))return;const p=e*($*-1);o.forEach(h=>h.add(p))}return{loop:c}}function mu(e){const{max:n,length:r}=e;function o(l){const i=l-n;return r?i/-r:0}return{get:o}}function hu(e,n,r,o,a){const{startEdge:l,endEdge:i}=e,{groupSlides:s}=a,d=f().map(n.measure),u=$(),c=p();function f(){return s(o).map(m=>oe(m)[i]-m[0][l]).map(U)}function $(){return o.map(m=>r[l]-m[l]).map(m=>-U(m))}function p(){return s(u).map(m=>m[0]).map((m,v)=>m+d[v])}return{snaps:u,snapsAligned:c}}function gu(e,n,r,o,a,l){const{groupSlides:i}=a,{min:s,max:d}=o,u=c();function c(){const $=i(l),p=!e||n==="keepSnaps";return r.length===1?[l]:p?$:$.slice(s,d).map((h,m,v)=>{const g=!m,C=wt(v,m);if(g){const E=oe(v[0])+1;return $n(E)}if(C){const E=Ne(l)-oe(v)[0]+1;return $n(E,oe(v)[0])}return h})}return{slideRegistry:u}}function vu(e,n,r,o,a){const{reachedAny:l,removeOffset:i,constrain:s}=o;function d(h){return h.concat().sort((m,v)=>U(m)-U(v))[0]}function u(h){const m=e?i(h):s(h),v=n.map((C,E)=>({diff:c(C-m,0),index:E})).sort((C,E)=>U(C.diff)-U(E.diff)),{index:g}=v[0];return{index:g,distance:m}}function c(h,m){const v=[h,h+r,h-r];if(!e)return h;if(!m)return d(v);const g=v.filter(C=>kt(C)===m);return g.length?d(g):oe(v)-r}function f(h,m){const v=n[h]-a.get(),g=c(v,m);return{index:h,distance:g}}function $(h,m){const v=a.get()+h,{index:g,distance:C}=u(v),E=!e&&l(v);if(!m||E)return{index:g,distance:h};const N=n[g]-C,w=h+c(N,0);return{index:g,distance:w}}return{byDistance:$,byIndex:f,shortcut:c}}function yu(e,n,r,o,a,l,i){function s(f){const $=f.distance,p=f.index!==n.get();l.add($),$&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(r.set(n.get()),n.set(f.index),i.emit("select"))}function d(f,$){const p=a.byDistance(f,$);s(p)}function u(f,$){const p=n.clone().set(f),h=a.byIndex(p.get(),$);s(h)}return{distance:d,index:u}}function bu(e,n,r,o,a,l,i,s){const d={passive:!0,capture:!0};let u=0;function c(p){if(!s)return;function h(m){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const C=r.findIndex(E=>E.includes(m));Ct(C)&&(a.useDuration(0),o.index(C,0),i.emit("slideFocus"))}l.add(document,"keydown",f,!1),n.forEach((m,v)=>{l.add(m,"focus",g=>{(Ae(s)||s(p,g))&&h(v)},d)})}function f(p){p.code==="Tab"&&(u=new Date().getTime())}return{init:c}}function Ce(e){let n=e;function r(){return n}function o(d){n=i(d)}function a(d){n+=i(d)}function l(d){n-=i(d)}function i(d){return Ct(d)?d:d.get()}return{get:r,set:o,add:a,subtract:l}}function Xn(e,n){const r=e.scroll==="x"?i:s,o=n.style;let a=null,l=!1;function i($){return`translate3d(${$}px,0px,0px)`}function s($){return`translate3d(0px,${$}px,0px)`}function d($){if(l)return;const p=tu(e.direction($));p!==a&&(o.transform=r(p),a=p)}function u($){l=!$}function c(){l||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:c,to:d,toggleActive:u}}function Cu(e,n,r,o,a,l,i,s,d){const c=Ee(a),f=Ee(a).reverse(),$=g().concat(C());function p(O,D){return O.reduce((I,L)=>I-a[L],D)}function h(O,D){return O.reduce((I,L)=>p(I,D)>0?I.concat([L]):I,[])}function m(O){return l.map((D,I)=>({start:D-o[I]+.5+O,end:D+n-.5+O}))}function v(O,D,I){const L=m(D);return O.map(P=>{const R=I?0:-r,G=I?r:0,V=I?"end":"start",z=L[P][V];return{index:P,loopPoint:z,slideLocation:Ce(-1),translate:Xn(e,d[P]),target:()=>s.get()>z?R:G}})}function g(){const O=i[0],D=h(f,O);return v(D,r,!1)}function C(){const O=n-i[0]-1,D=h(c,O);return v(D,-r,!0)}function E(){return $.every(({index:O})=>{const D=c.filter(I=>I!==O);return p(D,n)<=.1})}function N(){$.forEach(O=>{const{target:D,translate:I,slideLocation:L}=O,P=D();P!==L.get()&&(I.to(P),L.set(P))})}function w(){$.forEach(O=>O.translate.clear())}return{canLoop:E,clear:w,loop:N,loopPoints:$}}function ku(e,n,r){let o,a=!1;function l(d){if(!r)return;function u(c){for(const f of c)if(f.type==="childList"){d.reInit(),n.emit("slidesChanged");break}}o=new MutationObserver(c=>{a||(Ae(r)||r(d,c))&&u(c)}),o.observe(e,{childList:!0})}function i(){o&&o.disconnect(),a=!0}return{init:l,destroy:i}}function wu(e,n,r,o){const a={};let l=null,i=null,s,d=!1;function u(){s=new IntersectionObserver(h=>{d||(h.forEach(m=>{const v=n.indexOf(m.target);a[v]=m}),l=null,i=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:o}),n.forEach(h=>s.observe(h))}function c(){s&&s.disconnect(),d=!0}function f(h){return Te(a).reduce((m,v)=>{const g=parseInt(v),{isIntersecting:C}=a[g];return(h&&C||!h&&!C)&&m.push(g),m},[])}function $(h=!0){if(h&&l)return l;if(!h&&i)return i;const m=f(h);return h&&(l=m),h||(i=m),m}return{init:u,destroy:c,get:$}}function Su(e,n,r,o,a,l){const{measureSize:i,startEdge:s,endEdge:d}=e,u=r[0]&&a,c=h(),f=m(),$=r.map(i),p=v();function h(){if(!u)return 0;const C=r[0];return U(n[s]-C[s])}function m(){if(!u)return 0;const C=l.getComputedStyle(oe(o));return parseFloat(C.getPropertyValue(`margin-${d}`))}function v(){return r.map((C,E,N)=>{const w=!E,k=wt(N,E);return w?$[E]+c:k?$[E]+f:N[E+1][s]-C[s]}).map(U)}return{slideSizes:$,slideSizesWithGaps:p,startGap:c,endGap:f}}function Eu(e,n,r,o,a,l,i,s,d){const{startEdge:u,endEdge:c,direction:f}=e,$=Ct(r);function p(g,C){return Ee(g).filter(E=>E%C===0).map(E=>g.slice(E,E+C))}function h(g){return g.length?Ee(g).reduce((C,E,N)=>{const w=oe(C)||0,k=w===0,O=E===Ne(g),D=a[u]-l[w][u],I=a[u]-l[E][c],L=!o&&k?f(i):0,P=!o&&O?f(s):0,R=U(I-P-(D+L));return N&&R>n+d&&C.push(E),O&&C.push(g.length),C},[]).map((C,E,N)=>{const w=Math.max(N[E-1]||0);return g.slice(w,C)}):[]}function m(g){return $?p(g,r):h(g)}return{groupSlides:m}}function Tu(e,n,r,o,a,l,i){const{align:s,axis:d,direction:u,startIndex:c,loop:f,duration:$,dragFree:p,dragThreshold:h,inViewThreshold:m,slidesToScroll:v,skipSnaps:g,containScroll:C,watchResize:E,watchSlides:N,watchDrag:w,watchFocus:k}=l,O=2,D=iu(),I=D.measure(n),L=r.map(D.measure),P=ou(d,u),R=P.measureSize(I),G=su(R),V=nu(s,R),z=!f&&!!C,b=f||!!C,{slideSizes:T,slideSizesWithGaps:x,startGap:F,endGap:M}=Su(P,I,L,r,b,a),K=Eu(P,R,v,f,I,L,F,M,O),{snaps:J,snapsAligned:H}=hu(P,V,I,L,K),te=-oe(J)+oe(x),{snapsContained:ue,scrollContainLimit:ce}=fu(R,te,H,C,O),Z=z?ue:H,{limit:q}=$u(te,Z,f),ne=Wn(Ne(Z),c,f),Q=ne.clone(),j=Ee(r),B=({dragHandler:$e,scrollBody:ze,scrollBounds:He,options:{loop:Be}})=>{Be||He.constrain($e.pointerDown()),ze.seek()},y=({scrollBody:$e,translate:ze,location:He,offsetLocation:Be,previousLocation:rr,scrollLooper:or,slideLooper:ar,dragHandler:lr,animation:ir,eventHandler:Bt,scrollBounds:sr,options:{loop:Pt}},xt)=>{const Dt=$e.settled(),dr=!sr.shouldConstrain(),_t=Pt?Dt:Dt&&dr,It=_t&&!lr.pointerDown();It&&ir.stop();const ur=He.get()*xt+rr.get()*(1-xt);Be.set(ur),Pt&&(or.loop($e.direction()),ar.loop()),ze.to(Be.get()),It&&Bt.emit("settle"),_t||Bt.emit("scroll")},S=ru(o,a,()=>B(Ue),$e=>y(Ue,$e)),_=.68,A=Z[ne.get()],Y=Ce(A),ee=Ce(A),re=Ce(A),le=Ce(A),ye=uu(Y,re,ee,le,$,_),Re=vu(f,Z,te,q,le),je=yu(S,ne,Q,ye,Re,le,i),Tt=mu(q),Ot=Oe(),tr=wu(n,r,i,m),{slideRegistry:Nt}=gu(z,C,Z,ce,K,j),nr=bu(e,r,Nt,je,ye,Ot,i,k),Ue={ownerDocument:o,ownerWindow:a,eventHandler:i,containerRect:I,slideRects:L,animation:S,axis:P,dragHandler:au(P,e,o,a,le,lu(P,a),Y,S,je,ye,Re,ne,i,G,p,h,g,_,w),eventStore:Ot,percentOfView:G,index:ne,indexPrevious:Q,limit:q,location:Y,offsetLocation:re,previousLocation:ee,options:l,resizeHandler:du(n,i,a,r,P,E,D),scrollBody:ye,scrollBounds:cu(q,re,le,ye,G),scrollLooper:pu(te,q,re,[Y,re,ee,le]),scrollProgress:Tt,scrollSnapList:Z.map(Tt.get),scrollSnaps:Z,scrollTarget:Re,scrollTo:je,slideLooper:Cu(P,R,te,T,x,J,Z,re,r),slideFocus:nr,slidesHandler:ku(n,i,N),slidesInView:tr,slideIndexes:j,slideRegistry:Nt,slidesToScroll:K,target:le,translate:Xn(P,n)};return Ue}function Ou(){let e={},n;function r(u){n=u}function o(u){return e[u]||[]}function a(u){return o(u).forEach(c=>c(n,u)),d}function l(u,c){return e[u]=o(u).concat([c]),d}function i(u,c){return e[u]=o(u).filter(f=>f!==c),d}function s(){e={}}const d={init:r,emit:a,off:i,on:l,clear:s};return d}const Nu={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 Bu(e){function n(l,i){return Zn(l,i||{})}function r(l){const i=l.breakpoints||{},s=Te(i).filter(d=>e.matchMedia(d).matches).map(d=>i[d]).reduce((d,u)=>n(d,u),{});return n(l,s)}function o(l){return l.map(i=>Te(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:o}}function Pu(e){let n=[];function r(l,i){return n=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),n.forEach(s=>s.init(l,e)),i.reduce((s,d)=>Object.assign(s,{[d.name]:d}),{})}function o(){n=n.filter(l=>l.destroy())}return{init:r,destroy:o}}function Me(e,n,r){const o=e.ownerDocument,a=o.defaultView,l=Bu(a),i=Pu(l),s=Oe(),d=Ou(),{mergeOptions:u,optionsAtMedia:c,optionsMediaQueries:f}=l,{on:$,off:p,emit:h}=d,m=P;let v=!1,g,C=u(Nu,Me.globalOptions),E=u(C),N=[],w,k,O;function D(){const{container:j,slides:B}=E;k=(ot(j)?e.querySelector(j):j)||e.children[0];const S=ot(B)?k.querySelectorAll(B):B;O=[].slice.call(S||k.children)}function I(j){const B=Tu(e,k,O,o,a,j,d);if(j.loop&&!B.slideLooper.canLoop()){const y=Object.assign({},j,{loop:!1});return I(y)}return B}function L(j,B){v||(C=u(C,j),E=c(C),N=B||N,D(),g=I(E),f([C,...N.map(({options:y})=>y)]).forEach(y=>s.add(y,"change",P)),E.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(Q),g.eventHandler.init(Q),g.resizeHandler.init(Q),g.slidesHandler.init(Q),g.options.loop&&g.slideLooper.loop(),k.offsetParent&&O.length&&g.dragHandler.init(Q),w=i.init(Q,N)))}function P(j,B){const y=K();R(),L(u({startIndex:y},j),B),d.emit("reInit")}function R(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),i.destroy(),s.clear()}function G(){v||(v=!0,s.clear(),R(),d.emit("destroy"),d.clear())}function V(j,B,y){!E.active||v||(g.scrollBody.useBaseFriction().useDuration(B===!0?0:E.duration),g.scrollTo.index(j,y||0))}function z(j){const B=g.index.add(1).get();V(B,j,-1)}function b(j){const B=g.index.add(-1).get();V(B,j,1)}function T(){return g.index.add(1).get()!==K()}function x(){return g.index.add(-1).get()!==K()}function F(){return g.scrollSnapList}function M(){return g.scrollProgress.get(g.offsetLocation.get())}function K(){return g.index.get()}function J(){return g.indexPrevious.get()}function H(){return g.slidesInView.get()}function te(){return g.slidesInView.get(!1)}function ue(){return w}function ce(){return g}function Z(){return e}function q(){return k}function ne(){return O}const Q={canScrollNext:T,canScrollPrev:x,containerNode:q,internalEngine:ce,destroy:G,off:p,on:$,emit:h,plugins:ue,previousScrollSnap:J,reInit:m,rootNode:Z,scrollNext:z,scrollPrev:b,scrollProgress:M,scrollSnapList:F,scrollTo:V,selectedScrollSnap:K,slideNodes:ne,slidesInView:H,slidesNotInView:te};return L(n,r),setTimeout(()=>d.emit("init"),0),Q}Me.globalOptions=void 0;function St(e={},n=[]){const r=t.isRef(e),o=t.isRef(n);let a=r?e.value:e,l=o?n.value:n;const i=t.shallowRef(),s=t.shallowRef();function d(){s.value&&s.value.reInit(a,l)}return t.onMounted(()=>{!Jd()||!i.value||(Me.globalOptions=St.globalOptions,s.value=Me(i.value,a,l))}),t.onBeforeUnmount(()=>{s.value&&s.value.destroy()}),r&&t.watch(e,u=>{bt(a,u)||(a=u,d())}),o&&t.watch(n,u=>{Qd(l,u)||(l=u,d())}),[i,s]}St.globalOptions=void 0;const xu={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Du(e,n){const r=e.scrollSnapList();return typeof n=="number"?r.map(()=>n):n(r,e)}function _u(e,n){const r=e.rootNode();return n&&n(r)||r}function Et(e={}){let n,r,o,a,l=null,i=0,s=!1,d=!1,u=!1,c=!1;function f(V,z){r=V;const{mergeOptions:b,optionsAtMedia:T}=z,x=b(xu,Et.globalOptions),F=b(x,e);if(n=T(F),r.scrollSnapList().length<=1)return;c=n.jump,o=!1,a=Du(r,n.delay);const{eventStore:M,ownerDocument:K}=r.internalEngine(),J=!!r.internalEngine().options.watchDrag,H=_u(r,n.rootNode);M.add(K,"visibilitychange",g),J&&r.on("pointerDown",E),J&&!n.stopOnInteraction&&r.on("pointerUp",N),n.stopOnMouseEnter&&M.add(H,"mouseenter",w),n.stopOnMouseEnter&&!n.stopOnInteraction&&M.add(H,"mouseleave",k),n.stopOnFocusIn&&r.on("slideFocusStart",v),n.stopOnFocusIn&&!n.stopOnInteraction&&M.add(r.containerNode(),"focusout",m),n.playOnInit&&m()}function $(){r.off("pointerDown",E).off("pointerUp",N).off("slideFocusStart",v),v(),o=!0,s=!1}function p(){const{ownerWindow:V}=r.internalEngine();V.clearTimeout(i),i=V.setTimeout(P,a[r.selectedScrollSnap()]),l=new Date().getTime(),r.emit("autoplay:timerset")}function h(){const{ownerWindow:V}=r.internalEngine();V.clearTimeout(i),i=0,l=null,r.emit("autoplay:timerstopped")}function m(){if(!o){if(C()){u=!0;return}s||r.emit("autoplay:play"),p(),s=!0}}function v(){o||(s&&r.emit("autoplay:stop"),h(),s=!1)}function g(){if(C())return u=s,v();u&&m()}function C(){const{ownerDocument:V}=r.internalEngine();return V.visibilityState==="hidden"}function E(){d||v()}function N(){d||m()}function w(){d=!0,v()}function k(){d=!1,m()}function O(V){typeof V<"u"&&(c=V),m()}function D(){s&&v()}function I(){s&&m()}function L(){return s}function P(){const{index:V}=r.internalEngine(),z=V.clone().add(1).get(),b=r.scrollSnapList().length-1,T=n.stopOnLastSnap&&z===b;if(r.canScrollNext()?r.scrollNext(c):r.scrollTo(0,c),r.emit("autoplay:select"),T)return v();m()}function R(){if(!l)return null;const V=a[r.selectedScrollSnap()],z=new Date().getTime()-l;return V-z}return{name:"autoplay",options:e,init:f,destroy:$,play:O,stop:D,reset:I,isPlaying:L,timeUntilNext:R}}Et.globalOptions=void 0;const Iu={class:"pos-relative"},Mu={key:0,class:"h-20r radius-semi pos-relative w-100 bg-light"},Lu={key:1,class:"bg-light radius-semi flex flex-center w-100 h-20r"},Vu={class:"text-gray-500"},Fu={class:"embla__container"},Au={__name:"Slider",props:{store:Object,options:Object,text:Object,user:Object},setup(e){const n=e;xe.useRouter();const r=t.ref([]),o=t.ref(!0),a=t.ref(0),l={delay:2e3,jump:!1,stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnLastSnap:!1,rootNode:c=>c.parentElement},[i,s]=St({loop:!0},[Et(l)]),d=c=>a.value=s.value.selectedScrollSnap()||[],{t:u}=it.useI18n({messages:n.text});return t.onMounted(async()=>{try{r.value=await n.store.read(n.options)}catch(c){console.error("Error loading entities:",c),r.value=[]}finally{o.value=!1}r.value.length&&(d(),s.value.on("reInit",d),s.value.on("select",d))}),(c,f)=>(t.openBlock(),t.createElementBlock("div",Iu,[o.value?(t.openBlock(),t.createElementBlock("div",Mu,[t.createVNode(de)])):r.value.length?(t.openBlock(),t.createElementBlock("div",{key:2,class:"embla",ref_key:"emblaNode",ref:i},[t.createElementVNode("div",Fu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,($,p,h)=>(t.openBlock(),t.createElementBlock("div",{class:"embla__slide pd-nano",key:p},[t.createVNode(t.Transition,{name:"fade",mode:"out-in",appear:""},{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default",{item:$,user:e.user},void 0,!0)]),_:2},1024)]))),128))])],512)):(t.openBlock(),t.createElementBlock("div",Lu,[t.createElementVNode("p",Vu,t.toDisplayString(t.unref(u)("title")),1)]))]))}},Jn=W(Au,[["__scopeId","data-v-c1c01dd7"]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),ju={class:"pd-small error-wrapper"},Uu={class:"flex-nowrap flex radius-small pd-small t-white bg-fourth"},zu={class:"w-100"},Qn={__name:"Status",props:{status:String,message:String,show:Boolean,data:Object},emits:"close",setup(e,{emit:n}){const r=n;function o(){r("close")}return(a,l)=>(t.openBlock(),t.createElementBlock("div",ju,[t.createElementVNode("div",Uu,[t.createElementVNode("p",zu,[t.createTextVNode(t.toDisplayString(e.data.message)+" ",1),l[1]||(l[1]=t.createElementVNode("br",null,null,-1))]),t.createVNode(ht,{onClick:l[0]||(l[0]=i=>o()),class:"cursor-pointer hover-scale-1 i-regular z-index-5"})])]))}},Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),Gu={class:"marquee","aria-hidden":!0},er={__name:"Marquee",props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:[Array,String],default:()=>[255,255,255]},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume"],setup(e,{emit:n}){const r=e,o=n,a=t.ref(!1),l=t.ref(0),i=t.ref(0),s=t.ref(0),d=t.ref(null),u=t.ref("100%"),c=t.ref(0),f=t.ref(0),$=t.ref("100%"),p=t.ref(0),h=t.ref(0),m=t.ref("200px"),v=t.ref(!1),g=t.ref(null),C=t.ref(null),E=async()=>{await N(),l.value++},N=async()=>{r.vertical&&(v.value=!0),setInterval(()=>{if(u.value="0%",$.value="0%",g.value!==null&&C.value!==null)if(g.value&&C.value)if(r.vertical&&"clientHeight"in g.value&&"clientHeight"in C.value){h.value=g.value.clientHeight,p.value=C.value.clientHeight;const P=Math.ceil(p.value/h.value);return i.value=isFinite(P)?P:0,v.value=!1,i.value}else if(!r.vertical&&"clientWidth"in g.value&&"clientWidth"in C.value){f.value=g.value.clientWidth,c.value=C.value.clientWidth;const P=Math.ceil(c.value/f.value);return i.value=isFinite(P)?P:0,i.value}else return u.value="100%",$.value="100%",0;else return u.value="100%",$.value="100%",0;else return u.value="100%",$.value="100%",0},100)},w=()=>{r.pauseOnHover&&o("onPause")},k=()=>{r.pauseOnHover&&o("onResume")},O=()=>{r.pauseOnClick&&o("onPause")},D=()=>{r.pauseOnClick&&o("onResume")},I=t.computed(()=>({"--loops":`${r.loop===0?"infinite":r.loop}`,"--duration":`${r.duration}s`,"--delay":`${r.delay}s`,"--direction":`${r.direction}`,"--pauseOnHover":`${r.pauseOnHover?"paused":"running"}`,"--pauseOnClick":`${r.pauseOnClick?"paused":"running"}`,"--pauseAnimation":`${r.vertical&&v.value||r.pause?"paused":"running"}`,"--gradient-color":`rgba(${r.gradientColor}, 1), rgba(${r.gradientColor}, 0)`,"--gradient-length":`${m.value}`,"--min-width":`${u.value}`,"--min-height":`${$.value}`,"--orientation":r.vertical?"scrollY":"scrollX"})),L=async()=>{r.vertical?($.value="100%",u.value="auto"):($.value="auto",u.value="100%"),r.gradient&&r.gradientLength&&(m.value=r.gradientLength),r.clone&&(await N(),E()),a.value=!0};return t.onMounted(async()=>{L(),d.value=setInterval(()=>{s.value++,r.loop!==0&&s.value===r.loop&&(o("onComplete"),clearInterval(d.value)),o("onLoopComplete")},r.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(d.value)}),t.watch(f,async()=>{r.clone&&E()}),t.watch(c,async()=>{r.clone&&E()}),t.watch(()=>r.pause,(P,R)=>{P!==R&&o(P?"onResume":"onPause")}),(P,R)=>a.value?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(I.value),key:l.value,onMouseenter:w,onMouseleave:k,onMousedown:O,onMouseup:D},[t.createElementVNode("div",{class:t.normalizeClass(["transparent-overlay",{vertical:e.vertical,horizontal:!e.vertical,overlay:e.gradient}]),ref_key:"marqueeOverlayContainer",ref:C,"aria-hidden":!0},null,2),t.createElementVNode("div",{class:"marquee",ref_key:"marqueeContent",ref:g},[t.renderSlot(P.$slots,"default")],512),t.createElementVNode("div",Gu,[t.renderSlot(P.$slots,"default")]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,G=>(t.openBlock(),t.createElementBlock("div",{key:G,"aria-hidden":!0,class:"marquee cloned"},[t.renderSlot(P.$slots,"default")]))),128))],38)):t.createCommentVNode("",!0)}},Ku=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),qu={install:e=>{e.component("Address",()=>Promise.resolve().then(()=>vr)),e.component("Button",()=>Promise.resolve().then(()=>Nr)),e.component("Checkbox",()=>Promise.resolve().then(()=>Dr)),e.component("Dropdown",()=>Promise.resolve().then(()=>Mr)),e.component("Error",()=>Promise.resolve().then(()=>Fr)),e.component("Field",()=>Promise.resolve().then(()=>qr)),e.component("FieldPhone",()=>Promise.resolve().then(()=>dl)),e.component("LocationMarker",()=>Promise.resolve().then(()=>fl)),e.component("Map",()=>Promise.resolve().then(()=>pl)),e.component("Popup",()=>Promise.resolve().then(()=>vl)),e.component("Radio",()=>Promise.resolve().then(()=>wl)),e.component("Select",()=>Promise.resolve().then(()=>Pl)),e.component("SelectMulti",()=>Promise.resolve().then(()=>ti)),e.component("Spoiler",()=>Promise.resolve().then(()=>ni)),e.component("Tab",()=>Promise.resolve().then(()=>ai)),e.component("Tooltip",()=>Promise.resolve().then(()=>li)),e.component("Text",()=>Promise.resolve().then(()=>si)),e.component("Menu",()=>Promise.resolve().then(()=>Di)),e.component("MenuItem",()=>Promise.resolve().then(()=>Fi)),e.component("Upload",()=>Promise.resolve().then(()=>hi)),e.component("UploadImage",()=>Promise.resolve().then(()=>yi)),e.component("UploadImageMultiple",()=>Promise.resolve().then(()=>Pi)),e.component("Breadcrumbs",()=>Promise.resolve().then(()=>zi)),e.component("Chips",()=>Promise.resolve().then(()=>qi)),e.component("Countdown",()=>Promise.resolve().then(()=>os)),e.component("DatePicker",()=>Promise.resolve().then(()=>is)),e.component("EmptyState",()=>Promise.resolve().then(()=>us)),e.component("Feed",()=>Promise.resolve().then(()=>pd)),e.component("FieldBig",()=>Promise.resolve().then(()=>yd)),e.component("FieldTags",()=>Promise.resolve().then(()=>Yd)),e.component("Loader",()=>Promise.resolve().then(()=>wr)),e.component("Shader",()=>Promise.resolve().then(()=>Wd)),e.component("Slider",()=>Promise.resolve().then(()=>Ru)),e.component("Status",()=>Promise.resolve().then(()=>Hu)),e.component("Marquee",()=>Promise.resolve().then(()=>Ku)),e.component("Media",()=>Promise.resolve().then(()=>require("./Media-1oukRVfv.js")))}};exports.Field=Le;exports.FieldTags=qn;exports.Loader=de;exports.Map=On;exports.Select=Bn;exports.SelectMulti=xn;exports.Shader=Yn;exports.Slider=Jn;exports.Upload=Mn;exports._export_sfc=W;exports._sfc_main=pn;exports._sfc_main$1=mn;exports._sfc_main$10=Dn;exports._sfc_main$11=Fn;exports._sfc_main$12=An;exports._sfc_main$13=_n;exports._sfc_main$14=In;exports._sfc_main$15=Ln;exports._sfc_main$16=Vn;exports._sfc_main$17=Rn;exports._sfc_main$18=jn;exports._sfc_main$19=Un;exports._sfc_main$2=dt;exports._sfc_main$20=zn;exports._sfc_main$21=yt;exports._sfc_main$22=Hn;exports._sfc_main$23=Gn;exports._sfc_main$24=Qn;exports._sfc_main$25=er;exports._sfc_main$3=De;exports._sfc_main$4=hn;exports._sfc_main$5=En;exports._sfc_main$6=Tn;exports._sfc_main$7=Nn;exports._sfc_main$8=gt;exports._sfc_main$9=vt;exports.main=qu;
|
|
11
|
+
`,i=n.shader;function s(p,h,m){const v=p.createShader(h);return p.shaderSource(v,m),p.compileShader(v),p.getShaderParameter(v,p.COMPILE_STATUS)?v:(alert("An error occurred compiling the shaders: "+p.getShaderInfoLog(v)),p.deleteShader(v),null)}const d=s(a,a.VERTEX_SHADER,l),u=s(a,a.FRAGMENT_SHADER,i),c=a.createProgram();a.attachShader(c,d),a.attachShader(c,u),a.linkProgram(c),a.getProgramParameter(c,a.LINK_STATUS)||alert("Unable to initialize the shader program: "+a.getProgramInfoLog(c));function f(p){const h=p.clientWidth*window.devicePixelRatio,m=p.clientHeight*window.devicePixelRatio;return p.width!==h||p.height!==m?(p.width=h,p.height=m,!0):!1}function $(){f(a.canvas)&&a.viewport(0,0,a.canvas.width,a.canvas.height),a.clearColor(0,0,0,1),a.clearDepth(1),a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),a.useProgram(c);const p=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,p);const h=[-1,1,1,1,-1,-1,1,-1];a.bufferData(a.ARRAY_BUFFER,new Float32Array(h),a.STATIC_DRAW);const m=a.getAttribLocation(c,"aVertexPosition");a.vertexAttribPointer(m,2,a.FLOAT,!1,0,0),a.enableVertexAttribArray(m);const v=a.getUniformLocation(c,"iTime"),g=a.getUniformLocation(c,"iResolution");a.uniform1f(v,performance.now()/3e3),a.uniform2f(g,a.canvas.width,a.canvas.height),a.drawArrays(a.TRIANGLE_STRIP,0,4),requestAnimationFrame($)}requestAnimationFrame($)}),(o,a)=>(t.openBlock(),t.createElementBlock("canvas",{ref_key:"refCanvas",ref:r},null,512))}},Yn=W(Zd,[["__scopeId","data-v-d6d39ab2"]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"}));function Xd(e){return Object.prototype.toString.call(e)==="[object Object]"}function un(e){return Xd(e)||Array.isArray(e)}function Jd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bt(e,n){const r=Object.keys(e),o=Object.keys(n);if(r.length!==o.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),l=JSON.stringify(Object.keys(n.breakpoints||{}));return a!==l?!1:r.every(i=>{const s=e[i],d=n[i];return typeof s=="function"?`${s}`==`${d}`:!un(s)||!un(d)?s===d:bt(s,d)})}function cn(e){return e.concat().sort((n,r)=>n.name>r.name?1:-1).map(n=>n.options)}function Qd(e,n){if(e.length!==n.length)return!1;const r=cn(e),o=cn(n);return r.every((a,l)=>{const i=o[l];return bt(a,i)})}function Ct(e){return typeof e=="number"}function ot(e){return typeof e=="string"}function Ae(e){return typeof e=="boolean"}function fn(e){return Object.prototype.toString.call(e)==="[object Object]"}function U(e){return Math.abs(e)}function kt(e){return Math.sign(e)}function ke(e,n){return U(e-n)}function eu(e,n){if(e===0||n===0||U(e)<=U(n))return 0;const r=ke(U(e),U(n));return U(r/e)}function tu(e){return Math.round(e*100)/100}function Ee(e){return Te(e).map(Number)}function oe(e){return e[Ne(e)]}function Ne(e){return Math.max(0,e.length-1)}function wt(e,n){return n===Ne(e)}function $n(e,n=0){return Array.from(Array(e),(r,o)=>n+o)}function Te(e){return Object.keys(e)}function Zn(e,n){return[e,n].reduce((r,o)=>(Te(o).forEach(a=>{const l=r[a],i=o[a],s=fn(l)&&fn(i);r[a]=s?Zn(l,i):i}),r),{})}function at(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function nu(e,n){const r={start:o,center:a,end:l};function o(){return 0}function a(d){return l(d)/2}function l(d){return n-d}function i(d,u){return ot(e)?r[e](d):e(n,d,u)}return{measure:i}}function Oe(){let e=[];function n(a,l,i,s={passive:!0}){let d;if("addEventListener"in a)a.addEventListener(l,i,s),d=()=>a.removeEventListener(l,i,s);else{const u=a;u.addListener(i),d=()=>u.removeListener(i)}return e.push(d),o}function r(){e=e.filter(a=>a())}const o={add:n,clear:r};return o}function ru(e,n,r,o){const a=Oe(),l=1e3/60;let i=null,s=0,d=0;function u(){a.add(e,"visibilitychange",()=>{e.hidden&&h()})}function c(){p(),a.clear()}function f(v){if(!d)return;i||(i=v,r(),r());const g=v-i;for(i=v,s+=g;s>=l;)r(),s-=l;const C=s/l;o(C),d&&(d=n.requestAnimationFrame(f))}function $(){d||(d=n.requestAnimationFrame(f))}function p(){n.cancelAnimationFrame(d),i=null,s=0,d=0}function h(){i=null,s=0}return{init:u,destroy:c,start:$,stop:p,update:r,render:o}}function ou(e,n){const r=n==="rtl",o=e==="y",a=o?"y":"x",l=o?"x":"y",i=!o&&r?-1:1,s=c(),d=f();function u(h){const{height:m,width:v}=h;return o?m:v}function c(){return o?"top":r?"right":"left"}function f(){return o?"bottom":r?"left":"right"}function $(h){return h*i}return{scroll:a,cross:l,startEdge:s,endEdge:d,measureSize:u,direction:$}}function fe(e=0,n=0){const r=U(e-n);function o(u){return u<e}function a(u){return u>n}function l(u){return o(u)||a(u)}function i(u){return l(u)?o(u)?e:n:u}function s(u){return r?u-r*Math.ceil((u-n)/r):u}return{length:r,max:n,min:e,constrain:i,reachedAny:l,reachedMax:a,reachedMin:o,removeOffset:s}}function Wn(e,n,r){const{constrain:o}=fe(0,e),a=e+1;let l=i(n);function i($){return r?U((a+$)%a):o($)}function s(){return l}function d($){return l=i($),f}function u($){return c().set(s()+$)}function c(){return Wn(e,s(),r)}const f={get:s,set:d,add:u,clone:c};return f}function au(e,n,r,o,a,l,i,s,d,u,c,f,$,p,h,m,v,g,C){const{cross:E,direction:N}=e,w=["INPUT","SELECT","TEXTAREA"],k={passive:!1},O=Oe(),D=Oe(),I=fe(50,225).constrain(p.measure(20)),L={mouse:300,touch:400},P={mouse:500,touch:600},R=h?43:25;let G=!1,V=0,z=0,b=!1,T=!1,x=!1,F=!1;function M(B){if(!C)return;function y(_){(Ae(C)||C(B,_))&&ce(_)}const S=n;O.add(S,"dragstart",_=>_.preventDefault(),k).add(S,"touchmove",()=>{},k).add(S,"touchend",()=>{}).add(S,"touchstart",y).add(S,"mousedown",y).add(S,"touchcancel",q).add(S,"contextmenu",q).add(S,"click",ne,!0)}function K(){O.clear(),D.clear()}function J(){const B=F?r:n;D.add(B,"touchmove",Z,k).add(B,"touchend",q).add(B,"mousemove",Z,k).add(B,"mouseup",q)}function H(B){const y=B.nodeName||"";return w.includes(y)}function te(){return(h?P:L)[F?"mouse":"touch"]}function ue(B,y){const S=f.add(kt(B)*-1),_=c.byDistance(B,!h).distance;return h||U(B)<I?_:v&&y?_*.5:c.byIndex(S.get(),0).distance}function ce(B){const y=at(B,o);F=y,x=h&&y&&!B.buttons&&G,G=ke(a.get(),i.get())>=2,!(y&&B.button!==0)&&(H(B.target)||(b=!0,l.pointerDown(B),u.useFriction(0).useDuration(0),a.set(i),J(),V=l.readPoint(B),z=l.readPoint(B,E),$.emit("pointerDown")))}function Z(B){if(!at(B,o)&&B.touches.length>=2)return q(B);const S=l.readPoint(B),_=l.readPoint(B,E),A=ke(S,V),Y=ke(_,z);if(!T&&!F&&(!B.cancelable||(T=A>Y,!T)))return q(B);const ee=l.pointerMove(B);A>m&&(x=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(N(ee)),B.preventDefault()}function q(B){const S=c.byDistance(0,!1).index!==f.get(),_=l.pointerUp(B)*te(),A=ue(N(_),S),Y=eu(_,A),ee=R-10*Y,re=g+Y/50;T=!1,b=!1,D.clear(),u.useDuration(ee).useFriction(re),d.distance(A,!h),F=!1,$.emit("pointerUp")}function ne(B){x&&(B.stopPropagation(),B.preventDefault(),x=!1)}function Q(){return b}return{init:M,destroy:K,pointerDown:Q}}function lu(e,n){let o,a;function l(f){return f.timeStamp}function i(f,$){const h=`client${($||e.scroll)==="x"?"X":"Y"}`;return(at(f,n)?f:f.touches[0])[h]}function s(f){return o=f,a=f,i(f)}function d(f){const $=i(f)-i(a),p=l(f)-l(o)>170;return a=f,p&&(o=f),$}function u(f){if(!o||!a)return 0;const $=i(a)-i(o),p=l(f)-l(o),h=l(f)-l(a)>170,m=$/p;return p&&!h&&U(m)>.1?m:0}return{pointerDown:s,pointerMove:d,pointerUp:u,readPoint:i}}function iu(){function e(r){const{offsetTop:o,offsetLeft:a,offsetWidth:l,offsetHeight:i}=r;return{top:o,right:a+l,bottom:o+i,left:a,width:l,height:i}}return{measure:e}}function su(e){function n(o){return e*(o/100)}return{measure:n}}function du(e,n,r,o,a,l,i){const s=[e].concat(o);let d,u,c=[],f=!1;function $(v){return a.measureSize(i.measure(v))}function p(v){if(!l)return;u=$(e),c=o.map($);function g(C){for(const E of C){if(f)return;const N=E.target===e,w=o.indexOf(E.target),k=N?u:c[w],O=$(N?e:o[w]);if(U(O-k)>=.5){v.reInit(),n.emit("resize");break}}}d=new ResizeObserver(C=>{(Ae(l)||l(v,C))&&g(C)}),r.requestAnimationFrame(()=>{s.forEach(C=>d.observe(C))})}function h(){f=!0,d&&d.disconnect()}return{init:p,destroy:h}}function uu(e,n,r,o,a,l){let i=0,s=0,d=a,u=l,c=e.get(),f=0;function $(){const k=o.get()-e.get(),O=!d;let D=0;return O?(i=0,r.set(o),e.set(o),D=k):(r.set(e),i+=k/d,i*=u,c+=i,e.add(i),D=c-f),s=kt(D),f=c,w}function p(){const k=o.get()-n.get();return U(k)<.001}function h(){return d}function m(){return s}function v(){return i}function g(){return E(a)}function C(){return N(l)}function E(k){return d=k,w}function N(k){return u=k,w}const w={direction:m,duration:h,velocity:v,seek:$,settled:p,useBaseFriction:C,useBaseDuration:g,useFriction:N,useDuration:E};return w}function cu(e,n,r,o,a){const l=a.measure(10),i=a.measure(50),s=fe(.1,.99);let d=!1;function u(){return!(d||!e.reachedAny(r.get())||!e.reachedAny(n.get()))}function c(p){if(!u())return;const h=e.reachedMin(n.get())?"min":"max",m=U(e[h]-n.get()),v=r.get()-n.get(),g=s.constrain(m/i);r.subtract(v*g),!p&&U(v)<l&&(r.set(e.constrain(r.get())),o.useDuration(25).useBaseFriction())}function f(p){d=!p}return{shouldConstrain:u,constrain:c,toggleActive:f}}function fu(e,n,r,o,a){const l=fe(-n+e,0),i=f(),s=c(),d=$();function u(h,m){return ke(h,m)<=1}function c(){const h=i[0],m=oe(i),v=i.lastIndexOf(h),g=i.indexOf(m)+1;return fe(v,g)}function f(){return r.map((h,m)=>{const{min:v,max:g}=l,C=l.constrain(h),E=!m,N=wt(r,m);return E?g:N||u(v,C)?v:u(g,C)?g:C}).map(h=>parseFloat(h.toFixed(3)))}function $(){if(n<=e+a)return[l.max];if(o==="keepSnaps")return i;const{min:h,max:m}=s;return i.slice(h,m)}return{snapsContained:d,scrollContainLimit:s}}function $u(e,n,r){const o=n[0],a=r?o-e:oe(n);return{limit:fe(a,o)}}function pu(e,n,r,o){const l=n.min+.1,i=n.max+.1,{reachedMin:s,reachedMax:d}=fe(l,i);function u($){return $===1?d(r.get()):$===-1?s(r.get()):!1}function c($){if(!u($))return;const p=e*($*-1);o.forEach(h=>h.add(p))}return{loop:c}}function mu(e){const{max:n,length:r}=e;function o(l){const i=l-n;return r?i/-r:0}return{get:o}}function hu(e,n,r,o,a){const{startEdge:l,endEdge:i}=e,{groupSlides:s}=a,d=f().map(n.measure),u=$(),c=p();function f(){return s(o).map(m=>oe(m)[i]-m[0][l]).map(U)}function $(){return o.map(m=>r[l]-m[l]).map(m=>-U(m))}function p(){return s(u).map(m=>m[0]).map((m,v)=>m+d[v])}return{snaps:u,snapsAligned:c}}function gu(e,n,r,o,a,l){const{groupSlides:i}=a,{min:s,max:d}=o,u=c();function c(){const $=i(l),p=!e||n==="keepSnaps";return r.length===1?[l]:p?$:$.slice(s,d).map((h,m,v)=>{const g=!m,C=wt(v,m);if(g){const E=oe(v[0])+1;return $n(E)}if(C){const E=Ne(l)-oe(v)[0]+1;return $n(E,oe(v)[0])}return h})}return{slideRegistry:u}}function vu(e,n,r,o,a){const{reachedAny:l,removeOffset:i,constrain:s}=o;function d(h){return h.concat().sort((m,v)=>U(m)-U(v))[0]}function u(h){const m=e?i(h):s(h),v=n.map((C,E)=>({diff:c(C-m,0),index:E})).sort((C,E)=>U(C.diff)-U(E.diff)),{index:g}=v[0];return{index:g,distance:m}}function c(h,m){const v=[h,h+r,h-r];if(!e)return h;if(!m)return d(v);const g=v.filter(C=>kt(C)===m);return g.length?d(g):oe(v)-r}function f(h,m){const v=n[h]-a.get(),g=c(v,m);return{index:h,distance:g}}function $(h,m){const v=a.get()+h,{index:g,distance:C}=u(v),E=!e&&l(v);if(!m||E)return{index:g,distance:h};const N=n[g]-C,w=h+c(N,0);return{index:g,distance:w}}return{byDistance:$,byIndex:f,shortcut:c}}function yu(e,n,r,o,a,l,i){function s(f){const $=f.distance,p=f.index!==n.get();l.add($),$&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(r.set(n.get()),n.set(f.index),i.emit("select"))}function d(f,$){const p=a.byDistance(f,$);s(p)}function u(f,$){const p=n.clone().set(f),h=a.byIndex(p.get(),$);s(h)}return{distance:d,index:u}}function bu(e,n,r,o,a,l,i,s){const d={passive:!0,capture:!0};let u=0;function c(p){if(!s)return;function h(m){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const C=r.findIndex(E=>E.includes(m));Ct(C)&&(a.useDuration(0),o.index(C,0),i.emit("slideFocus"))}l.add(document,"keydown",f,!1),n.forEach((m,v)=>{l.add(m,"focus",g=>{(Ae(s)||s(p,g))&&h(v)},d)})}function f(p){p.code==="Tab"&&(u=new Date().getTime())}return{init:c}}function Ce(e){let n=e;function r(){return n}function o(d){n=i(d)}function a(d){n+=i(d)}function l(d){n-=i(d)}function i(d){return Ct(d)?d:d.get()}return{get:r,set:o,add:a,subtract:l}}function Xn(e,n){const r=e.scroll==="x"?i:s,o=n.style;let a=null,l=!1;function i($){return`translate3d(${$}px,0px,0px)`}function s($){return`translate3d(0px,${$}px,0px)`}function d($){if(l)return;const p=tu(e.direction($));p!==a&&(o.transform=r(p),a=p)}function u($){l=!$}function c(){l||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:c,to:d,toggleActive:u}}function Cu(e,n,r,o,a,l,i,s,d){const c=Ee(a),f=Ee(a).reverse(),$=g().concat(C());function p(O,D){return O.reduce((I,L)=>I-a[L],D)}function h(O,D){return O.reduce((I,L)=>p(I,D)>0?I.concat([L]):I,[])}function m(O){return l.map((D,I)=>({start:D-o[I]+.5+O,end:D+n-.5+O}))}function v(O,D,I){const L=m(D);return O.map(P=>{const R=I?0:-r,G=I?r:0,V=I?"end":"start",z=L[P][V];return{index:P,loopPoint:z,slideLocation:Ce(-1),translate:Xn(e,d[P]),target:()=>s.get()>z?R:G}})}function g(){const O=i[0],D=h(f,O);return v(D,r,!1)}function C(){const O=n-i[0]-1,D=h(c,O);return v(D,-r,!0)}function E(){return $.every(({index:O})=>{const D=c.filter(I=>I!==O);return p(D,n)<=.1})}function N(){$.forEach(O=>{const{target:D,translate:I,slideLocation:L}=O,P=D();P!==L.get()&&(I.to(P),L.set(P))})}function w(){$.forEach(O=>O.translate.clear())}return{canLoop:E,clear:w,loop:N,loopPoints:$}}function ku(e,n,r){let o,a=!1;function l(d){if(!r)return;function u(c){for(const f of c)if(f.type==="childList"){d.reInit(),n.emit("slidesChanged");break}}o=new MutationObserver(c=>{a||(Ae(r)||r(d,c))&&u(c)}),o.observe(e,{childList:!0})}function i(){o&&o.disconnect(),a=!0}return{init:l,destroy:i}}function wu(e,n,r,o){const a={};let l=null,i=null,s,d=!1;function u(){s=new IntersectionObserver(h=>{d||(h.forEach(m=>{const v=n.indexOf(m.target);a[v]=m}),l=null,i=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:o}),n.forEach(h=>s.observe(h))}function c(){s&&s.disconnect(),d=!0}function f(h){return Te(a).reduce((m,v)=>{const g=parseInt(v),{isIntersecting:C}=a[g];return(h&&C||!h&&!C)&&m.push(g),m},[])}function $(h=!0){if(h&&l)return l;if(!h&&i)return i;const m=f(h);return h&&(l=m),h||(i=m),m}return{init:u,destroy:c,get:$}}function Su(e,n,r,o,a,l){const{measureSize:i,startEdge:s,endEdge:d}=e,u=r[0]&&a,c=h(),f=m(),$=r.map(i),p=v();function h(){if(!u)return 0;const C=r[0];return U(n[s]-C[s])}function m(){if(!u)return 0;const C=l.getComputedStyle(oe(o));return parseFloat(C.getPropertyValue(`margin-${d}`))}function v(){return r.map((C,E,N)=>{const w=!E,k=wt(N,E);return w?$[E]+c:k?$[E]+f:N[E+1][s]-C[s]}).map(U)}return{slideSizes:$,slideSizesWithGaps:p,startGap:c,endGap:f}}function Eu(e,n,r,o,a,l,i,s,d){const{startEdge:u,endEdge:c,direction:f}=e,$=Ct(r);function p(g,C){return Ee(g).filter(E=>E%C===0).map(E=>g.slice(E,E+C))}function h(g){return g.length?Ee(g).reduce((C,E,N)=>{const w=oe(C)||0,k=w===0,O=E===Ne(g),D=a[u]-l[w][u],I=a[u]-l[E][c],L=!o&&k?f(i):0,P=!o&&O?f(s):0,R=U(I-P-(D+L));return N&&R>n+d&&C.push(E),O&&C.push(g.length),C},[]).map((C,E,N)=>{const w=Math.max(N[E-1]||0);return g.slice(w,C)}):[]}function m(g){return $?p(g,r):h(g)}return{groupSlides:m}}function Tu(e,n,r,o,a,l,i){const{align:s,axis:d,direction:u,startIndex:c,loop:f,duration:$,dragFree:p,dragThreshold:h,inViewThreshold:m,slidesToScroll:v,skipSnaps:g,containScroll:C,watchResize:E,watchSlides:N,watchDrag:w,watchFocus:k}=l,O=2,D=iu(),I=D.measure(n),L=r.map(D.measure),P=ou(d,u),R=P.measureSize(I),G=su(R),V=nu(s,R),z=!f&&!!C,b=f||!!C,{slideSizes:T,slideSizesWithGaps:x,startGap:F,endGap:M}=Su(P,I,L,r,b,a),K=Eu(P,R,v,f,I,L,F,M,O),{snaps:J,snapsAligned:H}=hu(P,V,I,L,K),te=-oe(J)+oe(x),{snapsContained:ue,scrollContainLimit:ce}=fu(R,te,H,C,O),Z=z?ue:H,{limit:q}=$u(te,Z,f),ne=Wn(Ne(Z),c,f),Q=ne.clone(),j=Ee(r),B=({dragHandler:$e,scrollBody:ze,scrollBounds:He,options:{loop:Be}})=>{Be||He.constrain($e.pointerDown()),ze.seek()},y=({scrollBody:$e,translate:ze,location:He,offsetLocation:Be,previousLocation:rr,scrollLooper:or,slideLooper:ar,dragHandler:lr,animation:ir,eventHandler:Bt,scrollBounds:sr,options:{loop:Pt}},xt)=>{const Dt=$e.settled(),dr=!sr.shouldConstrain(),_t=Pt?Dt:Dt&&dr,It=_t&&!lr.pointerDown();It&&ir.stop();const ur=He.get()*xt+rr.get()*(1-xt);Be.set(ur),Pt&&(or.loop($e.direction()),ar.loop()),ze.to(Be.get()),It&&Bt.emit("settle"),_t||Bt.emit("scroll")},S=ru(o,a,()=>B(Ue),$e=>y(Ue,$e)),_=.68,A=Z[ne.get()],Y=Ce(A),ee=Ce(A),re=Ce(A),le=Ce(A),ye=uu(Y,re,ee,le,$,_),Re=vu(f,Z,te,q,le),je=yu(S,ne,Q,ye,Re,le,i),Tt=mu(q),Ot=Oe(),tr=wu(n,r,i,m),{slideRegistry:Nt}=gu(z,C,Z,ce,K,j),nr=bu(e,r,Nt,je,ye,Ot,i,k),Ue={ownerDocument:o,ownerWindow:a,eventHandler:i,containerRect:I,slideRects:L,animation:S,axis:P,dragHandler:au(P,e,o,a,le,lu(P,a),Y,S,je,ye,Re,ne,i,G,p,h,g,_,w),eventStore:Ot,percentOfView:G,index:ne,indexPrevious:Q,limit:q,location:Y,offsetLocation:re,previousLocation:ee,options:l,resizeHandler:du(n,i,a,r,P,E,D),scrollBody:ye,scrollBounds:cu(q,re,le,ye,G),scrollLooper:pu(te,q,re,[Y,re,ee,le]),scrollProgress:Tt,scrollSnapList:Z.map(Tt.get),scrollSnaps:Z,scrollTarget:Re,scrollTo:je,slideLooper:Cu(P,R,te,T,x,J,Z,re,r),slideFocus:nr,slidesHandler:ku(n,i,N),slidesInView:tr,slideIndexes:j,slideRegistry:Nt,slidesToScroll:K,target:le,translate:Xn(P,n)};return Ue}function Ou(){let e={},n;function r(u){n=u}function o(u){return e[u]||[]}function a(u){return o(u).forEach(c=>c(n,u)),d}function l(u,c){return e[u]=o(u).concat([c]),d}function i(u,c){return e[u]=o(u).filter(f=>f!==c),d}function s(){e={}}const d={init:r,emit:a,off:i,on:l,clear:s};return d}const Nu={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 Bu(e){function n(l,i){return Zn(l,i||{})}function r(l){const i=l.breakpoints||{},s=Te(i).filter(d=>e.matchMedia(d).matches).map(d=>i[d]).reduce((d,u)=>n(d,u),{});return n(l,s)}function o(l){return l.map(i=>Te(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:o}}function Pu(e){let n=[];function r(l,i){return n=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),n.forEach(s=>s.init(l,e)),i.reduce((s,d)=>Object.assign(s,{[d.name]:d}),{})}function o(){n=n.filter(l=>l.destroy())}return{init:r,destroy:o}}function Me(e,n,r){const o=e.ownerDocument,a=o.defaultView,l=Bu(a),i=Pu(l),s=Oe(),d=Ou(),{mergeOptions:u,optionsAtMedia:c,optionsMediaQueries:f}=l,{on:$,off:p,emit:h}=d,m=P;let v=!1,g,C=u(Nu,Me.globalOptions),E=u(C),N=[],w,k,O;function D(){const{container:j,slides:B}=E;k=(ot(j)?e.querySelector(j):j)||e.children[0];const S=ot(B)?k.querySelectorAll(B):B;O=[].slice.call(S||k.children)}function I(j){const B=Tu(e,k,O,o,a,j,d);if(j.loop&&!B.slideLooper.canLoop()){const y=Object.assign({},j,{loop:!1});return I(y)}return B}function L(j,B){v||(C=u(C,j),E=c(C),N=B||N,D(),g=I(E),f([C,...N.map(({options:y})=>y)]).forEach(y=>s.add(y,"change",P)),E.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(Q),g.eventHandler.init(Q),g.resizeHandler.init(Q),g.slidesHandler.init(Q),g.options.loop&&g.slideLooper.loop(),k.offsetParent&&O.length&&g.dragHandler.init(Q),w=i.init(Q,N)))}function P(j,B){const y=K();R(),L(u({startIndex:y},j),B),d.emit("reInit")}function R(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),i.destroy(),s.clear()}function G(){v||(v=!0,s.clear(),R(),d.emit("destroy"),d.clear())}function V(j,B,y){!E.active||v||(g.scrollBody.useBaseFriction().useDuration(B===!0?0:E.duration),g.scrollTo.index(j,y||0))}function z(j){const B=g.index.add(1).get();V(B,j,-1)}function b(j){const B=g.index.add(-1).get();V(B,j,1)}function T(){return g.index.add(1).get()!==K()}function x(){return g.index.add(-1).get()!==K()}function F(){return g.scrollSnapList}function M(){return g.scrollProgress.get(g.offsetLocation.get())}function K(){return g.index.get()}function J(){return g.indexPrevious.get()}function H(){return g.slidesInView.get()}function te(){return g.slidesInView.get(!1)}function ue(){return w}function ce(){return g}function Z(){return e}function q(){return k}function ne(){return O}const Q={canScrollNext:T,canScrollPrev:x,containerNode:q,internalEngine:ce,destroy:G,off:p,on:$,emit:h,plugins:ue,previousScrollSnap:J,reInit:m,rootNode:Z,scrollNext:z,scrollPrev:b,scrollProgress:M,scrollSnapList:F,scrollTo:V,selectedScrollSnap:K,slideNodes:ne,slidesInView:H,slidesNotInView:te};return L(n,r),setTimeout(()=>d.emit("init"),0),Q}Me.globalOptions=void 0;function St(e={},n=[]){const r=t.isRef(e),o=t.isRef(n);let a=r?e.value:e,l=o?n.value:n;const i=t.shallowRef(),s=t.shallowRef();function d(){s.value&&s.value.reInit(a,l)}return t.onMounted(()=>{!Jd()||!i.value||(Me.globalOptions=St.globalOptions,s.value=Me(i.value,a,l))}),t.onBeforeUnmount(()=>{s.value&&s.value.destroy()}),r&&t.watch(e,u=>{bt(a,u)||(a=u,d())}),o&&t.watch(n,u=>{Qd(l,u)||(l=u,d())}),[i,s]}St.globalOptions=void 0;const xu={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Du(e,n){const r=e.scrollSnapList();return typeof n=="number"?r.map(()=>n):n(r,e)}function _u(e,n){const r=e.rootNode();return n&&n(r)||r}function Et(e={}){let n,r,o,a,l=null,i=0,s=!1,d=!1,u=!1,c=!1;function f(V,z){r=V;const{mergeOptions:b,optionsAtMedia:T}=z,x=b(xu,Et.globalOptions),F=b(x,e);if(n=T(F),r.scrollSnapList().length<=1)return;c=n.jump,o=!1,a=Du(r,n.delay);const{eventStore:M,ownerDocument:K}=r.internalEngine(),J=!!r.internalEngine().options.watchDrag,H=_u(r,n.rootNode);M.add(K,"visibilitychange",g),J&&r.on("pointerDown",E),J&&!n.stopOnInteraction&&r.on("pointerUp",N),n.stopOnMouseEnter&&M.add(H,"mouseenter",w),n.stopOnMouseEnter&&!n.stopOnInteraction&&M.add(H,"mouseleave",k),n.stopOnFocusIn&&r.on("slideFocusStart",v),n.stopOnFocusIn&&!n.stopOnInteraction&&M.add(r.containerNode(),"focusout",m),n.playOnInit&&m()}function $(){r.off("pointerDown",E).off("pointerUp",N).off("slideFocusStart",v),v(),o=!0,s=!1}function p(){const{ownerWindow:V}=r.internalEngine();V.clearTimeout(i),i=V.setTimeout(P,a[r.selectedScrollSnap()]),l=new Date().getTime(),r.emit("autoplay:timerset")}function h(){const{ownerWindow:V}=r.internalEngine();V.clearTimeout(i),i=0,l=null,r.emit("autoplay:timerstopped")}function m(){if(!o){if(C()){u=!0;return}s||r.emit("autoplay:play"),p(),s=!0}}function v(){o||(s&&r.emit("autoplay:stop"),h(),s=!1)}function g(){if(C())return u=s,v();u&&m()}function C(){const{ownerDocument:V}=r.internalEngine();return V.visibilityState==="hidden"}function E(){d||v()}function N(){d||m()}function w(){d=!0,v()}function k(){d=!1,m()}function O(V){typeof V<"u"&&(c=V),m()}function D(){s&&v()}function I(){s&&m()}function L(){return s}function P(){const{index:V}=r.internalEngine(),z=V.clone().add(1).get(),b=r.scrollSnapList().length-1,T=n.stopOnLastSnap&&z===b;if(r.canScrollNext()?r.scrollNext(c):r.scrollTo(0,c),r.emit("autoplay:select"),T)return v();m()}function R(){if(!l)return null;const V=a[r.selectedScrollSnap()],z=new Date().getTime()-l;return V-z}return{name:"autoplay",options:e,init:f,destroy:$,play:O,stop:D,reset:I,isPlaying:L,timeUntilNext:R}}Et.globalOptions=void 0;const Iu={class:"pos-relative"},Mu={key:0,class:"h-20r radius-semi pos-relative w-100 bg-light"},Lu={key:1,class:"bg-light radius-semi flex flex-center w-100 h-20r"},Vu={class:"text-gray-500"},Fu={class:"embla__container"},Au={__name:"Slider",props:{store:Object,options:Object,text:Object,user:Object},setup(e){const n=e;xe.useRouter();const r=t.ref([]),o=t.ref(!0),a=t.ref(0),l={delay:2e3,jump:!1,stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnLastSnap:!1,rootNode:f=>f.parentElement},[i,s]=St({loop:!0},[Et(l)]),d=()=>{s.value&&(scrollSnaps.value=s.value.scrollSnapList())},u=()=>{s.value&&(a.value=s.value.selectedScrollSnap())},{t:c}=it.useI18n({messages:n.text});return t.onMounted(async()=>{try{r.value=await n.store.read(n.options)}catch(f){console.error("Error loading entities:",f),r.value=[]}finally{o.value=!1}d(),u(),s.value&&(s.value.on("reInit",d),s.value.on("reInit",u),s.value.on("select",u))}),t.onUnmounted(()=>{s.value&&(s.value.off("reInit",d),s.value.off("reInit",u),s.value.off("select",u))}),(f,$)=>(t.openBlock(),t.createElementBlock("div",Iu,[o.value?(t.openBlock(),t.createElementBlock("div",Mu,[t.createVNode(de)])):r.value.length?(t.openBlock(),t.createElementBlock("div",{key:2,class:"embla",ref_key:"emblaNode",ref:i},[t.createElementVNode("div",Fu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(p,h,m)=>(t.openBlock(),t.createElementBlock("div",{class:"embla__slide pd-nano",key:h},[t.createVNode(t.Transition,{name:"fade",mode:"out-in",appear:""},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{item:p,user:e.user},void 0,!0)]),_:2},1024)]))),128))])],512)):(t.openBlock(),t.createElementBlock("div",Lu,[t.createElementVNode("p",Vu,t.toDisplayString(t.unref(c)("title")),1)]))]))}},Jn=W(Au,[["__scopeId","data-v-02d251a4"]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),ju={class:"pd-small error-wrapper"},Uu={class:"flex-nowrap flex radius-small pd-small t-white bg-fourth"},zu={class:"w-100"},Qn={__name:"Status",props:{status:String,message:String,show:Boolean,data:Object},emits:"close",setup(e,{emit:n}){const r=n;function o(){r("close")}return(a,l)=>(t.openBlock(),t.createElementBlock("div",ju,[t.createElementVNode("div",Uu,[t.createElementVNode("p",zu,[t.createTextVNode(t.toDisplayString(e.data.message)+" ",1),l[1]||(l[1]=t.createElementVNode("br",null,null,-1))]),t.createVNode(ht,{onClick:l[0]||(l[0]=i=>o()),class:"cursor-pointer hover-scale-1 i-regular z-index-5"})])]))}},Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),Gu={class:"marquee","aria-hidden":!0},er={__name:"Marquee",props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:[Array,String],default:()=>[255,255,255]},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume"],setup(e,{emit:n}){const r=e,o=n,a=t.ref(!1),l=t.ref(0),i=t.ref(0),s=t.ref(0),d=t.ref(null),u=t.ref("100%"),c=t.ref(0),f=t.ref(0),$=t.ref("100%"),p=t.ref(0),h=t.ref(0),m=t.ref("200px"),v=t.ref(!1),g=t.ref(null),C=t.ref(null),E=async()=>{await N(),l.value++},N=async()=>{r.vertical&&(v.value=!0),setInterval(()=>{if(u.value="0%",$.value="0%",g.value!==null&&C.value!==null)if(g.value&&C.value)if(r.vertical&&"clientHeight"in g.value&&"clientHeight"in C.value){h.value=g.value.clientHeight,p.value=C.value.clientHeight;const P=Math.ceil(p.value/h.value);return i.value=isFinite(P)?P:0,v.value=!1,i.value}else if(!r.vertical&&"clientWidth"in g.value&&"clientWidth"in C.value){f.value=g.value.clientWidth,c.value=C.value.clientWidth;const P=Math.ceil(c.value/f.value);return i.value=isFinite(P)?P:0,i.value}else return u.value="100%",$.value="100%",0;else return u.value="100%",$.value="100%",0;else return u.value="100%",$.value="100%",0},100)},w=()=>{r.pauseOnHover&&o("onPause")},k=()=>{r.pauseOnHover&&o("onResume")},O=()=>{r.pauseOnClick&&o("onPause")},D=()=>{r.pauseOnClick&&o("onResume")},I=t.computed(()=>({"--loops":`${r.loop===0?"infinite":r.loop}`,"--duration":`${r.duration}s`,"--delay":`${r.delay}s`,"--direction":`${r.direction}`,"--pauseOnHover":`${r.pauseOnHover?"paused":"running"}`,"--pauseOnClick":`${r.pauseOnClick?"paused":"running"}`,"--pauseAnimation":`${r.vertical&&v.value||r.pause?"paused":"running"}`,"--gradient-color":`rgba(${r.gradientColor}, 1), rgba(${r.gradientColor}, 0)`,"--gradient-length":`${m.value}`,"--min-width":`${u.value}`,"--min-height":`${$.value}`,"--orientation":r.vertical?"scrollY":"scrollX"})),L=async()=>{r.vertical?($.value="100%",u.value="auto"):($.value="auto",u.value="100%"),r.gradient&&r.gradientLength&&(m.value=r.gradientLength),r.clone&&(await N(),E()),a.value=!0};return t.onMounted(async()=>{L(),d.value=setInterval(()=>{s.value++,r.loop!==0&&s.value===r.loop&&(o("onComplete"),clearInterval(d.value)),o("onLoopComplete")},r.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(d.value)}),t.watch(f,async()=>{r.clone&&E()}),t.watch(c,async()=>{r.clone&&E()}),t.watch(()=>r.pause,(P,R)=>{P!==R&&o(P?"onResume":"onPause")}),(P,R)=>a.value?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(I.value),key:l.value,onMouseenter:w,onMouseleave:k,onMousedown:O,onMouseup:D},[t.createElementVNode("div",{class:t.normalizeClass(["transparent-overlay",{vertical:e.vertical,horizontal:!e.vertical,overlay:e.gradient}]),ref_key:"marqueeOverlayContainer",ref:C,"aria-hidden":!0},null,2),t.createElementVNode("div",{class:"marquee",ref_key:"marqueeContent",ref:g},[t.renderSlot(P.$slots,"default")],512),t.createElementVNode("div",Gu,[t.renderSlot(P.$slots,"default")]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,G=>(t.openBlock(),t.createElementBlock("div",{key:G,"aria-hidden":!0,class:"marquee cloned"},[t.renderSlot(P.$slots,"default")]))),128))],38)):t.createCommentVNode("",!0)}},Ku=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),qu={install:e=>{e.component("Address",()=>Promise.resolve().then(()=>vr)),e.component("Button",()=>Promise.resolve().then(()=>Nr)),e.component("Checkbox",()=>Promise.resolve().then(()=>Dr)),e.component("Dropdown",()=>Promise.resolve().then(()=>Mr)),e.component("Error",()=>Promise.resolve().then(()=>Fr)),e.component("Field",()=>Promise.resolve().then(()=>qr)),e.component("FieldPhone",()=>Promise.resolve().then(()=>dl)),e.component("LocationMarker",()=>Promise.resolve().then(()=>fl)),e.component("Map",()=>Promise.resolve().then(()=>pl)),e.component("Popup",()=>Promise.resolve().then(()=>vl)),e.component("Radio",()=>Promise.resolve().then(()=>wl)),e.component("Select",()=>Promise.resolve().then(()=>Pl)),e.component("SelectMulti",()=>Promise.resolve().then(()=>ti)),e.component("Spoiler",()=>Promise.resolve().then(()=>ni)),e.component("Tab",()=>Promise.resolve().then(()=>ai)),e.component("Tooltip",()=>Promise.resolve().then(()=>li)),e.component("Text",()=>Promise.resolve().then(()=>si)),e.component("Menu",()=>Promise.resolve().then(()=>Di)),e.component("MenuItem",()=>Promise.resolve().then(()=>Fi)),e.component("Upload",()=>Promise.resolve().then(()=>hi)),e.component("UploadImage",()=>Promise.resolve().then(()=>yi)),e.component("UploadImageMultiple",()=>Promise.resolve().then(()=>Pi)),e.component("Breadcrumbs",()=>Promise.resolve().then(()=>zi)),e.component("Chips",()=>Promise.resolve().then(()=>qi)),e.component("Countdown",()=>Promise.resolve().then(()=>os)),e.component("DatePicker",()=>Promise.resolve().then(()=>is)),e.component("EmptyState",()=>Promise.resolve().then(()=>us)),e.component("Feed",()=>Promise.resolve().then(()=>pd)),e.component("FieldBig",()=>Promise.resolve().then(()=>yd)),e.component("FieldTags",()=>Promise.resolve().then(()=>Yd)),e.component("Loader",()=>Promise.resolve().then(()=>wr)),e.component("Shader",()=>Promise.resolve().then(()=>Wd)),e.component("Slider",()=>Promise.resolve().then(()=>Ru)),e.component("Status",()=>Promise.resolve().then(()=>Hu)),e.component("Marquee",()=>Promise.resolve().then(()=>Ku)),e.component("Media",()=>Promise.resolve().then(()=>require("./Media-B9V7fmz-.js")))}};exports.Field=Le;exports.FieldTags=qn;exports.Loader=de;exports.Map=On;exports.Select=Bn;exports.SelectMulti=xn;exports.Shader=Yn;exports.Slider=Jn;exports.Upload=Mn;exports._export_sfc=W;exports._sfc_main=pn;exports._sfc_main$1=mn;exports._sfc_main$10=Dn;exports._sfc_main$11=Fn;exports._sfc_main$12=An;exports._sfc_main$13=_n;exports._sfc_main$14=In;exports._sfc_main$15=Ln;exports._sfc_main$16=Vn;exports._sfc_main$17=Rn;exports._sfc_main$18=jn;exports._sfc_main$19=Un;exports._sfc_main$2=dt;exports._sfc_main$20=zn;exports._sfc_main$21=yt;exports._sfc_main$22=Hn;exports._sfc_main$23=Gn;exports._sfc_main$24=Qn;exports._sfc_main$25=er;exports._sfc_main$3=De;exports._sfc_main$4=hn;exports._sfc_main$5=En;exports._sfc_main$6=Tn;exports._sfc_main$7=Nn;exports._sfc_main$8=gt;exports._sfc_main$9=vt;exports.main=qu;
|
|
@@ -1,95 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const vueDraggableNext_esmBundler = require("../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs");
|
|
5
|
-
const UploadImageMultiple = require("../UploadImageMultiple/UploadImageMultiple.vue.cjs");
|
|
6
|
-
const IconCross = require("../../modules/icons/navigation/IconCross.vue.cjs");
|
|
7
|
-
require("./EditImages.vue2.cjs");
|
|
8
|
-
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
9
|
-
const _hoisted_2 = { class: "pos-relative" };
|
|
10
|
-
const _hoisted_3 = ["src"];
|
|
11
|
-
const _hoisted_4 = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
14
|
-
};
|
|
15
|
-
const _sfc_main = {
|
|
16
|
-
__name: "EditImages",
|
|
17
|
-
props: {
|
|
18
|
-
images: Array,
|
|
19
|
-
text: Object,
|
|
20
|
-
options: Object,
|
|
21
|
-
uploadPath: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default: "unsorted"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
emits: ["update:images"],
|
|
27
|
-
setup(__props, { emit: __emit }) {
|
|
28
|
-
const props = __props;
|
|
29
|
-
const emit = __emit;
|
|
30
|
-
const localImages = vue.ref([...props.images]);
|
|
31
|
-
vue.watchEffect(() => {
|
|
32
|
-
localImages.value = [...props.images];
|
|
33
|
-
});
|
|
34
|
-
const emitChanges = () => {
|
|
35
|
-
emit("update:images", localImages.value);
|
|
36
|
-
};
|
|
37
|
-
const onImagesUpdate = (newImages) => {
|
|
38
|
-
localImages.value = [...localImages.value, ...newImages];
|
|
39
|
-
emitChanges();
|
|
40
|
-
};
|
|
41
|
-
const deleteImage = (index) => {
|
|
42
|
-
localImages.value.splice(index, 1);
|
|
43
|
-
emitChanges();
|
|
44
|
-
};
|
|
45
|
-
return (_ctx, _cache) => {
|
|
46
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
47
|
-
localImages.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(vueDraggableNext_esmBundler.VueDraggableNext), {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "gap-small flex dragArea list-group w-full",
|
|
50
|
-
modelValue: localImages.value,
|
|
51
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
52
|
-
onChange: emitChanges
|
|
53
|
-
}, {
|
|
54
|
-
default: vue.withCtx(() => [
|
|
55
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(localImages.value, (image, index) => {
|
|
56
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
57
|
-
vue.createElementVNode("img", {
|
|
58
|
-
loading: "lazy",
|
|
59
|
-
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
60
|
-
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
61
|
-
}, null, 8, _hoisted_3),
|
|
62
|
-
vue.createVNode(IconCross.default, {
|
|
63
|
-
onClick: ($event) => deleteImage(index),
|
|
64
|
-
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
65
|
-
}, null, 8, ["onClick"])
|
|
66
|
-
]);
|
|
67
|
-
}), 256))
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
}, 8, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
71
|
-
localImages.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
72
|
-
vue.createVNode(UploadImageMultiple.default, {
|
|
73
|
-
"onUpdate:images": onImagesUpdate,
|
|
74
|
-
text: "Add",
|
|
75
|
-
options: {
|
|
76
|
-
showText: false
|
|
77
|
-
},
|
|
78
|
-
uploadPath: "photos",
|
|
79
|
-
class: "radius-big"
|
|
80
|
-
})
|
|
81
|
-
])) : vue.createCommentVNode("", true),
|
|
82
|
-
localImages.value.length < 1 ? (vue.openBlock(), vue.createBlock(UploadImageMultiple.default, {
|
|
83
|
-
key: 2,
|
|
84
|
-
"onUpdate:images": onImagesUpdate,
|
|
85
|
-
uploadPath: props.uploadPath,
|
|
86
|
-
text: props.text,
|
|
87
|
-
options: props.options,
|
|
88
|
-
class: "w-100 pd-medium"
|
|
89
|
-
}, null, 8, ["uploadPath", "text", "options"])) : vue.createCommentVNode("", true)
|
|
90
|
-
]);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
exports.default = _sfc_main;
|
|
95
2
|
//# sourceMappingURL=EditImages.vue.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"EditImages.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,95 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { VueDraggableNext } from "../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
|
|
3
|
-
import _sfc_main$2 from "../UploadImageMultiple/UploadImageMultiple.vue.js";
|
|
4
|
-
import _sfc_main$1 from "../../modules/icons/navigation/IconCross.vue.js";
|
|
5
|
-
import "./EditImages.vue2.js";
|
|
6
|
-
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
7
|
-
const _hoisted_2 = { class: "pos-relative" };
|
|
8
|
-
const _hoisted_3 = ["src"];
|
|
9
|
-
const _hoisted_4 = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
12
|
-
};
|
|
13
|
-
const _sfc_main = {
|
|
14
|
-
__name: "EditImages",
|
|
15
|
-
props: {
|
|
16
|
-
images: Array,
|
|
17
|
-
text: Object,
|
|
18
|
-
options: Object,
|
|
19
|
-
uploadPath: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: "unsorted"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["update:images"],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
const props = __props;
|
|
27
|
-
const emit = __emit;
|
|
28
|
-
const localImages = ref([...props.images]);
|
|
29
|
-
watchEffect(() => {
|
|
30
|
-
localImages.value = [...props.images];
|
|
31
|
-
});
|
|
32
|
-
const emitChanges = () => {
|
|
33
|
-
emit("update:images", localImages.value);
|
|
34
|
-
};
|
|
35
|
-
const onImagesUpdate = (newImages) => {
|
|
36
|
-
localImages.value = [...localImages.value, ...newImages];
|
|
37
|
-
emitChanges();
|
|
38
|
-
};
|
|
39
|
-
const deleteImage = (index) => {
|
|
40
|
-
localImages.value.splice(index, 1);
|
|
41
|
-
emitChanges();
|
|
42
|
-
};
|
|
43
|
-
return (_ctx, _cache) => {
|
|
44
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
|
-
localImages.value.length > 0 ? (openBlock(), createBlock(unref(VueDraggableNext), {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: "gap-small flex dragArea list-group w-full",
|
|
48
|
-
modelValue: localImages.value,
|
|
49
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
50
|
-
onChange: emitChanges
|
|
51
|
-
}, {
|
|
52
|
-
default: withCtx(() => [
|
|
53
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(localImages.value, (image, index) => {
|
|
54
|
-
return openBlock(), createElementBlock("div", _hoisted_2, [
|
|
55
|
-
createElementVNode("img", {
|
|
56
|
-
loading: "lazy",
|
|
57
|
-
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
58
|
-
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
59
|
-
}, null, 8, _hoisted_3),
|
|
60
|
-
createVNode(_sfc_main$1, {
|
|
61
|
-
onClick: ($event) => deleteImage(index),
|
|
62
|
-
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
63
|
-
}, null, 8, ["onClick"])
|
|
64
|
-
]);
|
|
65
|
-
}), 256))
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
69
|
-
localImages.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
70
|
-
createVNode(_sfc_main$2, {
|
|
71
|
-
"onUpdate:images": onImagesUpdate,
|
|
72
|
-
text: "Add",
|
|
73
|
-
options: {
|
|
74
|
-
showText: false
|
|
75
|
-
},
|
|
76
|
-
uploadPath: "photos",
|
|
77
|
-
class: "radius-big"
|
|
78
|
-
})
|
|
79
|
-
])) : createCommentVNode("", true),
|
|
80
|
-
localImages.value.length < 1 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
81
|
-
key: 2,
|
|
82
|
-
"onUpdate:images": onImagesUpdate,
|
|
83
|
-
uploadPath: props.uploadPath,
|
|
84
|
-
text: props.text,
|
|
85
|
-
options: props.options,
|
|
86
|
-
class: "w-100 pd-medium"
|
|
87
|
-
}, null, 8, ["uploadPath", "text", "options"])) : createCommentVNode("", true)
|
|
88
|
-
]);
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
export {
|
|
93
|
-
_sfc_main as default
|
|
94
|
-
};
|
|
1
|
+
|
|
95
2
|
//# sourceMappingURL=EditImages.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue.js","sources":[
|
|
1
|
+
{"version":3,"file":"EditImages.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,95 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const vueDraggableNext_esmBundler = require("../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs");
|
|
5
|
+
const UploadImageMultiple = require("../UploadImageMultiple/UploadImageMultiple.vue.cjs");
|
|
6
|
+
const IconCross = require("../../modules/icons/navigation/IconCross.vue.cjs");
|
|
7
|
+
require("./EditImages.vue.cjs");
|
|
8
|
+
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
9
|
+
const _hoisted_2 = { class: "pos-relative" };
|
|
10
|
+
const _hoisted_3 = ["src"];
|
|
11
|
+
const _hoisted_4 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "EditImages",
|
|
17
|
+
props: {
|
|
18
|
+
images: Array,
|
|
19
|
+
text: Object,
|
|
20
|
+
options: Object,
|
|
21
|
+
uploadPath: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: "unsorted"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:images"],
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
const localImages = vue.ref([...props.images]);
|
|
31
|
+
vue.watchEffect(() => {
|
|
32
|
+
localImages.value = [...props.images];
|
|
33
|
+
});
|
|
34
|
+
const emitChanges = () => {
|
|
35
|
+
emit("update:images", localImages.value);
|
|
36
|
+
};
|
|
37
|
+
const onImagesUpdate = (newImages) => {
|
|
38
|
+
localImages.value = [...localImages.value, ...newImages];
|
|
39
|
+
emitChanges();
|
|
40
|
+
};
|
|
41
|
+
const deleteImage = (index) => {
|
|
42
|
+
localImages.value.splice(index, 1);
|
|
43
|
+
emitChanges();
|
|
44
|
+
};
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
47
|
+
localImages.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(vueDraggableNext_esmBundler.VueDraggableNext), {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: "gap-small flex dragArea list-group w-full",
|
|
50
|
+
modelValue: localImages.value,
|
|
51
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
52
|
+
onChange: emitChanges
|
|
53
|
+
}, {
|
|
54
|
+
default: vue.withCtx(() => [
|
|
55
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(localImages.value, (image, index) => {
|
|
56
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
57
|
+
vue.createElementVNode("img", {
|
|
58
|
+
loading: "lazy",
|
|
59
|
+
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
60
|
+
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
61
|
+
}, null, 8, _hoisted_3),
|
|
62
|
+
vue.createVNode(IconCross.default, {
|
|
63
|
+
onClick: ($event) => deleteImage(index),
|
|
64
|
+
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
65
|
+
}, null, 8, ["onClick"])
|
|
66
|
+
]);
|
|
67
|
+
}), 256))
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
71
|
+
localImages.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
72
|
+
vue.createVNode(UploadImageMultiple.default, {
|
|
73
|
+
"onUpdate:images": onImagesUpdate,
|
|
74
|
+
text: "Add",
|
|
75
|
+
options: {
|
|
76
|
+
showText: false
|
|
77
|
+
},
|
|
78
|
+
uploadPath: "photos",
|
|
79
|
+
class: "radius-big"
|
|
80
|
+
})
|
|
81
|
+
])) : vue.createCommentVNode("", true),
|
|
82
|
+
localImages.value.length < 1 ? (vue.openBlock(), vue.createBlock(UploadImageMultiple.default, {
|
|
83
|
+
key: 2,
|
|
84
|
+
"onUpdate:images": onImagesUpdate,
|
|
85
|
+
uploadPath: props.uploadPath,
|
|
86
|
+
text: props.text,
|
|
87
|
+
options: props.options,
|
|
88
|
+
class: "w-100 pd-medium"
|
|
89
|
+
}, null, 8, ["uploadPath", "text", "options"])) : vue.createCommentVNode("", true)
|
|
90
|
+
]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
exports.default = _sfc_main;
|
|
2
95
|
//# sourceMappingURL=EditImages.vue2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"EditImages.vue2.cjs","sources":["../../../../../src/components/EditImages/EditImages.vue"],"sourcesContent":["<template>\n\t<div class=\"flex-nowrap flex gap-small\">\n <VueDraggableNext v-if=\"localImages.length > 0\" class=\"gap-small flex dragArea list-group w-full\" v-model=\"localImages\" @change=\"emitChanges\">\n\t\t\t<div v-for=\"(image, index) in localImages\" class=\"pos-relative\">\n\t\t\t\t<img loading=\"lazy\" class=\"i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden\" :src=\"(FILE_SERVER_URL || '') + image\" />\n\t\t\t\t\n <IconCross \n @click=\"deleteImage(index)\" \n class=\"cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro\"\n />\n\t\t\t</div>\n\t\t</VueDraggableNext>\n <div\n v-if=\"localImages.length > 0\" \n class=\"i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small\"\n >\n <UploadImageMultiple \n @update:images=\"onImagesUpdate\"\n text=\"Add\"\n :options=\"{\n showText: false\n }\"\n :uploadPath=\"'photos'\"\n class=\"radius-big\"\n />\n </div>\n\n\n\t\t<UploadImageMultiple \t\n v-if=\"localImages.length < 1\" \n @update:images=\"onImagesUpdate\"\n :uploadPath=\"props.uploadPath\"\n :text=\"props.text\"\n :options=\"props.options\"\n class=\"w-100 pd-medium\"\n />\n\t</div>\t\n</template>\n\n<script setup>\nimport { ref, defineProps, watchEffect } from 'vue';\nimport { VueDraggableNext } from 'vue-draggable-next'\nimport UploadImageMultiple from \"@martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue\";\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue';\n\nconst props = defineProps({\n images: Array,\n text: Object,\n options: Object,\n uploadPath: {\n type: Object,\n default: 'unsorted'\n }\n});\n\nconst emit = defineEmits(['update:images'])\n\nconst localImages = ref([...props.images])\n\nwatchEffect(() => {\n localImages.value = [...props.images]; // Обновление localImages при изменении props.images\n});\n\nconst emitChanges = () => {\n emit('update:images', localImages.value)\n}\n\nconst onImagesUpdate = (newImages) => {\n localImages.value = [...localImages.value, ...newImages]\n emitChanges()\n}\n\nconst deleteImage = (index) => {\n localImages.value.splice(index, 1)\n emitChanges()\n}\n</script>\n\n<style lang=\"scss\">\n// Your styles here\n</style>\n"],"names":["ref","watchEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,UAAM,QAAQ;AAUd,UAAM,OAAO;AAEb,UAAM,cAAcA,IAAG,IAAC,CAAC,GAAG,MAAM,MAAM,CAAC;AAEzCC,QAAAA,YAAY,MAAM;AAChB,kBAAY,QAAQ,CAAC,GAAG,MAAM,MAAM;AAAA,IACtC,CAAC;AAED,UAAM,cAAc,MAAM;AACxB,WAAK,iBAAiB,YAAY,KAAK;AAAA,IACzC;AAEA,UAAM,iBAAiB,CAAC,cAAc;AACpC,kBAAY,QAAQ,CAAC,GAAG,YAAY,OAAO,GAAG,SAAS;AACvD,kBAAW;AAAA,IACb;AAEA,UAAM,cAAc,CAAC,UAAU;AAC7B,kBAAY,MAAM,OAAO,OAAO,CAAC;AACjC,kBAAW;AAAA,IACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
import { ref, watchEffect, createElementBlock, openBlock, createBlock, createCommentVNode, unref, withCtx, Fragment, renderList, createElementVNode, createVNode } from "vue";
|
|
2
|
+
import { VueDraggableNext } from "../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
|
|
3
|
+
import _sfc_main$2 from "../UploadImageMultiple/UploadImageMultiple.vue.js";
|
|
4
|
+
import _sfc_main$1 from "../../modules/icons/navigation/IconCross.vue.js";
|
|
5
|
+
import "./EditImages.vue.js";
|
|
6
|
+
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
7
|
+
const _hoisted_2 = { class: "pos-relative" };
|
|
8
|
+
const _hoisted_3 = ["src"];
|
|
9
|
+
const _hoisted_4 = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
12
|
+
};
|
|
13
|
+
const _sfc_main = {
|
|
14
|
+
__name: "EditImages",
|
|
15
|
+
props: {
|
|
16
|
+
images: Array,
|
|
17
|
+
text: Object,
|
|
18
|
+
options: Object,
|
|
19
|
+
uploadPath: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: "unsorted"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:images"],
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
const localImages = ref([...props.images]);
|
|
29
|
+
watchEffect(() => {
|
|
30
|
+
localImages.value = [...props.images];
|
|
31
|
+
});
|
|
32
|
+
const emitChanges = () => {
|
|
33
|
+
emit("update:images", localImages.value);
|
|
34
|
+
};
|
|
35
|
+
const onImagesUpdate = (newImages) => {
|
|
36
|
+
localImages.value = [...localImages.value, ...newImages];
|
|
37
|
+
emitChanges();
|
|
38
|
+
};
|
|
39
|
+
const deleteImage = (index) => {
|
|
40
|
+
localImages.value.splice(index, 1);
|
|
41
|
+
emitChanges();
|
|
42
|
+
};
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
|
+
localImages.value.length > 0 ? (openBlock(), createBlock(unref(VueDraggableNext), {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "gap-small flex dragArea list-group w-full",
|
|
48
|
+
modelValue: localImages.value,
|
|
49
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
50
|
+
onChange: emitChanges
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(localImages.value, (image, index) => {
|
|
54
|
+
return openBlock(), createElementBlock("div", _hoisted_2, [
|
|
55
|
+
createElementVNode("img", {
|
|
56
|
+
loading: "lazy",
|
|
57
|
+
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
58
|
+
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
59
|
+
}, null, 8, _hoisted_3),
|
|
60
|
+
createVNode(_sfc_main$1, {
|
|
61
|
+
onClick: ($event) => deleteImage(index),
|
|
62
|
+
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
63
|
+
}, null, 8, ["onClick"])
|
|
64
|
+
]);
|
|
65
|
+
}), 256))
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
69
|
+
localImages.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
70
|
+
createVNode(_sfc_main$2, {
|
|
71
|
+
"onUpdate:images": onImagesUpdate,
|
|
72
|
+
text: "Add",
|
|
73
|
+
options: {
|
|
74
|
+
showText: false
|
|
75
|
+
},
|
|
76
|
+
uploadPath: "photos",
|
|
77
|
+
class: "radius-big"
|
|
78
|
+
})
|
|
79
|
+
])) : createCommentVNode("", true),
|
|
80
|
+
localImages.value.length < 1 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
81
|
+
key: 2,
|
|
82
|
+
"onUpdate:images": onImagesUpdate,
|
|
83
|
+
uploadPath: props.uploadPath,
|
|
84
|
+
text: props.text,
|
|
85
|
+
options: props.options,
|
|
86
|
+
class: "w-100 pd-medium"
|
|
87
|
+
}, null, 8, ["uploadPath", "text", "options"])) : createCommentVNode("", true)
|
|
88
|
+
]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
_sfc_main as default
|
|
94
|
+
};
|
|
2
95
|
//# sourceMappingURL=EditImages.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"EditImages.vue2.js","sources":["../../../../../src/components/EditImages/EditImages.vue"],"sourcesContent":["<template>\n\t<div class=\"flex-nowrap flex gap-small\">\n <VueDraggableNext v-if=\"localImages.length > 0\" class=\"gap-small flex dragArea list-group w-full\" v-model=\"localImages\" @change=\"emitChanges\">\n\t\t\t<div v-for=\"(image, index) in localImages\" class=\"pos-relative\">\n\t\t\t\t<img loading=\"lazy\" class=\"i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden\" :src=\"(FILE_SERVER_URL || '') + image\" />\n\t\t\t\t\n <IconCross \n @click=\"deleteImage(index)\" \n class=\"cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro\"\n />\n\t\t\t</div>\n\t\t</VueDraggableNext>\n <div\n v-if=\"localImages.length > 0\" \n class=\"i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small\"\n >\n <UploadImageMultiple \n @update:images=\"onImagesUpdate\"\n text=\"Add\"\n :options=\"{\n showText: false\n }\"\n :uploadPath=\"'photos'\"\n class=\"radius-big\"\n />\n </div>\n\n\n\t\t<UploadImageMultiple \t\n v-if=\"localImages.length < 1\" \n @update:images=\"onImagesUpdate\"\n :uploadPath=\"props.uploadPath\"\n :text=\"props.text\"\n :options=\"props.options\"\n class=\"w-100 pd-medium\"\n />\n\t</div>\t\n</template>\n\n<script setup>\nimport { ref, defineProps, watchEffect } from 'vue';\nimport { VueDraggableNext } from 'vue-draggable-next'\nimport UploadImageMultiple from \"@martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue\";\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue';\n\nconst props = defineProps({\n images: Array,\n text: Object,\n options: Object,\n uploadPath: {\n type: Object,\n default: 'unsorted'\n }\n});\n\nconst emit = defineEmits(['update:images'])\n\nconst localImages = ref([...props.images])\n\nwatchEffect(() => {\n localImages.value = [...props.images]; // Обновление localImages при изменении props.images\n});\n\nconst emitChanges = () => {\n emit('update:images', localImages.value)\n}\n\nconst onImagesUpdate = (newImages) => {\n localImages.value = [...localImages.value, ...newImages]\n emitChanges()\n}\n\nconst deleteImage = (index) => {\n localImages.value.splice(index, 1)\n emitChanges()\n}\n</script>\n\n<style lang=\"scss\">\n// Your styles here\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,UAAM,QAAQ;AAUd,UAAM,OAAO;AAEb,UAAM,cAAc,IAAI,CAAC,GAAG,MAAM,MAAM,CAAC;AAEzC,gBAAY,MAAM;AAChB,kBAAY,QAAQ,CAAC,GAAG,MAAM,MAAM;AAAA,IACtC,CAAC;AAED,UAAM,cAAc,MAAM;AACxB,WAAK,iBAAiB,YAAY,KAAK;AAAA,IACzC;AAEA,UAAM,iBAAiB,CAAC,cAAc;AACpC,kBAAY,QAAQ,CAAC,GAAG,YAAY,OAAO,GAAG,SAAS;AACvD,kBAAW;AAAA,IACb;AAEA,UAAM,cAAc,CAAC,UAAU;AAC7B,kBAAY,MAAM,OAAO,OAAO,CAAC;AACjC,kBAAW;AAAA,IACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
;/* empty css
|
|
4
|
+
;/* empty css */
|
|
5
5
|
const _hoisted_1 = { class: "flex-nowrap flex-v-center flex pos-relative" };
|
|
6
6
|
const _hoisted_2 = ["onClick"];
|
|
7
7
|
const _sfc_main = {
|
|
@@ -69,4 +69,4 @@ const _sfc_main = {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
exports.default = _sfc_main;
|
|
72
|
-
//# sourceMappingURL=Tab.
|
|
72
|
+
//# sourceMappingURL=Tab.vue2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.vue2.cjs","sources":["../../../../../src/components/Tab/Tab.vue"],"sourcesContent":["<template>\n <div class=\"flex-nowrap flex-v-center flex pos-relative\">\n <button \n v-for=\"(tab, index) in tabs\" \n :key=\"index\" \n @click=\"handleTabClick(index, tab)\" \n class=\"z-index-1 t-center cursor-pointer\"\n :style=\"isSelected(index, tab) ? 'background: rgb(var(--main)) !important' : ''\"\n :class=\"[\n isSelected(index, tab) ? 'bg-main' : '',\n tabClass ? tabClass : 'pd-small pd-r-medium pd-l-medium w-max pd-small radius-small'\n ]\"\n >\n {{tab.name || tab.label}}\n </button>\n </div>\n</template>\n\n<script setup>\nimport { ref, computed, watch } from 'vue'\n\nconst emit = defineEmits(['update:selected', 'tab-click']);\n\nconst props = defineProps({\n tabs: Array,\n tabClass: String,\n selected: [String, Number],\n modelValue: [String, Number],\n callback: Function\n})\n\nconst selectedTab = ref(0)\n\n// Handle both v-model and selected prop for backward compatibility\nconst updateSelectedIndex = () => {\n if (props.modelValue !== undefined) {\n const selectedIndex = props.tabs.findIndex(tab => tab.value === props.modelValue)\n if (selectedIndex !== -1) {\n selectedTab.value = selectedIndex\n }\n } else if (props.selected !== undefined) {\n const selectedIndex = props.tabs.findIndex(tab => tab.value === props.selected)\n if (selectedIndex !== -1) {\n selectedTab.value = selectedIndex\n }\n }\n}\n\n// Initial setup\nupdateSelectedIndex()\n\n// Watch for changes in selected or modelValue props\nwatch(() => props.selected, updateSelectedIndex)\nwatch(() => props.modelValue, updateSelectedIndex)\n\n// Check if tab is selected\nconst isSelected = (index, tab) => {\n if (props.modelValue !== undefined) {\n return tab.value === props.modelValue\n } else if (props.selected !== undefined) {\n return tab.value === props.selected\n }\n return index === selectedTab.value\n}\n\n// Handle tab click\nfunction handleTabClick(index, tab) {\n selectedTab.value = index\n \n // Emit both events for flexibility\n emit('update:selected', tab.value)\n emit('tab-click', { index, tab })\n \n // For v-model support\n if (props.modelValue !== undefined) {\n emit('update:modelValue', tab.value)\n }\n \n // Call callback if provided\n if (props.callback) props.callback(tab)\n}\n</script>\n\n<style lang=\"scss\">\n.tab-selector {\n position: absolute;\n width: 50%;\n height: 100%;\n left: 0;\n top: 0;\n z-index: 0;\n transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n}\n</style>"],"names":["ref","watch"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,UAAM,OAAO;AAEb,UAAM,QAAQ;AAQd,UAAM,cAAcA,IAAG,IAAC,CAAC;AAGzB,UAAM,sBAAsB,MAAM;AAChC,UAAI,MAAM,eAAe,QAAW;AAClC,cAAM,gBAAgB,MAAM,KAAK,UAAU,SAAO,IAAI,UAAU,MAAM,UAAU;AAChF,YAAI,kBAAkB,IAAI;AACxB,sBAAY,QAAQ;AAAA,QAC1B;AAAA,MACA,WAAa,MAAM,aAAa,QAAW;AACvC,cAAM,gBAAgB,MAAM,KAAK,UAAU,SAAO,IAAI,UAAU,MAAM,QAAQ;AAC9E,YAAI,kBAAkB,IAAI;AACxB,sBAAY,QAAQ;AAAA,QAC1B;AAAA,MACA;AAAA,IACA;AAGA,wBAAmB;AAGnBC,QAAAA,MAAM,MAAM,MAAM,UAAU,mBAAmB;AAC/CA,QAAAA,MAAM,MAAM,MAAM,YAAY,mBAAmB;AAGjD,UAAM,aAAa,CAAC,OAAO,QAAQ;AACjC,UAAI,MAAM,eAAe,QAAW;AAClC,eAAO,IAAI,UAAU,MAAM;AAAA,MAC/B,WAAa,MAAM,aAAa,QAAW;AACvC,eAAO,IAAI,UAAU,MAAM;AAAA,MAC/B;AACE,aAAO,UAAU,YAAY;AAAA,IAC/B;AAGA,aAAS,eAAe,OAAO,KAAK;AAClC,kBAAY,QAAQ;AAGpB,WAAK,mBAAmB,IAAI,KAAK;AACjC,WAAK,aAAa,EAAE,OAAO,IAAK,CAAA;AAGhC,UAAI,MAAM,eAAe,QAAW;AAClC,aAAK,qBAAqB,IAAI,KAAK;AAAA,MACvC;AAGE,UAAI,MAAM,SAAU,OAAM,SAAS,GAAG;AAAA,IACxC;;;;;;;;;;;;;;;;;;;"}
|