PageSourceSearch

https://www.saisautolinee.it/_next/static/immutable/chunks/19717ss9wfxtz.js

js saisautolinee.it collected 2026-10-01 12:39:06 UTC 53,504 bytes, 107 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,627976,e=>{"use strict";var t,n,r,i,o,a,l,s,u,c,d,f=e.i(580080),p=e.i(332663),h=e.i(880269),m=e.i(33347),g=e.i(629819),v=e.i(4280),x=e.i(479995),w=e.i(812226),b=e.i(329426),y=e.i(320237),j=e.i(287952),C=e.i(946197),E=e.i(327638),N=e.i(843552),k=e.i(413346);let S=`
2.baseui-store-inspector-trigger {
3  all: unset;
4  width: 32px;
5  height: 32px;
6  display: inline-flex;
7  align-items: center;
8  justify-content: center;
9  color: oklch(0.651 0.078 264);
10}
11
12.baseui-store-inspector-trigger:hover,
13.baseui-store-inspector-trigger:focus-visible {
14 opacity: 0.8;
15}
16
17.baseui-store-inspector-content {
18  background: #101010;
19  flex: 1 1 auto;
20  min-height: 0;
21  overflow: auto;
22  padding-bottom: 12px;
23  scrollbar-width: thin;
24  padding: 8px;
25  border-radius: 4px;
26  border: 1px solid rgba(255, 255, 255, 0.1);
27}
28
29.baseui-store-inspector-content h3 {
30  text-transform: uppercase;
31  font-weight: bold;
32}
33
34.baseui-store-inspector-content pre {
35  margin: 0 0 16px 0;
36}
37
38.baseui-store-inspector-content pre:last-child {
39  margin-bottom: 0;
40}
41
42.baseui-store-inspector-root {
43  position: fixed;
44  background: oklch(0.34 0.036 264);
45  color: #fff;
46  z-index: 1000;
47  font-size: 12px;
48  padding: 8px;
49  border-radius: 8px;
50  display: flex;
51  flex-direction: column;
52  box-sizing: border-box;
53  max-width: 50vw;
54  color-scheme: dark;
55  overflow: clip;
56  box-shadow:
57    0 10px 15px -3px oklch(12% 9% 264deg / 8%),
58    0 4px 6px -4px oklch(12% 9% 264deg / 8%);
59}
60
61.baseui-store-inspector-header {
62  display: flex;
63  align-items: center;
64  cursor: move;
65  -webkit-user-select: none;
66  user-select: none;
67  touch-action: none;
68  padding: 4px 8px 8px 8px;
69  gap: 8px;
70
71  h2 {
72    font-size: 16px;
73    flex-grow: 1;
74  }
75}
76
77.baseui-store-inspector-header button {
78  all: unset;
79  width: 32px;
80  height: 32px;
81  display: flex;
82  align-items: center;
83  justify-content: center;
84  cursor: default;
85}
86
87.baseui-store-inspector-header button:hover,
88.baseui-store-inspector-header button:focus-visible {
89  opacity: 0.8;
90}
91
92.baseui-store-inspector-resize-handle {
93  position: absolute;
94  width: 8px;
95  height: 8px;
96  right: -4px;
97  bottom: -4px;
98  cursor: se-resize;
99  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.25) 50%);
100  border-radius: 2px;
101}
102`;function M(e){return"composedPath"in e?e.composedPath()[0]:e.target}function R({anchorElement:e,store:t,title:n,additionalData:l,open:s,onClose:u}){let c=(0,b.useForcedRerendering)(),d=(0,E.useTimeout)();(0,C.useIsoLayoutEffect)(()=>t.subscribe(()=>{d.start(1,()=>c())}),[t,c,d]);let h=(0,y.useStableCallback)(()=>{let e={state:t.state};Object.keys(t.context??{}).length>0&&(e.context=t.context),void 0!==l&&(e.additionalData=l),console.log(e)});if("u"<typeof document)return null;let m=(0,v.ownerDocument)(e),g=(0,k.jsxs)(L,{title:n??"Store Inspector",onClose:u,headerActions:(0,k.jsx)("button",{type:"button",onClick:h,title:"Log to console",children:r||(r=(0,k.jsx)(O,{}))}),children:[i||(i=(0,k.jsx)("h3",{children:"State"})),(0,k.jsx)("pre",{children:JSON.stringify(t.state,P(),2)}),Object.keys(t.context??{}).length>0&&(0,k.jsxs)(f.Fragment,{children:[o||(o=(0,k.jsx)("h3",{children:"Context"})),(0,k.jsx)("pre",{children:JSON.stringify(t.context,P(),2)})]}),void 0!==l&&(0,k.jsxs)(f.Fragment,{children:[a||(a=(0,k.jsx)("h3",{children:"Additional data"})),(0,k.jsx)("pre",{children:JSON.stringify(l,P(),2)})]})]});return s?p.createPortal(g,m.body):null}function P(){let e=[];return function(t,n){if((0,h.isElement)(n))return`Element(${n.tagName.toLowerCase()}${n.id?`#${n.id}`:""})`;if(void 0===n)return"[undefined]";if(n instanceof Map)return Array.from(n.entries());if(n instanceof Set)return Array.from(n);if("object"!=typeof n||null===n)return n;for(;e.length>0&&e.at(-1)!==this;)e.pop();return e.includes(n)?"[circular reference]":(e.push(n),n)}}function L({title:e,onClose:t,children:n,headerActions:r}){let i=f.useRef(null),o=f.useRef(null),a=f.useRef(null),u=(0,j.useAnimationFrame)(),[c,d]=f.useState(null),p=f.useRef(null),[h,m]=f.useState(null),v=f.useRef(null);(0,C.useIsoLayoutEffect)(()=>{null!=c||i.current&&d({left:8,top:8})},[c]);let b=(0,y.useStableCallback)(e=>{if(!o.current||!i.current)return;let t=M(e.nativeEvent);if(t&&t.closest("button"))return;let n=c??{left:8,top:8};p.current={dragging:!0,startX:e.clientX,startY:e.clientY,startLeft:n.left,startTop:n.top};try{o.current.setPointerCapture(e.pointerId)}catch{}e.preventDefault()}),E=(0,y.useStableCallback)(e=>{if(o.current&&e)try{o.current.releasePointerCapture(e.pointerId)}catch{}p.current&&(p.current.dragging=!1)}),N=(0,y.useStableCallback)(e=>{let t=p.current;if(!t||!t.dragging)return;let n=t.startLeft+(e.clientX-t.startX),r=Math.max(0,t.startTop+(e.clientY-t.startY));u.request(()=>{d({left:n,top:r})})}),S=(0,y.useStableCallback)(e=>{if(!i.current)return;let t=i.current.getBoundingClientRect(),n=h??{width:t.width,height:t.height},r=c?.left??t.left,o=c?.top??t.top,a=(0,x.ownerWindow)(i.current),l=Math.max(100,a.innerWidth-r),s=Math.max(80,a.innerHeight-o);v.current={resizing:!0,startX:e.clientX,startY:e.clientY,startWidth:n.width,startHeight:n.height,minWidth:160,minHeight:52,maxWidth:l,maxHeight:s};try{e.currentTarget?.setPointerCapture?.(e.pointerId)}catch{}e.preventDefault()}),R=(0,y.useStableCallback)(e=>{let t=v.current;if(!t||!t.resizing)return;let n=e.clientX-t.startX,r=e.clientY-t.startY,i=Math.min(t.maxWidth,Math.max(t.minWidth,t.startWidth+n)),o=Math.min(t.maxHeight,Math.max(t.minHeight,t.startHeight+r));u.request(()=>{m({width:i,height:o})})}),P=(0,y.useStableCallback)(e=>{if(e)try{M(e)?.releasePointerCapture?.(e.pointerId)}catch{}v.current&&(v.current.resizing=!1)});(0,C.useIsoLayoutEffect)(()=>{let e=(0,x.ownerWindow)(i.current),t=e=>{E(e),P(e)};return(0,g.mergeCleanups)((0,w.addEventListener)(e,"pointermove",e=>{N(e),R(e)}),(0,w.addEventListener)(e,"pointerup",t),(0,w.addEventListener)(e,"pointercancel",t))},[]);let D={},O=null;i.current?O=(0,x.ownerWindow)(i.current):"u">typeof window&&(O=window);
102let I=O?Math.max(0,O.innerHeight-16):void 0;return c?(D.top=c.top,D.left=c.left,D.right="auto",D.position="fixed",h?.width!=null&&(D.width=h.width),h?.height!=null&&(D.height=h.height),D.maxHeight=O?Math.max(0,O.innerHeight-c.top-8):void 0):(h?.width!=null&&(D.width=h.width),h?.height!=null&&(D.height=h.height),D.maxHeight=I),(0,k.jsxs)("div",{ref:i,className:"baseui-store-inspector-root",style:D,children:[(0,k.jsxs)("div",{ref:o,className:"baseui-store-inspector-header",onPointerDown:b,children:[(0,k.jsx)("h2",{children:e}),r,(0,k.jsx)("button",{type:"button",onClick:t,title:"Close window",children:l||(l=(0,k.jsx)(T,{}))})]}),(0,k.jsx)("div",{className:"baseui-store-inspector-content",children:n}),(0,k.jsx)("div",{ref:a,onPointerDown:S,style:{position:"relative"},children:s||(s=(0,k.jsx)("div",{className:"baseui-store-inspector-resize-handle"}))})]})}function T(){return u||(u=(0,k.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,k.jsx)("path",{d:"m15 9-6 6"}),(0,k.jsx)("path",{d:"m9 9 6 6"})]}))}function D(){return c||(c=(0,k.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),(0,k.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,k.jsx)("path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"}),(0,k.jsx)("path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"})]}))}function O(){return d||(d=(0,k.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("path",{d:"m7 11 2-2-2-2"}),(0,k.jsx)("path",{d:"M11 13h4"}),(0,k.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"})]}))}e.s(["StoreInspector",0,function(e){var r;let i,o,a,l,{title:s,additionalData:u,defaultOpen:c=!1}=e,d=(i=(r=e).handle,o=r.store,a=f.useCallback(e=>i?.subscribeStore?.(e)??N.NOOP,[i]),l=f.useCallback(()=>o??i?.store,[i,o]),(0,m.useSyncExternalStore)(a,l,l)),[p,h]=f.useState(c),g=f.useRef(null);return(0,k.jsxs)(f.Fragment,{children:[t||(t=(0,k.jsx)("style",{href:"baseui-store-inspector",precedence:"default",children:S})),(0,k.jsx)("button",{ref:g,className:"baseui-store-inspector-trigger",type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),h(e=>!e)},title:"Toggle store inspector","aria-hidden":!0,children:n||(n=(0,k.jsx)(D,{}))}),(0,k.jsx)(R,{anchorElement:g.current,open:p,store:d,title:s,additionalData:u,onClose:()=>h(!1)})]})},"StoreInspectorPanel",0,R])},421582,e=>{"use strict";var t,n=e.i(580080),r=e.i(332663),i=e.i(413346);function o(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return a.scopeName=e,[function(t,o){let a=n.createContext(o),l=r.length;r=[...r,o];let s=t=>{let{scope:r,children:o,...s}=t,u=r?.[e]?.[l]||a,c=n.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:c,children:o})};return s.displayName=t+"Provider",[s,function(r,i){let s=i?.[e]?.[l]||a,u=n.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(a,...t)]}function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function u(...e){return n.useCallback(s(...e),e)}function c(e){var t;let r,o=(t=e,(r=n.forwardRef((e,t)=>
102{let{children:r,...i}=e;if(n.isValidElement(r)){var o;let e,a,l=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?s(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=n.forwardRef((e,t)=>{let{children:r,...a}=e,l=n.Children.toArray(r),s=l.find(f);if(s){let e=s.props.children,r=l.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(o,{...a,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(o,{...a,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}"u">typeof window&&window.document&&window.document.createElement;var d=Symbol("radix.slottable");function f(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=c(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?r:t,{...a,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function h(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}var m=globalThis?.document?n.useLayoutEffect:()=>{};n[" useEffectEvent ".trim().toString()],n[" useInsertionEffect ".trim().toString()];var g=n[" useInsertionEffect ".trim().toString()]||m;function v({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){let[o,a,l]=function({defaultProp:e,onChange:t}){let[r,i]=n.useState(e),o=n.useRef(r),a=n.useRef(t);return g(()=>{a.current=t},[t]),n.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,i,a]}({defaultProp:t,onChange:r}),s=void 0!==e,u=s?e:o;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,i])}return[u,n.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else a(t)},[s,e,a,l])]}Symbol("RADIX:SYNC_STATE");var x=n.createContext(void 0),w=e=>{var t;let r,i,{present:o,children:a}=e,l=function(e){var t,r;let[i,o]=n.useState(),a=n.useRef(null),l=n.useRef(e),s=n.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>r[e][t]??e,t));return n.useEffect(()=>{let e=b(a.current);s.current="mounted"===u?e:"none"},[u]),m(()=>{let t=a.current,n=l.current;if(n!==e){let r=s.current,i=b(t);e?c("MOUNT"):"none"===i||t?.display==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),m(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=b(a.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(c("ANIMATION_END"),!l.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(s.current=b(a.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}c("ANIMATION_END")},[i,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:n.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(o),s="function"==typeof a?a({present:l.isPresent}):n.Children.only(a),c=u(l.ref,(t=s,(i=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(i=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof a||l.isPresent?n.cloneElement(s,{ref:c}):null};function b(e){return e?.animationName||"none"}w.displayName="Presence";var y=n[" useId ".trim().toString()]||(()=>void 0),j=0;function C(e){let[t,r]=n.useState(y());return m(()=>{e||r(e=>e??String(j++))},[e]),e||(t?`radix-${t}`:"")}function E(e){let t=e+"CollectionProvider",[r,a]=o(t),[l,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.default.useRef(null),a=n.default.useRef(new Map).current;return(0,i.jsx)(l,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=c(f),h=n.default.forwardRef((e,t)=>
102{let{scope:n,children:r}=e,o=u(t,s(f,n).collectionRef);return(0,i.jsx)(p,{ref:o,children:r})});h.displayName=f;let m=e+"CollectionItemSlot",g="data-radix-collection-item",v=c(m),x=n.default.forwardRef((e,t)=>{let{scope:r,children:o,...a}=e,l=n.default.useRef(null),c=u(t,l),d=s(m,r);return n.default.useEffect(()=>(d.itemMap.set(l,{ref:l,...a}),()=>void d.itemMap.delete(l))),(0,i.jsx)(v,{...{[g]:""},ref:c,children:o})});return x.displayName=m,[{Provider:d,Slot:h,ItemSlot:x},function(t){let r=s(e+"CollectionConsumer",t);return n.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},a]}function N(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}var k="dismissableLayer.update",S=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M=n.forwardRef((e,r)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...h}=e,m=n.useContext(S),[g,v]=n.useState(null),x=g?.ownerDocument??globalThis?.document,[,w]=n.useState({}),b=u(r,e=>v(e)),y=Array.from(m.layers),[j]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf(j),E=g?y.indexOf(g):-1,M=m.layersWithOutsidePointerEventsDisabled.size>0,L=E>=C,T=function(e,t=globalThis?.document){let r=N(e),i=n.useRef(!1),o=n.useRef(()=>{});return n.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let n=function(){P("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);i.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...m.branches].some(e=>e.contains(t));L&&!n&&(s?.(e),d?.(e),e.defaultPrevented||f?.())},x),D=function(e,t=globalThis?.document){let r=N(e),i=n.useRef(!1);return n.useEffect(()=>{let e=e=>{e.target&&!i.current&&P("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...m.branches].some(e=>e.contains(t))&&(c?.(e),d?.(e),e.defaultPrevented||f?.())},x);return!function(e,t=globalThis?.document){let r=N(e);n.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{E===m.layers.size-1&&(l?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))},x),n.useEffect(()=>{if(g)return o&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(t=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),R(),()=>{o&&1===m.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=t)}},[g,x,o,m]),n.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),R())},[g,m]),n.useEffect(()=>{let e=()=>w({});return document.addEventListener(k,e),()=>document.removeEventListener(k,e)},[]),(0,i.jsx)(p.div,{...h,ref:b,style:{pointerEvents:M?L?"auto":"none":void 0,...e.style},onFocusCapture:a(e.onFocusCapture,D.onFocusCapture),onBlurCapture:a(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,T.onPointerDownCapture)})});function R(){let e=new CustomEvent(k);document.dispatchEvent(e)}function P(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?h(i,o):i.dispatchEvent(o)}M.displayName="DismissableLayer",n.forwardRef((e,t)=>
102{let r=n.useContext(S),o=n.useRef(null),a=u(t,o);return n.useEffect(()=>{let e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,i.jsx)(p.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var L=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),T=n.forwardRef((e,t)=>(0,i.jsx)(p.span,{...e,ref:t,style:{...L,...e.style}}));T.displayName="VisuallyHidden";var D="NavigationMenu",[O,I,A]=E(D),[_,$,F]=E(D),[z,W]=o(D,[A,F]),[B,H]=z(D),[U,V]=z(D),Z=n.forwardRef((e,t)=>{let r,{__scopeNavigationMenu:o,value:a,onValueChange:l,defaultValue:s,delayDuration:c=200,skipDelayDuration:d=300,orientation:f="horizontal",dir:h,...m}=e,[g,w]=n.useState(null),b=u(t,e=>w(e)),y=(r=n.useContext(x),h||r||"ltr"),j=n.useRef(0),C=n.useRef(0),E=n.useRef(0),[N,k]=n.useState(!0),[S,M]=v({prop:a,onChange:e=>{let t=d>0;""!==e?(window.clearTimeout(E.current),t&&k(!1)):(window.clearTimeout(E.current),E.current=window.setTimeout(()=>k(!0),d)),l?.(e)},defaultProp:s??"",caller:D}),R=n.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>M(""),150)},[M]),P=n.useCallback(e=>{window.clearTimeout(C.current),M(e)},[M]),L=n.useCallback(e=>{S===e?window.clearTimeout(C.current):j.current=window.setTimeout(()=>{window.clearTimeout(C.current),M(e)},c)},[S,M,c]);return n.useEffect(()=>()=>{window.clearTimeout(j.current),window.clearTimeout(C.current),window.clearTimeout(E.current)},[]),(0,i.jsx)(Y,{scope:o,isRootMenu:!0,value:S,dir:y,orientation:f,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(j.current),N?L(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(j.current),R()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:R,onItemSelect:e=>{M(t=>t===e?"":e)},onItemDismiss:()=>M(""),children:(0,i.jsx)(p.nav,{"aria-label":"Main","data-orientation":f,dir:y,...m,ref:b})})});Z.displayName=D;var K="NavigationMenuSub",X=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:l="horizontal",...s}=e,u=H(K,n),[c,d]=v({prop:r,onChange:o,defaultProp:a??"",caller:K});return(0,i.jsx)(Y,{scope:n,isRootMenu:!1,value:c,dir:u.dir,orientation:l,rootNavigationMenu:u.rootNavigationMenu,onTriggerEnter:e=>d(e),onItemSelect:e=>d(e),onItemDismiss:()=>d(""),children:(0,i.jsx)(p.div,{"data-orientation":l,...s,ref:t})})});X.displayName=K;var Y=e=>{let t,{scope:r,isRootMenu:o,rootNavigationMenu:a,dir:l,orientation:s,children:u,value:c,onItemSelect:d,onItemDismiss:f,onTriggerEnter:p,onTriggerLeave:h,onContentEnter:m,onContentLeave:g}=e,[v,x]=n.useState(null),[w,b]=n.useState(new Map),[y,j]=n.useState(null);return(0,i.jsx)(B,{scope:r,isRootMenu:o,rootNavigationMenu:a,value:c,previousValue:(t=n.useRef({value:c,previous:c}),n.useMemo(()=>(t.current.value!==c&&(t.current.previous=t.current.value,t.current.value=c),t.current.previous),[c])),baseId:C(),dir:l,orientation:s,viewport:v,onViewportChange:x,indicatorTrack:y,onIndicatorTrackChange:j,onTriggerEnter:N(p),onTriggerLeave:N(h),onContentEnter:N(m),onContentLeave:N(g),onItemSelect:N(d),onItemDismiss:N(f),onViewportContentChange:n.useCallback((e,t)=>{b(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:n.useCallback(e=>{b(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,i.jsx)(O.Provider,{scope:r,children:(0,i.jsx)(U,{scope:r,items:w,children:u})})})},G="NavigationMenuList",q=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=H(G,n),a=(0,i.jsx)(p.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,i.jsx)(p.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,i.jsx)(O.Slot,{scope:n,children:o.isRootMenu?(0,i.jsx)(ev,{asChild:!0,children:a}):a})})});q.displayName=G;var J="NavigationMenuItem",[Q,ee]=z(J),et=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:o,...a}=e,l=C(),s=n.useRef(null),u=n.useRef(null),c=n.useRef(null),d=n.useRef(()=>{}),f=n.useRef(!1),h=n.useCallback((e="start")=>{if(s.current){d.current();let t=eb(s.current);t.length&&ey("start"===e?t:t.reverse())}},[]),m=n.useCallback(()=>
102{if(s.current){var e;let t=eb(s.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),d.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,i.jsx)(Q,{scope:r,value:o||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:m,onContentFocusOutside:m,children:(0,i.jsx)(p.li,{...a,ref:t})})});et.displayName=J;var en="NavigationMenuTrigger",er=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:o,...l}=e,s=H(en,e.__scopeNavigationMenu),c=ee(en,e.__scopeNavigationMenu),d=n.useRef(null),f=u(d,c.triggerRef,t),h=eE(s.baseId,c.value),m=eN(s.baseId,c.value),g=n.useRef(!1),v=n.useRef(!1),x=c.value===s.value;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O.ItemSlot,{scope:r,value:c.value,children:(0,i.jsx)(ew,{asChild:!0,children:(0,i.jsx)(p.button,{id:h,disabled:o,"data-disabled":o?"":void 0,"data-state":eC(x),"aria-expanded":x,"aria-controls":m,...l,ref:f,onPointerEnter:a(e.onPointerEnter,()=>{v.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:a(e.onPointerMove,ek(()=>{o||v.current||c.wasEscapeCloseRef.current||g.current||(s.onTriggerEnter(c.value),g.current=!0)})),onPointerLeave:a(e.onPointerLeave,ek(()=>{o||(s.onTriggerLeave(),g.current=!1)})),onClick:a(e.onClick,()=>{s.onItemSelect(c.value),v.current=x}),onKeyDown:a(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];x&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),x&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===d.current,i=t?.contains(n);(r||!i)&&c.onFocusProxyEnter(r?"start":"end")}}),s.viewport&&(0,i.jsx)("span",{"aria-owns":m})]})]})});er.displayName=en;var ei="navigationMenu.linkSelect",eo=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:o,...l}=e;return(0,i.jsx)(ew,{asChild:!0,children:(0,i.jsx)(p.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...l,ref:t,onClick:a(e.onClick,e=>{let t=e.target,n=new CustomEvent(ei,{bubbles:!0,cancelable:!0});t.addEventListener(ei,e=>o?.(e),{once:!0}),h(t,n),n.defaultPrevented||e.metaKey||h(t,new CustomEvent(ef,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});eo.displayName="NavigationMenuLink";var ea="NavigationMenuIndicator",el=n.forwardRef((e,t)=>{let{forceMount:n,...o}=e,a=H(ea,e.__scopeNavigationMenu),l=!!a.value;return a.indicatorTrack?r.default.createPortal((0,i.jsx)(w,{present:n||l,children:(0,i.jsx)(es,{...o,ref:t})}),a.indicatorTrack):null});el.displayName=ea;var es=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...o}=e,a=H(ea,r),l=I(r),[s,u]=n.useState(null),[c,d]=n.useState(null),f="horizontal"===a.orientation,h=!!a.value;n.useEffect(()=>{let e=l(),t=e.find(e=>e.value===a.value)?.ref.current;t&&u(t)},[l,a.value]);let m=()=>{s&&d({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return ej(s,m),ej(a.indicatorTrack,m),c?(0,i.jsx)(p.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":a.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...o.style}}):null}),eu="NavigationMenuContent",ec=n.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=H(eu,e.__scopeNavigationMenu),l=ee(eu,e.__scopeNavigationMenu),s=u(l.contentRef,t),c=l.value===o.value,d={value:l.value,triggerRef:l.triggerRef,focusProxyRef:l.focusProxyRef,wasEscapeCloseRef:l.wasEscapeCloseRef,onContentFocusOutside:l.onContentFocusOutside,onRootContentClose:l.onRootContentClose,...r};return o.viewport?(0,i.jsx)(ed,{forceMount:n,...d,ref:s}):(0,i.jsx)(w,{present:n||c,children:(0,i.jsx)(ep,{"data-state":eC(c),...d,ref:s,onPointerEnter:a(e.onPointerEnter,o.onContentEnter),onPointerLeave:a(e.onPointerLeave,ek(o.onContentLeave)),style:{pointerEvents:!c&&o.isRootMenu?"none":void 0,...d.style}})})});ec.displayName=eu;var ed=n.forwardRef((e,t)=>
vendor: 4,572 bytes, line 102
102{let{onViewportContentChange:n,onViewportContentRemove:r}=H(eu,e.__scopeNavigationMenu);return m(()=>{n(e.value,{ref:t,...e})},[e,t,n]),m(()=>()=>r(e.value),[e.value,r]),null}),ef="navigationMenu.rootContentDismiss",ep=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:o,triggerRef:l,focusProxyRef:s,wasEscapeCloseRef:c,onRootContentClose:d,onContentFocusOutside:f,...p}=e,h=H(eu,r),m=n.useRef(null),g=u(m,t),v=eE(h.baseId,o),x=eN(h.baseId,o),w=I(r),b=n.useRef(null),{onItemDismiss:y}=h;n.useEffect(()=>{let e=m.current;if(h.isRootMenu&&e){let t=()=>{y(),d(),e.contains(document.activeElement)&&l.current?.focus()};return e.addEventListener(ef,t),()=>e.removeEventListener(ef,t)}},[h.isRootMenu,e.value,l,y,d]);let j=n.useMemo(()=>{let e=w().map(e=>e.value);"rtl"===h.dir&&e.reverse();let t=e.indexOf(h.value),n=e.indexOf(h.previousValue),r=o===h.value,i=n===e.indexOf(o);if(!r&&!i)return b.current;let a=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return b.current=a,a},[h.previousValue,h.value,h.dir,w,o]);return(0,i.jsx)(ev,{asChild:!0,children:(0,i.jsx)(M,{id:x,"aria-labelledby":v,"data-motion":j,"data-orientation":h.orientation,...p,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(ef,{bubbles:!0,cancelable:!0});m.current?.dispatchEvent(e)},onFocusOutside:a(e.onFocusOutside,e=>{f();let t=e.target;h.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:a(e.onPointerDownOutside,e=>{let t=e.target,n=w().some(e=>e.ref.current?.contains(t)),r=h.isRootMenu&&h.viewport?.contains(t);(n||r||!h.isRootMenu)&&e.preventDefault()}),onKeyDown:a(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eb(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);ey(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:a(e.onEscapeKeyDown,e=>{c.current=!0})})})}),eh="NavigationMenuViewport",em=n.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=!!H(eh,e.__scopeNavigationMenu).value;return(0,i.jsx)(w,{present:n||o,children:(0,i.jsx)(eg,{...r,ref:t})})});em.displayName=eh;var eg=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:o,...l}=e,c=H(eh,r),d=u(t,c.onViewportChange),f=V(eu,e.__scopeNavigationMenu),[h,m]=n.useState(null),[g,v]=n.useState(null),x=h?h?.width+"px":void 0,b=h?h?.height+"px":void 0,y=!!c.value,j=y?c.value:c.previousValue;return ej(g,()=>{g&&m({width:g.offsetWidth,height:g.offsetHeight})}),(0,i.jsx)(p.div,{"data-state":eC(y),"data-orientation":c.orientation,...l,ref:d,style:{pointerEvents:!y&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":x,"--radix-navigation-menu-viewport-height":b,...l.style},onPointerEnter:a(e.onPointerEnter,c.onContentEnter),onPointerLeave:a(e.onPointerLeave,ek(c.onContentLeave)),children:Array.from(f.items).map(([e,{ref:t,forceMount:n,...r}])=>{let o=j===e;return(0,i.jsx)(w,{present:n||o,children:(0,i.jsx)(ep,{...r,ref:s(t,e=>{o&&e&&v(e)})})},e)})})}),ev=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=H("FocusGroup",n);return(0,i.jsx)(_.Provider,{scope:n,children:(0,i.jsx)(_.Slot,{scope:n,children:(0,i.jsx)(p.div,{dir:o.dir,...r,ref:t})})})}),ex=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ew=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=$(n),l=H("FocusGroupItem",n);return(0,i.jsx)(_.ItemSlot,{scope:n,children:(0,i.jsx)(p.button,{...r,ref:t,onKeyDown:a(e.onKeyDown,e=>{if(["Home","End",...ex].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===l.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ex.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>ey(t)),e.preventDefault()}})})})});function eb(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ey(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ej(e,t){let n=N(t);m(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function eC(e){return e?"open":"closed"}function eE(e,t){return`${e}-trigger-${t}`}function eN(e,t){return`${e}-content-${t}`}function ek(e){return t=>
102"mouse"===t.pointerType?e(t):void 0}e.s(["Content",0,ec,"Indicator",0,el,"Item",0,et,"Link",0,eo,"List",0,q,"NavigationMenu",0,Z,"NavigationMenuContent",0,ec,"NavigationMenuIndicator",0,el,"NavigationMenuItem",0,et,"NavigationMenuLink",0,eo,"NavigationMenuList",0,q,"NavigationMenuSub",0,X,"NavigationMenuTrigger",0,er,"NavigationMenuViewport",0,em,"Root",0,Z,"Sub",0,X,"Trigger",0,er,"Viewport",0,em,"createNavigationMenuScope",0,W],421582)},620906,e=>{"use strict";var t=e.i(413346),n=e.i(530941),r=e.i(28824),i=e.i(580080),o=e.i(656447),a=e.i(264665);let l={pages:{plural:"Pages",singular:"Page"},posts:{plural:"Posts",singular:"Post"},"tpl-sicilia":{plural:"TPL Sicilia",singular:"TPL Sicilia"},"tpl-sicilia-tratte":{plural:"TPL Sicilia Tratte",singular:"TPL Sicilia Tratta"},noleggio:{plural:"Noleggi",singular:"Noleggio"},urbane:{plural:"Urbane",singular:"Urbana"},aggiornamenti:{plural:"Aggiornamenti",singular:"Aggiornamento"}};var s=e.i(71863),u=e.i(428535);let c={id:"12345",email:"[email protected]"},d=e=>{let{locale:n,id:r,adminPath:o="/admin",apiPath:a="/api",authCollectionSlug:l="users",className:d,classNames:f,cmsURL:p="http://localhost:8000",collectionLabels:h,collectionSlug:m,createProps:g,devMode:v,divProps:x,editProps:w,logo:b,logoProps:y,logoutProps:j,onAuthChange:C,onPreviewExit:E,preview:N,previewProps:k,style:S,unstyled:M,userProps:R}=e,[P,L]=(0,i.useState)(),T=(0,s.useAdminBarEditTargets)(),D=T?.kind==="document"?T.collection:T?.kind==="global"?null:m;if((0,i.useEffect)(()=>{(async()=>{if(!(0,u.readShowAdminBarFlag)())return!0===v?L(c):L(null);try{let e=await fetch(`${p}${a}/${l}/me`,{credentials:"include",method:"get"}),{user:t}=await e.json();t?L(t):((0,u.clearShowAdminBarFlag)(),!0!==v?L(null):L(c))}catch(e){console.warn(e),(0,u.clearShowAdminBarFlag)(),!0===v?L(c):L(null)}})()},[p,o,a,l,v]),(0,i.useEffect)(()=>{"function"==typeof C&&C(P)},[P,C]),P){let{id:e,email:i}=P,a=e=>`${e}${e.includes("?")?"&":"?"}locale=${n}`,s=e=>!0!==M?{color:"inherit",flexShrink:1,marginRight:"10px",overflow:"hidden",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",...e&&"object"==typeof e?e:{}}:e||{};return(0,t.jsxs)("div",{className:d,id:"payload-admin-bar",style:{...!0!==M?{alignItems:"center",backgroundColor:"#222",boxSizing:"border-box",color:"#fff",display:"flex",fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif",fontSize:"small",left:0,minWidth:"0",padding:"0.5rem",position:"fixed",top:0,width:"100%",zIndex:99999}:{},...S},children:[(0,t.jsx)("a",{className:f?.logo,href:`${p}${o}`,...y,style:{...!0!==M?{alignItems:"center",color:"inherit",display:"flex",flexShrink:0,height:"20px",marginRight:"10px",textDecoration:"none",...y?.style?{...y.style}:{}}:{}},children:b||"Payload CMS"}),(0,t.jsx)("a",{className:f?.user,href:`${p}${o}/collections/${l}/${e}`,rel:"noopener noreferrer",target:"_blank",...R,style:{...!0!==M?{color:"inherit",display:"block",marginRight:"10px",minWidth:"50px",overflow:"hidden",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",...R?.style?{...R.style}:{}}:{}},children:(0,t.jsx)("span",{style:{...!0!==M?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:i||"Profile"})}),(0,t.jsxs)("div",{className:f?.controls,...x,style:{...!0!==M?{alignItems:"center",display:"flex",flexGrow:1,flexShrink:1,justifyContent:"flex-end",marginRight:"10px",...x?.style?{...x.style}:{}}:{}},children:[T?.kind==="global"&&(0,t.jsx)("a",{className:f?.edit,href:a(`${p}${o}/globals/${T.slug}`),rel:"noopener noreferrer",target:"_blank",...w,style:{display:"block",...s(w?.style)},children:(0,t.jsx)("span",{style:{...!0!==M?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:"Edit homepage"})}),T?.kind==="document"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{className:f?.edit,href:a(`${p}${o}/collections/${T.collection}/${T.documentId}`),rel:"noopener noreferrer",target:"_blank",...w,style:{display:"block",...s(w?.style)},children:(0,t.jsx)("span",{style:{...!0!==M?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:`Edit ${h?.singular||"page"}`})}),T.template&&(0,t.jsx)("a",{className:f?.edit,href:a(`${p}${o}/collections/${T.template.collection}/${T.template.id}`),rel:"noopener noreferrer",target:"_blank",...w,style:{display:"block",...s(w?.style)}
102,children:(0,t.jsx)("span",{style:{...!0!==M?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:"Edit template"})})]}),!T&&m&&r&&(0,t.jsx)("a",{className:f?.edit,href:a(`${p}${o}/collections/${m}/${r}`),rel:"noopener noreferrer",target:"_blank",...w,style:{display:"block",...!0!==M?{color:"inherit",flexShrink:1,marginRight:"10px",overflow:"hidden",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",...w?.style?{...w.style}:{}}:{}},children:(0,t.jsx)("span",{style:{...!0!==M?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:`Edit ${h?.singular||"page"}`})}),D&&(0,t.jsx)("a",{className:f?.create,href:`${p}${o}/collections/${D}/create`,rel:"noopener noreferrer",target:"_blank",...g,style:{...!0!==M?{color:"inherit",display:"block",flexShrink:1,overflow:"hidden",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",...g?.style?{...g.style}:{}}:{}},children:(0,t.jsx)("span",{style:{...!0!==M?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:`New ${h?.singular||"page"}`})}),N&&(0,t.jsx)("button",{className:f?.preview,onClick:E,...k,style:{...!0!==M?{background:"none",border:"none",color:"inherit",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",marginLeft:"10px",padding:0,...k?.style?{...k.style}:{}}:{}},type:"button",children:"Exit preview mode"})]}),(0,t.jsx)("a",{className:f?.logout,href:`${p}${o}/logout`,rel:"noopener noreferrer",target:"_blank",...j,style:{...!0!==M?{color:"inherit",display:"block",flexShrink:1,overflow:"hidden",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",...j?.style?{...j.style}:{}}:{}},children:(0,t.jsx)("span",{style:{...!0!==M?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:"Logout"})})]})}return null},f=()=>(0,t.jsx)("span",{children:"Dashboard"});e.s(["AdminBarClient",0,e=>{let{adminBarProps:s,locale:u}=e||{},c=(0,r.useParams)(),[p,h]=(0,i.useState)(!1),m=(0,r.useRouter)(),g=!!s?.preview,{collectionSlug:v,collectionLabels:x}=function(e,t){let{type:n}=((e,t)=>{let n=e?.length;if(!n)return{type:"homepage",slug:""};if(1===n)return{type:"pages",slug:e[0]};let r=a.blogPaths[t],i=a.lineeTPLPaths[t],o=a.urbanePaths[t],l=a.lineeTPLTrattePaths[t],s=a.aggiornamentiPaths[t],u=a.noleggioPaths[t],c="pages",d="";switch(e[0]){case r:c="posts",d=e.slice(1).join("/");break;case i:c="tpl-sicilia",d=e.slice(1).join("/");break;case o:c="urbana",d=e.slice(1).join("/");break;case l:c="tpl-sicilia-tratte",d=e.slice(1).join("/");break;case s:c="aggiornamenti",d=e.slice(1).join("/");break;case u:c="noleggio",d=e.slice(1).join("/");break;default:c="pages",d=e.join("/")}return{type:c,slug:d}})(e,t);if("homepage"===n)return{collectionSlug:void 0,collectionLabels:l.pages};let r={pages:"pages",posts:"posts","tpl-sicilia":"tpl-sicilia",urbana:"urbane","tpl-sicilia-tratte":"tpl-sicilia-tratte",aggiornamenti:"aggiornamenti",noleggio:"noleggio"}[n];return{collectionSlug:r,collectionLabels:l[r]}}(c?.route,u),w=i.default.useCallback(e=>{void 0!==e&&(h(!!e?.id),null===e&&g&&fetch("/next/exit-preview").then(()=>{m.refresh()}))},[g,m]);return(0,t.jsx)("div",{className:(0,n.cn)("py-2 px-6 text-white bg-black w-full max-lg:hidden",{hidden:!p,block:p}),children:(0,t.jsx)(d,{...s,locale:u,classNames:{controls:"font-medium text-white",logo:"text-white",user:"text-white"},cmsURL:(0,o.getServerSideURL)(),collectionSlug:v,collectionLabels:{plural:x.plural,singular:x.singular},logo:(0,t.jsx)(f,{}),onAuthChange:w,onPreviewExit:()=>{fetch("/next/exit-preview").then(()=>{m.refresh()})},style:{backgroundColor:"transparent",padding:0,position:"relative",zIndex:"unset"}})})}],620906)},847180,e=>{"use strict";var t=e.i(413346),n=e.i(580080);let r=(0,e.i(717369).default)("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);var i=e.i(530941);e.s(["default",0,function({children:e,title:o}){let a="aggiornamenti-bar-scroll",l=(0,n.useRef)(null),s=(0,n.useRef)(null),[u,c]=(0,n.useState)(null);(0,n.useLayoutEffect)(()=>{let e=l.current,t=s.current;if(!e||!t)return;let n=()=>{let n=Math.max(0,t.scrollWidth-e.clientWidth);if(n<=0)return void c(null);let r=Math.max(10,n/48),i=2.5+r+2.5;c({distance:n,totalSeconds:i,afterStartPausePct:2.5/i*100,afterScrollPct:(2.5+r)/i*100})};n();let r=new ResizeObserver(n);return r.observe(e),r.observe(t),()=>r.disconnect()},[]);let d=u?{animationName:a,animationDuration:`${u.totalSeconds}s`,animationTimingFunction:"linear",animationIterationCount:"infinite",willChange:"transform"}:void 0,f=u&&`@keyframes ${a} {
103  0% { transform: translateX(0); }
104  ${u.afterStartPausePct.toFixed(4)}% { transform: translateX(0); }
105  ${u.afterScrollPct.toFixed(4)}% { transform: translateX(-${u.distance}px); }
106  100% { transform: translateX(-${u.distance}px); }
107}`;return(0,t.jsxs)("div",{className:"group w-full light-gray bg-background text-foreground text-sm z-50",role:"region","aria-label":o,children:[f?(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:f}}):null,(0,t.jsxs)("div",{className:"content-container flex flex-wrap items-center gap-x-4 gap-y-2 py-2",children:[(0,t.jsxs)("div",{className:"text-primary-on-text inline-flex items-center gap-1.5 font-semibold shrink-0",children:[(0,t.jsx)(r,{className:"size-5 shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"max-sm:sr-only",children:o})]}),(0,t.jsx)("div",{ref:l,className:"min-w-0 flex-1 basis-[min(100%,12rem)] overflow-hidden",children:(0,t.jsx)("ul",{ref:s,className:(0,i.cn)("flex flex-nowrap items-center gap-x-6 m-0 p-0 list-none w-max",u&&"aggiornamenti-bar-ticker group-hover:paused! group-focus-within:
107paused!"),style:d,children:e})})]})]})}],847180)},608409,e=>{"use strict";var t=e.i(413346);e.s(["default",0,function(){return(0,t.jsxs)("span",{children:["© ",new Date().getFullYear()]})}])},971927,e=>{"use strict";var t=e.i(413346),n=e.i(580080),r=e.i(723158);let i=(0,e.i(717369).default)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var o=e.i(883773),a=e.i(264665),l=e.i(337822),s=e.i(530941);let u={it:"Italiano",en:"English",es:"Español"},c={it:function({className:e}){return(0,t.jsxs)("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",className:e,"aria-hidden":!0,children:[(0,t.jsxs)("g",{clipPath:"url(#IT_svg__a)",children:[(0,t.jsx)("path",{d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Z",fill:"#F0F0F0"}),(0,t.jsx)("path",{d:"M24 12c0-5.16-3.257-9.56-7.826-11.255v22.507C20.744 21.557 24 17.159 24 11.999Z",fill:"#D80027"}),(0,t.jsx)("path",{d:"M0 12c0 5.16 3.256 9.558 7.826 11.253V.746C3.256 2.442 0 6.84 0 12Z",fill:"#6DA544"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"IT_svg__a",children:(0,t.jsx)("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]})},en:function({className:e}){return(0,t.jsxs)("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",className:e,"aria-hidden":!0,children:[(0,t.jsxs)("g",{clipPath:"url(#GB_svg__a)",children:[(0,t.jsx)("path",{d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Z",fill:"#F0F0F0"}),(0,t.jsx)("path",{d:"M2.48 4.693A11.956 11.956 0 0 0 .413 8.868h6.243L2.48 4.693Zm21.106 4.176a11.957 11.957 0 0 0-2.067-4.176L17.344 8.87h6.242ZM.413 15.13a11.957 11.957 0 0 0 2.067 4.176l4.176-4.176H.413ZM19.305 2.48A11.957 11.95
1077 0 0 0 15.13.412v6.243l4.175-4.175ZM4.693 21.518a11.957 11.957 0 0 0 4.176 2.067v-6.243l-4.176 4.176ZM8.869.412A11.957 11.957 0 0 0 4.693 2.48L8.87 6.655V.412Zm6.261 23.173a11.96 11.96 0 0 0 4.175-2.067l-4.175-4.176v6.243Zm2.214-8.455 4.175 4.176a11.957 11.957 0 0 0 2.067-4.176h-6.242Z",fill:"#0052B4"}),(0,t.jsx)("path",{d:"M23.898 10.435H13.565V.102a12.12 12.12 0 0 0-3.13 0v10.333H.102a12.12 12.12 0 0 0 0 3.13h10.333v10.333a12.12 12.12 0 0 0 3.13 0V13.565h10.333a12.12 12.12 0 0 0 0-3.13Z",fill:"#D80027"}),(0,t.jsx)("path",{d:"m15.13 15.131 5.356 5.355c.246-.246.48-.503.705-.77l-4.584-4.585H15.13Zm-6.26 0-5.355 5.355c.246.246.503.481.77.705l4.585-4.584V15.13Zm0-6.261v-.001L3.515 3.514a12.03 12.03 0 0 0-.705.77L7.394 8.87H8.87Zm6.26 0 5.356-5.355a12.023 12.023 0 0 0-.77-.705L15.13 7.394V8.87Z",fill:"#D80027"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"GB_svg__a",children:(0,t.jsx)("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]})},es:function({className:e}){return(0,t.jsxs)("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",className:e,"aria-hidden":!0,children:[(0,t.jsxs)("g",{clipPath:"url(#ES_svg__a)",children:[(0,t.jsx)("path",{d:"M0 12c0 1.467.264 2.873.746 4.173L12 17.217l11.254-1.044c.482-1.3.746-2.706.746-4.174 0-1.468-.264-2.874-.746-4.174L12 6.782.746 7.825A11.974 11.974 0 0 0 0 12Z",fill:"#FFDA44"}),(0,t.jsx)("path",{d:"M23.255 7.826C21.56 3.256 17.161 0 12.002 0 6.842 0 2.444 3.256.748 7.826h22.507ZM.747 16.174C2.443 20.744 6.841 24 12.001 24c5.16 0 9.558-3.256 11.253-7.826H.747Z",fill:"#D80027"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"ES_svg__a",children:(0,t.jsx)("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]})}},d=({locale:e,className:n})=>{let r=c[e]||i;return(0,t.jsx)(r,{className:n})};e.s(["LanguageSelector",0,function({currentLocale:e,className:i}){let c=(0,o.useLanguage)(),f=(0,n.useRef)(null),p=c?.hreflang;return(0,t.jsx)("div",{ref:f,className:(0,s.cn)("relative inline-flex rounded-md",i),children:(0,t.jsxs)(l.Popover,{children:[(0,t.jsxs)(l.PopoverTrigger,{className:"inline-flex items-center gap-1.5 rounded-md px-2 py-1.5 hover:bg-white/10 transition-colors","aria-label":"Select language",children:[(0,t.jsx)(d,{locale:e,className:"size-5 shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"hidden lg:block text-sm",children:u[e??"en"]??e}),(0,t.jsx)("span",{className:"block lg:hidden uppercase",children:e}),(0,t.jsx)(r.ChevronDown,{className:"size-4 shrink-0","aria-hidden":!0})]}),(0,t.jsx)(l.PopoverContent,{container:f,keepMounted:!0,align:"end",className:"w-fit min-w-32 p-1 max-lg:text-base",children:(0,t.jsx)("nav",{"aria-label":"Language selection",children:(0,t.jsx)("ul",{className:"flex flex-col gap-0.5",children:a.supportedLocales.map(n=>n!==e&&(0,t.jsx)("li",{children:(0,t.jsxs)("a",{href:p?.[n]||(0,a.getLocaleSlug)(n)||"/",className:(0,s.cn)("rounded-md px-2 py-1.5 transition-colors hover:bg-muted flex items-center gap-2"),children:[(0,t.jsx)(d,{locale:n,className:"size-5 shrink-0","aria-hidden":!0}),u[n]??n]})},n))})})})]})})}],971927)},807255,e=>{"use strict";
107var t=e.i(413346),n=e.i(656447),r=e.i(580080);let i=e=>{let{apiRoute:t,depth:n,refresh:i,serverURL:o}=e,a=(0,r.useRef)(!1),l=(0,r.useCallback)(e=>{e.origin===o&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,o]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",l),a.current||(a.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:o}),i()),()=>{"u">typeof window&&window.removeEventListener("message",l)}),[o,l,n,t,i]),null};var o=e.i(28824);e.s(["LivePreviewListenerClient",0,()=>{let e=(0,o.useRouter)();return(0,t.jsx)(i,{refresh:e.refresh,serverURL:(0,n.getServerSideURL)()})}],807255)},244193,e=>{"use strict";var t=e.i(580080),n=e.i(28824);e.s(["CloseMenuOnRouteChange",0,function({onClose:e}){let r=(0,n.useParams)();return(0,t.useEffect)(()=>{e()},[r,e]),null}])},850417,e=>{"use strict";var t=e.i(413346),n=e.i(580080),r=e.i(561993),i=e.i(244193);e.s(["default",0,function({children:e}){let[o,a]=(0,n.useState)(!1),l=(0,n.useCallback)(()=>a(!1),[]);return(0,t.jsxs)(r.Drawer,{open:o,onOpenChange:a,children:[(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(i.CloseMenuOnRouteChange,{onClose:l})}),e]})}])},718434,e=>{"use strict";var t=e.i(413346),n=e.i(580080),r=e.i(300524),i=e.i(530941);function o({className:e}){return(0,t.jsxs)("svg",{width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":!0,children:[(0,t.jsx)("line",{x1:"3.5",y1:"8.5",x2:"40.5",y2:"8.5",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"16.2998",y1:"20.5",x2:"40.4998",y2:"20.5",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"25.9004",y1:"32.5",x2:"40.5004",y2:"32.5",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})}var a=e.i(138232);let l={en:"Login",es:"Iniciar sesión",it:"Accedi"};function s({locale:e,className:n}){return(0,t.jsx)("a",{href:`https://booking.saisautolinee.it/${e}/login`,target:"_blank",rel:"noopener noreferrer",title:l[e],className:(0,i.cn)("inline-flex items-center justify-center rounded-md hover:text-primary-on-text transition-colors hover:bg-primary-foreground",n),children:(0,t.jsx)(a.FaUser,{className:"size-5","aria-hidden":!0})})}let u={en:{expandSubmenu:"Expand submenu",closeSubmenuAndGoBack:"Close submenu and go back",mobileNavigation:"Mobile navigation",openMenu:"Open menu",closeMenu:"Close menu"},es:{expandSubmenu:"Desplegar submenú",closeSubmenuAndGoBack:"Cerrar el submenú y volver atrás",mobileNavigation:"Navegación móvil",openMenu:"Abrir el menú",closeMenu:"Cerrar el menú"},it:{expandSubmenu:"Espandi sottomenu",closeSubmenuAndGoBack:"Chiudi il sottomenu e torna indietro",mobileNavigation:"Navigazione mobile",openMenu:"Apri il menu",closeMenu:"Chiudi il menu"}};var c=e.i(244193);let d="mobile-nav-panel";e.s(["MobileNavContentWrapper",0,function({locale:e,children:a}){let l,[f,p]=(0,n.useState)(!1),h=(0,n.useRef)(null),m=(0,n.useRef)(null),g=(0,n.useRef)(!1),v=(0,n.useCallback)(()=>p(!1),[]),x=(l=e in u?e:"en",u[l]);return(0,n.useEffect)(()=>{g.current&&!f&&h.current?.focus(),g.current=f},[f]),(0,n.useEffect)(()=>{if(!f||!m.current)return;let e=m.current;document.addEventListener("keydown",t=>{if("Escape"===t.key){t.preventDefault(),v();return}if("Tab"!==t.key)return;let n=Array.from(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(e=>null!==e.offsetParent&&!e.hasAttribute("aria-hidden"));if(0===n.length)return;let r=n[0],i=n[n.length-1],o=document.activeElement;t.shiftKey?o===r&&(t.preventDefault(),i.focus()):o===i&&(t.preventDefault(),r.focus())})},[f]),(0,t.jsxs)("div",{ref:m,className:"flex items-center gap-4",children:[(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(c.CloseMenuOnRouteChange,{onClose:v})}),(0,t.jsx)(s,{locale:e,className:"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 size-10"}),(0,t.jsx)("button",{ref:h,onClick:()=>p(e=>!e),"aria-label":f?x.closeMenu:x.openMenu,"aria-expanded":f,"aria-controls":d,className:"flex items-center justify-center size-10 hover:text-primary-on-text transition-colors hover:bg-primary-foreground rounded-md",children:(0,t.jsx)("div",{className:(0,i.cn)("transition-transform duration-200 pointer-events-none",f&&"rotate-180"),children:f?(0,t.jsx)(r.X,{className:"size-9","aria-hidden":!0}):(0,t.jsx)(o,{className:"size-9","aria-hidden":!0})})}),(0,t.jsx)("div",{id:d,role:"dialog","aria-modal":f,"aria-label":"Mobile menu","aria-hidden":!f,className:(0,i.cn)("absolute top-full left-0 w-full bg-background h-[min(100vh,1080px)] overflow-auto pb-24 border-b shadow-lg transition-all duration-300 ease-out",f?"opacity-100 translate-y-0 scale-100 pointer-events-auto":"opacity-0 -translate-y-5 scale-95 pointer-events-none invisible"),children:(0,t.jsx)("div",{className:(0,i.cn)("transition-opacity duration-200",f?"opacity-100":"opacity-0"),style:{transitionDelay:f?"100ms":"0ms"},children:a})})]})}],718434)},810007,e=>{"use strict";var t=e.i(413346),n=e.i(580080),r=e.i(256192),i=e.i(710099),o=e.i(272336),a=e.i(405294);function l({children:e,isValidProp:s,...u}){s&&(0,o.loadExternalIsValidProp)(s);let c=(0,n.useContext)(i.MotionConfigContext);(u={...c,...u}).transition=(0,r.resolveTransition)(u.transition,c.transition),u.isStatic=(0,a.useConstant)(()=>u.isStatic);let d=(0,n.useMemo)(()=>u,[JSON.stringify(u.transition),u.transformPagePoint,u.reducedMotion,u.skipAnimations]);return(0,t.jsx)(i.MotionConfigContext.Provider,{value:d,children:e})}e.s(["default",0,function({children:e}){return(0,t.jsx)(l,{reducedMotion:"user",children:e})}],810007)},656447,e=>{"use strict";e.i(110223),e.s(["getServerSideURL",0,()=>"https://www.saisautolinee.it"])}]);

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.