PageSourceSearch

https://www.tickets-florence.it/_next/static/chunks/30317-0e91d90801b77097.js

js tickets-florence.it collected 2026-10-09 23:16:43 UTC 11,915 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30317],{30317:function(e,t,n){n.d(t,{u:function(){return F}});var r=n(14994),a=n(54879),l=n(93435),o=n(38339),i=n(37169),s=n(29423);let c=(0,l.createContext)({}),d=(0,i.eW)(()=>(0,l.useContext)(c),"useModalContext"),u=(0,i.eW)(e=>{var{children:t,open:n,onOpenChange:a}=e,l=(0,i.S0)(e,["children","open","onOpenChange"]);return(0,r.jsx)(c.Provider,{value:{open:n},children:(0,r.jsx)(s.fC,{open:n,onOpenChange:a,...l,children:t})})},"ModalRoot"),m=(e=>{var{children:t}=e,n=(0,i.S0)(e,["children"]);return(0,r.jsx)(s.xz,{...n,children:t})},(0,i.eW)(e=>{var{children:t}=e,n=(0,i.S0)(e,["children"]);let{open:a}=d(),[o,c]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(a)c(!0);else{let e=setTimeout(()=>{c(!1)},150);return()=>clearTimeout(e)}},[a]),(0,r.jsx)(s.h_,{forceMount:!!o||void 0,...n,children:t})},"ModalPortal"));var h=n(81445);let p=(0,h.iv)({backgroundColor:"semantic.overlay.dark",position:"fixed",inset:0,animationDuration:"300ms",animationTimingFunction:"functional.enter",willChange:"opacity",'&[data-state="open"]':{animationName:"fadeIn"},'&[data-state="closed"]':{animationName:"fadeOut",animationDuration:"200ms",animationTimingFunction:"functional.exit"}}),x=(0,i.eW)(e=>{var{className:t,children:n,zIndex:a=1e3,style:l}=e,c=(0,i.S0)(e,["className","children","zIndex","style"]);return(0,r.jsx)(s.aV,{className:(0,o.cx)(p,t),style:(0,i.ih)({zIndex:a},l),...c,children:n})},"ModalOverlay"),f=(0,h.iv)({backgroundColor:"core.primary.white",boxShadow:"shadow.level.1",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",overflowY:"auto",_scrollbar:{width:"20px"},_scrollbarTrack:{border:"solid 4px transparent"},_scrollbarThumb:{backgroundColor:"semantic.dividers.dark",borderRadius:"radius.16",border:"solid 8px white"},animationDuration:"300ms",animationTimingFunction:"functional.enter",willChange:"transform, opacity",'&[data-state="open"]':{animationName:"scaleInFromCentre"},'&[data-state="closed"]':{animationName:"scaleOutFromCentre",animationDuration:"200ms",animationTimingFunction:"functional.exit"},'&[data-show-scroll="false"]':{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}}),v=(0,i.eW)(e=>{var{className:t,width:n,height:a,borderRadius:l="radius.16",showScrollbar:c=!0,children:d,onAnimationEnd:u,zIndex:m=1e6}=e,p=(0,i.S0)(e,["className","width","height","borderRadius","showScrollbar","children","onAnimationEnd","zIndex"]);let x=(0,h.iv)({borderRadius:l});return(0,r.jsx)(s.VY,{"aria-modal":"true",className:(0,o.cx)(f,x,t),"data-show-scroll":c?"true":"false",onAnimationEnd:u,style:{width:n,height:a,zIndex:m},...p,children:d})},"ModalContent");var g=n(7551),b=n(39167);let y=(0,i.eW)(e=>{var{children:t}=e,n=(0,i.S0)(e,["children"]);return(0,r.jsx)(s.Dx,{...n,children:t})},"ModalTitle");var w=n(31465);let C={small:{width:20,height:20,iconSize:16},medium:{width:20,height:20,iconSize:16},large:{width:24,height:24,iconSize:20}},S=(0,w.F)({slots:["root","container","left","title","icon","close"],base:{root:{display:"flex",flexDirection:"column",gap:"space.8",paddingX:"space.24",paddingY:"space.20"},container:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"space.8",width:"100%"},left:{display:"flex",alignItems:"center",flexShrink:0,gap:"space.6"},title:{color:"semantic.text.grey.1"},icon:{display:"inline-flex",flexShrink:0},close:{padding:"space.4!",borderRadius:"radius.6"}},variants:{size:{small:{title:{textStyle:"heading.small"},icon:{width:16,height:16,marginTop:"space.1"},close:{width:20,height:20}},medium:{title:{textStyle:"heading.regular"},icon:{width:16,height:16,marginTop:"space.2"},close:{width:20,height:20}},large:{title:{textStyle:"heading.medium"},icon:{width:20,height:20,marginTop:"space.2"},close:{width:24,height:24}}},showSeparator:{true:{root:{borderBottom:"1px solid",borderColor:"semantic.dividers.dark"}},false:{}},titleIconPosition:{leading:{left:{flexDirection:"row-reverse"}},trailing:{left:{flexDirection:"row"}}}},defaultVariants:{size:"medium"}});var j=n(27985),k=n(70715),N=n(30842);let W=(0,i.eW)(e=>{var{children:t}=e,n=(0,i.S0)(e,["children"]);return(0,r.jsx)(s.x8,{...n,children:t})},"ModalClose"),E=(0,l.memo)(e=>{let{closeLabel:t,closeClassName:n,size:a="medium"}=e,{width:l,height:o,iconSize:i}=C[a];return(0,r.jsx)(W,{asChild:!0,children:(0,r.jsx)(j.Button,{as:"button",variant:"primary",btnType:"transparent",color:"semantic.text.grey.1",icon:(0,r.jsx)(k.J,{svg:N.i}),"aria-label":t,className:n,overrideStyles:{root:h.iv.raw({width:l,height:o}),icon:h.iv.raw({width:i,height:i})}})})}),M=(0,i.eW)(e=>{var{size:t="medium",title:n,titleIcon:a,titleIconPosition:l="trailing",showClose:s=!0,closeLabel:c="Close modal",closeElement:d,closeClassName:u,showSeparator:m=!0,secondaryContentElement:h,className:p}=e,x=(0,i.S0)(e,["size","title","titleIcon","titleIconPosition","showClose","closeLabel","closeElement","closeClassName","showSeparator","secondaryContentElement","className"]);let f=S({size:t,showSeparator:m,titleIconPosition:l});
1return(0,r.jsxs)(g.Box,{className:(0,o.cx)(f.root,p),children:[(0,r.jsxs)(g.Box,{className:f.container,"data-modal-header-size":t,...x,children:[(n||a)&&(0,r.jsxs)(y,{className:f.left,children:[n&&(0,r.jsx)(b.x,{as:"h2",className:f.title,children:n}),a&&(0,r.jsx)(g.Box,{as:"span",className:f.icon,children:a})]}),s&&(null!=d?d:(0,r.jsx)(E,{closeLabel:c,closeClassName:(0,o.cx)(f.close,u),size:t}))]}),!!h&&h]})},"ModalHeader"),O=(0,i.eW)(e=>{var{children:t}=e,n=(0,i.S0)(e,["children"]);return(0,r.jsx)(s.dk,{...n,children:t})},"ModalDescription");var D=n(26003),I=n(67254),T=n(83955);let A=(0,a.eW)(e=>({overlay:T.BV+e*T.v1,content:T.BV+e*T.v1+1}),"calculateZIndex"),z=(0,a.eW)(e=>{let{open:t,onClose:n,providedContext:r}=e,o=(0,l.useId)(),i=(0,I.dc)(),s=null!=r?r:i,[c]=(0,l.useState)(()=>s?null:(0,I.rA)()),d=null!=s?s:c,u=null!==c,[m,h]=(0,l.useState)({overlay:T.BV,content:T.BV+1}),[p,x]=(0,l.useState)(!1),f=(0,l.useRef)(n);return(0,l.useEffect)(()=>{f.current=n},[n]),(0,l.useEffect)(()=>{if(!t)return;let e={id:o,close:(0,a.eW)(()=>f.current(),"close")};return h(A(d.push(e))),x(!0),()=>{d.remove(o)}},[t,o,d]),(0,l.useEffect)(()=>{if(!t){x(!1);return}x(d.isTopmost(o))},[t,o,d]),{modalId:o,zIndex:m,stackContext:d,isRootModal:u,isTopmost:p}},"useModalStack"),L=(0,w.F)({slots:["contentWrapper","header","description","body","srOnly"],base:{contentWrapper:{display:"flex",flexDirection:"column"},header:{"& button > span":{minWidth:"[16px]!"}},description:{textStyle:"para.regular",color:"semantic.text.grey.2",margin:0,marginBottom:"space.16"},body:{flex:1,minHeight:0},srOnly:{position:"absolute",width:"[1px]",height:"[1px]",padding:0,margin:"[-1px]",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}}}),B=(0,h.iv)({_hover:{backgroundColor:"transparent!"}}),P=(0,a.eW)(e=>!!e&&e.isConnected&&!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-disabled"),"isFocusableElement"),_=(0,a.eW)(e=>{let t=e.getAttribute("tabindex");e.tabIndex<0&&null===t&&e.setAttribute("tabindex","-1"),e.focus(),null===t&&e.removeAttribute("tabindex")},"focusElement"),R=(0,a.eW)((e,t)=>{var n;let r=null!=(n=null!=t?t:document.querySelector('main, [role="main"], #__next'))?n:document.body,a=P(e)?e:r;P(a)&&_(a)},"restoreFocus"),F=(0,l.forwardRef)((e,t)=>{let{open:n,onOpenChange:i,title:s,description:c,children:d,width:h=500,borderRadius:p="radius.16",showCloseButton:f=!0,closeOnOverlayClick:b=!0,container:w,contentClassName:C,overlayClassName:S,onAnimationEnd:j,dataTestId:k="modal",modalContext:N,onOpen:W,onClose:E,onPointerDownOutside:A,onInteractOutside:P,hideHeader:_=!1,header:F,returnFocusRef:V}=e,q=L(),Y=!_&&!!(F||s),{modalId:H,zIndex:J,stackContext:K,isRootModal:X}=z({open:n,onClose:(0,a.eW)(()=>i(!1),"onClose"),providedContext:N}),Z=(0,l.useCallback)(()=>{null==E||E(),i(!1)},[i,E]);(0,l.useImperativeHandle)(t,()=>({close:Z,isTopmost:(0,a.eW)(()=>K.isTopmost(H),"isTopmost")}),[Z,H,K]);let G=(0,l.useRef)(null),Q=(0,l.useRef)(n);(0,l.useEffect)(()=>{var e;n&&!Q.current?(G.current=null!=(e=null==V?void 0:V.current)?e:document.activeElement instanceof HTMLElement?document.activeElement:null,null==W||W()):!n&&Q.current&&R(G.current,w),Q.
1current=n},[n,W,w,V]);let U=(0,l.useCallback)(e=>{var t;if(!b||e.target!==e.currentTarget)return;let n=null==(t=e.currentTarget.parentElement)?void 0:t.querySelector('[data-qa-marker="'.concat(T.pb.MODAL,'"]'));if(n){let t=n.getBoundingClientRect(),{clientX:r,clientY:a}=e;if(r>=t.left&&r<=t.right&&a>=t.top&&a<=t.bottom)return}Z()},[b,Z]),$=(0,l.useCallback)(e=>{e.stopPropagation()},[]),ee=(0,l.useCallback)(e=>{e.preventDefault(),K.closeAll()},[K]),et=(0,r.jsx)(u,{open:n,onOpenChange:i,children:(0,r.jsxs)(m,{container:w,children:[(0,r.jsx)(x,{className:S,onPointerDown:U,zIndex:J.overlay,"data-testid":"".concat(k,"-overlay"),"data-qa-marker":T.pb.MODAL_OVERLAY}),(0,r.jsxs)(v,{className:(0,o.cx)(q.contentWrapper,C),onClick:$,onAnimationEnd:j,width:"number"==typeof h?"".concat(h,"px"):h,borderRadius:p,zIndex:J.content,"data-testid":k,"data-qa-marker":T.pb.MODAL,"aria-describedby":c?"".concat(H,"-description"):void 0,onEscapeKeyDown:ee,onPointerDownOutside:e=>{b||e.preventDefault(),null==A||A(e)},onInteractOutside:e=>null==P?void 0:P(e),children:[(0,r.jsx)(D.h,{if:Y,children:(0,r.jsx)(M,{title:s,size:null==F?void 0:F.size,titleIcon:null==F?void 0:F.titleIcon,titleIconPosition:null==F?void 0:F.titleIconPosition,showClose:f,closeLabel:null==F?void 0:F.closeLabel,closeElement:null==F?void 0:F.closeElement,closeClassName:B,showSeparator:null==F?void 0:F.showSeparator,secondaryContentElement:null==F?void 0:F.secondaryContentElement,className:(null==F?void 0:F.className)?(0,o.cx)(q.header,F.className):q.header,"data-qa-marker":T.pb.MODAL_HEADER})}),(0,r.jsx)(D.h,{if:_,children:(0,r.jsx)(y,{className:q.srOnly,children:s||"Modal"})}),(0,r.jsx)(D.h,{if:!!c,children:(0,r.jsx)(O,{id:"".concat(H,"-description"),className:q.description,children:c})}),(0,r.jsx)(g.Box,{className:q.body,"data-qa-marker":T.pb.MODAL_BODY,children:d})]})]})});return X?(0,r.jsx)(I.Y5,{value:K,children:et}):et});F.displayName="Modal"},67254:function(e,t,n){n.d(t,{Y5:function(){return c},dc:function(){return i},rA:function(){return s}});var r=n(14994),a=n(54879),l=n(93435);let o=(0,l.createContext)(null),i=(0,a.eW)(()=>(0,l.useContext)(o),"useModalStackContext"),s=(0,a.eW)(()=>{let e={current:[]},t=(0,a.eW)(t=>{let n=e.current.length;return e.current.push(t),n},"push"),n=(0,a.eW)(t=>{let n=e.current.findIndex(e=>e.id===t);if(-1===n)return;let r=e.current.slice(n);for(let e=r.length-1;e>=0;e--)r[e].close();e.current=e.current.slice(0,n)},"remove");return{push:t,remove:n,isTopmost:(0,a.eW)(t=>0!==e.current.length&&e.current[e.current.length-1].id===t,"isTopmost"),closeAll:(0,a.eW)(()=>{for(let t=e.current.length-1;t>=0;t--)e.current[t].close();e.current=[]},"closeAll"),getStackSize:(0,a.eW)(()=>e.current.length,"getStackSize"),get stack(){return e.current}}},"createModalStackContext"),c=(0,a.eW)(e=>{let{children:t,value:n}=e,a=(0,l.useRef)(null);a.current||n||(a.current=s());let i=null!=n?n:a.current;return(0,r.jsx)(o.Provider,{value:i,children:t})},"ModalStackProvider")},52478:function(e,t,n){n.d(t,{i:function(){return s}});var r=Object.defineProperty,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&i(e,n,t[n]);if(a)for(var n of a(t))o.call(t,n)&&i(e,n,t[n]);return e}},30842:function(e,t,n){n.d(t,{i:function(){return l}});var r=n(52478),a=n(93435),l=e=>a.createElement("svg",(0,r.i)({viewBox:"0 0 16 16",fill:"none"},e),a.createElement("path",{d:"M12.667 3.33326L3.33362 12.6666M3.33362 3.33326L12.667 12.6666",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))}}]);

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.