1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59438,e=>{"use strict";e.s(["ButtonSize",()=>h,"ButtonState",()=>y,"ButtonVariant",()=>g,"default",()=>b],59438);var t,a,r,i,o=e.i(91398),n=e.i(91788),s=e.i(60814),l=e.i(45255),d=e.i(6065),u=((t=u||{}).Small="small",t.Medium="medium",t.Large="large",t.XLarge="xLarge",t.FullWidth="FullWidth",t);let c={primary:{rest:{background:l.default.bg.inverse,color:l.default.text.inverse,border:`1px solid ${l.default.border.base}`},hover:{background:l.default.bg.inverseHover,color:l.default.text.inverse,border:`1px solid ${l.default.border.base}`},pressed:{background:l.default.bg.inverse,color:l.default.text.inverse,border:`1px solid ${l.default.border.strong}`},disabled:{background:l.default.bg.inactive,color:l.default.text.inactive,border:`1px solid ${l.default.border.inactive}`}},primaryInverse:{rest:{background:l.default.altBg.inverse,color:l.default.altText.inverse,border:`1px solid ${l.default.altBorder.base}`},hover:{background:l.default.altBg.inverseHover,color:l.default.altText.inverse,border:`1px solid ${l.default.altBorder.base}`},pressed:{background:l.default.altBg.inverse,color:l.default.altText.inverse,border:`1px solid ${l.default.altBorder.strong}`},disabled:{background:l.default.altBg.inactive,color:l.default.altText.inactive,border:`1px solid ${l.default.altBorder.inactive}`}},secondary:{rest:{background:l.default.bg.base,color:l.default.text.base,border:`1px solid ${l.default.border.strong}`},hover:{background:l.default.bg.activeHover,color:l.default.text.strong,border:`1px solid ${l.default.border.inverse}`},pressed:{background:l.default.bg.pressed,color:l.default.text.strong,border:`1px solid ${l.default.border.strong}`},disabled:{background:l.default.bg.base,color:l.default.text.inactive,border:`1px solid ${l.default.border.subtle}`}},secondaryInverse:{rest:{background:l.default.altBg.base,color:l.default.altText.base,border:`1px solid ${l.default.altBorder.strong}`},hover:{background:l.default.altBg.activeHover,color:l.default.altText.strong,border:`1px solid ${l.default.altBorder.inverse}`},pressed:{background:l.default.altBg.pressed,color:l.default.altText.strong,border:`1px solid ${l.default.altBorder.strong}`},disabled:{background:l.default.altBg.base,color:l.default.altText.inactive,border:`1px solid ${l.default.altBorder.subtle}`}},chip:{rest:{background:l.default.bg.base,color:l.default.text.base,border:`1px solid ${l.default.border.strong}`},hover:{background:l.default.bg.activeHover,color:l.default.text.strong,border:`1px solid ${l.default.bg.activeHover}`},pressed:{background:l.default.bg.pressed,color:l.default.text.strong,border:`1px solid ${l.default.border.strong}`},disabled:{background:l.default.bg.base,color:l.default.text.inactive,border:`1px solid ${l.default.border.subtle}`},active:{background:l.default.bg.inverse,color:l.default.text.inverse,border:`1px solid ${l.default.border.base}`}}},p=(e,t,a)=>{let r="small"===a||"medium"===a?"4px":"8px";return e===g.Chip&&(r="20000px"),s.css` 2 background: ${c[e][t]?.background}; 3 color: ${c[e][t]?.color}; 4 border: ${c[e][t]?.border||"none"}; 5 border-radius: ${r}; 6 ${c[e][t]?.borderBottom?`border-bottom: ${c[e][t]?.borderBottom};`:""} 7 text-decoration: ${c[e][t]?.textDecoration||"none"}; 8 `},f={small:s.css` 9 padding: 9px 12px; 10 font-size: 12px; 11 `,medium:s.css` 12 padding: 11.5px 12px; 13 font-size: 14px; 14 `,large:s.css` 15 padding: 18.5px 32px; 16 font-size: 16px; 17 `,xLarge:s.css` 18 padding: 35px 56px; 19 font-size: 18px; 20 `,FullWidth:s.css` 21 padding: var(--spacing-5); 22 font-size: 18px; 23 width: 100%; 24 `},m=s.default.button.withConfig({displayName:"styles__StyledCta",componentId:"sc-b76fb35d-0"})` 25 cursor: pointer; 26 display: inline-flex; 27 justify-content: center; 28 align-items: center; 29 text-transform: capitalize; 30 ${d.default.default.bold}; 31 transition: all 0.35s ease-in-out; 32 33 ${({variant:e,size:t})=>p(e,y.Rest,t)} 34 ${({size:e})=>f[e]} 35 36 @media(hover: hover) { 37 &:hover { 38 ${({variant:e,size:t})=>p(e,y.Hover,t)} 39 } 40 } 41 42 &:active { 43 ${({variant:e,size:t})=>p(e,y.Pressed,t)} 44 } 45 46 &:disabled {
47 cursor: not-allowed; 48 ${({variant:e,size:t})=>p(e,y.Disabled,t)} 49 } 50 51 &.active { 52 ${({variant:e,size:t})=>p(e,y.Active,t)} 53 } 54`;var h=((a={}).Small="small",a.Medium="medium",a.Large="large",a.XLarge="xLarge",a.FullWidth="FullWidth",a),g=((r={}).Primary="primary",r.PrimaryInverse="primaryInverse",r.Secondary="secondary",r.SecondaryInverse="secondaryInverse",r.Chip="chip",r),y=((i={}).Rest="rest",i.Hover="hover",i.Pressed="pressed",i.Disabled="disabled",i.Active="active",i);let b=(0,n.forwardRef)(({className:e,children:t,disabled:a,onClick:r,type:i="button",variant:n="primary",size:s="medium",...l},d)=>(0,o.jsx)(m,{type:i,className:e,disabled:a,onClick:r,variant:n,size:s,ref:d,...l,children:t}))},45813,e=>{"use strict";var t=e.i(23336);e.s(["mixins",()=>t.default])},55261,e=>{"use strict";var t=e.i(86748);e.s(["format",()=>t.default])},14398,e=>{"use strict";var t=e.i(21510);e.s(["isValid",()=>t.default])},4658,94960,e=>{"use strict";var t=e.i(14398),a=e.i(55261),r=e.i(99306),i=e.i(13122),o=e.i(99213);function n(e,t){(0,o.default)(2,arguments);var a=(0,r.default)(t);return(0,i.default)(e,36e5*a)}e.s(["addHours",()=>n],94960);var s=e.i(43103);let l="America/Los_Angeles";function d(){return new Date(new Date().toLocaleString("en-US",{timeZone:l}))}function u(){return new Date(new Date().toLocaleString("en-US",{timeZone:l})).toISOString()}function c(){let e=new Date(new Date().toLocaleString("en-US",{timeZone:l}));return e.setHours(-12,0,0,0),e.toISOString()}function p(e){let t=new Date(e||void 0).toLocaleString("en-US",{timeZone:l});return"Invalid Date"===t?"Invalid Date":new Date(t)}function f(e,t=!1,a=!1){let r=s.default.toString(e),i=s.default.split(r,"T")[0],[o,n,l]=s.default.split(i,"-"),d=Number(o),u=Number(n)-1,c=Number(l),p=0,m=0;if(a){let e=s.default.split(r,"T")[1],[t,a]=s.default.split(e,":");p=Number(t),m=Number(a)}return t&&(p=23,m=59),new Date(d,u,c,p,m,0,0)}e.s(["convertISODateToLA",()=>p,"daysOfTheWeek",0,["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],"formatDateRange",0,(e,t)=>{let r=n(e,7),i=n(t,7),o=new Date(r.toLocaleString("en-US",{timeZone:l})),s=new Date(i.toLocaleString("en-US",{timeZone:l})),d=o.getFullYear()===s.getFullYear(),u=(0,a.format)(o,d?"MMM d":"MMM d, yyyy"),c=(0,a.format)(s,"MMM d, yyyy");return`${u}â${c}`},"formatPaymentDeadline",0,e=>{if(!e)return"";let r=p(e);if(!(r instanceof Date)||!(0,t.isValid)(r))return"";let i=(0,a.format)(r,"EEEE, MMM d, yyyy"),o=(0,a.format)(r,"h:mm a").toLowerCase();return`${i} - ${o} PT`},"formatVisitDate",0,e=>{if(!e)return"";let r=p(e);return r instanceof Date&&(0,t.isValid)(r)?(0,a.format)(r,"EEEE, MMM d, yyyy"):""},"getISONowInLA",()=>u,"getNowInLA",()=>d,"getStartOfToday",()=>c,"parseContentfulDate",()=>f],4658)},2396,60207,5431,e=>{"use strict";e.i(89695);var t=e.i(3800),a=e.i(43103),r=e.i(99523),i=e.i(23886),o=e.i(99213);function n(e){(0,o.default)(1,arguments);var t=(0,i.default)(e);return t.setHours(0,0,0,0),t}function s(e,t){(0,o.default)(2,arguments);var a=n(e),r=n(t);return a.getTime()===r.getTime()}e.s(["default",()=>n],60207),e.s(["isSameDay",()=>s],5431);let l="America/Los_Angeles",d="en-US",u=(e,t=!1)=>{let r=a.default.toString(e),i=a.default.split(r,"T")[0],[o,n,s]=a.default.split(i,"-"),l=Number(o),d=Number(n)-1,u=Number(s),c=0,p=0;return t&&(c=23,p=59),new Date(l,d,u,c,p,0,0)},c=e=>"Invalid Date"!==new Date(e).toString();e.s(["TIMEZONE",0,l,"convertISODateToLA",0,e=>new Date(new Date(e).toLocaleString("en-US",{timeZone:"America/Los_Angeles"})),"formatPressCardStyleDate",0,e=>{let t=(0,r.default)(e).startOf("day").fromNow(),a=(0,r.default)(e).format("MM.DD.YYYY");return 24>(0,r.default)().diff(e,"hours")&&(t=(0,r.default)(e).fromNow()),`${t} - ${a}`},"getDaysUntil",0,e=>{let a=t.DateTime.local(),r=t.DateTime.fromISO(e).diff(a,"days");return r?.days},"getFormattedDate",0,e=>t.DateTime.fromISO(e).setZone(l).toFormat("DDD"),"getFormattedMonthDayYear",0,e=>t.DateTime.fromISO(e).setZone(l).toFormat("LLLL d, yyyy"),"getFormattedMonthYear",0,e=>t.DateTime.fromISO(e).setZone(l).toFormat("LLLL, yyyy"),"getFormattedTime",0,e=>{let a=t.DateTime.fromISO(e).setZone(l).toFormat("t",{locale:d});return`${a} PT`},"getFormattedTimeWithoutZone",0,e=>t.DateTime.fromISO(e).setZone(l).toFormat("t",{locale:d}),"getISONowInLA",0,()=>new Date(t.DateTime.local().setZone(l)).toISOString(),"getLargeFormattedDate",0,(e,r)=>{let i=e?.event_type==="repeating",o=e?.sessions||[],n=!!o?.length,l=u(r?.activeStartDate),d=u(r?.activeEndDate),p=i||!s(l,d);if(!n||!c(l)||!c(d))return"";if(p){let e=t.DateTime.fromJSDate(l).setZone("America/Los_Angeles").toFormat("LLLL d, yyyy"),a=t.DateTime.fromJSDate(d).setZone("America/Los_Angeles").toFormat("LLLL d, yyyy");return e===a?e:`${e}â${a}`}let f=o?.[0],m=a.default.get(e,"metadata.date_range.value"),h=new Date(f?.start_datetime);return m||t.DateTime.fromJSDate(h).setZone("America/Los_Angeles").toFormat("EEE, MMM d, yyyy")},"isValidDate",0,c,"parseContentfulDate",0,u],2396)},51874,e=>{"use strict";var t=e.i(99306),a=e.i(23886),r=e.i(99213);function i(e,i){(0,r.default)(2,arguments);var o=(0,a.default)(e),n=(0,t.default)(i);return isNaN(n)?new Date(NaN):(n&&o.setDate(o.getDate()+n),o)}e.s(["addDays",()=>i],51874)},44164,91046,e=>{"use strict";e.i(50461);var t=e.i(43103),a=e.i(55261),r=e.i(51874),i=e.i(99523),o=e.i(4658),n=e.i(2396),s=e.i(53681);function l({payloads:e,excludedEventDayKeys:a}){let r=new Set(Array.from(a,String)),i={},o=new Set;for(let a of e)for(let e of function(e){try{let{_data:a}=e.event_session,{_data:r}=e.ticket_group,{_data:i}=e.ticket_type,{_data:o}=e.venue,{_data:s}=e.event_template,l=t.default.groupBy(r,"event_template_id"),d=t.default.groupBy(i,"ticket_group_id"),u=t.default.keyBy(o,"id"),c=t.default.keyBy(s,"id"),p=[];for(let e of a){let t=e.event_template_id,a=c[t];if(!a)continue;let r=l[t]?.[0]?.id;if(!r)continue;let i=d[r]?.[0]?.id;if(!i)continue;let o=u[a.venue_id]?.name,s=(0,n.getFormattedDate)(e.start_datetime),f=(0,n.getFormattedTime)(e.start_datetime),m=(0,n.getFormattedTimeWithoutZone)(e.start_datetime);p.push({...e,programId:t,eventCategory:a?.category,venue:o,ticket_group_id:r,ticket_type_id:i,formattedDate:s,formattedShowtime:f,formattedShowtimeWithoutZone:m})}return p}catch(e){return console.error("toShowtimes error:",e),[]}}(a)){let t=String(e.programId),a=u(e.start_datetime),n=`${t}::${a}`;r.has(n)||(i[n]||(i[n]={id:e.programId,isoDate:a,showtimes:[]}),i[n].showtimes.push(e),o.add(t))}return{events:Object.values(i),ticketureIds:Array.from(o)}}function d({events:e,programs:a}){let r=t.default.groupBy(e,e=>String(e.id)),i=t.default.flatMap(a,({ticketureIdProduction:e,ticketureIdTest:t,...a})=>(r[String(e)]??[]).concat(r[String(t)]??[]).map(r=>({...a,ticketureIdProduction:e,ticketureIdTest:t,event:r})));return t.default.orderBy(i,[e=>e?.event?.isoDate,e=>+!!t.default.some(e?.event?.showtimes,e=>e?.eventCategory===s.SPECIAL_EXHIBITION_CATEGORY),e=>t.default.minBy(e?.event?.showtimes,e=>e.start_datetime)?.start_datetime],["asc","asc","asc"])}let u=e=>{try{if(!e)return"";return i.default.tz(e,n.TIMEZONE).startOf("day").toISOString()}catch{return""}};e.s(["formatTicketureAndContentfulUpsells",()=>d,"formatTicketureUpsells",()=>l,"toIsoDate",0,u],91046);let c=t.default.join(t.default.map(s.PROGRAM_CATEGORIES,e=>e),",");async function p(e){let t=`${(0,a.format)((0,o.getNowInLA)(),"y-MM-dd")}T07:00:00.000Z`,r=`https://tickets.academymuseum.org/cached_api/events/available/?id._in=${e}&event_session.start_datetime._gte=${t}&_embed=venue,event_session,ticket_group,ticket_type&ticket_group.hidden_type._prefix=public`;JSON.stringify({url:r,method:"GET"});try{return await fetch(r,{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json())}catch(e){return console.log(e),null}}async function f(e){let a=`https://tickets.academymuseum.org/cached_api/events/${e}?_embed=ticket_group,ticket_type,meta,venue,event_session,message_rule&ticket_group.hidden_type._prefix=public`;JSON.stringify({url:a,method:"GET"});try{let e=await fetch(a,{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>
54e.json()),r=e.ticket_group._data,i=e.ticket_type._data,o=e.meta._data.reduce((e,t)=>{let{metakey:a}=t;return{...e,[a]:t}},{}),n=e.venue._data[0].name,s=e.venue._data[0].website,l=e?.event_session?._data,d=t.default.keyBy(r,"id"),u=t.default.every(i,e=>0===Number(e.currency_amount)),c="single"===e.event_type||l?.length===1,p=t.default.every(l,e=>e.sold_out),f=r?.length===1&&1===i.length&&t.default.every(r,e=>1===e.max_tickets_per_order),m=c&&f;return e.metadata=o,e.isSoldOut=p,e.isFreeEvent=u,e.isSingleEvent=c,e.isSingleQuantityEvent=f,e.isSingleDayTimeQuantityEvent=m,e.sessions=l,e.venue=n,e.venueUrl=s,e.ticketGroups=d,e.ticketTypes=i,e.messageRules=e?.message_rule?._data||null,{...e.event_template._data[0],...e}}catch(e){return console.error(e),null}}async function m(){let e="https://tickets.academymuseum.org/cached_api/events/available?_withmemberevents&_embed=ticket_group,ticket_type,meta,venue&ticket_group.hidden_type._prefix=public";JSON.stringify({url:e,method:"GET"});try{return await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>({events:e.event_template._data,ticketGroups:e.ticket_group._data,ticketTypes:e.ticket_type._data,metadata:e.meta._data,venues:e.venue._data}))}catch(e){}}async function h(){let e=`${(0,a.format)((0,o.getNowInLA)(),"y-MM-dd")}T07:00:00.000Z`,t=`https://tickets.academymuseum.org/cached_api/events/available?event_session.start_datetime._gte=${e}&_withmemberevents&category._in=${c}&_embed=event_session,ticket_group,ticket_type,venue&_sort=event_session.start_datetime`;JSON.stringify({url:t,method:"GET"});try{return await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json())}catch(e){return console.error(e),null}}async function g(){let e=(0,o.getNowInLA)(),t=`${(0,a.format)(e,"y-MM-dd")}T07:00:00.000Z`,i=`${(0,a.format)((0,r.addDays)(e,1),"y-MM-dd")}T07:59:59.999Z`,n=`https://tickets.academymuseum.org/cached_api/events/available?event_session.start_datetime._range=${t},${i}&_withmemberevents&_embed=event_session,venue&_sort=event_session.start_datetime`;JSON.stringify({url:n,method:"GET"});try{return await fetch(n,{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json())}catch(e){return console.error(e),null}}async function y(e){try{let a=t.default.uniq(e.map(e=>e.start_datetime)),r=t.default.uniq((a??[]).map(e=>u(e)));if(0===r.length)return{events:[],ticketureIds:[]};let o=r.map(e=>{let t=i.default.tz(e,"America/Los_Angeles").add(1,"day").startOf("day").toISOString();return`https://tickets.academymuseum.org/cached_api/events/available?event_session.start_datetime._range=${e},${t}&_withmemberevents&category._in=${c},Special Exhibition&_embed=event_session,ticket_group,ticket_type,venue&_sort=event_session.start_datetime`}),n=await Promise.all(o.map(async e=>(JSON.stringify({url:e,method:"GET"}),fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json())))),s=e.map(e=>`${e.event_template_id}::${u(e.start_datetime)}`);return l({payloads:n,excludedEventDayKeys:s})}catch(e){return console.error("Error in getTicketureCartUpsells:",e),{events:[],ticketureIds:[]}}}e.s(["getTicketureCartUpsells",()=>y,"getTicketureEventById",()=>f,"getTicketureEvents",()=>m,"getTicketureEventsForIds",()=>p,"getTicketureEventsForToday",()=>g,"getTicketureEventsFromToday",()=>h],44164)},92707,e=>{"use strict";let t=(0,e.i(19365).createSlice)({name:"ticketSelection",initialState:{eventCalendar:null,eventSessions:null,modalError:!1,specialExhibitionsSessions:null,modalProps:null,tkEvents:null,couponError:!1},reducers:{openModal:(e,t)=>{e.modalProps=t.payload},closeModal:e=>{e.modalProps=null},setEventCalendar:(e,t)=>{e.eventCalendar=t.payload},resetEventCalendar:e=>{e.eventCalendar={}},setEventSessions:(e,t)=>{e.eventSessions=t.payload},resetEventSessions:e=>{e.eventSessions=null},setModalError:(e,t)=>{e.modalError=t.payload},resetModalError:e=>{e.modalError=!1},setSpecialExhibitionsSessions:(e,t)=>{e.specialExhibitionsSessions=t.payload},setTkEvents:(e,t)=>{e.tkEvents=t.payload},setCouponError:(e,t)=>
54{e.couponError=t.payload},resetCouponError:e=>{e.couponError=!1}}}),{openModal:a,closeModal:r,setEventCalendar:i,resetEventCalendar:o,resetEventSessions:n,setEventSessions:s,setModalError:l,resetModalError:d,setSpecialExhibitionsSessions:u,setTkEvents:c,setCouponError:p,resetCouponError:f}=t.actions,m=t.reducer;e.s(["default",0,m,"resetCouponError",0,f,"resetEventCalendar",0,o,"resetEventSessions",0,n,"resetModalError",0,d,"setCouponError",0,p,"setEventCalendar",0,i,"setEventSessions",0,s,"setModalError",0,l,"setTkEvents",0,c])},51098,33722,e=>{"use strict";var t=e.i(60677);let a=(0,e.i(19365).createSlice)({name:"modal",initialState:{modalProps:!1},reducers:{setModalProps:(e,t)=>{e.modalProps=t.payload},clearModalProps:e=>{e.modalProps=!1}}}),{setModalProps:r,clearModalProps:i}=a.actions,o=a.reducer;e.s(["clearModalProps",0,i,"default",0,o,"setModalProps",0,r],33722);var n=e.i(91788),s=e.i(92707),l=e.i(76651);e.s(["default",0,()=>{let e=(0,t.useAppDispatch)(),a=(0,t.useAppSelector)(e=>e.modal.modalProps),o=(0,n.useCallback)(t=>{e(r(t))},[e]),d=(0,n.useCallback)(()=>{e((0,s.resetCouponError)()),e(i()),e((0,l.resetCartOperationStatus)())},[e]);return{modalProps:a,openModal:o,closeModal:d,openGlobalCart:(0,n.useCallback)(()=>{e(r({componentName:"GlobalCart",componentProps:{}}))},[e]),closeGlobalCart:d,openTermsModal:(0,n.useCallback)(()=>{e(r({componentName:"TermsModal",componentProps:{}}))},[e]),closeTermsModal:d}}],51098)},31928,e=>{"use strict";var t,a,r,i,o,n=((t={}).sm="sm",t.md="md",t.lg="lg",t.xl="xl",t),s=((a={}).Rest="rest",a.Focused="focused",a.Disabled="disabled",a.Error="error",a),l=((r={}).Medium="medium",r.Large="large",r),d=((i={}).None="none",i.Text="text",i.Icon="icon",i),u=((o={}).Small="small",o.Medium="medium",o);e.s(["ControlSize",()=>l,"FieldState",()=>s,"IconSizes",()=>n,"SwitchSize",()=>u,"SwitchVariant",()=>d])},78270,e=>{"use strict";var t=e.i(91398),a=e.i(31928),r=e.i(60814),i=e.i(72043),o=e.i(45255);let n=r.default.button.withConfig({displayName:"IconButton__Button",componentId:"sc-a5a1cd02-0"})` 55 // .md is default 56 height: 40px; 57 width: 40px; 58 border-radius: 50%; 59 border: 0.4px solid ${o.default.border.base}; 60 display: flex; 61 align-items: center; 62 justify-content: center; 63 cursor: pointer; 64 flex-shrink: 0; 65 66 position: relative; 67 transition: border-color 0.25s ease; 68 &:before { 69 content: ''; 70 position: absolute; 71 height: 100%; 72 width: 100%; 73 border-radius: 100%; 74 background-color: ${o.default.bg.pressed}; 75 transition: opacity 0.25s ease, background-color 0.25s ease; 76 opacity: 0; 77 } 78 79 &:hover:before { 80 opacity: 0.03; 81 } 82 83 &:active:before { 84 opacity: 0.06; 85 } 86 87 &.disabled { 88 pointer-events: none; 89 border-color: ${o.default.border.inactive} !important; 90 &:before { 91 background-color: ${o.default.bg.inactive}; 92 opacity: 1; 93 } 94 95 svg { 96 path { 97 fill: ${o.default.icon.inactive} !important; 98 } 99 } 100 } 101 102 svg { 103 flex-shrink: 0; 104 transform: scale(0.5); 105 106 path { 107 transition: fill 0.25s ease; 108 } 109 } 110 111 &.sm, 112 &.small { 113 height: 40px; 114 width: 40px; 115 116 svg { 117 transform: scale(0.3); 118 } 119 } 120 121 &.lg, 122 &.large { 123 height: 48px; 124 width: 48px; 125 border: 0.6px solid ${o.default.border.base}; 126 127 svg { 128 transform: scale(0.6667); 129 } 130 } 131 132 &.xl, 133 &.xLarge { 134 height: 56px; 135 width: 56px; 136 border: 1px solid ${o.default.border.base}; 137 138 svg { 139 transform: scale(1); 140 } 141 } 142 143 &.ghost { 144 border: unset !important; 145 146 &:before { 147 opacity: 0 !important; 148 } 149 } 150`;e.s(["default",0,({children:e,className:r,size:o=a.IconSizes.md,type:s="button",disabled:l,ghost:d,onClick:u,...c})=>{let p=(0,i.default)(r,o,{disabled:l,ghost:d});return(0,t.jsx)(n,{type:s,className:p,onClick:u,...c,children:e})}])},17410,e=>{"use strict";var t=e.i(91398),a=e.i(91788);e.s(["default",0,({children:e,ellipsis:r="...",lines:i=1,trimWhitespace:o=!1,width:n=0,onTruncate:s,...l})=>{let[d,u]=(0,a.useState)(),[c,p]=(0,a.useState)(),[f,m]=(0,a.useState)(0),[h,g]=(0,a.useState)(0),y=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,a.useRef)(null);(0,a.useEffect)(()=>{b&&b.current&&b.current.parentNode&&b.current.parentNode.removeChild(b.current)},[f]);let x=(0,a.useCallback)(()=>
150{if(!y.current?.parentElement)return;let e=n||Math.floor(y.current.parentElement.getBoundingClientRect().width);if(!e)return window.requestAnimationFrame(()=>x());let t=window.getComputedStyle(y.current),a=[t.fontWeight,t.fontStyle,t.fontSize,t.fontFamily].join(" ");d&&(d.font=a),m(e)},[d,n]);(0,a.useEffect)(()=>{u(document.createElement("canvas").getContext("2d"))},[]),(0,a.useEffect)(()=>(x(),window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x),window.cancelAnimationFrame(h)}),[x,h]);let _=(0,a.useCallback)(e=>{"function"==typeof s&&g(window.requestAnimationFrame(()=>{s(e)}))},[s]),w=(0,a.useCallback)(e=>d?.measureText(e).width||0,[d]),C=e=>e.replace(/\s+$/,""),E=(0,a.useCallback)(()=>{var e;let a,n,s,l,d,u=[],c=(e=b.current,a=document.createElement("div"),n="innerText"in window.HTMLElement.prototype?"innerText":"textContent",a.innerHTML=e?.innerHTML.replace(/\r\n|\r|\n/g," ")||"",s=a[n],(l=document.createElement("div")).innerHTML="foo<br/>bar",l[n]?.replace(/\r\n|\r/g,"\n")!=="foo\nbar"&&(a.innerHTML=a.innerHTML.replace(/<br.*?[/]?>/gi,"\n"),s=a[n]),s||"").split("\n").map(e=>e.split(" ")),p=(d=v.current,d?.offsetWidth||0),m=!0;for(let e=1;e<=i;e++){let a=c[0];if(0===a.length){u.push(),c.shift(),e--;continue}let n=a.join(" ")||"";if(w(n)<=f&&1===c.length){m=!1,u.push(n);break}if(e===i){let e=a.join(" "),i=0,s=e.length-1;for(;i<=s;){let t=Math.floor((i+s)/2);w(e.slice(0,t+1))+p<=f?i=t+1:s=t-1}let l=e.slice(0,i);if(o)for(l=C(l);!l.length&&u.length;){let e=u.pop();e&&"string"==typeof e&&(l=C(e))}n=(0,t.jsxs)("span",{children:[l,r]})}else{let t=0,r=a.length-1;for(;t<=r;){let e=Math.floor((t+r)/2);w(a.slice(0,e+1).join(" "))<=f?t=e+1:r=e-1}if(0===t){e=i-1;continue}n=a.slice(0,t).join(" "),c[0].splice(0,t)}u.push(n)}return _(m),u},[r,i,w,_,f,o]),T=(e,a,r)=>{if(a===r.length-1)return(0,t.jsx)("span",{children:e},a);{let r=(0,t.jsx)("br",{},`${a}br`);return e?[(0,t.jsx)("span",{children:e},a),r]:r}};return(0,a.useEffect)(()=>{y.current&&f&&(i>0?p(E().map(T)):(p(e),_(!1)))},[e,i,f,E,_]),(0,t.jsxs)("span",{...l,ref:y,children:[(0,t.jsx)("span",{children:c}),(0,t.jsx)("span",{ref:b,children:e}),(0,t.jsx)("span",{ref:v,style:{position:"fixed",visibility:"hidden",top:0,left:0},children:r})]})}])},89587,e=>{"use strict";e.s(["stripHTML",0,(e="")=>{try{return new DOMParser().parseFromString(e,"text/html").documentElement.textContent}catch{return e?.replace(/<[^>]*>?/gm,"")}}])},15198,e=>{"use strict";var t=e.i(99306),a=e.i(23886),r=e.i(99213);function i(e,i){(0,r.default)(2,arguments);var o=(0,a.default)(e),n=(0,t.default)(i);if(isNaN(n))return new Date(NaN);if(!n)return o;var s=o.getDate(),l=new Date(o.getTime());return(l.setMonth(o.getMonth()+n+1,0),s>=l.getDate())?l:(o.setFullYear(l.getFullYear(),l.getMonth(),s),o)}e.s(["addMonths",()=>i],15198)},98979,e=>{"use strict";let t,a;var r,i,o,n,s,l=e.i(91788),d=Object.defineProperty,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,f=(e,t,a)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;(e=>{let t=class{constructor(e,a,r,o){if(this.version=e,this.errorCorrectionLevel=a,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version value out of range");if(o<-1||o>7)throw RangeError("Mask value out of range");this.size=4*e+17;let n=[];for(let e=0;e<this.size;e++)n.push(!1);for(let e=0;e<this.size;e++)this.modules.push(n.slice()),this.isFunction.push(n.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const a=this.getPenaltyScore();a<e&&(o=t,e=a),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(a,r){let i=e.QrSegment.makeSegments(a);return t.encodeSegments(i,r)}static encodeBinary(a,r){let i=e.QrSegment.makeBytes(a);return t.encodeSegments([i],r)}static encodeSegments(e,r,o=1,s=40,l=-1,d=!0){let u,c;if(!(t.MIN_VERSION<=o&&o<=s&&s<=t.MAX_VERSION)||l<-1||l>7)throw RangeError("Invalid value");for(u=o;;u++){let a=8*t.getNumDataCodewords(u,r),i=n.getTotalBits(e,u);if(i<=a){c=i;break}if(u>=s)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&c<=8*t.getNumDataCodewords(u,e)&&(r=e);let p=[];for(let t of e)for(let e of(a(t.mode.modeBits,4,p),a(t.numChars,t.mode.numCharCountBits(u),p),t.getData()))p.push(e);i(p.length==c);let f=8*t.getNumDataCodewords(u,r);i(p.length<=f),a(0,Math.min(4,f-p.length),p),a(0,(8-p.length%8)%8,p),i(p.length%8==0);for(let e=236;p.length<f;e^=253)a(e,8,p);let m=[];for(;8*m.length<p.length;)m.push(0);return p.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(u,r,m,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let a=0;a<t;a++)for(let r=0;r<t;r++)(0!=a||0!=r)&&(0!=a||r!=t-1)&&(a!=t-1||0!=r)&&this.drawAlignmentPattern(e[a],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,a=t;for(let e=0;e<10;e++)a=a<<1^(a>>>9)*1335;let o=(t<<10|a)^21522;i(o>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(o,e));
vendor: 6,797 bytes, line 150
150this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(o,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(o,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(o,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let a=r(t,e),i=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(i,o,a),this.setFunctionModule(o,i,a)}}drawFinderPattern(e,t){for(let a=-4;a<=4;a++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(a)),o=e+r,n=t+a;0<=o&&o<this.size&&0<=n&&n<this.size&&this.setFunctionModule(o,n,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let a=-2;a<=2;a++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+a,1!=Math.max(Math.abs(r),Math.abs(a)))}setFunctionModule(e,t,a){this.modules[t][e]=a,this.isFunction[t][e]=!0}addEccAndInterleave(e){let a=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(a,r))throw RangeError("Invalid argument");let o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][a],n=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][a],s=Math.floor(t.getNumRawDataModules(a)/8),l=o-s%o,d=Math.floor(s/o),u=[],c=t.reedSolomonComputeDivisor(n);for(let a=0,r=0;a<o;a++){let i=e.slice(r,r+d-n+(a<l?0:1));r+=i.length;let o=t.reedSolomonComputeRemainder(i,c);a<l&&i.push(0),u.push(i.concat(o))}let p=[];for(let e=0;e<u[0].length;e++)u.forEach((t,a)=>{(e!=d-n||a>=l)&&p.push(t[e])});return i(p.length==s),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let a=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let i=0;i<this.size;i++)for(let o=0;o<2;o++){let n=t-o,s=(t+1&2)==0?this.size-1-i:i;!this.isFunction[s][n]&&a<8*e.length&&(this.modules[s][n]=r(e[a>>>3],7-(7&a)),a++)}}i(a==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let a=0;a<this.size;a++){let r;switch(e){case 0:r=(a+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=a%3==0;break;case 3:r=(a+t)%3==0;break;case 4:r=(Math.floor(a/3)+Math.floor(t/2))%2==0;break;case 5:r=a*t%2+a*t%3==0;break;case 6:r=(a*t%2+a*t%3)%2==0;break;case 7:r=((a+t)%2+a*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][a]&&r&&(this.modules[t][a]=!this.modules[t][a])}}getPenaltyScore(){let e=0;for(let a=0;a<this.size;a++){let r=!1,i=0,o=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[a][n]==r?5==++i?e+=t.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[a][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*t.PENALTY_N3}for(let a=0;a<this.size;a++){let r=!1,i=0,o=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[n][a]==r?5==++i?e+=t.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][a],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*t.PENALTY_N3}for(let a=0;a<this.size-1;a++)for(let r=0;r<this.size-1;r++){let i=this.modules[a][r];i==this.modules[a][r+1]&&i==this.modules[a+1][r]&&i==this.modules[a+1][r+1]&&(e+=t.PENALTY_N2)}let a=0;for(let e of this.modules)a=e.reduce((e,t)=>e+ +!!t,a);let r=this.size*this.size,o=Math.ceil(Math.abs(20*a-10*r)/r)-1;return i(0<=o&&o<=9),i(0<=(e+=o*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),a=[6];for(let r=this.size-7;a.length<e;r-=t)a.splice(1,0,r);return a}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version number out of range");let a=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;a-=(25*t-10)*t-55,e>=7&&(a-=36)}return i(208<=a&&a<=29648),a}static getNumDataCodewords(e,a){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[a.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let a=[];for(let t=0;t<e-1;t++)a.push(0);a.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<a.length;e++)a[e]=t.reedSolomonMultiply(a[e],r),e+1<a.length&&(a[e]^=a[e+1]);r=t.reedSolomonMultiply(r,2)}return a}static reedSolomonComputeRemainder(e,a){let r=a.map(e=>0);for(let i of e){let e=i^r.shift();r.push(0),a.forEach((a,i)=>r[i]^=t.reedSolomonMultiply(a,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let a=0;for(let r=7;r>=0;r--)a=a<<1^(a>>>7)*285^(t>>>r&1)*e;return i(a>>>8==0),a}finderPenaltyCountPatterns(e){let t=e[1];i(t<=3*this.size);let a=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(a&&e[0]>=4*t&&e[6]>=t?1:0)+(a&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,a){return e&&(this.finderPenaltyAddHistory(t,a),t=0),t+=this.size,this.finderPenaltyAddHistory(t,a),this.finderPenaltyCountPatterns(a)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function a(e,t,a){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let r=t-1;r>=0;r--)a.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;let o=class{constructor(e,t,a){if(this.mode=e,this.numChars=t,this.bitData=a,t<0)throw RangeError("Invalid argument");this.bitData=a.slice()}static makeBytes(e){let t=[];for(let r of e)a(r,8,t);return new o(o.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!o.isNumeric(e))throw RangeError("String contains
150non-numeric characters");let t=[];for(let r=0;r<e.length;){let i=Math.min(e.length-r,3);a(parseInt(e.substr(r,i),10),3*i+1,t),r+=i}return new o(o.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){let t;if(!o.isAlphanumeric(e))throw RangeError("String contains unencodable characters in alphanumeric mode");let r=[];for(t=0;t+2<=e.length;t+=2){let i=45*o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));a(i+=o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),11,r)}return t<e.length&&a(o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,r),new o(o.Mode.ALPHANUMERIC,e.length,r)}static makeSegments(e){return""==e?[]:o.isNumeric(e)?[o.makeNumeric(e)]:o.isAlphanumeric(e)?[o.makeAlphanumeric(e)]:[o.makeBytes(o.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw RangeError("ECI assignment value out of range");if(e<128)a(e,8,t);else if(e<16384)a(2,2,t),a(e,14,t);else if(e<1e6)a(6,3,t),a(e,21,t);else throw RangeError("ECI assignment value out of range");return new o(o.Mode.ECI,0,t)}static isNumeric(e){return o.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return o.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let a=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;a+=4+e+r.bitData.length}return a}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let a=0;a<e.length;a++)"%"!=e.charAt(a)?t.push(e.charCodeAt(a)):(t.push(parseInt(e.substr(a+1,2),16)),a+=2);return t}},n=o;n.NUMERIC_REGEX=/^[0-9]*$/,n.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,n.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=n})(s||(s={})),i=(r=s||(s={})).QrCode||(r.QrCode={}),(t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}}).LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),i.Ecc=t,n=(o=s||(s={})).QrSegment||(o.QrSegment={}),(a=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}).NUMERIC=new a(1,[10,12,14]),a.ALPHANUMERIC=new a(2,[9,11,13]),a.BYTE=new a(4,[8,16,16]),a.KANJI=new a(8,[8,10,12]),a.ECI=new a(7,[0,0,0]),n.Mode=a;var m=s,h={L:m.QrCode.Ecc.LOW,M:m.QrCode.Ecc.MEDIUM,Q:m.QrCode.Ecc.QUARTILE,H:m.QrCode.Ecc.HIGH};function g(e){let{value:t,size:a=128,level:r="L",bgColor:i="#FFFFFF",fgColor:o="#000000",includeMargin:n=!1,imageSettings:s}=e,d=((e,t)=>{var a={};for(var r in e)c.call(e,r)&&0>t.indexOf(r)&&(a[r]=e[r]);if(null!=e&&u)for(var r of u(e))0>t.indexOf(r)&&p.call(e,r)&&(a[r]=e[r]);return a})(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),g=m.QrCode.encodeText(t,h[r]).getModules(),y=4*!!n,b=g.length+2*y,v=function(e,t,a,r){if(null==r)return null;let i=e.length+4*!!a*2,o=Math.floor(.1*t),n=i/t,s=(r.width||o)*n,l=(r.height||o)*n,d=null==r.x?e.length/2-s/2:r.x*n,u=null==r.y?e.length/2-l/2:r.y*n,c=null;if(r.excavate){let e=Math.floor(d),t=Math.floor(u),a=Math.ceil(s+d-e),r=Math.ceil(l+u-t);c={x:e,y:t,w:a,h:r}}return{x:d,y:u,h:l,w:s,excavation:c}}(g,a,n,s),x=null;if(null!=s&&null!=v){var _,w;null!=v.excavation&&(_=g,w=v.excavation,g=_.slice().map((e,t)=>t<w.y||t>=w.y+w.h?e:e.map((e,t)=>(t<w.x||t>=w.x+w.w)&&e))),x=l.default.createElement("image",{xlinkHref:s.src,height:v.h,width:v.w,x:v.x+y,y:v.y+y,preserveAspectRatio:"none"})}let C=function(e,t=0){let a=[];return e.forEach(function(e,r){let i=null;e.forEach(function(o,n){if(!o&&null!==i){a.push(`M${i+t} ${r+t}h${n-i}v1H${i+t}z`),i=null;return}if(n===e.length-1){if(!o)return;null===i?a.push(`M${n+t},${r+t} h1v1H${n+t}z`):a.push(`M${i+t},${r+t} h${n+1-i}v1H${i+t}z`);return}o&&null===i&&(i=n)})}),a.join("")}(g,y);return l.default.createElement("svg",((e,t)=>{for(var a in t||(t={}))c.call(t,a)&&f(e,a,t[a]);if(u)for(var a of u(t))p.call(t,a)&&f(e,a,t[a]);return e})({height:a,width:a,viewBox:`0 0 ${b} ${b}`},d),l.default.createElement("path",{fill:i,d:`M0,0 h${b}v${b}H0z`,shapeRendering:"crispEdges"}),l.default.createElement("path",{fill:o,d:C,shapeRendering:"crispEdges"}),x)}!function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}}(),e.s(["QRCodeSVG",()=>g])},94827,64898,e=>{"use strict";var t=e.i(91398),a=e.i(91788),r=e.i(91567),i=e.i(55468),o=e.i(51874),n=e.i(15198),s=e.i(28521),l=e.i(3828),d=e.i(72043),u=e.i(89587),c=e.i(26019),p=e.i(59438),f=e.i(60814);e.i(21441);var m=e.i(28538),h=e.i(53194),g=e.i(45813),y=e.i(41452);let b=f.default.div.withConfig({displayName:"styles__Wrap",componentId:"sc-219aa7b4-0"})` 151 font-family: 'GT Cinetype'; 152 153 &.horizontal { 154 display: flex; 155 gap: var(--spacing-4); 156 }
157`,v=f.default.a.withConfig({displayName:"styles__ThumbnailAnchor",componentId:"sc-219aa7b4-1"})` 158 display: block; 159 position: relative; 160 width: 100%; 161 162 .horizontal & { 163 width: 205px; 164 } 165 166 &:not([href]) { 167 cursor: auto; 168 } 169`,x=f.default.div.withConfig({displayName:"styles__ThumbnailWrapper",componentId:"sc-219aa7b4-2"})` 170 position: relative; 171 width: 100%; 172 height: auto; 173 aspect-ratio: 16/9; 174 175 .square & { 176 aspect-ratio: 1/1; 177 } 178 179 .full & { 180 aspect-ratio: 4/3; 181 } 182 183 .wide & { 184 aspect-ratio: 16/9; 185 } 186`,_=(0,f.default)(c.default).withConfig({displayName:"styles__Thumbnail",componentId:"sc-219aa7b4-3"})` 187 object-fit: cover; 188`,w=f.default.div.withConfig({displayName:"styles__Tag",componentId:"sc-219aa7b4-4"})` 189 ${y.heading6Styles} 190 background-color: ${m.colors.bg.inverse}; 191 color: ${m.colors.text.inverse}; 192 left: 0; 193 padding: var(--spacing-4) var(--spacing-5); 194 pointer-events: none; 195 position: absolute; 196 top: 0; 197 198 ${h.media.small` 199 padding: var(--spacing-3); 200 `} 201`,C=f.default.div.withConfig({displayName:"styles__Body",componentId:"sc-219aa7b4-5"})` 202 .horizontal & { 203 width: calc(100% - 205px - var(--spacing-4)); 204 } 205`,E=f.default.p.withConfig({displayName:"styles__Category",componentId:"sc-219aa7b4-6"})` 206 font-size: 14px; 207 font-weight: 700; 208 letter-spacing: 1.12px; 209 color: ${m.colors.text.subtle}; 210 ${g.mixins.marginTop(4)} 211 212 .horizontal & { 213 color: ${m.colors.text.inactive}; 214 margin-top: 0; 215 text-align: left; 216 } 217`,T=f.default.div.withConfig({displayName:"styles__InfoWrap",componentId:"sc-219aa7b4-7"})` 218 width: 100%; 219 display: flex; 220 flex-direction: column; 221 ${g.mixins.marginTop(4)} 222 gap: 12px; 223 224 .horizontal & { 225 ${g.mixins.marginTop(2)} 226 gap: var(--spacing-4); 227 } 228`,S=f.default.a.withConfig({displayName:"styles__TitleAnchor",componentId:"sc-219aa7b4-8"})` 229 font-size: 28px; 230 font-weight: 700; 231 line-height: 34px; 232 color: ${m.colors.text.base}; 233 text-wrap: wrap; 234 235 .horizontal & { 236 color: ${m.colors.text.inverse}; 237 font-size: 20px; 238 text-align: left; 239 } 240 241 .exhibition-card & { 242 p { 243 display: inline; 244 } 245 } 246`,M=f.default.div.withConfig({displayName:"styles__Description",componentId:"sc-219aa7b4-9"})` 247 cursor: text; 248 font-size: 18px; 249 font-weight: 700; 250 line-height: 26px; 251 display: -webkit-box; 252 -webkit-line-clamp: 2; 253 -webkit-box-orient: vertical; 254 -webkit-text-size-adjust: 100%; 255 overflow: hidden; 256 text-overflow: ellipsis; 257 max-height: calc(2 * 26px); 258 259 a { 260 color: ${m.colors.text.base}; 261 pointer-events: none; 262 } 263 264 .horizontal & { 265 color: ${m.colors.text.inverse}; 266 font-size: 14px; 267 line-height: 20px; 268 max-height: calc(3 * 20px); 269 text-align: left; 270 -webkit-line-clamp: 3; 271 } 272 273 .square & { 274 max-height: unset; 275 text-overflow: unset; 276 -webkit-line-clamp: unset; 277 } 278`,k=f.default.div.withConfig({displayName:"styles__DateTimeWrapper",componentId:"sc-219aa7b4-10"})``,N=f.default.p.withConfig({displayName:"styles__DateTimeText",componentId:"sc-219aa7b4-11"})` 279 font-size: 14px; 280 font-weight: 700; 281 line-height: 1.4; 282 letter-spacing: 1.12px; 283 color: ${m.colors.text.subtle}; 284 285 .horizontal & { 286 display: none; 287 } 288`,I=(0,f.default)(N).withConfig({displayName:"styles__Venue",componentId:"sc-219aa7b4-12"})` 289 ${g.mixins.marginTop(1)} 290 291 .horizontal & { 292 display: none; 293 } 294`,$=(0,f.default)(p.default).withConfig({displayName:"styles__Button",componentId:"sc-219aa7b4-13"})` 295 ${g.mixins.paddingY(5)} 296 ${g.mixins.paddingX(8)} 297 ${g.mixins.marginTop(6)} 298 299 .horizontal & { 300 display: none; 301 } 302`,D=({aspectRatio:e,cta:a,description:r,image:i,isHorizontal:o,metadata:n,modifierClass:s,secondaryMetadata:c,tertiaryMetadata:p,tag:f,title:m,type:h,typeClass:g,url:y})=>{let $=(0,l.useRouter)(),D={"1:1":"square","4:3":"full","16:9":"wide"},L=D?.[e]||D["16:9"],A=(e,t)=>{!O&&t&&($.push(t),e.preventDefault())},j=!!n?.length,R=!!c?.length,P=!!p?.length,O=y?.includes("http");return(0,t.jsxs)(b,{className:(0,d.default)({[g]:g},L,o?"horizontal":"",{[s]:s}),children:[(0,t.jsxs)(v,{onClick:e=>A(e,y),href:y,...O?{target:"_blank"}:{},children:[(0,t.jsx)(x,{children:(0,t.jsx)(_,{sizes:"(max-width: 992px) 100vw, 40vw",fill:!0,src:i?.thumbnailUrl||i?.url,alt:i?.description||(0,u.stripHTML)(m),loading:"lazy",quality:"90"})}),f&&(0,t.jsx)(w,{children:f})]}),(0,t.jsxs)(C,{children:[h&&(0,t.jsx)(E,{children:h}),(0,t.jsxs)(T,{children:[(0,t.jsx)(S,{dangerouslySetInnerHTML:{__html:m},onClick:e=>A(e,y),href:y,...O?{target:"_blank"}:{}}),r&&(0,t.jsx)(M,{dangerouslySetInnerHTML:{__html:r}}
302),(0,t.jsxs)(k,{children:[j&&(0,t.jsx)(N,{children:n.join(" | ")}),R&&(0,t.jsx)(N,{children:c.join(" | ")})]})]}),P&&(0,t.jsx)(I,{children:p?.join(" | ")}),a&&a]})]})};D.propTypes={aspectRatio:r.default.string,cta:r.default.any,description:r.default.string,handleClick:r.default.func,image:r.default.object,isHorizontal:r.default.bool,metadata:r.default.array,modifierClass:r.default.string,secondaryMetadata:r.default.array,tag:r.default.string,title:r.default.string,type:r.default.string,typeClass:r.default.string,url:r.default.string};var L=e.i(4658);let A=({activeEndDate:e,aspectRatio:a,previewImage:r,exhibitionRunTime:l,exhibitionTitle:d,isHorizontal:u,slug:c})=>{let p,f,m,h,g,y,b,v={...r},x=(p=[],(f=(0,i.documentToHtmlString)(d?.json))&&p.push(f),p.join(" ")),_=(m=[],l&&m.push(l),m),w=`/exhibitions/${c}`,C=(h=(0,L.parseContentfulDate)(e,!0),g=(0,n.addMonths)(h,-2),(0,L.getNowInLA)()>g);return(y=(0,L.parseContentfulDate)(e,!0),b=(0,s.startOfDay)((0,o.addDays)(y,2)),(0,L.getNowInLA)()>b)?null:(0,t.jsx)(D,{aspectRatio:a,image:v,isHorizontal:u,metadata:_,tag:C?"Closing Soon":"",title:x,type:"Exhibition",typeClass:"exhibition-card",url:w})};async function j(e){return fetch("https://academymuseumstore.org/api/2024-01/graphql",{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":"9a1eec5c03f41c33cc3760a15b551102"},body:JSON.stringify({query:e})}).then(e=>e.json())}async function R(e){let t=await j(`{ 303 nodes (ids: ["${e}"]) { 304 ...on Product { 305 title, 306 descriptionHtml, 307 featuredImage { 308 altText, 309 transformedSrc 310 }, 311 onlineStoreUrl, 312 tags 313 } 314 } 315 }`);return t?.data?.nodes?.[0]}A.propTypes={activeEndDate:r.default.any,aspectRatio:r.default.string,backgroundImage:r.default.object,exhibitionFrameworkTitle:r.default.object,exhibitionRunTime:r.default.string,exhibitionTitle:r.default.object,isHorizontal:r.default.bool,slug:r.default.string},e.i(50461);var P=e.i(81529);let O=({aspectRatio:e,cardDescription:r,cardTitle:o,cardType:n,cta:s,description:l,image:d,isHorizontal:u,shopifyProductId:c,title:p,typeHeader:f})=>{let m="shopify"===n&&!!c,h=()=>({aspectRatio:e,description:(0,i.documentToHtmlString)(r?.json)||l,image:{...d||{}},isHorizontal:u,title:(0,i.documentToHtmlString)(o?.json)||p,type:f,typeClass:"generic-card",url:s&&(0,P.getCtaHref)(s)}),[g,y]=(0,a.useState)(null);return((0,a.useEffect)(()=>{(async()=>{if(m){var e;let t,a,r,i;y((e=await R(c),t=h(),a={utm_source:"museum website",utm_medium:"card",utm_campaign:window?.location?.pathname||""},r=new URLSearchParams(a)?.toString(),i=`${e?.onlineStoreUrl}?${r}`,t?.description||(t.description=e?.descriptionHtml),t?.image?.url||(t.image={description:e?.featuredImage?.altText,url:e?.featuredImage?.transformedSrc}),t?.title||(t.title=e?.title),t?.type||(t.type=e?.tags.join(", ")),t.typeClass="generic-shopify-card",t.url=i,t))}else y(h())})()},[m]),g)?(0,t.jsx)(D,{...g}):null};O.propTypes={aspectRatio:r.default.string,cardDescription:r.default.object,cardTitle:r.default.object,cardType:r.default.string,cta:r.default.object,description:r.default.string,image:r.default.object,isHorizontal:r.default.bool,shopifyProductId:r.default.string,title:r.default.string,typeHeader:r.default.string};var F=e.i(27298),z=e.i(51098),B=e.i(30110);let H=({aspectRatio:e,event:a,isHorizontal:r,...o})=>{let{openModal:n}=(0,z.default)(),s=(0,B.getURL)(o),l=o?.image,d=o?.title?.html||(0,i.documentToHtmlString)(o?.programTitle?.json),u=(0,i.documentToHtmlString)((0,B.getDescription)(o)?.json),c=(0,B.getProgramType)(o),f=(0,B.getProgramTag)(o),m=(0,B.hasGetTicketsCta)(a,o),h=(0,B.hasSoldOutCta)(a,o),g=(0,B.hasStandByCta)(a,o),y=(0,B.getProgramMetadata)(a,o),b=(0,B.getProgramSecondaryMetadata)(a,o),v=(0,B.getProgramTertiaryMetadata)(a,o),x=m?(0,t.jsx)($,{variant:p.ButtonVariant.Secondary,onClick:()=>{n({componentName:"TicketingModal",componentProps:{ticketureId:a?.id,program:o,event:a}})},size:p.ButtonSize.Large,children:(0,t.jsx)(F.FormattedMessage,{id:"app.components.ProgramCard.getTickets",defaultMessage:"Get Tickets"})}):h||g?(0,t.jsxs)($,{size:p.ButtonSize.Large,variant:p.ButtonVariant.Secondary,disabled:!0,children:[h&&"Sold Out",g&&"Standby"]}):null;return(0,B.isExpired)(o)?null:(0,t.jsx)(D,{aspectRatio:e,url:s,image:l,isHorizontal:r,type:c,typeClass:"program-card",title:d,description:u,metadata:y,secondaryMetadata:b,tertiaryMetadata:v,cta:x,tag:f})};H.propTypes={aspectRatio:r.default.string,event:r.default.object,isHorizontal:r.default.bool,program:r.default.object.isRequired};var U=e.i(98979),G=e.i(17410),Q=e.i(96267),Y=e.i(96649),Z=e.i(57249),V=e.i(20147),W=e.i(77400),X=e.i(86557);let J=f.default.svg.withConfig({displayName:"CheckThick__Svg",componentId:"sc-18ed76a9-0"})` 316 width: 14px; 317 height: 11px; 318 stroke: none; 319 stroke-width: 1; 320 fill: ${X.colors.black}; 321 transition: opacity ${Q.default.transition.default}; 322 opacity: ${e=>e.isSelected?"1":"0"}; 323 pointer-events: none; 324 325 .selected & { 326 opacity: 1; 327 } 328`;function q(e){return(0,t.jsx)(J,{viewBox:"0 0 14 11",className:e.className,isSelected:e.isSelected,children:(0,t.jsx)("g",{transform:"translate(-8.000000, -10.000000)",children:(0,t.jsx)("path",{d:"M11,15 L21,15 L21,17 L11,17 L9,17 L9,11 L11,11
328L11,15 Z",transform:"translate(15.000000, 14.000000) rotate(-45.000000) translate(-15.000000, -14.000000)"})})})}q.propTypes={className:r.default.string,isSelected:r.default.bool};let K=f.default.svg.withConfig({displayName:"Octagon__Svg",componentId:"sc-782d9ab8-0"})` 329 width: 8px; 330 height: 8px; 331 stroke: none; 332 fill: ${e=>e.theme.secondaryColor}; 333 transition: all ease 0.25s; 334`;function ee(e){return(0,t.jsx)(K,{viewBox:"0 0 8 8",className:e.className,children:(0,t.jsx)("polygon",{points:"4 0 6.82842712 1.17157288 8 4 6.82842712 6.82842712 4 8 1.17157288 6.82842712 0 4 1.17157288 1.17157288"})})}ee.propTypes={className:r.default.string},e.s(["default",0,ee],64898);let{cardSizes:et}=Y.sizes,ea=f.default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-58400f5e-0"})``,er=f.default.div.withConfig({displayName:"styles__Ticket",componentId:"sc-58400f5e-1"})` 335 display: none; 336 background-color: red; 337 338 // maxwidth 1366 for ipad pro in landscape mode 339 @media (max-width: 1366px) { 340 padding: 25px 0 20px 0; 341 width: ${et.mobileWidth}px; 342 height: ${et.mobileHeight-150}px; 343 display: block; 344 margin: 0 auto; 345 background-color: white; 346 overflow-x: visible; 347 border: 1px solid grey; 348 color: #141414; 349 } 350 351 @media (max-width: 440px) { 352 width: ${et.mobileWidth-40}px; 353 height: ${et.mobileHeight-130}px; 354 } 355`,ei=f.default.div.withConfig({displayName:"styles__Head",componentId:"sc-58400f5e-2"})` 356 width: 100%; 357 height: 45px; 358 border-bottom: 1.5px dotted black; 359 position: relative; 360`,eo=f.default.div.withConfig({displayName:"styles__Main",componentId:"sc-58400f5e-3"})` 361 padding: 0 26px 0 26px; 362 363 @media (max-width: 320px) { 364 padding: 0 13px 0 13px; 365 } 366`,en=(0,f.default)(V.default).withConfig({displayName:"styles__TicketDate",componentId:"sc-58400f5e-4"})` 367 text-align: center; 368 vertical-align: center; 369 text-transform: uppercase; 370 color: #767676; 371 letter-spacing: 2px; 372`,es=(0,f.default)(Z.default).withConfig({displayName:"styles__Event",componentId:"sc-58400f5e-5"})` 373 margin: 0 auto; 374 padding-top: 20px; 375 padding-bottom: 35px; 376 text-align: center; 377 letter-spacing: 0px; 378 379 @media (max-width: 320px) { 380 padding-top: 10px; 381 padding-bottom: 20px; 382 } 383`,el=f.default.div.withConfig({displayName:"styles__TicketInfo",componentId:"sc-58400f5e-6"})` 384 display: inline-block; 385 overflow: hidden; 386 text-overflow: ellipsis; 387 width: 48%; 388 vertical-align: top; 389 padding-top: 5px; 390 text-align: left; 391`,ed=(0,f.default)(Z.default).withConfig({displayName:"styles__NumTickets",componentId:"sc-58400f5e-7"})` 392 white-space: nowrap; 393 text-align: center; 394 display: inline; 395 line-height: 21px; 396`,eu=(0,f.default)(V.default).withConfig({displayName:"styles__TicketType",componentId:"sc-58400f5e-8"})` 397 white-space: nowrap; 398 color: #000000; 399 display: inline; 400 line-height: 21px; 401 letter-spacing: 0.7px; 402`,ec=(0,f.default)(V.default).withConfig({displayName:"styles__Fee",componentId:"sc-58400f5e-9"})` 403 margin-top: 10px; 404 color: #767676; 405 line-height: 21px; 406 letter-spacing: 0.7px; 407 text-transform: uppercase; 408`,ep=(0,f.default)(W.default).withConfig({displayName:"styles__Present",componentId:"sc-58400f5e-10"})` 409 position: absolute; 410 bottom: 2px; 411 width: 140px; 412 color: #767676; 413 line-height: 21px; 414 letter-spacing: 0.7px; 415`,ef=f.default.div.withConfig({displayName:"styles__QrContainer",componentId:"sc-58400f5e-11"})` 416 display: inline-block; 417 width: 50%; 418 vertical-align: top; 419 text-align: center; 420 padding: 0 0 0 33px; 421 422 @media (max-width: 440px) { 423 padding: 0 0 0 20px; 424 } 425`,em=(0,f.default)(V.default).withConfig({displayName:"styles__ScanCode",componentId:"sc-58400f5e-12"})` 426 color: ${e=>e.redeemed?"#767676":"000000"}; 427 text-decoration: ${e=>e.redeemed?"line-through":"none"}; 428 padding-left: 10px; 429 padding-top: 13px; 430 line-height: 21px; 431 letter-spacing: 0.7px; 432`,eh=(0,f.default)(q).withConfig({displayName:"styles__CheckMark",componentId:"sc-58400f5e-13"})` 433 fill: #ba9e5e; 434 width: 20px; 435 height: 20px; 436 position: relative; 437 bottom: 60px; 438 left: 4px; 439`,eg=(0,f.default)(ee).withConfig({displayName:"styles__TicketOctagonLeft",componentId:"sc-58400f5e-14"})` 440 position: absolute; 441 bottom: -4px; 442 left: -4px; 443 fill: #ffffff; 444`,ey=(0,f.default)(eg).withConfig({displayName:"styles__TicketOctagonRight",componentId:"sc-58400f5e-15"})` 445 right: -4px; 446 left: auto; 447`,{Wrapper:eb,Ticket:ev,Main:ex,TicketDate:e_,Event:ew,TicketInfo:eC,NumTickets:eE,TicketType:eT,Fee:eS,Present:eM,QrC
447ontainer:ek,ScanCode:eN,TicketOctagonLeft:eI,TicketOctagonRight:e$,Head:eD,QrOutline:eL,CheckMark:eA}={Wrapper:ea,Ticket:er,Main:eo,TicketDate:en,Event:es,TicketInfo:el,NumTickets:ed,TicketType:eu,Fee:ec,Present:ep,QrContainer:ef,ScanCode:em,TicketOctagonLeft:eg,TicketOctagonRight:ey,Head:ei,QrOutline:f.default.div.withConfig({displayName:"styles__QrOutline",componentId:"sc-58400f5e-16"})` 448 width: 106px; 449 height: 106px; 450 padding-top: 5px; 451 border: 2px solid #b99e5e; 452 border-radius: 4px; 453`,CheckMark:eh},ej=({event:e,isRedeemed:a,allRedeemed:r,formattedDateWithWeekday:i,scan_code:o,adjusted_value:n,ticketType:s})=>{let l=`$${n}`,d=(0,t.jsx)(F.FormattedMessage,{id:"app.components.Tickets.complimentaryFee",defaultMessage:"complimentary"});return(0,t.jsx)(eb,{children:(0,t.jsxs)(ev,{children:[(0,t.jsxs)(eD,{children:[(0,t.jsx)(e_,{children:i}),(0,t.jsx)(eI,{}),(0,t.jsx)(e$,{})]}),(0,t.jsxs)(ex,{children:[(0,t.jsx)(ew,{children:(0,t.jsx)(G.default,{lines:2,ellipsis:"...",children:e?.name})}),(0,t.jsxs)(eC,{children:[(0,t.jsx)(eE,{children:"1 / "}),(0,t.jsx)(eT,{children:s?.name}),(0,t.jsx)(eS,{children:"0"===n?d:l}),(0,t.jsx)(eM,{children:(0,t.jsx)(F.FormattedMessage,{id:"app.components.Tickets.present",defaultMessage:"Present this code to scan tickets"})})]}),(0,t.jsxs)(ek,{children:[(0,t.jsxs)(eL,{children:[(0,t.jsx)(U.QRCodeSVG,{bgColor:"#FFFFFF",fgColor:r?"#f0f0f0":"#000000",level:"Q",size:93,value:o}),r?(0,t.jsx)(eA,{isSelected:!0}):null]}),(0,t.jsx)(eN,{redeemed:a||r,children:o})]})]})]})})},eR=({__typename:e,...a})=>{let r={CardData:(0,t.jsx)(O,{...a}),Exhibition:(0,t.jsx)(A,{...a}),ProgramCard:(0,t.jsx)(H,{...a}),ProgramEvent:(0,t.jsx)(H,{...a}),TicketCard:(0,t.jsx)(ej,{...a})};return r?.[e]||r?.[a?.type]||null};eR.propTypes={__typename:r.default.string},e.s(["Card",()=>eR],94827)}]);
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.