PageSourceSearch

https://cdn.tiqets.com/static/assets/webpack/discovery.user_settings_app.3902377aeb.js

js tiqets.com collected 2026-10-01 08:43:32 UTC 17,763 bytes, 3 lines download raw bytes

1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[99582],{63726(_,M,t){t.d(M,{$n:()=>s,QW:()=>v,Yq:()=>o,lV:()=>i});var e,C,S,w,P,A=t(88940),z=t.n(A),f=t(74848),E=t(20053),$=t(33433);function T(r,u){var c={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&u.indexOf(n)<0&&(c[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(r);l<n.length;l++)u.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(r,n[l])&&(c[n[l]]=r[n[l]]);return c}typeof SuppressedError=="function"&&SuppressedError;const I={primary:"bg-primary-button-bg text-primary-button-text hover:bg-primary-button-hover-bg active:bg-primary-button-active-bg",secondary:"bg-secondary-button-bg text-inverse-text hover:bg-secondary-button-hover-bg active:bg-secondary-button-active-bg",tertiary:"bg-tertiary-button-bg text-primary-text hover:bg-tertiary-button-hover-bg active:bg-tertiary-button-active-bg border-box-border",transparent:"border-transparent"},O={ink:"bg-ink-600 hover:bg-ink-700 focus:bg-ink-700 active:bg-ink-800 text-white border-transparent",white:"bg-white hover:bg-grey-200 focus:bg-white active:bg-grey-300 disabled:text-grey-600 text-ink-500 border-transparent",yellow:"bg-yellow-500 hover:bg-yellow-600 focus:bg-yellow-600 active:bg-yellow-700 text-ink-500 border-transparent",transparent:"border-transparent",primary:"bg-ink-500 hover:bg-ink-600 focus:bg-ink-500 active:bg-ink-700 disabled:bg-grey-500 text-white border-transparent",secondary:"bg-white hover:bg-grey-200 focus:bg-white active:bg-grey-300 disabled:text-grey-600 text-ink-500 border-grey-500",tertiary:"bg-white hover:bg-grey-200 focus:bg-white active:bg-grey-300 disabled:text-grey-600 text-ink-500 border-transparent"},U={ink:"border-ink-600",primary:"border-primary-600",secondary:"border-ink-600",white:"border-ink-600",yellow:"border-ink-600",transparent:"border-ink-600",tertiary:"border-grey-500"},D={primary:"border-transparent",secondary:"border-emphasis-border",transparent:"border-box-border",tertiary:"border-box-border"},W={ink:"bg-grey-500",primary:"bg-primary-500",secondary:"bg-grey-500",white:"bg-primary-500",yellow:"bg-grey-500",transparent:"bg-transparent",tertiary:"bg-primary-500"},R={ink:"bg-grey-500",primary:"bg-grey-500",secondary:"bg-ink-500",white:"bg-grey-500",yellow:"bg-grey-500",transparent:"bg-transparent",tertiary:"bg-ink-500"},x=r=>{var{className:u,children:c,color:n="primary",theme:l="b2c",counter:g,isIconOnly:V,size:Z="regular",rounded:ee,isActive:b,component:N}=r,h=T(r,["className","children","color","theme","counter","isIconOnly","size","rounded","isActive","component"]);return(0,f.jsxs)(N,Object.assign({},h,{className:(0,E.A)(u,l==="b2c"?I[n]:O[n],V&&"p-1"||Z==="medium"&&"px-4 py-2"||Z==="small"&&"px-3 py-1"||Z==="regular"&&"px-4 py-3",Z==="small"&&"text-xs"||"text-base",ee?"rounded-full":"rounded-lg",`relative inline-flex items-center justify-center border ${l==="b2c"?D[n]:""} text-center font-medium no-underline transition duration-100 ease-in-out focus:ring-outline active:translate-y-px`,!!b&&`border border-2 ${l==="b2b"?U[n]:""}`),children:[c,!!g&&(0,f.jsx)("div",{className:(0,E.A)("bg-blue-950 absolute top-[-6px] right-[-4px] rounded-full px-1.5 py-px text-xs text-white",(l==="b2c"?W:R)[n]),children:g})]}))},B=r=>"href"in r,s=r=>{if(B(r)){const{target:g}=r;return(0,f.jsx)(x,Object.assign({},r,{target:g,rel:g==="_blank"?"noopener noreferrer":void 0,component:"a"}))}const{disabled:u,className:c,type:n}=r,l=T(r,["disabled","className","type"]);return(0,f.jsx)(x,Object.assign({},l,{component:"button",type:n||"button",disabled:u,className:(0,E.A)(c,u&&"pointer-events-none opacity-50")}))},i=r=>{var{children:u,className:c,isLoading:n,size:l="regular",color:g="primary"}=r,V=T(r,["children","className","isLoading","size","color"]);return(0,f.jsxs)(s,Object.assign({},V,{size:l,color:g,className:(0,E.A)(c,n&&"pointer-events-none"),children:[(0,f.jsx)("span",{className:n?"invisible":"",children:u}),n&&(0,f.jsx)($.y,{size:l==="small"&&16||32,className:"absolute text-current"})]}))},d=r=>{var{children:u}=r,c=T(r,["children"]);const{t:n}=w("ui-button");return e(s,Object.assign({},c,{target:"_blank",children:[u,C(P,{name:"new-window-outline",size:16,className:"ml-2",title:n("open-new-window")})]}))},a={ink:"text-ink-500",primary:"text-primary-800",secondary:"text-secondary-700",white:"text-white",yellow:"text-yellow-700",red:"text-red-600",transparent:"text-transparent",tertiary:"text-primary-800"},o=r=>{const{className:u,children:c,color:n="primary",component:l="a"}=r,g=T(r,["className","children","color","component"]);return(0,f.jsx)(l,Object.assign({},g,{className:(0,E.A)(u,a[n],"flex items-center rounded-sm font-medium no-underline focus:ring-outline"),rel:g.target==="_blank"?"noopener noreferrer":void 0,children:c}))},m=r=>{var{children:u,className:c,textClassName:n}=r,l=T(r,["children","className","textClassName"]);const{t:g}=w("ui-button");return e(o,Object.assign({},l,{target:"_blank",className:S("flex gap-2",c),children:[C("span",{className:n,children:u}),C(P,{name:"new-window-outline",className:"mt-[0.25em] h-[1em] w-[1em] flex-none self-start",title:g("open-new-window")})]}))},v=r=>{const{className:u,children:c,color:n="primary",type:l}=r,g=T(r,["className","children","color","type"]);return(0,f.jsx)("button",Object.assign({},g,{className:(0,E.A)(u,a[n],"rounded-sm font-medium focus:ring-outline",g.disabled&&"pointer-events-none opacity-50"),type:l==="submit"?"submit":"button",children:c}))}},74919(_,M,t){t.d(M,{w:()=>B});var e=t(74848),C=t(20053),S=t(43206),w=t(80575),P=t(32389),A=t(96540);const z=()=>{var s;const{t:i}=(0,P.Bd)("ui-form"),{id:d,maxLength:a,minLength:o,recommendedMinLe
1ngth:m,showCharacterLimit:v}=(0,S.u)(),{value:r}=(0,w.u)();if(!v)return null;const u=i("character-limit.maximum-text",{maxLength:a}),c=i("character-limit.minimum-text",{minLength:o}),n=i("character-limit.recommended-minimum-text",{recommendedMinLength:m}),l=i("character-limit.minimum-maximum-text",{maxLength:a,minLength:o}),g=i("character-limit.recommended-minimum-maximum-text",{maxLength:a,recommendedMinLength:m}),V=a&&o&&l||a&&m&&g||o&&c||m&&n||u;return(0,e.jsxs)("div",{id:`char-${d}`,className:"flex justify-between rounded-b-lg border-t border-grey-500 bg-grey-200 px-4 py-2 text-xs text-ink-200",children:[(0,e.jsx)("span",{children:V}),(0,e.jsx)("span",{children:(0,e.jsx)(P.x6,{t:i,i18nKey:"character-limit.input-length-html",values:{characterCount:((s=r?.toString())===null||s===void 0?void 0:s.length)||"0"},components:{span:(0,e.jsx)("span",{className:"sr-only"})}})})]})};var f=t(88940),E,$;function T(s,i){var d={};for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&i.indexOf(a)<0&&(d[a]=s[a]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(s);o<a.length;o++)i.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(s,a[o])&&(d[a[o]]=s[a[o]]);return d}function X(s,i,d,a){function o(m){return m instanceof d?m:new d(function(v){v(m)})}return new(d||(d=Promise))(function(m,v){function r(n){try{c(a.next(n))}catch(l){v(l)}}function u(n){try{c(a.throw(n))}catch(l){v(l)}}function c(n){n.done?m(n.value):o(n.value).then(r,u)}c((a=a.apply(s,i||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const F=({copyText:s,onCopy:i,children:d})=>{const a=()=>X(void 0,void 0,void 0,function*(){var o;if(!((o=navigator?.clipboard)===null||o===void 0)&&o.writeText)yield navigator.clipboard.writeText(s);else{const m=document.createElement("textarea");m.value=s,m.style.position="fixed",m.style.opacity="0",document.body.appendChild(m),m.select(),document.execCommand("copy"),document.body.removeChild(m)}i?.()});if((0,A.isValidElement)(d)){const o=d,m=v=>{var r,u;(u=(r=o?.props)===null||r===void 0?void 0:r.onClick)===null||u===void 0||u.call(r,v),a().catch(c=>{console.warn("copy failed:",c)})};return(0,A.cloneElement)(o,{onClick:m})}return(0,e.jsx)("button",{onClick:a,type:"button",children:d})},q=s=>{var{onCopy:i,copyText:d,children:a,className:o}=s,m=T(s,["onCopy","copyText","children","className"]);return E(F,{copyText:d,onCopy:i,children:E($,Object.assign({},m,{className:o,children:a}))})};var I=t(92153);const O=()=>{const{t:s}=(0,P.Bd)("ui-form"),{isCopyable:i,setCopied:d}=(0,S.u)(),{value:a}=(0,w.u)(),o=(0,A.useCallback)(()=>d?.(!0),[d]);return i?(0,e.jsx)(F,{copyText:a,onCopy:o,children:(0,e.jsxs)("button",{type:"button",className:"my-2 mr-2 self-start rounded-sm border border-transparent p-1 font-medium leading-0 text-primary-800 outline-hidden hover:bg-grey-300 focus:bg-grey-300",children:[(0,e.jsx)(I.I,{name:"copy-outline",width:22}),(0,e.jsx)("span",{className:"sr-only",children:s("copy-button.copy-text")})]})}):null},U=()=>{const{isCopied:s,setCopied:i}=(0,S.u)(),{t:d}=(0,P.Bd)("ui-form");return s?(setTimeout(()=>i?.(!1),4e3),(0,e.jsxs)("div",{"aria-live":"polite",className:"flex items-center rounded-sm bg-green-100 p-2 text-green-600",children:[(0,e.jsx)(I.I,{name:"checkmark-fill",className:"mr-2",size:16}),(0,e.jsx)("span",{className:"text-sm leading-normal ",children:d("copy-notice.text-added-to-clipboard")})]})):null};var D=t(57646);const W=()=>{const{icon:s}=(0,S.u)();return s?(0,e.jsx)(I.I,{name:s,className:"z-10 -mr-2 ml-4 text-primary-800"}):null};var R=t(73734);const x=()=>{const{prefix:s}=(0,S.u)();return s?(0,e.jsx)("span",{className:"min-w-12 text-base shrink-0 rounded-l-lg border-r border-grey-500 bg-grey-200 px-4 py-3 text-center text-ink-200",children:s}):null},B=({children:s,className:i,labelClassName:d,disabledClassName:a="opacity-50 bg-grey-200",hideBorder:o})=>{const{disabled:m,readOnly:v,isInvalid:r}=(0,S.u)(),{isValid:u,isWarned:c}=(0,w.u)(),n=u===!1||r;return(0,e.jsxs)(D.E,{children:[(0,e.jsx)(R.J,{className:(0,C.A)("font-medium",d)}),(0,e.jsxs)("div",{className:(0,C.A)(i||"rounded-lg","BlockField bg-white",n&&"BlockField--invalid border-red-600"||c&&"BlockField--warned border-yellow-600"||"border-grey-500",(m||v)&&a,!o&&"border"),children:[(0,e.jsxs)("div",{className:"relative flex flex-1 items-center",children:[(0,e.jsx)(x,{}),(0,e.jsx)(W,{}),s,(0,e.jsx)(O,{})]}),(0,e.jsx)(z,{})]}),(0,e.jsx)(U,{})]})}},6471(_,M,t){t.d(M,{l:()=>R});var e=t(13927),C=t(74848),S=t(74919),w=t(40673),P=t(18111),A=t(61701),z=t(96540),f=t(20053),E=t(92153),$=t(43206),T=t(84863);const X=x=>!!x?.options,F=({disabled:x,label:B,value:s})=>(0,C.jsx)("option",{value:s,disabled:x,children:B}),q=x=>{var{className:B,innerRef:s,isValid:i,isWarned:d,options:a,iconName:o,disabled:m,selectSize:v="regular",value:r}=x,u=(0,e.a)(x,["className","innerRef","isValid","isWarned","options","iconName","disabled","selectSize","value"]);const{isInvalid:c}=(0,$.u)(),n=i===!1||c;return(0,C.jsxs)("div",{className:(0,f.A)(B,"relative flex w-full items-center"),children:[o&&(0,C.jsx)(E.I,{className:"pointer-events-none absolute z-1 ml-4 border border-transparent leading-0 "+(m?"text-grey-600":"text-ink-500"),name:o}),(0,C.jsx)("select",Object.assign({},u,{value:r,className:(0,f.A)("w-full rounded-lg border-0 opacity-100 outline-hidden",m?"text-ink-100":"text-ink-500",n&&"bg-red-100",{regular:"py-3 pr-12 "+(o?"pl-12 supports-[-moz-appearance:none]:pl-11":"pl-4 supports-[-moz-appearance:none]:pl-3"),small:"py-2 pr-6 text-xs "+(o?"pl-12 supports-[-moz-appearance:none]:pl-11":"pl-3 supports-[-moz-appearance:none]:pl-2")}
1[v]),ref:s,disabled:m,children:a.map(l=>X(l)?(0,C.jsx)("optgroup",{label:l.label,children:l.options.map(g=>(0,z.createElement)(F,Object.assign({},g,{key:`${g.label}-${g.value}`})))},l.label):(0,z.createElement)(F,Object.assign({},l,{key:`${l.label}-${l.value}`})))})),(0,C.jsx)(E.I,{className:(0,f.A)(m?"text-grey-600":"text-ink-500","pointer-events-none absolute right-0 border border-transparent leading-0",{small:"mr-2",regular:"mr-4"}[v]),name:"chevron-outline",size:v==="small"?12:24,rotation:90})]})},I=(0,T.w)(q);var O=t(10083),U=t(16274),D=t(91584);const W=x=>{var{innerClassName:B,hideBorder:s,labelClassName:i}=x,d=(0,e.a)(x,["innerClassName","hideBorder","labelClassName"]);return(0,C.jsx)(S.w,{labelClassName:i,disabledClassName:"text-ink-100",hideBorder:s,children:(0,C.jsx)(I,Object.assign({},d,{className:B}))})},R=(0,O.p)((0,w.p)(W))},67992(_,M,t){t.r(M),t.d(M,{default:()=>ee});var e=t(96540),C=t(18111),S=t(61701),w=t(99562),P=t(71139),A=t(11541),z=t(63726),f=t(92153),E=t(56462),$=t(6471),T=t(32389),X=t(88940),F=t(22489),q=t(74848),I,O,U,D,W,R,x,B,s;const i={ink:"bg-ink-500 text-white border-transparent",primary:"bg-primary-600 text-white border-transparent",secondary:"bg-secondary-500 text-white border-transparent",white:"bg-white text-primary-800 border-grey-500",yellow:"bg-yellow-500 text-ink-500 border-transparent"},d=({id:b,text:N,color:h="ink",onClose:p,onUndo:y})=>{const{t:L}=W("ui-toast");return I("div",{className:D("relative flex w-full items-center rounded-sm border px-6 pb-3.5 pt-4 md:max-w-md",i[h]),role:"alert",children:[O("div",{className:D("text-sm",p&&[y&&"mr-32",!(p&&y)&&"mr-11"],!(p&&y)&&y&&"mr-20"),children:N}),I("div",{className:"absolute right-0 top-1/2 mr-4 flex -translate-y-1/2 transform items-center space-x-6",children:[y&&O("button",{type:"button",className:"rounded-lg rounded-xs px-4 py-1.5 text-indigo-300 hover:bg-indigo-300/20",onClick:()=>y(b),children:"Undo"}),p&&I("button",{type:"button",className:"inline-flex h-8 w-8 rounded-full p-2 p-2 hover:bg-grey-500/20",onClick:()=>p(b),children:[O(R,{size:16,name:"cross-outline"}),O("span",{className:"sr-only",children:L("close")})]})]})]})};function a(b,N){var h={};for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&N.indexOf(p)<0&&(h[p]=b[p]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,p=Object.getOwnPropertySymbols(b);y<p.length;y++)N.indexOf(p[y])<0&&Object.prototype.propertyIsEnumerable.call(b,p[y])&&(h[p[y]]=b[p[y]]);return h}typeof SuppressedError=="function"&&SuppressedError;const o=(0,e.createContext)({});let m=1;const v={position:"bottom-left",duration:5e3,isClosable:!0},r=()=>(m+=1,m),u=b=>N=>{const[h,p]=x([]),y=B(G=>G&&p(Q=>Q.filter(Y=>G!==Y.id)),[]),L=B(G=>{const Q=r(),Y=Object.assign(Object.assign(Object.assign({},v),{id:Q}),G);p(J=>[Y,...J]),new Promise(J=>{setTimeout(()=>J(!0),Y.duration)}).then(()=>y(Q))},[y]),k=s(()=>({toast:L,toasts:h,close:y}),[L,h,y]);return O(o.Provider,{value:k,children:O(b,Object.assign({},N))})},c=()=>{const b=(0,e.useContext)(o);if(b===void 0)throw new Error("ToastData Context is not defined. Please use `provideToastData` in corresponding parent component");return b},n={"top-right":"top-8 right-16","top-center":"top-8 left-1/2 -translate-x-1/2","top-left":"top-8 left-16","bottom-right":"bottom-8 right-16","bottom-center":"bottom-8 left-1/2 -translate-x-1/2","bottom-left":"bottom-8 left-16"},l=()=>{const{toasts:b,close:N}=c();return O(U,{children:Object.keys(n).map(h=>b.filter(y=>y.position===h).length?O("div",{className:D("fixed space-y-4",n[h]),children:b.map(y=>{var{isClosable:L}=y,k=a(y,["isClosable"]);return O(d,Object.assign({onClose:L?N:void 0},k),k.id)})},h):null)})};var g=t(19642);const V=({isOpen:b,onClose:N,showCurrencyMenu:h,tracking:p,currencyHelperText:y,onSubmit:L})=>{const{activeLanguage:k,activeCurrency:G,selectableCurrencies:Q,selectableLanguages:Y}=(0,P.a)(),[J,le]=(0,e.useState)(k),[te,ie]=(0,e.useState)(G),[re,ne]=(0,e.useState)(!1),{t:H}=(0,T.Bd)("user-setting-modal"),{toast:ce}=c(),de=j=>{const{pathname:K,search:oe}=window.location;return K.indexOf(`/${k}/`)===0?`${(0,g.cG)(k,j)}${oe}`:`${K}${oe}`},se=(j=J)=>
1{if(ne(!0),L){try{L({language:j,currency:te})}catch{ce({text:H("Failed to update settings. Please try again.")})}ne(!1);return}(0,g.iF)(te),j!==k?((0,g.Pw)(j),window.location.assign(de(j))):window.location.reload()},ae=()=>{N?.(),(0,w.sx)({category:"Settings",action:"Cancel Currency Language In Modal"})};return e.createElement(e.Fragment,null,re&&e.createElement(E.k,null),e.createElement(A.aF,{isOpen:!re&&!!b,onRequestClose:ae,size:"small"},e.createElement(A.rQ,{onRequestClose:ae},H("Update your settings")),e.createElement("div",{className:"p-4"},e.createElement($.l,{label:e.createElement("span",{className:"flex"},e.createElement(f.I,{name:"language-fill",size:20}),e.createElement("span",{className:"ml-2"},H("Language")),k!=="en"&&e.createElement(z.Yq,{className:"ml-auto text-primary-800 no-underline",onClick:()=>{se("en")}},"Switch to English")),onChange:j=>{le(j.currentTarget.value),(0,w.sx)({category:"Settings",action:"Select Language In Modal",metadata:{language:j.currentTarget.value}})},options:Object.entries(Y).map(([j,K])=>({value:j,label:K})),value:J}),h&&e.createElement(e.Fragment,null,e.createElement($.l,{className:"mb-3",label:e.createElement("span",{className:"flex items-center"},e.createElement(f.I,{name:"currency-fill",size:23,className:"text-ink-500"}),e.createElement("span",{className:"ml-2"},H("Currency"))),onChange:j=>{ie(j.currentTarget.value),(0,w.sx)({category:"Settings",action:"Select Currency In Modal",metadata:{currency:j.currentTarget.value}})},options:Object.entries(Q).map(([j,K])=>({label:`${j} (${K})`,value:j}))||[],value:te}),e.createElement("div",{className:"text-sm text-ink-300 mb-2"},y||H("Where applicable, prices will be converted and shown in the currency you select. The currency you pay in may differ based on your reservation.")))),e.createElement("div",{className:"p-4 shadow"},e.createElement(z.$n,{onClick:()=>{se(),(0,w.sx)({category:p?.category||"Settings",action:p?.action||"Save Currency Language In Modal"})},type:"submit",className:"w-full"},H("Save")))))},ee=({onClose:b,showCurrencyMenu:N=!0})=>e.createElement(V,{isOpen:!0,onClose:b,showCurrencyMenu:N})}}]);
2
3//# sourceMappingURL=discovery.user_settings_app.3902377aeb.js.map

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.