1"use strict";(self.webpackChunkbookcore_client=self.webpackChunkbookcore_client||[]).push([[75],{51022:function(e,t,o){o.r(t);var n,l,s,i,c=o(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r.apply(null,arguments)}t.default=function(e){return c.createElement("svg",r({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=c.createElement("path",{d:"M20.125 14c0-.319-.28-.842-1.273-1.339-.94-.47-2.301-.786-3.852-.786-1.55 0-2.911.316-3.852.786-.992.497-1.273 1.02-1.273 1.339 0 .319.28.843 1.273 1.339.94.47 2.301.786 3.852.786 1.55 0 2.911-.316 3.852-.786.992-.496 1.273-1.02 1.273-1.339zm1.75 0c0 1.338-1.062 2.315-2.241 2.904-1.231.616-2.87.971-4.634.971-1.763 0-3.403-.355-4.634-.97-1.179-.59-2.241-1.567-2.241-2.905 0-1.338 1.062-2.315 2.241-2.904 1.231-.616 2.87-.971 4.634-.971 1.763 0 3.403.355 4.634.97 1.179.59 2.241 1.567 2.241 2.905z"})),l||(l=c.createElement("path",{d:"M8.125 18v-4a.875.875 0 011.75 0v4c0 .318.28.842 1.273 1.339.94.47 2.302.786 3.852.786 1.55 0 2.911-.316 3.852-.786.992-.497 1.273-1.021 1.273-1.339v-4a.875.875 0 011.75 0v4c0 1.338-1.063 2.314-2.241 2.903-1.231.616-2.87.972-4.634.972-1.763 0-3.403-.356-4.634-.972-1.178-.59-2.241-1.565-2.241-2.903zM14.125 6c0-.202-.106-.496-.502-.839-.396-.342-1.02-.675-1.866-.919-1.697-.49-3.817-.49-5.514 0-.845.244-1.47.577-1.866.92-.396.342-.502.636-.502.838 0 .202.106.496.502.839.395.342 1.02.675 1.866.919 1.697.49 3.817.49 5.514 0 .845-.244 1.47-.577 1.866-.92.396-.342.502-.636.502-.838zm1.75 0c0 .87-.466 1.607-1.106 2.161-.64.555-1.516.986-2.526 1.277-2.014.582-4.472.582-6.486 0-1.01-.291-1.885-.722-2.526-1.277C2.591 7.607 2.125 6.87 2.125 6c0-.87.466-1.607 1.106-2.161.64-.555 1.516-.986 2.526-1.277 2.014-.582 4.472-.582 6.486 0 1.01.291 1.885.722 2.526 1.277.64.554 1.106 1.291 1.106 2.161z"})),s||(s=c.createElement("path",{d:"M2.125 16V6a.875.875 0 111.75 0v10c0 .146.048.29.259.484.238.22.63.452 1.223.717a.875.875 0 01-.714 1.598c-.635-.284-1.243-.61-1.698-1.03-.481-.445-.82-1.027-.82-1.769z"})),i||(i=c.createElement("path",{d:"M2.125 11a.875.875 0 011.75 0c0 .146.048.29.259.484.238.22.63.452 1.223.717a.875.875 0 01-.714 1.598c-.635-.284-1.243-.61-1.698-1.03-.481-.445-.82-1.027-.82-1.769z"})))}},51102:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(o(51022)),s=o(9574),i=o(74848);t.default=({advice:e,currencyOptions:t,footerLabel:o,hasTooltip:n=!0,onChange:c})=>(0,i.jsx)(s.CurrencySelectStyles,{className:"fn-currency-select",customIcon:(0,i.jsx)(l.default,{}),footerLabel:o,isDesktop:!0,name:"select-currency",onChange:c,options:t,hasTooltip:n,shouldHideDefaultIcon:!0,shouldRenderSelectedOptionText:!1,tooltipContent:e});e.exports=t.default},31544:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(o(51022)),s=o(40930),i=o(74848);t.default=({advice:e,currencyOptions:t,footerLabel:o,hasTooltip:n=!0,onChange:c})=>(0,i.jsx)(s.CustomCurrencySelectStyles,{className:"fn-currency-select",customIcon:(0,i.jsx)(l.default,{}),footerLabel:o,isDesktop:!1,name:"select-currency",onChange:c,options:t,hasTooltip:n,shouldHideDefaultIcon:!0,shouldRenderSelectedOptionText:!1,tooltipContent:e});e.exports=t.default},9574:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.SectionStyles=t.CurrencySelectStyles=void 0;var l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var l,s,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(l=t?n:o){if(l.has(e))return l.get(e);l.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((s=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(s.get||s.set)?l(i,t,s):i[t]=e[t]);return i}(e,t)}(o(30496)),s=n(o(20941)),i=o(77807);t.SectionStyles=l.default.section.withConfig({displayName:"DesktopCurrencySelectorstyles__SectionStyles",componentId:"sc-179xfd6-0"})(["",""],({theme:e})=>(0,l.css)(["align-items:center;display:flex;height:",";padding:"," ",";"],e.r500,e.r075,e.r150)),t.CurrencySelectStyles=(0,l.default)(s.default).withConfig({displayName:"DesktopCurrencySelectorstyles__CurrencySelectStyles",componentId:"sc-179xfd6-1"})(["& ","{gap:0;}& ","{all:unset;}& ","{gap:0;}& ","{overflow:hidden;word-break:break-word;}"],i.SummaryStyles,i.ForcedWrapperStyles,i.OptionSelectedAndIconStyles,i.OptionSelectTextStyles)},40930:function(e,t,o){var n=o(24994);
1Object.defineProperty(t,"__esModule",{value:!0}),t.SectionStyles=t.LabelStyles=t.CustomCurrencySelectStyles=t.CurrencySelectStyles=void 0;var l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var l,s,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(l=t?n:o){if(l.has(e))return l.get(e);l.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((s=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(s.get||s.set)?l(i,t,s):i[t]=e[t]);return i}(e,t)}(o(30496)),s=n(o(89883)),i=n(o(20941)),c=o(77807);t.SectionStyles=l.default.section.withConfig({displayName:"MobileCurrencySelectorstyles__SectionStyles",componentId:"sc-9syide-0"})(["",""],({theme:e})=>(0,l.css)([""," color:",";padding:",";text-align:center;"],s.default.XStoS,e.currencyColor||e.neutral900,e.r150)),t.LabelStyles=l.default.label.withConfig({displayName:"MobileCurrencySelectorstyles__LabelStyles",componentId:"sc-9syide-1"})(["",""],({theme:e})=>(0,l.css)(["display:inline-block;margin-right:",";"],e.r200)),t.CurrencySelectStyles=l.default.select.withConfig({displayName:"MobileCurrencySelectorstyles__CurrencySelectStyles",componentId:"sc-9syide-2"})(["max-width:100%;"]),t.CustomCurrencySelectStyles=(0,l.default)(i.default).withConfig({displayName:"MobileCurrencySelectorstyles__CustomCurrencySelectStyles",componentId:"sc-9syide-3"})(["& ","{gap:0;}& ","{all:unset;}& ","{gap:0;}& ","{overflow:hidden;word-break:break-word;}"],c.SummaryStyles,c.ForcedWrapperStyles,c.OptionSelectedAndIconStyles,c.OptionSelectTextStyles)},20941:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=m(o(96540)),s=n(o(40961)),i=n(o(17913)),c=n(o(45082)),r=n(o(59646)),a=m(o(30496)),d=o(37039),u=o(94501),p=o(77807),f=n(o(84186)),y=o(31996),h=n(o(32481)),S=o(74848);function m(e,t){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var l,s,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(l=t?n:o){if(l.has(e))return l.get(e);l.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((s=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(s.get||s.set)?l(i,t,s):i[t]=e[t]);return i})(e,t)}const O=d.device.mobileXL,g=({changeOptionSelected:e,hasToShowIcons:t,isActive:o,isDesktop:n,optionKey:l,optionTooltip:s,optionValue:i})=>(0,S.jsxs)(p.OptionStyle,{isDesktop:n,"data-testid":"fn-styled-components-custom-select-option",isOptionSelected:o,onClick:()=>{e({key:l,label:i})},children:[t&&(0,y.getIcon)(o,l),"string"==typeof i?(0,S.jsx)(p.OptionLabelStyles,{isDesktop:n,isOptionSelected:o,children:i}):(0,S.jsx)(p.OptionLabelStyles,{isDesktop:n,isOptionSelected:o,dangerouslySetInnerHTML:i}),s&&(0,S.jsx)(f.default,{content:s,placement:"right",shouldRenderInPortal:!0})]}),b=e=>Object.keys(e)[0],v=({customIcon:e,hasToShowIcons:t,optionSelected:o})=>t?e?(0,S.jsx)(p.CustomSelectIconStyles,{"data-testid":"fn-styled-components-custom-select-icon",children:e}):"-"===o?.key||o?.isPlaceholder?null:(0,S.jsx)(p.IconCircleCheckFillStyles,{}):null,x=({isOpen:e,shouldHideDefaultIcon:t})=>t?null:e?(0,S.jsx)(p.IconUpStyles,{}):(0,S.jsx)(p.IconDownStyles,{}),C=()=>"undefined"==typeof window||"function"!=typeof window.matchMedia?null:window.matchMedia(O),_=e=>(({isOpen:e})=>{const t=C(),o=!!t&&!t.matches;return e&&o})({isOpen:e})?(0,S.jsx)(c.default.bodyOverflowHidden,{}):null,w=e=>{if(!e||"undefined"==typeof document)return!1;const t=C();return!!t&&!t.matches},k=()=>{if("undefined"==typeof window||"function"!=typeof window.matchMedia)return!1;const e=window.matchMedia(O);return!(!e||"function"!=typeof e.addEventListener)&&!e.matches},I=(0,a.default)(i.default).withConfig({displayName:"CustomSelect__InteractiveBottomSheetAnimationStyles",componentId:"sc-bx6ost-0"})(["",""],({$isOpen:e})=>(0,a.css)(["bottom:0;left:0;pointer-events:",";position:fixed;right:0;visibility:",";z-index:",";"],e?"auto":"none",e?"visible":"hidden",r.default.zHigher)),j=({isOpen:e,onClose:t,shouldPortalOnMobile:o})=>{if(!e)return null;const n=(0,S.jsx)(p.ListBackdropStyles,{"data-testid":"fn-styled-components-custom-select-backdrop",onClick:t});return k()||w(o)?s.default.createPortal(n,document.body):n},M=({changeOptionSelected:e,hasToShowIcons:t,isOpen:o,options:n,optionSelected:l,optionsTooltip:i,shouldPortalOnMobile:c})=>{const a=(0,S.jsx)(p.ListStyles,{"data-testid":"fn-styled-components-custom-select-list",children:Object.keys(n).map(o=>(0,S.jsx)(g,{changeOptionSelected:e,hasToShowIcons:t,isActive:o===l.ke
1y,optionKey:o,optionTooltip:i[o],optionValue:n[o]},o))}),d=k()?((e,t)=>(0,S.jsx)(I,{$isOpen:e,config:{directionVertical:{enter:u.AnimationVerticalDirection.UP,exit:u.AnimationVerticalDirection.DOWN},finalOpacity:e?1:0,finalPosition:"fixed",finalY:e?"0":"100%",initialOpacity:0,initialY:"100%"},dataTestId:"fn-styled-components-custom-select-list-animation",delayToken:r.default.animationTimeXS,durationToken:r.default.animationTimeS,isExiting:!e,type:u.AnimationTypes.SLIDE_VERTICAL,children:t}))(o,a):a;return k()||w(c)?s.default.createPortal(d,document.body):d},P=({optionSelected:e,shouldRenderSelectedOptionText:t})=>t?"string"!=typeof e.label?(0,S.jsx)(p.OptionSelectTextStyles,{"data-testid":"fn-styled-components-custom-select-text",dangerouslySetInnerHTML:e.label,isPlaceholder:!!e.isPlaceholder}):(0,S.jsx)(p.OptionSelectTextStyles,{"data-testid":"fn-styled-components-custom-select-text",isPlaceholder:!!e.isPlaceholder,children:e.label}):null;t.default=({className:e="",currentValue:t,customIcon:o=null,error:n,footerLabel:s="",hasTooltip:i=!1,hasToShowIcons:c=!0,initialOptionSelected:r,name:a,onChange:d,options:u,optionsTooltip:m={},placeholder:O,shouldHideDefaultIcon:g=!1,shouldPortalOnMobile:C=!1,shouldRenderSelectedOptionText:w=!0,tooltipContent:I=""})=>{const[T,E]=(0,l.useState)(!1),[V,D]=(0,l.useState)(!1),[L,W]=(0,l.useState)((({initialOptionSelected:e,options:t,placeholder:o})=>""!==e?{key:e,label:t[e]}:o?{isPlaceholder:!0,key:null,label:o}:{key:null,label:t[b(t)]})({initialOptionSelected:r,options:u,placeholder:O})),A=(0,l.useRef)(null);return(0,l.useEffect)(()=>(0,y.handleClickOutside)(A.current,()=>E(!1)),[]),(0,l.useEffect)(()=>{(({changeIsOpen:e,onChange:t,optionSelected:o})=>{e(!1),!o.isSilentChange&&o.key&&t(o.key)})({changeIsOpen:E,onChange:d,optionSelected:L})},[L]),(0,l.useEffect)(()=>{(({changeOptionSelected:e,currentValue:t,options:o,placeholder:n})=>{(t||""===t)&&e((({currentValue:e,options:t,placeholder:o})=>{const n=t[e];return{isPlaceholder:!n&&!!o,key:e,label:n||o||"",isSilentChange:!0}})({currentValue:t,options:o,placeholder:n}))})({changeOptionSelected:W,currentValue:t,options:u,placeholder:O})},[t]),(0,l.useEffect)(()=>{T?D(!0):k()||D(!1)},[T]),(0,S.jsxs)(p.SelectContainerStyles,{className:e,ref:A,children:[_(T),(0,S.jsxs)(p.SummaryStyles,{"data-testid":"fn-styled-components-custom-select-summary",hasError:!!n,onClick:()=>{E(!T)},children:[(0,S.jsx)(p.ForcedWrapperStyles,{children:(0,S.jsxs)(p.OptionSelectedAndIconStyles,{children:[(0,S.jsx)(v,{customIcon:o,hasToShowIcons:c,optionSelected:L}),P({optionSelected:L,shouldRenderSelectedOptionText:w})]})}),(0,S.jsx)(x,{isOpen:T,shouldHideDefaultIcon:g}),!!s&&(0,S.jsx)(p.FooterLabelStyles,{children:s})]}),j({isOpen:T,onClose:()=>{E(!1)},shouldPortalOnMobile:C}),V&&M({changeOptionSelected:W,hasToShowIcons:c,isOpen:T,options:u,optionSelected:L,optionsTooltip:m,shouldPortalOnMobile:C}),i&&(0,S.jsx)(f.default,{content:I}),(0,S.jsx)(h.default,{error:n,id:`${a}_error`})]})};e.exports=t.default},32481:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(86212),l=o(74848);t.default=({error:e,errorClass:t,id:o})=>e?(0,l.jsxs)(n.ValidationErrorStyles,{"aria-live":"polite",id:o,className:t,children:[(0,l.jsx)(n.AlertIconWrapStyles,{children:(0,l.jsx)(n.AlertIconSVGStyles,{"aria-hidden":"true"})}),e]}):null;e.exports=t.default},86212:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationErrorStyles=t.AlertIconWrapStyles=t.AlertIconSVGStyles=void 0;var l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var l,s,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(l=t?n:o){if(l.has(e))return l.get(e);l.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((s=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(s.get||s.set)?l(i,t,s):i[t]=e[t]);return i}(e,t)}(o(30496)),s=n(o(92099)),i=n(o(89883));t.AlertIconSVGStyles=(0,l.default)(s.default).withConfig({displayName:"InputValidationErrorMessagestyles__AlertIconSVGStyles",componentId:"sc-1vn6yhu-0"})(["",""],({theme:e})=>(0,l.css)(["fill:",";flex-shrink:0;height:",";width:",";"],e.colorError,e.iconsSizeS,e.iconsSizeS)),t.ValidationErrorStyles=l.default.span.withConfig({displayName:"InputValidationErrorMessagestyles__ValidationErrorStyles",componentId:"sc-1vn6yhu-1"})(["",""],({theme:e})=>(0,l.css)([""," align-items:center;color:",";display:flex;left:0;line-height:",";padding-top:",";position:absolute;top:100%;"],i.default.XXStoXS,e.colorError,e.lineHeightXS,e.r050)),t.AlertIconWrapStyles=l.default.span.withConfig({displayName:"InputValidationErrorMessagestyles__AlertIconWrapStyles",componentId:"sc-1vn6yhu-2"})(["",";"],({theme:e})=>(0,l.css)(["padding:0 ",";"],e.r025))}
1,31996:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.handleClickOutside=t.getIcon=void 0;var n=o(77807),l=o(74848);t.handleClickOutside=(e,t)=>{const o=o=>{e.contains(o.target)||t()};return document.addEventListener("click",o),()=>document.removeEventListener("click",o)};t.getIcon=(e,t)=>"-"===t?e?(0,l.jsx)(n.IconRadioCheckedStyles,{"data-testid":"fn-styled-components-custom-select-radio-checked"}):(0,l.jsx)(n.IconRefreshStyles,{"data-testid":"fn-styled-components-custom-select-refresh"}):e?(0,l.jsx)(n.IconRadioCheckedStyles,{"data-testid":"fn-styled-components-custom-select-radio-checked"}):(0,l.jsx)(n.IconRadioStyles,{"data-testid":"fn-styled-components-custom-select-radio-unchecked"})}}]);
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.