PageSourceSearch

https://www.weroad.es/_nuxt/Bs1fiZcu2.js

js weroad.es collected 2026-09-24 20:03:13 UTC 5,976 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:weroad":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0592cf48-6bb9-4f03-a566-468d65a30dff`,e._sentryDebugIdIdentifier=`sentry-dbid-0592cf48-6bb9-4f03-a566-468d65a30dff`)}catch{}})();import{$ as e,J as t,P as n,Qt as r,W as i,Yt as a,Zt as o,d as s,f as c,lt as l,o as u,p as d,u as f,ut as p,v as m,y as h}from"./BSXR3eMi.js";import{c as g,t as _}from"./MuQb3bw4.js";import{t as v}from"./Dmf5a-0n2.js";import{t as y}from"./DqMzMQNk2.js";import{t as b}from"./B79IPlcj2.js";var x=[],S={name:`wr-storeless-modal`,components:{wrModalCloseButton:b},props:{modelValue:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},size:{type:String,default:`auto`,validator:e=>[`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`auto`].includes(e)},fullScreen:{type:Boolean},insideCloseButton:{type:Boolean},canCancel:{type:[String,Array],default:``},title:{type:String,default:``},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},noPadding:{type:Boolean},bottomSheet:{type:Boolean},isModalAnimationActive:{type:Boolean,default:!0},noCloseButton:{type:Boolean,default:!1},variant:{type:String,default:`default`,validator:e=>[`default`,`lightest`,`transparent`].includes(e)},teleported:{type:Boolean,default:!0}},emits:[`onClose`,`update:modelValue`],computed:{computedModalStyle(){let e={...this.maxWidth?{maxWidth:this.maxWidth}:{},...this.maxHeight?{maxHeight:this.maxHeight}:{}};return!this.fullScreen&&!this.maxHeight&&(e.maxHeight=`90dvh`),e},hasDefaultSlot(){return!!this.$slots.default},hasFooterSlot(){return!!this.$slots.footer}},watch:{modelValue:{handler(e,t){e?this.$nextTick(()=>{x=x.concat(this.$refs.modal),x.length===1&&document.documentElement.classList.add(`html-overflow-hidden`),this.fullScreen&&document.documentElement.classList.add(`hide-beanbar`),this.canCancel.includes(`esc`)&&document.addEventListener(`keydown`,this.escapeHandler)}):t&&!e&&this.dismount()},immediate:!0}},unmounted(){this.modelValue&&this.dismount()},methods:{escapeHandler(e){e.key===`Escape`&&this.$refs.modal===x[x.length-1]&&this.close()},dismount(){this.canCancel.includes(`esc`)&&document.removeEventListener(`keydown`,this.escapeHandler),x.pop(),x.length||document.documentElement.classList.remove(`html-overflow-hidden`),this.fullScreen&&document.documentElement.classList.remove(`hide-beanbar`)},close(){this.$emit(`onClose`,!1),this.$emit(`update:modelValue`,!1)}}},C={key:0},w={class:`fixed left-0 top-0 z-[61] flex size-full items-center justify-center overflow-hidden text-gray-800`},T=[`aria-label`],E={key:0,ref:`header`,class:`flex items-center justify-start border-b border-b-gray-200 px-4 py-2.5`},D={class:`flex-1 text-base font-bold text-gray-800`},O=[`aria-label`];function k(v,x,S,k,A,j){let M=b,N=y;return p((i(),d(`div`,{class:a({"fixed left-0 top-0 z-50 size-full overflow-hidden":!!v.$slots.activator&&S.modelValue})},[v.$slots.activator?(i(),d(`div`,C,[t(v.$slots,`activator`,{},void 0,!0)])):c(``,!0),S.modelValue?(i(),s(u,{key:1,to:`body`,disabled:!S.teleported},[f(`div`,w,[h(_,{name:`fade`,appear:S.isModalAnimationActive},{default:l(()=>[f(`div`,n({class:`absolute left-0 top-0 z-[61] size-full overflow-hidden bg-gray-800/70`},e(S.canCancel.includes(`outside`)?{click:j.close}:{},!0)),null,16)]),_:1},8,[`appear`]),h(_,{name:S.bottomSheet?`slide-bottom`:`bounce`,appear:S.isModalAnimationActive},{default:l(()=>[f(`div`,{ref:`modal`,role:`dialog`,"aria-modal":`true`,"aria-label":S.title||void 0,class:a([`relative z-[61] flex flex-col items-center justify-center`,{"h-dvh w-screen":S.fullScreen,"max-w-[calc(100%-1.25rem)]":S.size===`auto`&&!S.fullScreen,"w-[calc(100%-1.25rem)]":S.size!==`auto`&&!S.fullScreen,"max-w-[420px]":S.size===`xs`&&!S.fullScreen,"max-w-screen-sm":S.size===`sm`&&!S.fullScreen,"max-w-screen-md":S.size===`md`&&!S.fullScreen,"max-w-screen-lg":S.size===`lg`&&!S.fullScreen,"max-w-[1100px]":S.size===`xl`&&!S.fullScreen,"max-w-screen-2xl":S.size===`2xl`&&!S.fullScreen,"md:auto !fixed bottom-0 w-screen md:!relative md:bottom-auto":S.bottomSheet}])},[f(`div`,{class:a([`relative flex w-full flex-col justify-start overflow-hidden`,{"h-dvh":S.fullScreen,"rounded-2xl":!S.fullScreen&&!S.bottomSheet,"rounded-t-2xl md:rounded-2xl":S.bottomSheet&&!S.fullScreen,"bg-white":S.variant==="default","bg-highlights-lightest":S.variant===`lightest`}]),style:o(j.computedModalStyle)},[S.hideHeader?c(``,!0):(i(),d(`div`,E,[t(v.$slots,`header`,{},()=>[f(`div`,D,[t(v.$slots,`title`,{},()=>[m(r(S.title),1)],!0)])],!0),S.insideCloseButton&&!S.noCloseButton?(i(),s(M,{key:0,onClose:j.close},null,8,[`onClose`])):c(``,!0)],512)),f(`div`,{class:a([`tiny-vertical-scrollbar relative min-h-0 flex-1 overflow-y-auto overflow-x-hidden`,{"px-4 py-3":!S.noPadding}])},[t(v.$slots,`default`,{},void 0,!0)],2),j.hasFooterSlot?(i(),d(`div`,{key:1,ref:`footer`,class:a([`shrink-0`,{"pb-[env(safe-area-inset-bottom)]":S.fullScreen||S.bottomSheet}])},[t(v.$slots,`footer`,{},void 0,!0)],2)):c(``,!0)],6)],10,T)]),_:3},8,[`name`,`appear`]),!S.insideCloseButton&&!S.noCloseButton?(i(),d(`button`,{key:0,class:`absolute right-5 top-5 z-[61] m-0 flex size-10 cursor-pointer items-center justify-center overflow-hidden rounded-[100%] border-0 bg-white p-0 text-gray-800 outline-none`,"aria-label":v.$i18n.t(`CLOSE`),onClick:x[0]||=(...e)=>j.close&&j.close(...e)},[h(N,{name:`mdi:close`,class:`size-6`})],8,O)):c(``,!0)])],8,[`disabled`])):c(``,!0)],2)),[[g,!!v.$slots.activator||S.modelValue]])}var A=v(S,[[`render`,k],[`__scopeId`,`data-v-343ff351`]]);export{A as t};

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