From 3cb2ab6fe1b49cce5f10fc11f5a8e8ea82bad6dc Mon Sep 17 00:00:00 2001 From: wojtekn Date: Thu, 12 Dec 2024 17:14:17 +0000 Subject: [PATCH] Fix missing search overlay in some themes like Rebalance (#40472) * Set body opacity to 1 when instant search overlay is displayed * changelog * Update condition to execute only when opacity is 0 * Set opacity to 1 always when it has incorrect value Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12301149601 Upstream-Ref: Automattic/jetpack@412babae299b88ecb249b08fd09ae96aa7b9448c --- CHANGELOG.md | 3 +++ build/customberg/jp-search-configure.asset.php | 2 +- build/customberg/jp-search-configure.js | 2 +- build/instant-search/jp-search.asset.php | 2 +- build/instant-search/jp-search.chunk-main-payload.js | 4 ++-- build/instant-search/jp-search.js | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdbb256..94927cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ This is an alpha version! The changes listed here are not final. ### Changed - Updated package dependencies. +### Fixed +- Fix missing instant search dialog for themes like Rebalance + ## [0.47.3] - 2024-12-09 ### Changed - Updated package dependencies. [#40363] diff --git a/build/customberg/jp-search-configure.asset.php b/build/customberg/jp-search-configure.asset.php index 7715069..710fc3e 100644 --- a/build/customberg/jp-search-configure.asset.php +++ b/build/customberg/jp-search-configure.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => 'ce8fbc15eae5d00ca0f2'); + array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '4d8a154579b1811823a6'); diff --git a/build/customberg/jp-search-configure.js b/build/customberg/jp-search-configure.js index 24e7860..ae9a1fa 100644 --- a/build/customberg/jp-search-configure.js +++ b/build/customberg/jp-search-configure.js @@ -9,7 +9,7 @@ const t=__("Customize Jetpack Search","jetpack-search-pkg");return React.createE /* translators: accessibility text for the widgets screen settings landmark region. */ "aria-label":__("Jetpack Search customization settings","jetpack-search-pkg"),className:"interface-interface-skeleton__sidebar",role:"region",tabIndex:"-1"},React.createElement(o.A,{disableSidebar:s,enabledSidebarName:t,enableSidebar:r})))))}},7361:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(6427),n=r(7723),a=r(617),o=r(7547);const __=n.__;function i(){const{isSaving:e,hasUnsavedEdits:t,saveRecords:r}=(0,a.A)();return React.createElement(s.Button,{"aria-disabled":e,className:"jp-search-configure-save-button",disabled:!t,isBusy:e,variant:"primary",onClick:(...t)=>{e||((0,o.yM)(`${o.be}_save_button_click`),r(...t))}},e?__("Saving…","jetpack-search-pkg"):__("Save","jetpack-search-pkg",0))}},3976:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(4715),n=r(7143),a=r(7723);const __=a.__,o=[{name:"Dull blue",color:"#463ECE"},{name:"Jazzberry jam",color:"#C6446F"},{name:"June bud",color:"#C4D455"}];function i({disabled:e,value:t,onChange:r}){const a=(0,n.useSelect)((e=>{const t=e("core/block-editor").getSettings()??{};return Array.isArray(t?.colors)&&t.colors.length>0?t.colors:o}));return React.createElement("div",{className:"jp-search-configure-color-input components-base-control"},React.createElement(s.__experimentalColorGradientControl,{label:__("Highlight for search terms","jetpack-search-pkg"),disabled:e,colorValue:t,colors:a,disableCustomColors:!1,disableCustomGradients:!0,onColorChange:r}))}},8659:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(6336),r(2926),r(887),r(3326),r(3893),r(3338),r(5508);var s=r(6427),n=r(6087),a=r(7723);const __=a.__,o=window.JetpackInstantSearchOptions.postTypes;function i({disabled:e,onChange:t,validPostTypes:r=o,value:a}){const i=(0,n.useMemo)((()=>Object.keys(r)),[r]),c=(0,n.useMemo)((()=>a&&Array.isArray(a)?new Set(a):new Set),[a]),l=c.size===i.length-1;return React.createElement("div",{className:"jp-search-configure-excluded-post-types-control components-base-control"},React.createElement("div",{className:"jp-search-configure-excluded-post-types-control__label"},__("Excluded post types","jetpack-search-pkg")),l&&React.createElement(s.Notice,{isDismissible:!1,status:"info"},__("You must leave at least one post type unchecked.","jetpack-search-pkg")),i.map((r=>{return React.createElement(s.CheckboxControl,{checked:c.has(r),disabled:e||!c.has(r)&&l,key:r,label:o[r].name,onChange:(n=r,e=>{const r=new Set(c);e?r.add(n):r.delete(n),t([...r])}),value:r,__nextHasNoMarginBottom:!0});var n})))}},3161:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(6427),n=r(7723),a=r(1113),o=r(5938),i=r(7361),c=r(8394),l=r(5372),u=r(2772),p=r(9081);const __=n.__;function h(e){const{enabledSidebarName:t,enableSidebar:r,disableSidebar:n}=e;return React.createElement("div",{className:"interface-complementary-area jp-search-configure-sidebar"},React.createElement("div",{className:"components-panel__header interface-complementary-area-header jp-search-configure-sidebar__panel-tabs",tabIndex:"-1"},React.createElement(p.A,{enabledSidebarName:t,enableSidebar:r}),React.createElement(i.A,null),React.createElement(s.Button,{"aria-label":__("Show preview","jetpack-search-pkg"),className:"jp-search-configure-sidebar__hide-settings-button",variant:"secondary",onClick:n},React.createElement(a.A,{icon:o.A}))),React.createElement("div",{className:"components-panel"},t===c.e&&React.createElement(l.A,null),t===c.B&&React.createElement(u.A,null)))}},5372:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var s=r(4715),n=r(6427),a=r(7723),o=r(3832),i=r(4120);const __=a.__;function c(){return React.createElement("div",{className:"jp-search-configure-sidebar-description"},React.createElement(s.BlockIcon,{icon:i.J}),React.createElement("div",null,React.createElement("p",null,__("Jetpack Search will allow your visitors to get search results as soon as they start typing. Customize this experience to offer better results that match your site.","jetpack-search-pkg")),React.createElement(n.Button,{href:"widgets.php",variant:"tertiary"},__("Edit widgets","jetpack-search-pkg")),React.createElement(n.Button,{href:(0,o.addQueryArgs)("customize.php",{"autofocus[section]":"jetpack_search",return:`${window.location.pathname}${window.location.search}`}),variant:"tertiary"},__("Configure in the Customizer","jetpack-search-pkg"))))}},2772:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(9060);var s=r(6427),n=r(7723),a=r(3022),o=r(617),i=r(4678),c=r(9611),l=r(7479),u=r(3976),p=r(8659),h=r(5666);const __=n.__,{isFreePlan:d=!1}=window[l.O5];function f(){const{color:e,excludedPostTypes:t,infiniteScroll:r=!0,filteringOpensOverlay:n=!0,resultFormat:f,setColor:m,setExcludedPostTypes:g,setInfiniteScroll:y,setFilteringOpensOverlay:v,setResultFormat:_,setShowLogo:b,setSort:w,setSortEnabled:E,setTheme:k,setTrigger:S,showLogo:j=!0,sort:C,sortEnabled:x=!0,theme:A,trigger:O,postDate:N=!1,setPostDate:R}=(0,c.A)(),{isSaving:F}=(0,o.A)(),{isLoading:P}=(0,i.A)(),T=F||P,I=[{label:__("Relevance (recommended)","jetpack-search-pkg"),value:"relevance"},{label:__("Newest first","jetpack-search-pkg"),value:"newest"},{label:__("Oldest first","jetpack-search-pkg"),value:"oldest"}];return f===l.s6&&I.push({label:__("Rating","jetpack-search-pkg"),value:"rating_desc"},{label:__("Price: low to high","jetpack-search-pkg"),value:"price_asc"},{label:__("Price: high to low","jetpack-search-pkg"),value:"price_desc"}),React.createElement(s.Panel,{className:(0,a.A)("jp-search-configure-sidebar-options",{"jp-search-configure-sidebar-options--is-disabled":T})},React.createElement(s.PanelBody,{title:__("Styling","jetpack-search-pkg"),initialOpen:!0},React.createElement(h.A,{disabled:T,onChange:k,value:A}),React.createElement(s.RadioControl,{className:"jp-search-configure-result-format-radios",label:__("Result format","jetpack-search-pkg"),selected:f,options:[{label:__("Minimal","jetpack-search-pkg"),value:"minimal"},{label:__("Expanded (shows images)","jetpack-search-pkg"),value:"expanded"},{label:__("Product (for WooCommerce stores)","jetpack-search-pkg"),value:"product"}],onChange:_}),React.createElement(u.A,{disabled:T,onChange:m,value:e})),React.createElement(s.PanelBody,{title:__("Search settings","jetpack-search-pkg"),initialOpen:!0},React.createElement(s.SelectControl,{className:"jp-search-configure-default-sort-select",disabled:T,label:__("Default sort","jetpack-search-pkg"),value:C,options:I,onChange:w,__nextHasNoMarginBottom:!0}),React.createElement(s.SelectControl,{className:"jp-search-configure-overlay-trigger-select",disabled:T,label:__("Overlay trigger","jetpack-search-pkg"),value:O,options:[{label:__("Open when user submits the form (recommended)","jetpack-search-pkg"),value:"submit"},{label:__("Open when user starts typing","jetpack-search-pkg"),value:"immediate"}],onChange:S,__nextHasNoMarginBottom:!0}),React.createElement(s.ToggleControl,{className:"jp-search-configure-filtering-opens-overlay-toggle",checked:n,disabled:T,help:__("Open overlay when filters are used outside the Jetpack Sidebar","jetpack-search-pkg"),label:__("Open overlay from filter links","jetpack-search-pkg"),onChange:v,__nextHasNoMarginBottom:!0}),React.createElement(p.A,{disabled:T,onChange:g,value:t})),React.createElement(s.PanelBody,{title:__("Additional settings","jetpack-search-pkg"),initialOpen:!0},React.createElement(s.ToggleControl,{className:"jp-search-configure-show-sort-toggle",checked:x,disabled:T,label:__("Show sort selector","jetpack-search-pkg"),onChange:E,__nextHasNoMarginBottom:!0}),React.createElement(s.ToggleControl,{className:"jp-search-configure-infinite-scroll-toggle",checked:r,disabled:T,label:__("Enable infinite scroll","jetpack-search-pkg"),onChange:y,__nextHasNoMarginBottom:!0}),"expanded"===f&&React.createElement(s.ToggleControl,{className:"jp-search-configure-post-date-toggle",checked:N,disabled:T,label:__("Show post date","jetpack-search-pkg"),onChange:R,__nextHasNoMarginBottom:!0}),!d&&React.createElement(s.ToggleControl,{className:"jp-search-configure-show-logo-toggle",checked:j,disabled:T,label:__('Show "Powered by Jetpack"',"jetpack-search-pkg"),onChange:b,__nextHasNoMarginBottom:!0})))}},9081:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(6427),n=r(7723),a=r(3022),o=r(8394);const __=n.__;function i({enabledSidebarName:e,enableSidebar:t}){return React.createElement("ul",null,React.createElement("li",null,React.createElement(c,{enableSidebar:t,identifier:o.e,isActive:e===o.e,label:__("Jetpack Search","jetpack-search-pkg")})),React.createElement("li",null,React.createElement(c,{enableSidebar:t,identifier:o.B,isActive:e===o.B,label:__("Options","jetpack-search-pkg")})))}function c({enableSidebar:e,identifier:t,label:r,isActive:o}){const i=o?(0,n.sprintf)( // translators: %s: sidebar label e.g: "Options". -__("%s (selected)","jetpack-search-pkg"),r):r;return React.createElement(s.Button,{onClick:()=>e(t),className:(0,a.A)("jp-search-configure-sidebar__panel-tab",{"is-active":o}),"aria-label":i,"data-label":r},r)}},5666:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(6427),n=r(7723),a=r(3022),o=r(894);const __=n.__;function i({disabled:e,value:t,onChange:r}){return React.createElement("div",{className:"jp-search-configure-theme-buttons components-base-control"},React.createElement(s.Button,{className:(0,a.A)({"jp-search-configure-theme-button--selected":"light"===t}),disabled:e,onClick:()=>r("light"),variant:"link"},React.createElement(o.A,{theme:"light"}),React.createElement("span",{"aria-label":__("Light Theme","jetpack-search-pkg")},__("Light","jetpack-search-pkg"))),React.createElement(s.Button,{className:(0,a.A)({"jp-search-configure-theme-button--selected":"dark"===t}),disabled:e,onClick:()=>r("dark"),variant:"link"},React.createElement(o.A,{theme:"dark"}),React.createElement("span",{"aria-label":__("Dark Theme","jetpack-search-pkg")},__("Dark","jetpack-search-pkg"))))}},894:(e,t,r)=>{"use strict";function s({theme:e}){const t="dark"===e?"#000":"#fff",r="dark"===e?"#4F5861":"#DDE5EE";return React.createElement("svg",{width:"104",height:"80",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},React.createElement("rect",{x:"7.5",y:"7.5",width:"89",height:"65",rx:"3.5",fill:t,stroke:r}),React.createElement("path",{d:"M16 20a4 4 0 014-4h49a4 4 0 010 8H20a4 4 0 01-4-4zM42 55.5a1.5 1.5 0 011.5-1.5h32a1.5 1.5 0 010 3h-32a1.5 1.5 0 01-1.5-1.5zM42 60.5a1.5 1.5 0 011.5-1.5h11a1.5 1.5 0 010 3h-11a1.5 1.5 0 01-1.5-1.5zM16 47a4 4 0 014-4h12a4 4 0 014 4v12a4 4 0 01-4 4H20a4 4 0 01-4-4V47zM42 48a3 3 0 013-3h40a3 3 0 110 6H45a3 3 0 01-3-3zM8 32h89v1H8z",fill:r}))}r.d(t,{A:()=>s})},617:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(7143),n=r(1609);function a(){const{saveEntityRecord:e,undo:t,redo:r}=(0,s.useDispatch)("core"),a=(0,s.useSelect)((e=>e("core").getEntityRecordEdits("root","site"))),o=a&&Object.keys(a).length>0,i=(0,s.useSelect)((e=>e("core").isSavingEntityRecord("root","site"))),c=(0,s.useSelect)((e=>e("core").hasUndo())),l=(0,s.useSelect)((e=>e("core").hasRedo())),u=(0,n.useCallback)((()=>{o&&e("root","site",a)}),[a,o,e]);return{editedEntities:a,hasRedo:c,hasUndo:l,hasUnsavedEdits:o,isSaving:i,redo:r,saveRecords:u,undo:t}}},4678:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(7143);function n(){return{isLoading:!(0,s.useSelect)((e=>e("core").getSite()))}}},9611:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(3582),n=r(7479),a=r(1609);const o=window.JetpackInstantSearchOptions.postTypes;function i(){const[e,t]=(0,s.useEntityProp)("root","site","jetpack_search_color_theme"),[r,i]=(0,s.useEntityProp)("root","site","jetpack_search_result_format"),[c,l]=(0,s.useEntityProp)("root","site","jetpack_search_default_sort"),[u,p]=(0,s.useEntityProp)("root","site","jetpack_search_overlay_trigger"),[h,d]=(0,s.useEntityProp)("root","site","jetpack_search_highlight_color"),[f,m]=(0,s.useEntityProp)("root","site","jetpack_search_enable_sort"),[g,y]=(0,s.useEntityProp)("root","site","jetpack_search_inf_scroll"),[v,_]=(0,s.useEntityProp)("root","site","jetpack_search_filtering_opens_overlay"),[b,w]=(0,s.useEntityProp)("root","site","jetpack_search_show_powered_by"),[E,k]=(0,s.useEntityProp)("root","site","jetpack_search_show_post_date"),[S,j]=(0,s.useEntityProp)("root","site","jetpack_search_excluded_post_types");return{color:h,excludedPostTypes:(0,a.useMemo)((()=>S?.split(",").filter((e=>e in o))),[S]),infiniteScroll:g,filteringOpensOverlay:v,resultFormat:r,setColor:d,setExcludedPostTypes:e=>j(e.filter((e=>e in o)).join(",")),setInfiniteScroll:y,setFilteringOpensOverlay:_,setResultFormat:e=>{const t=r;i(e),"product"===t&&n.Wq.has(c)&&l(n.x6)},setShowLogo:w,setSort:l,setSortEnabled:m,setTheme:t,setTrigger:p,showLogo:b,sort:c,sortEnabled:f,theme:e,trigger:u,postDate:E,setPostDate:k}}},7547:(e,t,r)=>{"use strict";r.d(t,{be:()=>n,n_:()=>a,wk:()=>o,yM:()=>i});var s=r(8924);const n="jetpack_search_customberg",a=(...e)=>(0,s.ze)(...e,!0),o=(...e)=>(0,s.wk)(...e,!0),i=(...e)=>(0,s.yM)(...e,!0)},8394:(e,t,r)=>{"use strict";r.d(t,{B:()=>n,e:()=>s});const s="jetpack-customize-search/info",n="jetpack-customize-search/options"},6084:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(1609),n=r(3398);class a extends s.Component{componentDidMount(){(0,n.UC)(this.handleOverlayOptionsUpdate),(0,n.Tx)(this.props.toggleResults)}handleOverlayOptionsUpdate=e=>{this.props.updateOverlayOptions(e,(()=>this.props.showResults()))};render(){return null}}},8165:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(3257),n=r.n(s),a=r(1609),o=r(7152);class i extends a.Component{constructor(){super(...arguments),this.state={isComposing:!1,bodyScrollTop:0,prefersReducedMotion:(0,o.y)(),previousStyle:null,previousBodyStyleAttribute:""},this.props.initializeQueryValues()}componentDidMount(){this.disableUnnecessaryFormAndInputAttributes(),this.addEventListeners()}componentWillUnmount(){this.removeEventListeners(),this.restoreBodyScroll()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.fixBodyScroll()}disableUnnecessaryFormAndInputAttributes(){document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.removeAttribute("required"),e.removeAttribute("autocomplete"),e.form.removeAttribute("autocomplete")}))}addEventListeners(){window.addEventListener("popstate",this.handleHistoryNavigation),document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.form.addEventListener("submit",this.handleSubmit),e.addEventListener("keyup",this.handleKeyup),e.addEventListener("input",this.handleInput),e.addEventListener("compositionstart",this.handleCompositionStart),e.addEventListener("compositionend",this.handleCompositionEnd)})),document.querySelectorAll(this.props.themeOptions.overlayTriggerSelector).forEach((e=>{e.addEventListener("click",this.handleOverlayTriggerClick,!0)})),document.querySelectorAll(this.props.themeOptions.filterInputSelector).forEach((e=>{e.addEventListener("click",this.handleFilterInputClick)}))}removeEventListeners(){window.removeEventListener("popstate",this.handleHistoryNavigation),document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.form.removeEventListener("submit",this.handleSubmit),e.removeEventListener("keyup",this.handleKeyup),e.removeEventListener("input",this.handleInput),e.removeEventListener("compositionstart",this.handleCompositionStart),e.removeEventListener("compositionend",this.handleCompositionEnd)})),document.querySelectorAll(this.props.themeOptions.overlayTriggerSelector).forEach((e=>{e.removeEventListener("click",this.handleOverlayTriggerClick,!0)})),document.querySelectorAll(this.props.themeOptions.filterInputSelector).forEach((e=>{e.removeEventListener("click",this.handleFilterInputClick)}))}handleCompositionStart=()=>this.setState({isComposing:!0});handleCompositionEnd=()=>this.setState({isComposing:!1});handleFilterInputClick=e=>{e.preventDefault(),e.currentTarget.dataset.filterType&&("taxonomy"===e.currentTarget.dataset.filterType?this.props.setFilter(e.currentTarget.dataset.taxonomy,e.currentTarget.dataset.val):this.props.setFilter(e.currentTarget.dataset.filterType,e.currentTarget.dataset.val)),this.props.setSearchQuery(""),this.props.showResults()};handleHistoryNavigation=()=>{this.props.initializeQueryValues({isHistoryNavigation:!0})};handleInput=n()((e=>{e.inputType?.includes("format")||""===e.target.value||this.state.isComposing||"submit"===this.props.overlayOptions.overlayTrigger||this.state.prefersReducedMotion||(this.props.setSearchQuery(e.target.value),["immediate","results"].includes(this.props.overlayOptions.overlayTrigger)&&this.props.showResults())}),200);handleKeyup=e=>{"Enter"===e.key&&(this.props.setSearchQuery(e.target.value),this.props.showResults())};handleOverlayTriggerClick=e=>{e.stopImmediatePropagation(),this.props.setSearchQuery(""),this.props.showResults()};handleSubmit=e=>{if(e.preventDefault(),this.handleInput.flush(),!this.props.isVisible){const t=e.target.querySelector(this.props.themeOptions.searchInputSelector)?.value;"string"==typeof t&&this.props.setSearchQuery(t),this.props.showResults()}};fixBodyScroll=()=>{this.props.isVisible?(this.preventBodyScroll(),window?.scrollTo(0,0)):this.props.isVisible||this.restoreBodyScroll()};preventBodyScroll(){this.setState({bodyScrollTop:parseInt(window.scrollY)||0,previousStyle:{top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,scrollBehavior:document.documentElement.style.scrollBehavior},previousBodyStyleAttribute:document.body.getAttribute("style")},(()=>{const e=document.documentElement?.scrollHeight-document.body?.scrollHeight||0;document.body.setAttribute("style","position: fixed !important"),document.body.style.top=`-${this.state.bodyScrollTop-e}px`,document.body.style.left=0,document.body.style.right=0}))}restoreBodyScroll(){this.state.previousBodyStyleAttribute?document.body.setAttribute("style",this.state.previousBodyStyleAttribute):document.body.removeAttribute("style"),document.body.style.top=this.state.previousStyle?.top??"",document.body.style.left=this.state.previousStyle?.left??"",document.body.style.right=this.state.previousStyle?.right??"",document.documentElement.style.scrollBehavior="revert",this.state.bodyScrollTop>0&&window.scrollTo(0,this.state.bodyScrollTop),document.documentElement.style.scrollBehavior=this.state.previousStyle?.scrollBehavior??"",this.setState({bodyScrollTop:0,previousStyle:null,previousBodyStyleAttribute:""})}render(){return null}}},1539:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(9060);var s=r(7723),n=r(1609),a=r.n(n);const __=s.__;class o extends n.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGTitle(e){if("title"in this.props)return this.props.title?a().createElement("title",null,this.props.title):null;switch(e){default:return null;case"gridicons-audio":return a().createElement("title",null,__("Has audio.","jetpack-search-pkg"));case"gridicons-calendar":return a().createElement("title",null,__("Is an event.","jetpack-search-pkg"));case"gridicons-cart":return a().createElement("title",null,__("Is a product.","jetpack-search-pkg"));case"chevron-down":return a().createElement("title",null,__("Show filters","jetpack-search-pkg"));case"gridicons-comment":return a().createElement("title",null,__("Matching comment.","jetpack-search-pkg"));case"gridicons-cross":return a().createElement("title",null,__("Close search results","jetpack-search-pkg"));case"gridicons-filter":return a().createElement("title",null,__("Toggle search filters.","jetpack-search-pkg"));case"gridicons-folder":return a().createElement("title",null,__("Category","jetpack-search-pkg"));case"gridicons-image-multiple":return a().createElement("title",null,__("Has multiple images.","jetpack-search-pkg"));case"gridicons-image":return a().createElement("title",null,__("Has an image.","jetpack-search-pkg"));case"gridicons-page":return a().createElement("title",null,__("Page","jetpack-search-pkg"));case"gridicons-post":return a().createElement("title",null,__("Post","jetpack-search-pkg"));case"gridicons-jetpack-search":case"gridicons-search":return a().createElement("title",null,__("Magnifying Glass","jetpack-search-pkg"));case"gridicons-tag":return a().createElement("title",null,__("Tag","jetpack-search-pkg"));case"gridicons-video":return a().createElement("title",null,__("Has a video.","jetpack-search-pkg"))}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return a().createElement("g",null,a().createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-block":return a().createElement("g",null,a().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return a().createElement("g",null,a().createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"}));case"gridicons-cart":return a().createElement("g",null,a().createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"}));case"gridicons-checkmark":return a().createElement("g",null,a().createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}));case"gridicons-chevron-down":return a().createElement("g",null,a().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"}));case"gridicons-comment":return a().createElement("g",null,a().createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"}));case"gridicons-cross":return a().createElement("g",null,a().createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"}));case"gridicons-filter":return a().createElement("g",null,a().createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"}));case"gridicons-folder":return a().createElement("g",null,a().createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"}));case"gridicons-image":return a().createElement("g",null,a().createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"}));case"gridicons-image-multiple":return a().createElement("g",null,a().createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"}));case"gridicons-info":return a().createElement("g",null,a().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}));case"gridicons-jetpack-search":return a().createElement("g",null,a().createElement("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"}));case"gridicons-pages":return a().createElement("g",null,a().createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"}));case"gridicons-posts":return a().createElement("g",null,a().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"}));case"gridicons-search":return a().createElement("g",null,a().createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"}));case"gridicons-star-outline":return a().createElement("g",null,a().createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"}));case"gridicons-star":return a().createElement("g",null,a().createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}));case"gridicons-tag":return a().createElement("g",null,a().createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"}));case"gridicons-video":return a().createElement("g",null,a().createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"}))}}render(){const{size:e=24,className:t=""}=this.props,r=this.props.height||e,s=this.props.width||e,n=this.props.style||{height:r,width:s},o="gridicons-"+this.props.icon;let i=["gridicon",o,t];return this.needsOffset(o,e)&&i.push("needs-offset"),i=i.join(" "),a().createElement("svg",{"aria-label":this.props.description,className:i,focusable:this.props.focusable,height:r,onClick:this.props.onClick,style:n,viewBox:"0 0 24 24",width:s,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"]},this.getSVGTitle(o),this.renderIcon(o))}}const i=o},4120:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,J:()=>i});var s=r(7723),n=r(1609),a=r.n(n);const __=s.__,o="#fff",i=a().createElement("svg",{className:"jetpack-instant-search__jetpack-colophon-logo",height:12,width:12,viewBox:"0 0 32 32"},a().createElement("path",{className:"jetpack-logo__icon-circle",fill:"#069e08",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),a().createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:o,points:"15,19 7,19 15,3 "}),a().createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:o,points:"17,29 17,13 25,13 "})),c=e=>{const t="string"==typeof e.locale?e.locale.split("-",1)[0]:null,r=t&&"en"!==t?"https://"+t+".jetpack.com/upgrade/search?utm_source=poweredby":"https://jetpack.com/upgrade/search/?utm_source=poweredby";return a().createElement("div",{className:"jetpack-instant-search__jetpack-colophon"},a().createElement("a",{href:r,rel:"external noopener noreferrer nofollow",target:"_blank",className:"jetpack-instant-search__jetpack-colophon-link"},i,a().createElement("span",{className:"jetpack-instant-search__jetpack-colophon-text"},__("Search powered by Jetpack","jetpack-search-pkg"))))}},8961:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(1609),n=r.n(s),a=r(1539);const o=({type:e,children:t})=>"warning"!==e?null:n().createElement("div",{className:"jetpack-instant-search__notice jetpack-instant-search__notice--warning"},n().createElement(a.A,{icon:"info",size:20}),n().createElement("div",null,t))},6973:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(7723),n=r(1609),a=r.n(n),o=r(7479);const __=s.__,i=e=>{const{children:t,closeOverlay:r,colorTheme:s,hasOverlayWidgets:i,isVisible:c}=e;return(0,n.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),r())},t=e=>{if("Tab"===e.key){const t=document.getElementsByClassName(o.w4)[0].contains(e.target),r=document.getElementsByClassName(o.Md)[0],s=document.getElementById(o.m2);!0===e.shiftKey&&(e.target!==r&&!1!==t||(e.preventDefault(),s.focus())),!1===e.shiftKey&&(e.target!==s&&!1!==t||(e.preventDefault(),r.focus()))}},s=e=>{const t=document.getElementsByClassName("jetpack-instant-search__search-results-wrapper")[0];e.target?.isConnected&&t&&!t.contains(e.target)&&r()},n=()=>{window.removeEventListener("click",s),window.removeEventListener("keydown",e),window.removeEventListener("keydown",t)};return c?(window.addEventListener("click",s),window.addEventListener("keydown",e),window.addEventListener("keydown",t)):n(),()=>{n()}}),[r,c]),a().createElement("div",{"aria-hidden":!c,"aria-labelledby":"jetpack-instant-search__overlay-title",className:["jetpack-instant-search",o.w4,`jetpack-instant-search__overlay--${s}`,i?"":"jetpack-instant-search__overlay--no-sidebar",c?"":"is-hidden"].join(" "),role:"dialog"},a().createElement("h1",{id:"jetpack-instant-search__overlay-title",className:"screen-reader-text"},__("Search results","jetpack-search-pkg")),t)}},413:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(1609),n=r.n(s);const a=({className:e,onClick:t,url:r})=>{const s=function(e){const t=e.split("/").filter((e=>e.length>0));return t.shift(),t}(r);return s.length<1?null:n().createElement("div",{className:`jetpack-instant-search__path-breadcrumb ${e||""}`},n().createElement("a",{className:"jetpack-instant-search__path-breadcrumb-link",href:`//${r}`,onClick:t,tabIndex:"-1","aria-hidden":"true"},s.map(((e,t,r)=>n().createElement("span",{className:"jetpack-instant-search__path-breadcrumb-piece",key:e},decodeURIComponent(e),t!==r.length-1?" › ":"")))))}},2355:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var s=r(6072),n=r.n(s),a=r(1609),o=r.n(a),i=r(4809);const c=e=>{const{alt:t,isPhotonEnabled:r,maxHeight:s=600,maxWidth:a=600,src:c,lazyLoad:l=!0,...u}=e,p=(0,i.g)(c,a,s,r);return o().createElement("img",n()({alt:t,src:p,loading:""+(l?"lazy":"eager")},u))}},7846:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(7723),n=r(1609),a=r.n(n),o=r(113),i=r(1539);const __=s.__,c=["youtube","ooyala","anvplayer","wpvideo","bc_video","video","brightcove","tp_video","jwplayer","tempo-video","vimeo"],l=["gallery","ione_media_gallery"],u=["audio","soundcloud"],p={product:"cart",video:"video",gallery:"image-multiple",event:"calendar",events:"calendar"},h=({postType:e,shortcodeTypes:t,iconSize:r=18})=>{if(Object.keys(p).includes(e))return a().createElement(i.A,{icon:p[e],size:r});const s=(0,o.A)(t,c),n=(0,o.A)(t,u),h=(0,o.A)(t,l);return s?a().createElement(i.A,{icon:"video",size:r}):n?a().createElement(i.A,{icon:"audio",size:r}):"page"===e?a().createElement(i.A,{icon:"pages",size:r,description:__("Page","jetpack-search-pkg")}):h?a().createElement(i.A,{icon:"image-multiple",size:r,description:__("Image","jetpack-search-pkg")}):null}},2652:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(1609),n=r.n(s);class a extends s.Component{render(){const{formattedPrice:e,formattedSalePrice:t,formattedRegularPrice:r,price:a,salePrice:o}=this.props;return a?n().createElement("span",{className:"jetpack-instant-search__product-price"},o>0?n().createElement(s.Fragment,null,n().createElement("s",{className:"jetpack-instant-search__product-price-regular",dangerouslySetInnerHTML:{__html:r}}),n().createElement("span",{dangerouslySetInnerHTML:{__html:t}})):n().createElement("span",{dangerouslySetInnerHTML:{__html:e}})):null}}const o=a},6777:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(7723),n=r(1609),a=r.n(n),o=r(1539);const _n=s._n;function i({rating:e=0,count:t=0,permalink:r}){return a().createElement("div",{className:"jetpack-instant-search__product-rating"},a().createElement("span",{"aria-hidden":!0,className:"jetpack-instant-search__product-rating-stars"},Array(5).fill(a().createElement(o.A,{size:16,icon:"star-outline"})).fill(a().createElement(o.A,{size:16,icon:"star"}),0,e))," ",a().createElement("a",{"aria-hidden":!0,className:"jetpack-instant-search__product-rating-count",href:r+"#reviews"},(0,s.sprintf)(/* Translators: the placeholder is the number of product reviews. */ +__("%s (selected)","jetpack-search-pkg"),r):r;return React.createElement(s.Button,{onClick:()=>e(t),className:(0,a.A)("jp-search-configure-sidebar__panel-tab",{"is-active":o}),"aria-label":i,"data-label":r},r)}},5666:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(6427),n=r(7723),a=r(3022),o=r(894);const __=n.__;function i({disabled:e,value:t,onChange:r}){return React.createElement("div",{className:"jp-search-configure-theme-buttons components-base-control"},React.createElement(s.Button,{className:(0,a.A)({"jp-search-configure-theme-button--selected":"light"===t}),disabled:e,onClick:()=>r("light"),variant:"link"},React.createElement(o.A,{theme:"light"}),React.createElement("span",{"aria-label":__("Light Theme","jetpack-search-pkg")},__("Light","jetpack-search-pkg"))),React.createElement(s.Button,{className:(0,a.A)({"jp-search-configure-theme-button--selected":"dark"===t}),disabled:e,onClick:()=>r("dark"),variant:"link"},React.createElement(o.A,{theme:"dark"}),React.createElement("span",{"aria-label":__("Dark Theme","jetpack-search-pkg")},__("Dark","jetpack-search-pkg"))))}},894:(e,t,r)=>{"use strict";function s({theme:e}){const t="dark"===e?"#000":"#fff",r="dark"===e?"#4F5861":"#DDE5EE";return React.createElement("svg",{width:"104",height:"80",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},React.createElement("rect",{x:"7.5",y:"7.5",width:"89",height:"65",rx:"3.5",fill:t,stroke:r}),React.createElement("path",{d:"M16 20a4 4 0 014-4h49a4 4 0 010 8H20a4 4 0 01-4-4zM42 55.5a1.5 1.5 0 011.5-1.5h32a1.5 1.5 0 010 3h-32a1.5 1.5 0 01-1.5-1.5zM42 60.5a1.5 1.5 0 011.5-1.5h11a1.5 1.5 0 010 3h-11a1.5 1.5 0 01-1.5-1.5zM16 47a4 4 0 014-4h12a4 4 0 014 4v12a4 4 0 01-4 4H20a4 4 0 01-4-4V47zM42 48a3 3 0 013-3h40a3 3 0 110 6H45a3 3 0 01-3-3zM8 32h89v1H8z",fill:r}))}r.d(t,{A:()=>s})},617:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(7143),n=r(1609);function a(){const{saveEntityRecord:e,undo:t,redo:r}=(0,s.useDispatch)("core"),a=(0,s.useSelect)((e=>e("core").getEntityRecordEdits("root","site"))),o=a&&Object.keys(a).length>0,i=(0,s.useSelect)((e=>e("core").isSavingEntityRecord("root","site"))),c=(0,s.useSelect)((e=>e("core").hasUndo())),l=(0,s.useSelect)((e=>e("core").hasRedo())),u=(0,n.useCallback)((()=>{o&&e("root","site",a)}),[a,o,e]);return{editedEntities:a,hasRedo:c,hasUndo:l,hasUnsavedEdits:o,isSaving:i,redo:r,saveRecords:u,undo:t}}},4678:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(7143);function n(){return{isLoading:!(0,s.useSelect)((e=>e("core").getSite()))}}},9611:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(3582),n=r(7479),a=r(1609);const o=window.JetpackInstantSearchOptions.postTypes;function i(){const[e,t]=(0,s.useEntityProp)("root","site","jetpack_search_color_theme"),[r,i]=(0,s.useEntityProp)("root","site","jetpack_search_result_format"),[c,l]=(0,s.useEntityProp)("root","site","jetpack_search_default_sort"),[u,p]=(0,s.useEntityProp)("root","site","jetpack_search_overlay_trigger"),[h,d]=(0,s.useEntityProp)("root","site","jetpack_search_highlight_color"),[f,m]=(0,s.useEntityProp)("root","site","jetpack_search_enable_sort"),[g,y]=(0,s.useEntityProp)("root","site","jetpack_search_inf_scroll"),[v,_]=(0,s.useEntityProp)("root","site","jetpack_search_filtering_opens_overlay"),[b,w]=(0,s.useEntityProp)("root","site","jetpack_search_show_powered_by"),[E,k]=(0,s.useEntityProp)("root","site","jetpack_search_show_post_date"),[S,j]=(0,s.useEntityProp)("root","site","jetpack_search_excluded_post_types");return{color:h,excludedPostTypes:(0,a.useMemo)((()=>S?.split(",").filter((e=>e in o))),[S]),infiniteScroll:g,filteringOpensOverlay:v,resultFormat:r,setColor:d,setExcludedPostTypes:e=>j(e.filter((e=>e in o)).join(",")),setInfiniteScroll:y,setFilteringOpensOverlay:_,setResultFormat:e=>{const t=r;i(e),"product"===t&&n.Wq.has(c)&&l(n.x6)},setShowLogo:w,setSort:l,setSortEnabled:m,setTheme:t,setTrigger:p,showLogo:b,sort:c,sortEnabled:f,theme:e,trigger:u,postDate:E,setPostDate:k}}},7547:(e,t,r)=>{"use strict";r.d(t,{be:()=>n,n_:()=>a,wk:()=>o,yM:()=>i});var s=r(8924);const n="jetpack_search_customberg",a=(...e)=>(0,s.ze)(...e,!0),o=(...e)=>(0,s.wk)(...e,!0),i=(...e)=>(0,s.yM)(...e,!0)},8394:(e,t,r)=>{"use strict";r.d(t,{B:()=>n,e:()=>s});const s="jetpack-customize-search/info",n="jetpack-customize-search/options"},6084:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(1609),n=r(3398);class a extends s.Component{componentDidMount(){(0,n.UC)(this.handleOverlayOptionsUpdate),(0,n.Tx)(this.props.toggleResults)}handleOverlayOptionsUpdate=e=>{this.props.updateOverlayOptions(e,(()=>this.props.showResults()))};render(){return null}}},8165:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(3257),n=r.n(s),a=r(1609),o=r(7152);class i extends a.Component{constructor(){super(...arguments),this.state={isComposing:!1,bodyScrollTop:0,prefersReducedMotion:(0,o.y)(),previousStyle:null,previousBodyStyleAttribute:""},this.props.initializeQueryValues()}componentDidMount(){this.disableUnnecessaryFormAndInputAttributes(),this.addEventListeners()}componentWillUnmount(){this.removeEventListeners(),this.restoreBodyScroll()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.fixBodyScroll(),this.fixBodyOpacity()}disableUnnecessaryFormAndInputAttributes(){document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.removeAttribute("required"),e.removeAttribute("autocomplete"),e.form.removeAttribute("autocomplete")}))}addEventListeners(){window.addEventListener("popstate",this.handleHistoryNavigation),document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.form.addEventListener("submit",this.handleSubmit),e.addEventListener("keyup",this.handleKeyup),e.addEventListener("input",this.handleInput),e.addEventListener("compositionstart",this.handleCompositionStart),e.addEventListener("compositionend",this.handleCompositionEnd)})),document.querySelectorAll(this.props.themeOptions.overlayTriggerSelector).forEach((e=>{e.addEventListener("click",this.handleOverlayTriggerClick,!0)})),document.querySelectorAll(this.props.themeOptions.filterInputSelector).forEach((e=>{e.addEventListener("click",this.handleFilterInputClick)}))}removeEventListeners(){window.removeEventListener("popstate",this.handleHistoryNavigation),document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.form.removeEventListener("submit",this.handleSubmit),e.removeEventListener("keyup",this.handleKeyup),e.removeEventListener("input",this.handleInput),e.removeEventListener("compositionstart",this.handleCompositionStart),e.removeEventListener("compositionend",this.handleCompositionEnd)})),document.querySelectorAll(this.props.themeOptions.overlayTriggerSelector).forEach((e=>{e.removeEventListener("click",this.handleOverlayTriggerClick,!0)})),document.querySelectorAll(this.props.themeOptions.filterInputSelector).forEach((e=>{e.removeEventListener("click",this.handleFilterInputClick)}))}handleCompositionStart=()=>this.setState({isComposing:!0});handleCompositionEnd=()=>this.setState({isComposing:!1});handleFilterInputClick=e=>{e.preventDefault(),e.currentTarget.dataset.filterType&&("taxonomy"===e.currentTarget.dataset.filterType?this.props.setFilter(e.currentTarget.dataset.taxonomy,e.currentTarget.dataset.val):this.props.setFilter(e.currentTarget.dataset.filterType,e.currentTarget.dataset.val)),this.props.setSearchQuery(""),this.props.showResults()};handleHistoryNavigation=()=>{this.props.initializeQueryValues({isHistoryNavigation:!0})};handleInput=n()((e=>{e.inputType?.includes("format")||""===e.target.value||this.state.isComposing||"submit"===this.props.overlayOptions.overlayTrigger||this.state.prefersReducedMotion||(this.props.setSearchQuery(e.target.value),["immediate","results"].includes(this.props.overlayOptions.overlayTrigger)&&this.props.showResults())}),200);handleKeyup=e=>{"Enter"===e.key&&(this.props.setSearchQuery(e.target.value),this.props.showResults())};handleOverlayTriggerClick=e=>{e.stopImmediatePropagation(),this.props.setSearchQuery(""),this.props.showResults()};handleSubmit=e=>{if(e.preventDefault(),this.handleInput.flush(),!this.props.isVisible){const t=e.target.querySelector(this.props.themeOptions.searchInputSelector)?.value;"string"==typeof t&&this.props.setSearchQuery(t),this.props.showResults()}};fixBodyScroll=()=>{this.props.isVisible?(this.preventBodyScroll(),window?.scrollTo(0,0)):this.props.isVisible||this.restoreBodyScroll()};fixBodyOpacity=()=>{"1"!==document.body.style.opacity&&(document.body.style.opacity="1")};preventBodyScroll(){this.setState({bodyScrollTop:parseInt(window.scrollY)||0,previousStyle:{top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,scrollBehavior:document.documentElement.style.scrollBehavior},previousBodyStyleAttribute:document.body.getAttribute("style")},(()=>{const e=document.documentElement?.scrollHeight-document.body?.scrollHeight||0;document.body.setAttribute("style","position: fixed !important"),document.body.style.top=`-${this.state.bodyScrollTop-e}px`,document.body.style.left=0,document.body.style.right=0}))}restoreBodyScroll(){this.state.previousBodyStyleAttribute?document.body.setAttribute("style",this.state.previousBodyStyleAttribute):document.body.removeAttribute("style"),document.body.style.top=this.state.previousStyle?.top??"",document.body.style.left=this.state.previousStyle?.left??"",document.body.style.right=this.state.previousStyle?.right??"",document.documentElement.style.scrollBehavior="revert",this.state.bodyScrollTop>0&&window.scrollTo(0,this.state.bodyScrollTop),document.documentElement.style.scrollBehavior=this.state.previousStyle?.scrollBehavior??"",this.setState({bodyScrollTop:0,previousStyle:null,previousBodyStyleAttribute:""})}render(){return null}}},1539:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(9060);var s=r(7723),n=r(1609),a=r.n(n);const __=s.__;class o extends n.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGTitle(e){if("title"in this.props)return this.props.title?a().createElement("title",null,this.props.title):null;switch(e){default:return null;case"gridicons-audio":return a().createElement("title",null,__("Has audio.","jetpack-search-pkg"));case"gridicons-calendar":return a().createElement("title",null,__("Is an event.","jetpack-search-pkg"));case"gridicons-cart":return a().createElement("title",null,__("Is a product.","jetpack-search-pkg"));case"chevron-down":return a().createElement("title",null,__("Show filters","jetpack-search-pkg"));case"gridicons-comment":return a().createElement("title",null,__("Matching comment.","jetpack-search-pkg"));case"gridicons-cross":return a().createElement("title",null,__("Close search results","jetpack-search-pkg"));case"gridicons-filter":return a().createElement("title",null,__("Toggle search filters.","jetpack-search-pkg"));case"gridicons-folder":return a().createElement("title",null,__("Category","jetpack-search-pkg"));case"gridicons-image-multiple":return a().createElement("title",null,__("Has multiple images.","jetpack-search-pkg"));case"gridicons-image":return a().createElement("title",null,__("Has an image.","jetpack-search-pkg"));case"gridicons-page":return a().createElement("title",null,__("Page","jetpack-search-pkg"));case"gridicons-post":return a().createElement("title",null,__("Post","jetpack-search-pkg"));case"gridicons-jetpack-search":case"gridicons-search":return a().createElement("title",null,__("Magnifying Glass","jetpack-search-pkg"));case"gridicons-tag":return a().createElement("title",null,__("Tag","jetpack-search-pkg"));case"gridicons-video":return a().createElement("title",null,__("Has a video.","jetpack-search-pkg"))}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return a().createElement("g",null,a().createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-block":return a().createElement("g",null,a().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return a().createElement("g",null,a().createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"}));case"gridicons-cart":return a().createElement("g",null,a().createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"}));case"gridicons-checkmark":return a().createElement("g",null,a().createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}));case"gridicons-chevron-down":return a().createElement("g",null,a().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"}));case"gridicons-comment":return a().createElement("g",null,a().createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"}));case"gridicons-cross":return a().createElement("g",null,a().createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"}));case"gridicons-filter":return a().createElement("g",null,a().createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"}));case"gridicons-folder":return a().createElement("g",null,a().createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"}));case"gridicons-image":return a().createElement("g",null,a().createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"}));case"gridicons-image-multiple":return a().createElement("g",null,a().createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"}));case"gridicons-info":return a().createElement("g",null,a().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}));case"gridicons-jetpack-search":return a().createElement("g",null,a().createElement("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"}));case"gridicons-pages":return a().createElement("g",null,a().createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"}));case"gridicons-posts":return a().createElement("g",null,a().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"}));case"gridicons-search":return a().createElement("g",null,a().createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"}));case"gridicons-star-outline":return a().createElement("g",null,a().createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"}));case"gridicons-star":return a().createElement("g",null,a().createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}));case"gridicons-tag":return a().createElement("g",null,a().createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"}));case"gridicons-video":return a().createElement("g",null,a().createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"}))}}render(){const{size:e=24,className:t=""}=this.props,r=this.props.height||e,s=this.props.width||e,n=this.props.style||{height:r,width:s},o="gridicons-"+this.props.icon;let i=["gridicon",o,t];return this.needsOffset(o,e)&&i.push("needs-offset"),i=i.join(" "),a().createElement("svg",{"aria-label":this.props.description,className:i,focusable:this.props.focusable,height:r,onClick:this.props.onClick,style:n,viewBox:"0 0 24 24",width:s,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"]},this.getSVGTitle(o),this.renderIcon(o))}}const i=o},4120:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,J:()=>i});var s=r(7723),n=r(1609),a=r.n(n);const __=s.__,o="#fff",i=a().createElement("svg",{className:"jetpack-instant-search__jetpack-colophon-logo",height:12,width:12,viewBox:"0 0 32 32"},a().createElement("path",{className:"jetpack-logo__icon-circle",fill:"#069e08",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),a().createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:o,points:"15,19 7,19 15,3 "}),a().createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:o,points:"17,29 17,13 25,13 "})),c=e=>{const t="string"==typeof e.locale?e.locale.split("-",1)[0]:null,r=t&&"en"!==t?"https://"+t+".jetpack.com/upgrade/search?utm_source=poweredby":"https://jetpack.com/upgrade/search/?utm_source=poweredby";return a().createElement("div",{className:"jetpack-instant-search__jetpack-colophon"},a().createElement("a",{href:r,rel:"external noopener noreferrer nofollow",target:"_blank",className:"jetpack-instant-search__jetpack-colophon-link"},i,a().createElement("span",{className:"jetpack-instant-search__jetpack-colophon-text"},__("Search powered by Jetpack","jetpack-search-pkg"))))}},8961:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(1609),n=r.n(s),a=r(1539);const o=({type:e,children:t})=>"warning"!==e?null:n().createElement("div",{className:"jetpack-instant-search__notice jetpack-instant-search__notice--warning"},n().createElement(a.A,{icon:"info",size:20}),n().createElement("div",null,t))},6973:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(7723),n=r(1609),a=r.n(n),o=r(7479);const __=s.__,i=e=>{const{children:t,closeOverlay:r,colorTheme:s,hasOverlayWidgets:i,isVisible:c}=e;return(0,n.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),r())},t=e=>{if("Tab"===e.key){const t=document.getElementsByClassName(o.w4)[0].contains(e.target),r=document.getElementsByClassName(o.Md)[0],s=document.getElementById(o.m2);!0===e.shiftKey&&(e.target!==r&&!1!==t||(e.preventDefault(),s.focus())),!1===e.shiftKey&&(e.target!==s&&!1!==t||(e.preventDefault(),r.focus()))}},s=e=>{const t=document.getElementsByClassName("jetpack-instant-search__search-results-wrapper")[0];e.target?.isConnected&&t&&!t.contains(e.target)&&r()},n=()=>{window.removeEventListener("click",s),window.removeEventListener("keydown",e),window.removeEventListener("keydown",t)};return c?(window.addEventListener("click",s),window.addEventListener("keydown",e),window.addEventListener("keydown",t)):n(),()=>{n()}}),[r,c]),a().createElement("div",{"aria-hidden":!c,"aria-labelledby":"jetpack-instant-search__overlay-title",className:["jetpack-instant-search",o.w4,`jetpack-instant-search__overlay--${s}`,i?"":"jetpack-instant-search__overlay--no-sidebar",c?"":"is-hidden"].join(" "),role:"dialog"},a().createElement("h1",{id:"jetpack-instant-search__overlay-title",className:"screen-reader-text"},__("Search results","jetpack-search-pkg")),t)}},413:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(1609),n=r.n(s);const a=({className:e,onClick:t,url:r})=>{const s=function(e){const t=e.split("/").filter((e=>e.length>0));return t.shift(),t}(r);return s.length<1?null:n().createElement("div",{className:`jetpack-instant-search__path-breadcrumb ${e||""}`},n().createElement("a",{className:"jetpack-instant-search__path-breadcrumb-link",href:`//${r}`,onClick:t,tabIndex:"-1","aria-hidden":"true"},s.map(((e,t,r)=>n().createElement("span",{className:"jetpack-instant-search__path-breadcrumb-piece",key:e},decodeURIComponent(e),t!==r.length-1?" › ":"")))))}},2355:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var s=r(6072),n=r.n(s),a=r(1609),o=r.n(a),i=r(4809);const c=e=>{const{alt:t,isPhotonEnabled:r,maxHeight:s=600,maxWidth:a=600,src:c,lazyLoad:l=!0,...u}=e,p=(0,i.g)(c,a,s,r);return o().createElement("img",n()({alt:t,src:p,loading:""+(l?"lazy":"eager")},u))}},7846:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(7723),n=r(1609),a=r.n(n),o=r(113),i=r(1539);const __=s.__,c=["youtube","ooyala","anvplayer","wpvideo","bc_video","video","brightcove","tp_video","jwplayer","tempo-video","vimeo"],l=["gallery","ione_media_gallery"],u=["audio","soundcloud"],p={product:"cart",video:"video",gallery:"image-multiple",event:"calendar",events:"calendar"},h=({postType:e,shortcodeTypes:t,iconSize:r=18})=>{if(Object.keys(p).includes(e))return a().createElement(i.A,{icon:p[e],size:r});const s=(0,o.A)(t,c),n=(0,o.A)(t,u),h=(0,o.A)(t,l);return s?a().createElement(i.A,{icon:"video",size:r}):n?a().createElement(i.A,{icon:"audio",size:r}):"page"===e?a().createElement(i.A,{icon:"pages",size:r,description:__("Page","jetpack-search-pkg")}):h?a().createElement(i.A,{icon:"image-multiple",size:r,description:__("Image","jetpack-search-pkg")}):null}},2652:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(1609),n=r.n(s);class a extends s.Component{render(){const{formattedPrice:e,formattedSalePrice:t,formattedRegularPrice:r,price:a,salePrice:o}=this.props;return a?n().createElement("span",{className:"jetpack-instant-search__product-price"},o>0?n().createElement(s.Fragment,null,n().createElement("s",{className:"jetpack-instant-search__product-price-regular",dangerouslySetInnerHTML:{__html:r}}),n().createElement("span",{dangerouslySetInnerHTML:{__html:t}})):n().createElement("span",{dangerouslySetInnerHTML:{__html:e}})):null}}const o=a},6777:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(7723),n=r(1609),a=r.n(n),o=r(1539);const _n=s._n;function i({rating:e=0,count:t=0,permalink:r}){return a().createElement("div",{className:"jetpack-instant-search__product-rating"},a().createElement("span",{"aria-hidden":!0,className:"jetpack-instant-search__product-rating-stars"},Array(5).fill(a().createElement(o.A,{size:16,icon:"star-outline"})).fill(a().createElement(o.A,{size:16,icon:"star"}),0,e))," ",a().createElement("a",{"aria-hidden":!0,className:"jetpack-instant-search__product-rating-count",href:r+"#reviews"},(0,s.sprintf)(/* Translators: the placeholder is the number of product reviews. */ _n("%d review","%d reviews",t,"jetpack-search-pkg"),t)),a().createElement("span",{className:"screen-reader-text"},(0,s.sprintf)(/* Translators: the first placeholder is the average product rating out of 5; the second is the number of product reviews. */ _n("Average rating of %1$d out of 5 from %2$d review.","Average rating of %1$d out of 5 from %2$d reviews.",t,"jetpack-search-pkg"),Number(e).toFixed(2),t)))}},3845:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(7723),n=r(3257),a=r.n(n),o=r(1609),i=r.n(o),c=r(7479);const __=s.__;class l extends o.Component{scrollElement=document.getElementsByClassName(c.tr)[0];componentDidMount(){this.scrollElement.addEventListener("scroll",this.checkScroll)}componentDidUnmount(){this.scrollElement.removeEventListener("scroll",this.checkScroll)}checkScroll=a()((()=>{const e=this.scrollElement.clientHeight+this.scrollElement.scrollTop+c.ZJ;this.props.enableLoadOnScroll&&e>=this.scrollElement.scrollHeight&&this.props.onLoadNextPage()}),100);render(){return i().createElement("button",{className:"jetpack-instant-search__scroll-button",disabled:this.props.isLoading,onClick:this.props.onLoadNextPage},this.props.isLoading?i().createElement("span",null,__("Loading…","jetpack-search-pkg")):i().createElement("span",null,__("Load more","jetpack-search-pkg")))}}const u=l},459:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var s=r(4224),n=r.n(s),a=r(3257),o=r.n(a),i=r(1609),c=r.n(i),l=r(5795),u=r(4952),p=r(7479),h=r(3089),d=r(6122),f=r(8924),m=r(999),g=r(538),y=r(6084),v=r(8165),_=r(6973),b=r(8568);class w extends i.Component{static defaultProps={overlayOptions:{},widgets:[]};constructor(){super(...arguments),this.state={isVisible:!!this.props.initialIsVisible,overlayOptionsCustomizerOverride:{}},this.getResults=o()(this.getResults,200),this.props.enableAnalytics?this.initializeAnalytics():(0,f.Re)(),this.props.shouldIntegrateWithDom?this.props.initializeQueryValues():this.props.disableQueryStringIntegration()}static getDerivedStateFromProps(e,t){return{overlayOptions:{...e.overlayOptions,...t.overlayOptionsCustomizerOverride}}}componentDidMount(){(this.props.initialShowResults&&this.props.initialIsVisible||this.props.isInCustomizer)&&this.getResults(),this.props.hasActiveQuery&&this.props.overlayOptions.enableFilteringOpensOverlay&&this.showResults()}componentDidUpdate(e,t){e.searchQuery===this.props.searchQuery&&e.sort===this.props.sort&&n()(e.filters)===n()(this.props.filters)&&n()(e.staticFilters)===n()(this.props.staticFilters)||this.onChangeQueryString(this.props.isHistoryNavigation),t.overlayOptions.defaultSort!==this.state.overlayOptions.defaultSort&&this.props.setSort(this.state.overlayOptions.defaultSort),n()(t.overlayOptions.excludedPostTypes)!==n()(this.state.overlayOptions.excludedPostTypes)&&this.getResults()}initializeAnalytics(){(0,f.ze)(),!window[p.O5].preventTrackingCookiesReset&&(0,f.kX)(),(0,f.wk)(this.props.options.siteId)}getResultFormat=()=>{if(this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==p.$K)return p.yj;return(0,d.lz)()||this.state.overlayOptions.resultFormat};initializeStaticFilters=()=>{const e=(0,h.PM)();e.length>0&&0===Object.keys(this.props.staticFilters).length&&e.forEach((e=>this.props.setStaticFilter(e.filter_id,e.selected,!0)))};hideResults=e=>{this.props.shouldIntegrateWithDom&&(0,d.fX)(this.props.initialHref,(()=>{this.setState({isVisible:!1}),this.props.clearQueryValues()}),e)};toggleResults=e=>{this.props.shouldIntegrateWithDom&&this.state.isVisible!==e&&(e&&this.initializeStaticFilters(),this.setState({isVisible:e}))};showResults=this.toggleResults.bind(this,!0);onChangeQueryString=e=>{this.getResults(),this.props.hasActiveQuery&&!this.state.isVisible&&this.showResults(),!this.props.hasActiveQuery&&e&&this.hideResults(e),null!==this.props.searchQuery&&document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.value=this.props.searchQuery}))};loadNextPage=()=>{this.props.hasNextPage&&this.getResults({pageHandle:this.props.response.page_handle})};getResults=({pageHandle:e}={})=>{this.props.makeSearchRequest({aggregations:e?{}:this.props.aggregations,excludedPostTypes:this.state.overlayOptions.excludedPostTypes,filter:this.props.filters,staticFilters:this.props.staticFilters,pageHandle:e,query:this.props.searchQuery,resultFormat:this.getResultFormat(),siteId:this.props.options.siteId,additionalBlogIds:this.props.options.additionalBlogIds,sort:this.props.sort,postsPerPage:this.props.options.postsPerPage,adminQueryFilter:this.props.options.adminQueryFilter,highlightFields:this.props.options.highlightFields,customResults:this.props.options.customResults,isInCustomizer:this.props.isInCustomizer})};updateOverlayOptions=(e,t)=>{this.setState((t=>({overlayOptionsCustomizerOverride:{...t.overlayOptionsCustomizerOverride,...e}})),t)};render(){const e=this.getResultFormat(),t=this.props.shouldCreatePortal?l.createPortal:e=>e;return c().createElement(i.Fragment,null,this.props.isInCustomizer&&c().createElement(y.A,{showResults:this.showResults,toggleResults:this.toggleResults,updateOverlayOptions:this.updateOverlayOptions}),this.props.shouldIntegrateWithDom&&c().createElement(v.A,{initializeQueryValues:this.props.initializeQueryValues,isVisible:this.state.isVisible,overlayOptions:this.state.overlayOptions,setFilter:this.props.setFilter,setSearchQuery:this.props.setSearchQuery,showResults:this.showResults,themeOptions:this.props.themeOptions}),t(c().createElement(_.A,{closeColor:this.state.overlayOptions.closeColor,closeOverlay:this.hideResults,colorTheme:this.state.overlayOptions.colorTheme,hasOverlayWidgets:this.props.hasOverlayWidgets,isVisible:this.state.isVisible},c().createElement(b.A,{closeOverlay:this.hideResults,enableLoadOnScroll:this.state.overlayOptions.enableInfScroll,enableFilteringOpensOverlay:this.state.overlayOptions.enableFilteringOpensOverlay,enableSort:this.state.overlayOptions.enableSort,filters:this.props.filters,staticFilters:this.props.staticFilters,hasError:this.props.hasError,hasNextPage:this.props.hasNextPage,highlightColor:this.state.overlayOptions.highlightColor,isLoading:this.props.isLoading,isPhotonEnabled:this.props.options.isPhotonEnabled,isPrivateSite:this.props.options.isPrivateSite,isVisible:this.state.isVisible,locale:this.props.options.locale,onChangeSearch:this.props.setSearchQuery,onChangeSort:this.props.setSort,onLoadNextPage:this.loadNextPage,overlayTrigger:this.state.overlayOptions.overlayTrigger,postTypes:this.props.options.postTypes,response:this.props.response,resultFormat:e,searchQuery:this.props.searchQuery,showPoweredBy:this.state.overlayOptions.showPoweredBy,sort:this.props.sort,widgets:this.props.options.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay,hasNonSearchWidgets:this.props.options.hasNonSearchWidgets,additionalBlogIds:this.props.options.additionalBlogIds,showPostDate:this.state.overlayOptions.enablePostDate})),document.body))}}const E=(0,u.Ng)(((e,t)=>({filters:(0,g.gA)(e),staticFilters:(0,g.kJ)(e),hasActiveQuery:(0,g.xp)(e),hasError:(0,g.JD)(e),isHistoryNavigation:(0,g.xk)(e),hasNextPage:(0,g.rB)(e),isLoading:(0,g.VP)(e),response:(0,g.mi)(e),searchQuery:(0,g.V8)(e),sort:(0,g.FD)(e,t.overlayOptions.defaultSort),widgetOutsideOverlay:(0,g.S7)(e)})),{clearQueryValues:m.Qt,disableQueryStringIntegration:m.go,initializeQueryValues:m.JF,makeSearchRequest:m.oZ,setStaticFilter:m.$6,setFilter:m.R6,setSearchQuery:m.Ri,setSort:m.d1})(w)},3297:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7723),n=r(4436),a=r.n(n),o=r(1609),i=r.n(o),c=r(7479),l=r(1539);const __=s.__;let u=null;const p=e=>{const[t]=(0,o.useState)((()=>a()("jetpack-instant-search__box-input-"))),r=(0,o.useRef)(null);return(0,o.useEffect)((()=>{var t;e.isVisible?(t=r.current,()=>{u=t.ownerDocument.activeElement,t.focus()})():e.shouldRestoreFocus&&u&&u.focus()}),[e.isVisible,e.shouldRestoreFocus]),i().createElement(o.Fragment,null,i().createElement("div",{className:"jetpack-instant-search__box"},i().createElement("label",{className:"jetpack-instant-search__box-label",htmlFor:t},i().createElement("div",{className:"jetpack-instant-search__box-gridicon"},i().createElement(l.A,{icon:"search",size:24})),i().createElement("input",{autoComplete:"off",id:t,className:"search-field "+c.Md,inputMode:"search",onChange:e.isVisible?e.onChange:null,ref:r,placeholder:__("Search…","jetpack-search-pkg"),type:"search",value:e.searchQuery??""}),"string"==typeof e.searchQuery&&e.searchQuery.length>0&& /* Translators: Button is used to clear the search input query. */ diff --git a/build/instant-search/jp-search.asset.php b/build/instant-search/jp-search.asset.php index e2249bb..19eb228 100644 --- a/build/instant-search/jp-search.asset.php +++ b/build/instant-search/jp-search.asset.php @@ -1 +1 @@ - array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill', 'wp-url'), 'version' => '719e6bb135c11a5926a6'); + array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill', 'wp-url'), 'version' => '986418c32752bbc685a0'); diff --git a/build/instant-search/jp-search.chunk-main-payload.js b/build/instant-search/jp-search.chunk-main-payload.js index 76a5567..d5c501e 100644 --- a/build/instant-search/jp-search.chunk-main-payload.js +++ b/build/instant-search/jp-search.chunk-main-payload.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunkjetpack_search=globalThis.webpackChunkjetpack_search||[]).push([[106],{6084:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9362),a=s(1017);class n extends r.Component{componentDidMount(){(0,a.UC)(this.handleOverlayOptionsUpdate),(0,a.Tx)(this.props.toggleResults)}handleOverlayOptionsUpdate=e=>{this.props.updateOverlayOptions(e,(()=>this.props.showResults()))};render(){return null}}},8165:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(3257),a=s.n(r),n=s(9362),i=s(7152);class o extends n.Component{constructor(){super(...arguments),this.state={isComposing:!1,bodyScrollTop:0,prefersReducedMotion:(0,i.y)(),previousStyle:null,previousBodyStyleAttribute:""},this.props.initializeQueryValues()}componentDidMount(){this.disableUnnecessaryFormAndInputAttributes(),this.addEventListeners()}componentWillUnmount(){this.removeEventListeners(),this.restoreBodyScroll()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.fixBodyScroll()}disableUnnecessaryFormAndInputAttributes(){document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.removeAttribute("required"),e.removeAttribute("autocomplete"),e.form.removeAttribute("autocomplete")}))}addEventListeners(){window.addEventListener("popstate",this.handleHistoryNavigation),document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.form.addEventListener("submit",this.handleSubmit),e.addEventListener("keyup",this.handleKeyup),e.addEventListener("input",this.handleInput),e.addEventListener("compositionstart",this.handleCompositionStart),e.addEventListener("compositionend",this.handleCompositionEnd)})),document.querySelectorAll(this.props.themeOptions.overlayTriggerSelector).forEach((e=>{e.addEventListener("click",this.handleOverlayTriggerClick,!0)})),document.querySelectorAll(this.props.themeOptions.filterInputSelector).forEach((e=>{e.addEventListener("click",this.handleFilterInputClick)}))}removeEventListeners(){window.removeEventListener("popstate",this.handleHistoryNavigation),document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.form.removeEventListener("submit",this.handleSubmit),e.removeEventListener("keyup",this.handleKeyup),e.removeEventListener("input",this.handleInput),e.removeEventListener("compositionstart",this.handleCompositionStart),e.removeEventListener("compositionend",this.handleCompositionEnd)})),document.querySelectorAll(this.props.themeOptions.overlayTriggerSelector).forEach((e=>{e.removeEventListener("click",this.handleOverlayTriggerClick,!0)})),document.querySelectorAll(this.props.themeOptions.filterInputSelector).forEach((e=>{e.removeEventListener("click",this.handleFilterInputClick)}))}handleCompositionStart=()=>this.setState({isComposing:!0});handleCompositionEnd=()=>this.setState({isComposing:!1});handleFilterInputClick=e=>{e.preventDefault(),e.currentTarget.dataset.filterType&&("taxonomy"===e.currentTarget.dataset.filterType?this.props.setFilter(e.currentTarget.dataset.taxonomy,e.currentTarget.dataset.val):this.props.setFilter(e.currentTarget.dataset.filterType,e.currentTarget.dataset.val)),this.props.setSearchQuery(""),this.props.showResults()};handleHistoryNavigation=()=>{this.props.initializeQueryValues({isHistoryNavigation:!0})};handleInput=a()((e=>{e.inputType?.includes("format")||""===e.target.value||this.state.isComposing||"submit"===this.props.overlayOptions.overlayTrigger||this.state.prefersReducedMotion||(this.props.setSearchQuery(e.target.value),["immediate","results"].includes(this.props.overlayOptions.overlayTrigger)&&this.props.showResults())}),200);handleKeyup=e=>{"Enter"===e.key&&(this.props.setSearchQuery(e.target.value),this.props.showResults())};handleOverlayTriggerClick=e=>{e.stopImmediatePropagation(),this.props.setSearchQuery(""),this.props.showResults()};handleSubmit=e=>{if(e.preventDefault(),this.handleInput.flush(),!this.props.isVisible){const t=e.target.querySelector(this.props.themeOptions.searchInputSelector)?.value;"string"==typeof t&&this.props.setSearchQuery(t),this.props.showResults()}};fixBodyScroll=()=>{this.props.isVisible?(this.preventBodyScroll(),window?.scrollTo(0,0)):this.props.isVisible||this.restoreBodyScroll()};preventBodyScroll(){this.setState({bodyScrollTop:parseInt(window.scrollY)||0,previousStyle:{top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,scrollBehavior:document.documentElement.style.scrollBehavior},previousBodyStyleAttribute:document.body.getAttribute("style")},(()=>{const e=document.documentElement?.scrollHeight-document.body?.scrollHeight||0;document.body.setAttribute("style","position: fixed !important"),document.body.style.top=`-${this.state.bodyScrollTop-e}px`,document.body.style.left=0,document.body.style.right=0}))}restoreBodyScroll(){this.state.previousBodyStyleAttribute?document.body.setAttribute("style",this.state.previousBodyStyleAttribute):document.body.removeAttribute("style"),document.body.style.top=this.state.previousStyle?.top??"",document.body.style.left=this.state.previousStyle?.left??"",document.body.style.right=this.state.previousStyle?.right??"",document.documentElement.style.scrollBehavior="revert",this.state.bodyScrollTop>0&&window.scrollTo(0,this.state.bodyScrollTop),document.documentElement.style.scrollBehavior=this.state.previousStyle?.scrollBehavior??"",this.setState({bodyScrollTop:0,previousStyle:null,previousBodyStyleAttribute:""})}render(){return null}}},1539:(e,t,s)=>{s.d(t,{A:()=>o});s(9060);var r=s(7723),a=s(9362),n=s.n(a);const __=r.__;class i extends a.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGTitle(e){if("title"in this.props)return this.props.title?n().createElement("title",null,this.props.title):null;switch(e){default:return null;case"gridicons-audio":return n().createElement("title",null,__("Has audio.","jetpack-search-pkg"));case"gridicons-calendar":return n().createElement("title",null,__("Is an event.","jetpack-search-pkg"));case"gridicons-cart":return n().createElement("title",null,__("Is a product.","jetpack-search-pkg"));case"chevron-down":return n().createElement("title",null,__("Show filters","jetpack-search-pkg"));case"gridicons-comment":return n().createElement("title",null,__("Matching comment.","jetpack-search-pkg"));case"gridicons-cross":return n().createElement("title",null,__("Close search results","jetpack-search-pkg"));case"gridicons-filter":return n().createElement("title",null,__("Toggle search filters.","jetpack-search-pkg"));case"gridicons-folder":return n().createElement("title",null,__("Category","jetpack-search-pkg"));case"gridicons-image-multiple":return n().createElement("title",null,__("Has multiple images.","jetpack-search-pkg"));case"gridicons-image":return n().createElement("title",null,__("Has an image.","jetpack-search-pkg"));case"gridicons-page":return n().createElement("title",null,__("Page","jetpack-search-pkg"));case"gridicons-post":return n().createElement("title",null,__("Post","jetpack-search-pkg"));case"gridicons-jetpack-search":case"gridicons-search":return n().createElement("title",null,__("Magnifying Glass","jetpack-search-pkg"));case"gridicons-tag":return n().createElement("title",null,__("Tag","jetpack-search-pkg"));case"gridicons-video":return n().createElement("title",null,__("Has a video.","jetpack-search-pkg"))}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return n().createElement("g",null,n().createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-block":return n().createElement("g",null,n().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return n().createElement("g",null,n().createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"}));case"gridicons-cart":return n().createElement("g",null,n().createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"}));case"gridicons-checkmark":return n().createElement("g",null,n().createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}));case"gridicons-chevron-down":return n().createElement("g",null,n().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"}));case"gridicons-comment":return n().createElement("g",null,n().createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"}));case"gridicons-cross":return n().createElement("g",null,n().createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"}));case"gridicons-filter":return n().createElement("g",null,n().createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"}));case"gridicons-folder":return n().createElement("g",null,n().createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"}));case"gridicons-image":return n().createElement("g",null,n().createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"}));case"gridicons-image-multiple":return n().createElement("g",null,n().createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"}));case"gridicons-info":return n().createElement("g",null,n().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}));case"gridicons-jetpack-search":return n().createElement("g",null,n().createElement("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"}));case"gridicons-pages":return n().createElement("g",null,n().createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"}));case"gridicons-posts":return n().createElement("g",null,n().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"}));case"gridicons-search":return n().createElement("g",null,n().createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"}));case"gridicons-star-outline":return n().createElement("g",null,n().createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"}));case"gridicons-star":return n().createElement("g",null,n().createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}));case"gridicons-tag":return n().createElement("g",null,n().createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"}));case"gridicons-video":return n().createElement("g",null,n().createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"}))}}render(){const{size:e=24,className:t=""}=this.props,s=this.props.height||e,r=this.props.width||e,a=this.props.style||{height:s,width:r},i="gridicons-"+this.props.icon;let o=["gridicon",i,t];return this.needsOffset(i,e)&&o.push("needs-offset"),o=o.join(" "),n().createElement("svg",{"aria-label":this.props.description,className:o,focusable:this.props.focusable,height:s,onClick:this.props.onClick,style:a,viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"]},this.getSVGTitle(i),this.renderIcon(i))}}const o=i},4120:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(7723),a=s(9362),n=s.n(a);const __=r.__,i="#fff",o=n().createElement("svg",{className:"jetpack-instant-search__jetpack-colophon-logo",height:12,width:12,viewBox:"0 0 32 32"},n().createElement("path",{className:"jetpack-logo__icon-circle",fill:"#069e08",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),n().createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:i,points:"15,19 7,19 15,3 "}),n().createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:i,points:"17,29 17,13 25,13 "})),l=e=>{const t="string"==typeof e.locale?e.locale.split("-",1)[0]:null,s=t&&"en"!==t?"https://"+t+".jetpack.com/upgrade/search?utm_source=poweredby":"https://jetpack.com/upgrade/search/?utm_source=poweredby";return n().createElement("div",{className:"jetpack-instant-search__jetpack-colophon"},n().createElement("a",{href:s,rel:"external noopener noreferrer nofollow",target:"_blank",className:"jetpack-instant-search__jetpack-colophon-link"},o,n().createElement("span",{className:"jetpack-instant-search__jetpack-colophon-text"},__("Search powered by Jetpack","jetpack-search-pkg"))))}},8961:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(9362),a=s.n(r),n=s(1539);const i=({type:e,children:t})=>"warning"!==e?null:a().createElement("div",{className:"jetpack-instant-search__notice jetpack-instant-search__notice--warning"},a().createElement(n.A,{icon:"info",size:20}),a().createElement("div",null,t))},6973:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(7723),a=s(9362),n=s.n(a),i=s(7479);const __=r.__,o=e=>{const{children:t,closeOverlay:s,colorTheme:r,hasOverlayWidgets:o,isVisible:l}=e;return(0,a.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),s())},t=e=>{if("Tab"===e.key){const t=document.getElementsByClassName(i.w4)[0].contains(e.target),s=document.getElementsByClassName(i.Md)[0],r=document.getElementById(i.m2);!0===e.shiftKey&&(e.target!==s&&!1!==t||(e.preventDefault(),r.focus())),!1===e.shiftKey&&(e.target!==r&&!1!==t||(e.preventDefault(),s.focus()))}},r=e=>{const t=document.getElementsByClassName("jetpack-instant-search__search-results-wrapper")[0];e.target?.isConnected&&t&&!t.contains(e.target)&&s()},a=()=>{window.removeEventListener("click",r),window.removeEventListener("keydown",e),window.removeEventListener("keydown",t)};return l?(window.addEventListener("click",r),window.addEventListener("keydown",e),window.addEventListener("keydown",t)):a(),()=>{a()}}),[s,l]),n().createElement("div",{"aria-hidden":!l,"aria-labelledby":"jetpack-instant-search__overlay-title",className:["jetpack-instant-search",i.w4,`jetpack-instant-search__overlay--${r}`,o?"":"jetpack-instant-search__overlay--no-sidebar",l?"":"is-hidden"].join(" "),role:"dialog"},n().createElement("h1",{id:"jetpack-instant-search__overlay-title",className:"screen-reader-text"},__("Search results","jetpack-search-pkg")),t)}},413:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9362),a=s.n(r);const n=({className:e,onClick:t,url:s})=>{const r=function(e){const t=e.split("/").filter((e=>e.length>0));return t.shift(),t}(s);return r.length<1?null:a().createElement("div",{className:`jetpack-instant-search__path-breadcrumb ${e||""}`},a().createElement("a",{className:"jetpack-instant-search__path-breadcrumb-link",href:`//${s}`,onClick:t,tabIndex:"-1","aria-hidden":"true"},r.map(((e,t,s)=>a().createElement("span",{className:"jetpack-instant-search__path-breadcrumb-piece",key:e},decodeURIComponent(e),t!==s.length-1?" › ":"")))))}},2355:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(3691),a=s.n(r),n=s(9362),i=s.n(n),o=s(4809);const l=e=>{const{alt:t,isPhotonEnabled:s,maxHeight:r=600,maxWidth:n=600,src:l,lazyLoad:c=!0,...p}=e,h=(0,o.g)(l,n,r,s);return i().createElement("img",a()({alt:t,src:h,loading:""+(c?"lazy":"eager")},p))}},7846:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(7723),a=s(9362),n=s.n(a),i=s(113),o=s(1539);const __=r.__,l=["youtube","ooyala","anvplayer","wpvideo","bc_video","video","brightcove","tp_video","jwplayer","tempo-video","vimeo"],c=["gallery","ione_media_gallery"],p=["audio","soundcloud"],h={product:"cart",video:"video",gallery:"image-multiple",event:"calendar",events:"calendar"},u=({postType:e,shortcodeTypes:t,iconSize:s=18})=>{if(Object.keys(h).includes(e))return n().createElement(o.A,{icon:h[e],size:s});const r=(0,i.A)(t,l),a=(0,i.A)(t,p),u=(0,i.A)(t,c);return r?n().createElement(o.A,{icon:"video",size:s}):a?n().createElement(o.A,{icon:"audio",size:s}):"page"===e?n().createElement(o.A,{icon:"pages",size:s,description:__("Page","jetpack-search-pkg")}):u?n().createElement(o.A,{icon:"image-multiple",size:s,description:__("Image","jetpack-search-pkg")}):null}},2652:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(9362),a=s.n(r);class n extends r.Component{render(){const{formattedPrice:e,formattedSalePrice:t,formattedRegularPrice:s,price:n,salePrice:i}=this.props;return n?a().createElement("span",{className:"jetpack-instant-search__product-price"},i>0?a().createElement(r.Fragment,null,a().createElement("s",{className:"jetpack-instant-search__product-price-regular",dangerouslySetInnerHTML:{__html:s}}),a().createElement("span",{dangerouslySetInnerHTML:{__html:t}})):a().createElement("span",{dangerouslySetInnerHTML:{__html:e}})):null}}const i=n},6777:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(7723),a=s(9362),n=s.n(a),i=s(1539);const _n=r._n;function o({rating:e=0,count:t=0,permalink:s}){return n().createElement("div",{className:"jetpack-instant-search__product-rating"},n().createElement("span",{"aria-hidden":!0,className:"jetpack-instant-search__product-rating-stars"},Array(5).fill(n().createElement(i.A,{size:16,icon:"star-outline"})).fill(n().createElement(i.A,{size:16,icon:"star"}),0,e))," ",n().createElement("a",{"aria-hidden":!0,className:"jetpack-instant-search__product-rating-count",href:s+"#reviews"},(0,r.sprintf)(/* Translators: the placeholder is the number of product reviews. */ +"use strict";(globalThis.webpackChunkjetpack_search=globalThis.webpackChunkjetpack_search||[]).push([[106],{6084:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9362),a=s(1017);class n extends r.Component{componentDidMount(){(0,a.UC)(this.handleOverlayOptionsUpdate),(0,a.Tx)(this.props.toggleResults)}handleOverlayOptionsUpdate=e=>{this.props.updateOverlayOptions(e,(()=>this.props.showResults()))};render(){return null}}},8165:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(3257),a=s.n(r),n=s(9362),i=s(7152);class o extends n.Component{constructor(){super(...arguments),this.state={isComposing:!1,bodyScrollTop:0,prefersReducedMotion:(0,i.y)(),previousStyle:null,previousBodyStyleAttribute:""},this.props.initializeQueryValues()}componentDidMount(){this.disableUnnecessaryFormAndInputAttributes(),this.addEventListeners()}componentWillUnmount(){this.removeEventListeners(),this.restoreBodyScroll()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.fixBodyScroll(),this.fixBodyOpacity()}disableUnnecessaryFormAndInputAttributes(){document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.removeAttribute("required"),e.removeAttribute("autocomplete"),e.form.removeAttribute("autocomplete")}))}addEventListeners(){window.addEventListener("popstate",this.handleHistoryNavigation),document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.form.addEventListener("submit",this.handleSubmit),e.addEventListener("keyup",this.handleKeyup),e.addEventListener("input",this.handleInput),e.addEventListener("compositionstart",this.handleCompositionStart),e.addEventListener("compositionend",this.handleCompositionEnd)})),document.querySelectorAll(this.props.themeOptions.overlayTriggerSelector).forEach((e=>{e.addEventListener("click",this.handleOverlayTriggerClick,!0)})),document.querySelectorAll(this.props.themeOptions.filterInputSelector).forEach((e=>{e.addEventListener("click",this.handleFilterInputClick)}))}removeEventListeners(){window.removeEventListener("popstate",this.handleHistoryNavigation),document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.form.removeEventListener("submit",this.handleSubmit),e.removeEventListener("keyup",this.handleKeyup),e.removeEventListener("input",this.handleInput),e.removeEventListener("compositionstart",this.handleCompositionStart),e.removeEventListener("compositionend",this.handleCompositionEnd)})),document.querySelectorAll(this.props.themeOptions.overlayTriggerSelector).forEach((e=>{e.removeEventListener("click",this.handleOverlayTriggerClick,!0)})),document.querySelectorAll(this.props.themeOptions.filterInputSelector).forEach((e=>{e.removeEventListener("click",this.handleFilterInputClick)}))}handleCompositionStart=()=>this.setState({isComposing:!0});handleCompositionEnd=()=>this.setState({isComposing:!1});handleFilterInputClick=e=>{e.preventDefault(),e.currentTarget.dataset.filterType&&("taxonomy"===e.currentTarget.dataset.filterType?this.props.setFilter(e.currentTarget.dataset.taxonomy,e.currentTarget.dataset.val):this.props.setFilter(e.currentTarget.dataset.filterType,e.currentTarget.dataset.val)),this.props.setSearchQuery(""),this.props.showResults()};handleHistoryNavigation=()=>{this.props.initializeQueryValues({isHistoryNavigation:!0})};handleInput=a()((e=>{e.inputType?.includes("format")||""===e.target.value||this.state.isComposing||"submit"===this.props.overlayOptions.overlayTrigger||this.state.prefersReducedMotion||(this.props.setSearchQuery(e.target.value),["immediate","results"].includes(this.props.overlayOptions.overlayTrigger)&&this.props.showResults())}),200);handleKeyup=e=>{"Enter"===e.key&&(this.props.setSearchQuery(e.target.value),this.props.showResults())};handleOverlayTriggerClick=e=>{e.stopImmediatePropagation(),this.props.setSearchQuery(""),this.props.showResults()};handleSubmit=e=>{if(e.preventDefault(),this.handleInput.flush(),!this.props.isVisible){const t=e.target.querySelector(this.props.themeOptions.searchInputSelector)?.value;"string"==typeof t&&this.props.setSearchQuery(t),this.props.showResults()}};fixBodyScroll=()=>{this.props.isVisible?(this.preventBodyScroll(),window?.scrollTo(0,0)):this.props.isVisible||this.restoreBodyScroll()};fixBodyOpacity=()=>{"1"!==document.body.style.opacity&&(document.body.style.opacity="1")};preventBodyScroll(){this.setState({bodyScrollTop:parseInt(window.scrollY)||0,previousStyle:{top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,scrollBehavior:document.documentElement.style.scrollBehavior},previousBodyStyleAttribute:document.body.getAttribute("style")},(()=>{const e=document.documentElement?.scrollHeight-document.body?.scrollHeight||0;document.body.setAttribute("style","position: fixed !important"),document.body.style.top=`-${this.state.bodyScrollTop-e}px`,document.body.style.left=0,document.body.style.right=0}))}restoreBodyScroll(){this.state.previousBodyStyleAttribute?document.body.setAttribute("style",this.state.previousBodyStyleAttribute):document.body.removeAttribute("style"),document.body.style.top=this.state.previousStyle?.top??"",document.body.style.left=this.state.previousStyle?.left??"",document.body.style.right=this.state.previousStyle?.right??"",document.documentElement.style.scrollBehavior="revert",this.state.bodyScrollTop>0&&window.scrollTo(0,this.state.bodyScrollTop),document.documentElement.style.scrollBehavior=this.state.previousStyle?.scrollBehavior??"",this.setState({bodyScrollTop:0,previousStyle:null,previousBodyStyleAttribute:""})}render(){return null}}},1539:(e,t,s)=>{s.d(t,{A:()=>o});s(9060);var r=s(7723),a=s(9362),n=s.n(a);const __=r.__;class i extends a.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGTitle(e){if("title"in this.props)return this.props.title?n().createElement("title",null,this.props.title):null;switch(e){default:return null;case"gridicons-audio":return n().createElement("title",null,__("Has audio.","jetpack-search-pkg"));case"gridicons-calendar":return n().createElement("title",null,__("Is an event.","jetpack-search-pkg"));case"gridicons-cart":return n().createElement("title",null,__("Is a product.","jetpack-search-pkg"));case"chevron-down":return n().createElement("title",null,__("Show filters","jetpack-search-pkg"));case"gridicons-comment":return n().createElement("title",null,__("Matching comment.","jetpack-search-pkg"));case"gridicons-cross":return n().createElement("title",null,__("Close search results","jetpack-search-pkg"));case"gridicons-filter":return n().createElement("title",null,__("Toggle search filters.","jetpack-search-pkg"));case"gridicons-folder":return n().createElement("title",null,__("Category","jetpack-search-pkg"));case"gridicons-image-multiple":return n().createElement("title",null,__("Has multiple images.","jetpack-search-pkg"));case"gridicons-image":return n().createElement("title",null,__("Has an image.","jetpack-search-pkg"));case"gridicons-page":return n().createElement("title",null,__("Page","jetpack-search-pkg"));case"gridicons-post":return n().createElement("title",null,__("Post","jetpack-search-pkg"));case"gridicons-jetpack-search":case"gridicons-search":return n().createElement("title",null,__("Magnifying Glass","jetpack-search-pkg"));case"gridicons-tag":return n().createElement("title",null,__("Tag","jetpack-search-pkg"));case"gridicons-video":return n().createElement("title",null,__("Has a video.","jetpack-search-pkg"))}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return n().createElement("g",null,n().createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-block":return n().createElement("g",null,n().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return n().createElement("g",null,n().createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"}));case"gridicons-cart":return n().createElement("g",null,n().createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"}));case"gridicons-checkmark":return n().createElement("g",null,n().createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}));case"gridicons-chevron-down":return n().createElement("g",null,n().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"}));case"gridicons-comment":return n().createElement("g",null,n().createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"}));case"gridicons-cross":return n().createElement("g",null,n().createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"}));case"gridicons-filter":return n().createElement("g",null,n().createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"}));case"gridicons-folder":return n().createElement("g",null,n().createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"}));case"gridicons-image":return n().createElement("g",null,n().createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"}));case"gridicons-image-multiple":return n().createElement("g",null,n().createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"}));case"gridicons-info":return n().createElement("g",null,n().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}));case"gridicons-jetpack-search":return n().createElement("g",null,n().createElement("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"}));case"gridicons-pages":return n().createElement("g",null,n().createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"}));case"gridicons-posts":return n().createElement("g",null,n().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"}));case"gridicons-search":return n().createElement("g",null,n().createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"}));case"gridicons-star-outline":return n().createElement("g",null,n().createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"}));case"gridicons-star":return n().createElement("g",null,n().createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}));case"gridicons-tag":return n().createElement("g",null,n().createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"}));case"gridicons-video":return n().createElement("g",null,n().createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"}))}}render(){const{size:e=24,className:t=""}=this.props,s=this.props.height||e,r=this.props.width||e,a=this.props.style||{height:s,width:r},i="gridicons-"+this.props.icon;let o=["gridicon",i,t];return this.needsOffset(i,e)&&o.push("needs-offset"),o=o.join(" "),n().createElement("svg",{"aria-label":this.props.description,className:o,focusable:this.props.focusable,height:s,onClick:this.props.onClick,style:a,viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"]},this.getSVGTitle(i),this.renderIcon(i))}}const o=i},4120:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(7723),a=s(9362),n=s.n(a);const __=r.__,i="#fff",o=n().createElement("svg",{className:"jetpack-instant-search__jetpack-colophon-logo",height:12,width:12,viewBox:"0 0 32 32"},n().createElement("path",{className:"jetpack-logo__icon-circle",fill:"#069e08",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),n().createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:i,points:"15,19 7,19 15,3 "}),n().createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:i,points:"17,29 17,13 25,13 "})),l=e=>{const t="string"==typeof e.locale?e.locale.split("-",1)[0]:null,s=t&&"en"!==t?"https://"+t+".jetpack.com/upgrade/search?utm_source=poweredby":"https://jetpack.com/upgrade/search/?utm_source=poweredby";return n().createElement("div",{className:"jetpack-instant-search__jetpack-colophon"},n().createElement("a",{href:s,rel:"external noopener noreferrer nofollow",target:"_blank",className:"jetpack-instant-search__jetpack-colophon-link"},o,n().createElement("span",{className:"jetpack-instant-search__jetpack-colophon-text"},__("Search powered by Jetpack","jetpack-search-pkg"))))}},8961:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(9362),a=s.n(r),n=s(1539);const i=({type:e,children:t})=>"warning"!==e?null:a().createElement("div",{className:"jetpack-instant-search__notice jetpack-instant-search__notice--warning"},a().createElement(n.A,{icon:"info",size:20}),a().createElement("div",null,t))},6973:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(7723),a=s(9362),n=s.n(a),i=s(7479);const __=r.__,o=e=>{const{children:t,closeOverlay:s,colorTheme:r,hasOverlayWidgets:o,isVisible:l}=e;return(0,a.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),s())},t=e=>{if("Tab"===e.key){const t=document.getElementsByClassName(i.w4)[0].contains(e.target),s=document.getElementsByClassName(i.Md)[0],r=document.getElementById(i.m2);!0===e.shiftKey&&(e.target!==s&&!1!==t||(e.preventDefault(),r.focus())),!1===e.shiftKey&&(e.target!==r&&!1!==t||(e.preventDefault(),s.focus()))}},r=e=>{const t=document.getElementsByClassName("jetpack-instant-search__search-results-wrapper")[0];e.target?.isConnected&&t&&!t.contains(e.target)&&s()},a=()=>{window.removeEventListener("click",r),window.removeEventListener("keydown",e),window.removeEventListener("keydown",t)};return l?(window.addEventListener("click",r),window.addEventListener("keydown",e),window.addEventListener("keydown",t)):a(),()=>{a()}}),[s,l]),n().createElement("div",{"aria-hidden":!l,"aria-labelledby":"jetpack-instant-search__overlay-title",className:["jetpack-instant-search",i.w4,`jetpack-instant-search__overlay--${r}`,o?"":"jetpack-instant-search__overlay--no-sidebar",l?"":"is-hidden"].join(" "),role:"dialog"},n().createElement("h1",{id:"jetpack-instant-search__overlay-title",className:"screen-reader-text"},__("Search results","jetpack-search-pkg")),t)}},413:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9362),a=s.n(r);const n=({className:e,onClick:t,url:s})=>{const r=function(e){const t=e.split("/").filter((e=>e.length>0));return t.shift(),t}(s);return r.length<1?null:a().createElement("div",{className:`jetpack-instant-search__path-breadcrumb ${e||""}`},a().createElement("a",{className:"jetpack-instant-search__path-breadcrumb-link",href:`//${s}`,onClick:t,tabIndex:"-1","aria-hidden":"true"},r.map(((e,t,s)=>a().createElement("span",{className:"jetpack-instant-search__path-breadcrumb-piece",key:e},decodeURIComponent(e),t!==s.length-1?" › ":"")))))}},2355:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(3691),a=s.n(r),n=s(9362),i=s.n(n),o=s(4809);const l=e=>{const{alt:t,isPhotonEnabled:s,maxHeight:r=600,maxWidth:n=600,src:l,lazyLoad:c=!0,...p}=e,h=(0,o.g)(l,n,r,s);return i().createElement("img",a()({alt:t,src:h,loading:""+(c?"lazy":"eager")},p))}},7846:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(7723),a=s(9362),n=s.n(a),i=s(113),o=s(1539);const __=r.__,l=["youtube","ooyala","anvplayer","wpvideo","bc_video","video","brightcove","tp_video","jwplayer","tempo-video","vimeo"],c=["gallery","ione_media_gallery"],p=["audio","soundcloud"],h={product:"cart",video:"video",gallery:"image-multiple",event:"calendar",events:"calendar"},u=({postType:e,shortcodeTypes:t,iconSize:s=18})=>{if(Object.keys(h).includes(e))return n().createElement(o.A,{icon:h[e],size:s});const r=(0,i.A)(t,l),a=(0,i.A)(t,p),u=(0,i.A)(t,c);return r?n().createElement(o.A,{icon:"video",size:s}):a?n().createElement(o.A,{icon:"audio",size:s}):"page"===e?n().createElement(o.A,{icon:"pages",size:s,description:__("Page","jetpack-search-pkg")}):u?n().createElement(o.A,{icon:"image-multiple",size:s,description:__("Image","jetpack-search-pkg")}):null}},2652:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(9362),a=s.n(r);class n extends r.Component{render(){const{formattedPrice:e,formattedSalePrice:t,formattedRegularPrice:s,price:n,salePrice:i}=this.props;return n?a().createElement("span",{className:"jetpack-instant-search__product-price"},i>0?a().createElement(r.Fragment,null,a().createElement("s",{className:"jetpack-instant-search__product-price-regular",dangerouslySetInnerHTML:{__html:s}}),a().createElement("span",{dangerouslySetInnerHTML:{__html:t}})):a().createElement("span",{dangerouslySetInnerHTML:{__html:e}})):null}}const i=n},6777:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(7723),a=s(9362),n=s.n(a),i=s(1539);const _n=r._n;function o({rating:e=0,count:t=0,permalink:s}){return n().createElement("div",{className:"jetpack-instant-search__product-rating"},n().createElement("span",{"aria-hidden":!0,className:"jetpack-instant-search__product-rating-stars"},Array(5).fill(n().createElement(i.A,{size:16,icon:"star-outline"})).fill(n().createElement(i.A,{size:16,icon:"star"}),0,e))," ",n().createElement("a",{"aria-hidden":!0,className:"jetpack-instant-search__product-rating-count",href:s+"#reviews"},(0,r.sprintf)(/* Translators: the placeholder is the number of product reviews. */ _n("%d review","%d reviews",t,"jetpack-search-pkg"),t)),n().createElement("span",{className:"screen-reader-text"},(0,r.sprintf)(/* Translators: the first placeholder is the average product rating out of 5; the second is the number of product reviews. */ _n("Average rating of %1$d out of 5 from %2$d review.","Average rating of %1$d out of 5 from %2$d reviews.",t,"jetpack-search-pkg"),Number(e).toFixed(2),t)))}},3845:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(7723),a=s(3257),n=s.n(a),i=s(9362),o=s.n(i),l=s(7479);const __=r.__;class c extends i.Component{scrollElement=document.getElementsByClassName(l.tr)[0];componentDidMount(){this.scrollElement.addEventListener("scroll",this.checkScroll)}componentDidUnmount(){this.scrollElement.removeEventListener("scroll",this.checkScroll)}checkScroll=n()((()=>{const e=this.scrollElement.clientHeight+this.scrollElement.scrollTop+l.ZJ;this.props.enableLoadOnScroll&&e>=this.scrollElement.scrollHeight&&this.props.onLoadNextPage()}),100);render(){return o().createElement("button",{className:"jetpack-instant-search__scroll-button",disabled:this.props.isLoading,onClick:this.props.onLoadNextPage},this.props.isLoading?o().createElement("span",null,__("Loading…","jetpack-search-pkg")):o().createElement("span",null,__("Load more","jetpack-search-pkg")))}}const p=c},459:(e,t,s)=>{s.d(t,{A:()=>k});var r=s(4224),a=s.n(r),n=s(3257),i=s.n(n),o=s(9362),l=s.n(o),c=s(4952),p=s(7479),h=s(3089),u=s(6122),d=s(8924),m=s(999),g=s(538),_=s(6084),y=s(8165),f=s(6973),E=s(8568);class v extends o.Component{static defaultProps={overlayOptions:{},widgets:[]};constructor(){super(...arguments),this.state={isVisible:!!this.props.initialIsVisible,overlayOptionsCustomizerOverride:{}},this.getResults=i()(this.getResults,200),this.props.enableAnalytics?this.initializeAnalytics():(0,d.Re)(),this.props.shouldIntegrateWithDom?this.props.initializeQueryValues():this.props.disableQueryStringIntegration()}static getDerivedStateFromProps(e,t){return{overlayOptions:{...e.overlayOptions,...t.overlayOptionsCustomizerOverride}}}componentDidMount(){(this.props.initialShowResults&&this.props.initialIsVisible||this.props.isInCustomizer)&&this.getResults(),this.props.hasActiveQuery&&this.props.overlayOptions.enableFilteringOpensOverlay&&this.showResults()}componentDidUpdate(e,t){e.searchQuery===this.props.searchQuery&&e.sort===this.props.sort&&a()(e.filters)===a()(this.props.filters)&&a()(e.staticFilters)===a()(this.props.staticFilters)||this.onChangeQueryString(this.props.isHistoryNavigation),t.overlayOptions.defaultSort!==this.state.overlayOptions.defaultSort&&this.props.setSort(this.state.overlayOptions.defaultSort),a()(t.overlayOptions.excludedPostTypes)!==a()(this.state.overlayOptions.excludedPostTypes)&&this.getResults()}initializeAnalytics(){(0,d.ze)(),!window[p.O5].preventTrackingCookiesReset&&(0,d.kX)(),(0,d.wk)(this.props.options.siteId)}getResultFormat=()=>{if(this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==p.$K)return p.yj;return(0,u.lz)()||this.state.overlayOptions.resultFormat};initializeStaticFilters=()=>{const e=(0,h.PM)();e.length>0&&0===Object.keys(this.props.staticFilters).length&&e.forEach((e=>this.props.setStaticFilter(e.filter_id,e.selected,!0)))};hideResults=e=>{this.props.shouldIntegrateWithDom&&(0,u.fX)(this.props.initialHref,(()=>{this.setState({isVisible:!1}),this.props.clearQueryValues()}),e)};toggleResults=e=>{this.props.shouldIntegrateWithDom&&this.state.isVisible!==e&&(e&&this.initializeStaticFilters(),this.setState({isVisible:e}))};showResults=this.toggleResults.bind(this,!0);onChangeQueryString=e=>{this.getResults(),this.props.hasActiveQuery&&!this.state.isVisible&&this.showResults(),!this.props.hasActiveQuery&&e&&this.hideResults(e),null!==this.props.searchQuery&&document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.value=this.props.searchQuery}))};loadNextPage=()=>{this.props.hasNextPage&&this.getResults({pageHandle:this.props.response.page_handle})};getResults=({pageHandle:e}={})=>{this.props.makeSearchRequest({aggregations:e?{}:this.props.aggregations,excludedPostTypes:this.state.overlayOptions.excludedPostTypes,filter:this.props.filters,staticFilters:this.props.staticFilters,pageHandle:e,query:this.props.searchQuery,resultFormat:this.getResultFormat(),siteId:this.props.options.siteId,additionalBlogIds:this.props.options.additionalBlogIds,sort:this.props.sort,postsPerPage:this.props.options.postsPerPage,adminQueryFilter:this.props.options.adminQueryFilter,highlightFields:this.props.options.highlightFields,customResults:this.props.options.customResults,isInCustomizer:this.props.isInCustomizer})};updateOverlayOptions=(e,t)=>{this.setState((t=>({overlayOptionsCustomizerOverride:{...t.overlayOptionsCustomizerOverride,...e}})),t)};render(){const e=this.getResultFormat(),t=this.props.shouldCreatePortal?o.createPortal:e=>e;return l().createElement(o.Fragment,null,this.props.isInCustomizer&&l().createElement(_.A,{showResults:this.showResults,toggleResults:this.toggleResults,updateOverlayOptions:this.updateOverlayOptions}),this.props.shouldIntegrateWithDom&&l().createElement(y.A,{initializeQueryValues:this.props.initializeQueryValues,isVisible:this.state.isVisible,overlayOptions:this.state.overlayOptions,setFilter:this.props.setFilter,setSearchQuery:this.props.setSearchQuery,showResults:this.showResults,themeOptions:this.props.themeOptions}),t(l().createElement(f.A,{closeColor:this.state.overlayOptions.closeColor,closeOverlay:this.hideResults,colorTheme:this.state.overlayOptions.colorTheme,hasOverlayWidgets:this.props.hasOverlayWidgets,isVisible:this.state.isVisible},l().createElement(E.A,{closeOverlay:this.hideResults,enableLoadOnScroll:this.state.overlayOptions.enableInfScroll,enableFilteringOpensOverlay:this.state.overlayOptions.enableFilteringOpensOverlay,enableSort:this.state.overlayOptions.enableSort,filters:this.props.filters,staticFilters:this.props.staticFilters,hasError:this.props.hasError,hasNextPage:this.props.hasNextPage,highlightColor:this.state.overlayOptions.highlightColor,isLoading:this.props.isLoading,isPhotonEnabled:this.props.options.isPhotonEnabled,isPrivateSite:this.props.options.isPrivateSite,isVisible:this.state.isVisible,locale:this.props.options.locale,onChangeSearch:this.props.setSearchQuery,onChangeSort:this.props.setSort,onLoadNextPage:this.loadNextPage,overlayTrigger:this.state.overlayOptions.overlayTrigger,postTypes:this.props.options.postTypes,response:this.props.response,resultFormat:e,searchQuery:this.props.searchQuery,showPoweredBy:this.state.overlayOptions.showPoweredBy,sort:this.props.sort,widgets:this.props.options.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay,hasNonSearchWidgets:this.props.options.hasNonSearchWidgets,additionalBlogIds:this.props.options.additionalBlogIds,showPostDate:this.state.overlayOptions.enablePostDate})),document.body))}}const k=(0,c.Ng)(((e,t)=>({filters:(0,g.gA)(e),staticFilters:(0,g.kJ)(e),hasActiveQuery:(0,g.xp)(e),hasError:(0,g.JD)(e),isHistoryNavigation:(0,g.xk)(e),hasNextPage:(0,g.rB)(e),isLoading:(0,g.VP)(e),response:(0,g.mi)(e),searchQuery:(0,g.V8)(e),sort:(0,g.FD)(e,t.overlayOptions.defaultSort),widgetOutsideOverlay:(0,g.S7)(e)})),{clearQueryValues:m.Qt,disableQueryStringIntegration:m.go,initializeQueryValues:m.JF,makeSearchRequest:m.oZ,setStaticFilter:m.$6,setFilter:m.R6,setSearchQuery:m.Ri,setSort:m.d1})(v)},3297:(e,t,s)=>{s.d(t,{A:()=>h});var r=s(7723),a=s(4436),n=s.n(a),i=s(9362),o=s.n(i),l=s(7479),c=s(1539);const __=r.__;let p=null;const h=e=>{const[t]=(0,i.useState)((()=>n()("jetpack-instant-search__box-input-"))),s=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var t;e.isVisible?(t=s.current,()=>{p=t.ownerDocument.activeElement,t.focus()})():e.shouldRestoreFocus&&p&&p.focus()}),[e.isVisible,e.shouldRestoreFocus]),o().createElement(i.Fragment,null,o().createElement("div",{className:"jetpack-instant-search__box"},o().createElement("label",{className:"jetpack-instant-search__box-label",htmlFor:t},o().createElement("div",{className:"jetpack-instant-search__box-gridicon"},o().createElement(c.A,{icon:"search",size:24})),o().createElement("input",{autoComplete:"off",id:t,className:"search-field "+l.Md,inputMode:"search",onChange:e.isVisible?e.onChange:null,ref:s,placeholder:__("Search…","jetpack-search-pkg"),type:"search",value:e.searchQuery??""}),"string"==typeof e.searchQuery&&e.searchQuery.length>0&& /* Translators: Button is used to clear the search input query. */ @@ -6,7 +6,7 @@ o().createElement("input",{type:"button",value:__("clear","jetpack-search-pkg"), _n('Found %1$s result for "%2$s"','Found %1$s results for "%2$s"',e,"jetpack-search-pkg"),i,t);if(n){const t=(0,p.PM)().find((e=>"group_id"===e.filter_id)),s=t?.filter_id,a=this.props.staticFilters[s],n=t?.selected,o=t?.values?.[0],l=a||n||o?.value,c=t?.values?.find?.((e=>e.value===l));return c?.name?(0,r.sprintf)(/* translators: %1$s: number of results. - %2$s: site name. */ _n("Found %1$s result in %2$s","Found %1$s results in %2$s",e,"jetpack-search-pkg"),i,c?.name):(0,r.sprintf)(/* translators: %s: number of results. */ _n("Found %s result","Found %s results",e,"jetpack-search-pkg"),i)}return __("Showing popular results","jetpack-search-pkg")}renderPrimarySection(){const{highlightColor:e,searchQuery:t}=this.props,{results:s=[],total:a=0,corrected_query:p=!1}=this.props.response,h=(0,o.d)(e),u=!1!==p,g=a>0,_=this.props.additionalBlogIds?.length>0||this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==l.$K;return i().createElement(n.Fragment,null,i().createElement("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t\t\t\t\t.jetpack-instant-search *::selection,\n\t\t\t\t\t\t\t.jetpack-instant-search .jetpack-instant-search__search-results .jetpack-instant-search__search-results-primary .jetpack-instant-search__search-result mark {\n\t\t\t\t\t\t\t\tcolor: ${h};\n\t\t\t\t\t\t\t\tbackground-color: ${e};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t`}}),i().createElement(E.A,null),i().createElement("h2",{className:"jetpack-instant-search__search-results-title"},this.getSearchTitle()),g&&u&&i().createElement("p",{className:"jetpack-instant-search__search-results-unused-query"},/* translators: %s: Search query. */ /* translators: %s: Search query. */ -(0,r.sprintf)(__('No results for "%s"',"jetpack-search-pkg"),t)),this.props.hasError&&i().createElement(d.A,{type:"warning"},(0,c.u)(this.props.response.error)),g&&!this.props.hasError&&this.props.response._isOffline&&i().createElement(d.A,{type:"warning"},(0,c.u)({message:"offline"})),g&&!this.props.hasError&&i().createElement("ol",{className:`jetpack-instant-search__search-results-list is-format-${this.props.resultFormat}`},s.map(((e,t)=>i().createElement(y.A,{index:t,key:t,staticFilters:this.props.staticFilters,isPhotonEnabled:this.props.isPhotonEnabled,locale:this.props.locale,railcar:this.props.isVisible?e.railcar:null,result:e,resultFormat:this.props.resultFormat,searchQuery:this.props.searchQuery,isMultiSite:_,showPostDate:this.props.showPostDate})))),g&&this.props.hasNextPage&&i().createElement("div",{className:"jetpack-instant-search__search-results-pagination"},i().createElement(m.A,{enableLoadOnScroll:this.props.enableLoadOnScroll,isLoading:this.props.isLoading,onLoadNextPage:this.props.onLoadNextPage})))}renderSecondarySection(){return i().createElement(f.A,{filters:this.props.filters,staticFilters:this.props.staticFilters,isLoading:this.props.isLoading,locale:this.props.locale,postTypes:this.props.postTypes,response:this.props.response,widgets:this.props.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay})}closeOverlay=e=>{e.preventDefault(),this.props.closeOverlay()};onKeyPressHandler=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.closeOverlay())};render(){return i().createElement("div",{className:(0,a.A)("jetpack-instant-search__search-results-wrapper",{"has-colophon":this.props.showPoweredBy})},i().createElement("div",{"aria-hidden":!0===this.props.isLoading,className:"jetpack-instant-search__search-results"},i().createElement("div",{className:"jetpack-instant-search__search-results-controls",role:"form"},i().createElement(_.A,{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-results-search-form",isVisible:this.props.isVisible,onChangeSearch:this.props.onChangeSearch,searchQuery:this.props.searchQuery}),i().createElement("button",{className:"jetpack-instant-search__overlay-close",onClick:this.closeOverlay,onKeyPress:this.onKeyPressHandler,tabIndex:"0","aria-label":__("Close search results","jetpack-search-pkg")},i().createElement(h.A,{icon:"cross",size:"24","aria-hidden":"true",focusable:"false"}))),i().createElement(g.A,{enableSort:this.props.enableSort,onChangeSort:this.props.onChangeSort,resultFormat:this.props.resultFormat,sort:this.props.sort},(this.hasFilterOptions()||this.props.hasNonSearchWidgets)&&i().createElement("div",{role:"button",onClick:this.toggleMobileSecondary,onKeyDown:this.toggleMobileSecondary,tabIndex:"0",className:"jetpack-instant-search__search-results-filter-button"},__("Filters","jetpack-search-pkg"),i().createElement(h.A,{icon:"chevron-down",size:16,alt:__("Show search filters","jetpack-search-pkg"),"aria-hidden":"true"}),i().createElement("span",{className:"screen-reader-text assistive-text"},this.state.shouldShowMobileSecondary?__("Hide filters","jetpack-search-pkg"):__("Show filters","jetpack-search-pkg")))),i().createElement("div",{"aria-live":"polite",className:"jetpack-instant-search__search-results-content",id:"jetpack-instant-search__search-results-content"},i().createElement("div",{className:"jetpack-instant-search__search-results-primary"},this.renderPrimarySection()),i().createElement("div",{className:["jetpack-instant-search__search-results-secondary",(this.state.shouldShowMobileSecondary?"jetpack-instant-search__search-results-secondary--show-as-modal":"")+" "].join(" ")},this.renderSecondarySection())),i().createElement("button",{id:l.m2,onClick:this.closeOverlay},"Close Search")),this.props.showPoweredBy&&i().createElement(u.A,{locale:this.props.locale}))}}const k=v},1168:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(7723),a=s(9362),n=s.n(a),i=s(3476);const __=r.__;class o extends a.Component{handleClick=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.dataset.value))};handleSelectChange=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.value))};render(){const e=(0,i.$)(this.props.resultFormat),t=e.size;let s=0;return e.size>3?n().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-select"},n().createElement("label",{htmlFor:"jetpack-instant-search__search-sort-select"},__("Sort:","jetpack-search-pkg")),n().createElement("select",{className:"jetpack-instant-search__search-sort-select",id:"jetpack-instant-search__search-sort-select",onBlur:this.handleSelectChange,onChange:this.handleSelectChange},[...e.entries()].map((([e,t])=>n().createElement("option",{value:e,key:e,selected:this.props.value===e?"selected":""},t))))):n().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-links"},n().createElement("div",{className:"screen-reader-text"},__("Sort by:","jetpack-search-pkg")," "),[...e.entries()].map((([e,r])=>n().createElement(n().Fragment,null,n().createElement("button",{"aria-current":this.props.value===e?"true":"false",className:"jetpack-instant-search__search-sort-option "+(this.props.value===e?"is-selected":""),"data-value":e,key:e,onClick:this.handleClick},r),++s{s.d(t,{A:()=>o});var r=s(9362),a=s.n(r),n=s(1503),i=s(6465);const o=e=>a().createElement("div",{className:"jetpack-instant-search__sidebar"},a().createElement(n.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!0,widget:e.widgetOutsideOverlay}),a().createElement(i.A,null),e.widgets.map((t=>(0,r.createPortal)(a().createElement("div",{id:`${t.widget_id}-portaled-wrapper`,className:"jetpack-instant-search__portaled-wrapper"},a().createElement(n.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!1,showTitle:!1,widget:t})),document.getElementById(`${t.widget_id}-wrapper`)))))},1080:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(9362),a=s.n(r),n=s(4952),i=s(3089),o=s(999),l=s(5450);class c extends r.Component{onChangeStaticFilter=(e,t)=>{this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:a().createElement(l.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,i.sm)(e),value:this.props.staticFilters[(0,i.xf)(e)],variation:"tabbed"});render(){const e=(0,i.PM)("tabbed");return e.length?a().createElement("div",{className:"jetpack-instant-search__search-tabbed-filters"},e.map(this.renderStaticFilterComponent)):null}}const p=(0,n.Ng)((e=>({staticFilters:e.staticFilters})),{setStaticFilter:o.$6})(c)},6465:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9362),a=s.n(r);class n extends r.Component{container=(0,r.createRef)();componentDidMount(){const e=document.getElementsByClassName("jetpack-instant-search__widget-area")[0];e&&(e.style.removeProperty("display"),this.container.current.appendChild(e))}shouldComponentUpdate(){return!1}render(){return a().createElement("div",{className:"jetpack-instant-search__widget-area-container",ref:this.container})}}},9355:(e,t,s)=>{function r(e,t,s){if(!e)return"";const r=decodeURIComponent(e);return(!t||"false"!==r)&&(!(!t||"true"!==r)||(s&&0*+r==0?+r:r))}function a(e,t,s){let a,n;const i={},o=e.split("&");for(t=void 0===t||t,s=void 0===s||s;a=o.shift();)a=a.split("="),n=a.shift(),void 0!==i[n]?i[n]=[].concat(i[n],r(a.shift(),t,s)):i[n]=r(a.shift(),t,s);return i}s.d(t,{D:()=>a})},9470:(e,t,s)=>{s.r(t),s.d(t,{initialize:()=>d});s(7778);var r=s(8864),a=s(1918),n=s(4952),i=s(459),o=s(5678),l=s(7479),c=s(1017),p=s(7574),h=s(1388);const u=()=>{(0,r.render)(a.Ay.createElement(n.Kq,{store:h.A},a.Ay.createElement(i.A,{aggregations:(0,o.q1)([...window[l.O5].widgets,...window[l.O5].widgetsOutsideOverlay]),enableAnalytics:!0,hasOverlayWidgets:!!window[l.O5].hasOverlayWidgets,initialHref:window.location.href,initialIsVisible:window[l.O5].showResults,isInCustomizer:(0,c.XH)(),overlayOptions:window[l.O5].overlayOptions,options:window[l.O5],shouldCreatePortal:!0,shouldIntegrateWithDom:!0,themeOptions:(0,p.E)(window[l.O5])})),document.body)};function d(){window[l.O5]&&"siteId"in window[l.O5]&&u()}},7152:(e,t,s)=>{function r(){return!window.matchMedia("(prefers-reduced-motion: no-preference)").matches}s.d(t,{y:()=>r})},5678:(e,t,s)=>{s.d(t,{$P:()=>b,pA:()=>g,q1:()=>m});s(9060);var r=s(4224),a=s.n(r),n=s(1473),i=s(6195),o=s(5114),l=s(7479),c=s(3089);let p;const h=e=>Array.isArray(e)&&e.length>0,u=(0,o.A)(30,5*l.Az),d=(0,o.A)(30,30*l.Az);function m(e=[]){const t={};return e.forEach((({filters:e})=>e.forEach((e=>{t[e.filter_id]=function(e){switch(e.type){case"date_histogram":return{date_histogram:{field:"post_date_gmt"===e.field?"date_gmt":"date",interval:e.interval}};case"taxonomy":{let t=`taxonomy.${e.taxonomy}.slug_slash_name`;return"post_tag"===e.taxonomy?t="tag.slug_slash_name":"category"===e.taxonomy&&(t="category.slug_slash_name"),{terms:{field:t,size:e.count}}}case"post_type":case"blog_id":return{terms:{field:e.type,size:e.count}};case"author":return{terms:{field:"author_login_slash_name",size:e.count}}}}(e)})))),t}function g(e){return e=e??{},Object.fromEntries(Object.entries(e).filter((([,e])=>e?.buckets?.length>0)).map((([e,t])=>{const s=t.buckets.map((e=>({...e,doc_count:0})));return[e,{...t,buckets:s}]})))}S();const _=/(\d{4})-(\d{2})-(\d{2})/;function y(e,t,s){let r,a;"year"===s&&([,r,,]=t.match(_)),"month"===s&&([,r,a]=t.match(_));let n="",i="";if(a){const e=+a+1;n=`${r}-${a}-01`,i=e<=12?`${r}-${e<10?`0${e}`:`${e}`}-01`:+r+1+"-01-01"}else r&&(n=`${r}-01-01`,i=+r+1+"-01-01");return{range:{[e]:{gte:n,lt:i}}}}const f=new Map([["post_types",e=>({term:{post_type:e}})],["authors",e=>({term:{author_login:e}})],["blog_ids",e=>({term:{blog_id:e}})],["category",e=>({term:{"category.slug":e}})],["post_tag",e=>({term:{"tag.slug":e}})],["month_post_date",e=>y("date",e,"month")],["month_post_date_gmt",e=>y("date_gmt",e,"month")],["month_post_modified",e=>y("date",e,"month")],["month_post_modified_gmt",e=>y("date_gmt",e,"month")],["year_post_date",e=>y("date",e,"year")],["year_post_date_gmt",e=>y("date_gmt",e,"year")],["year_post_modified",e=>y("date",e,"year")],["year_post_modified_gmt",e=>y("date_gmt",e,"year")]]);function E(e){const t={};return Object.keys(e).forEach((s=>{const r=e[s];"group_id"===s&&r!==l.$K&&(t[s]=r)})),t}function v(e,t,s){const r={bool:{must:[]}};return(0,c.Xt)().filter((t=>h(e[t]))).forEach((t=>{e[t].forEach((e=>{f.has(t)?r.bool.must.push(f.get(t)(e)):r.bool.must.push({term:{[`taxonomy.${t}.slug`]:e}})}))})),t&&r.bool.must.push(t),s?.length>0&&r.bool.must.push({bool:{must_not:s.map((e=>f.get("post_types")(e)))}}),r}const k=new Map([["oldest","date_asc"],["newest","date_desc"],["relevance","score_default"]]);function w(e){return["price_asc","price_desc","rating_desc"].includes(e)?e:k.get(e,"score_default")}function S(){p&&p.abort(),p=new AbortController}function b(e,t){const s=a()(Array.from(arguments));if(!navigator.onLine&&d.get(s))return Promise.resolve(d.get(s)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!0,...e})));if(u.get(s))return Promise.resolve(u.get(s)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!1,...e})));const r=function({aggregations:e,excludedPostTypes:t,filter:s,staticFilters:r,pageHandle:a,query:o,resultFormat:c,sort:p,postsPerPage:h=10,adminQueryFilter:u,isInCustomizer:d=!1,additionalBlogIds:m=[],highlightFields:g=["title","content","comments"],customResults:_=[]}){null===o&&(o="");let y=["date","permalink.url.raw","tag.name.default","category.name.default","post_type","shortcode_types","forum.topic_resolved"];(c!==l.UM||d)&&(y=y.concat(["has.image","image.url.raw","image.alt_text"])),(c===l.s6||d)&&(y=y.concat(["meta._wc_average_rating.double","meta._wc_review_count.long","wc.formatted_price","wc.formatted_regular_price","wc.formatted_sale_price","wc.price","wc.sale_price"])),r&&r.group_id&&r.group_id!==l.$K&&(y=y.concat(["author","blog_name","blog_icon_url"]));let f={aggregations:e,fields:y,highlight_fields:g,filter:v(s,u,t),query:encodeURIComponent(o),sort:w(p),page_handle:a,size:h};return m?.length>0&&(f.fields=y.concat(["author","blog_name","blog_icon_url","blog_id"]),f.additional_blog_ids=m),_.every((e=>{let t=e.pattern;const s=e.ids;if(t.startsWith("regex:")){if(t="^"+t.replace("regex:","")+"$",o.match(t))return f.custom_results=s,!1}else if(o===t)return f.custom_results=s,!1;return!0})),r&&Object.keys(r).length>0&&(f={...f,...E(r)}),(0,i.l)((0,n.U)(f))}(e),o=(c=s,function(e){const t=u.get(c)||d.get(c);if("AbortError"===e.name)return t?{_isCached:!0,_isError:!1,_isOffline:!1,...t}:null;if(t)return{_isCached:!0,_isError:!0,_isOffline:!1,...t};throw e});var c;const h=function(e,t){return function(s){const r={...s,requestId:t};return u.set(e,r),d.set(e,r),r}}(s,t),m=`/sites/${e.siteId}/search?${r}`,{apiNonce:g,apiRoot:_,homeUrl:y,isPrivateSite:f,isWpcom:k}=window[l.O5];let b=`https://public-api.wordpress.com/rest/v1.3${m}`;return f&&k?b=`${y}/wp-json/wpcom-origin/v1.3${m}`:f&&(b=`${_}jetpack/v4/search?${r}`),S(),fetch(b,{headers:f?{"X-WP-Nonce":g}:{},credentials:f?"include":"same-origin",signal:p.signal}).then((e=>200!==e.status?e.json().then((e=>{throw new Error(e.error)})):e)).then((e=>e.json())).then(h).catch(o)}},113:(e,t,s)=>{function r(e,t){Array.isArray(e)||(e=[e]);return 0!==e.filter((e=>t.includes(e))).length}s.d(t,{A:()=>r})},7084:(e,t,s)=>{function r(e){const t=function(e){let t;return"#"===e[0]&&(t=e.substring(1)),3===t.length&&(t=t.split("").map((e=>`${e}${e}`)).join("")),t}(e);return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"black":"white"}s.d(t,{d:()=>r})},7574:(e,t,s)=>{function r(e){return[...e.querySelectorAll('input[type="checkbox"]').values()].filter((e=>e.checked)).map((e=>e.name))}function a(e){const t={searchInputSelector:['input[name="s"]:not(.jetpack-instant-search__box-input)',"#searchform input.search-field:not(.jetpack-instant-search__box-input)",".search-form input.search-field:not(.jetpack-instant-search__box-input)",".searchform input.search-field:not(.jetpack-instant-search__box-input)"].join(", "),filterInputSelector:["a.jetpack-search-filter__link"],overlayTriggerSelector:[".jetpack-instant-search__open-overlay-button","header#site-header .search-toggle[data-toggle-target]"].join(",")};return e.theme_options?{...t,...e.theme_options}:t}s.d(t,{E:()=>a,e:()=>r})},9440:(e,t,s)=>{s.d(t,{A:()=>a});const r=()=>{},a=()=>r},6299:(e,t,s)=>{s.d(t,{u:()=>a});var r=s(7723);const __=r.__;function a(e){switch(e?.message){case"service_unavailable":return(0,r.sprintf)( +(0,r.sprintf)(__('No results for "%s"',"jetpack-search-pkg"),t)),this.props.hasError&&i().createElement(d.A,{type:"warning"},(0,c.u)(this.props.response.error)),g&&!this.props.hasError&&this.props.response._isOffline&&i().createElement(d.A,{type:"warning"},(0,c.u)({message:"offline"})),g&&!this.props.hasError&&i().createElement("ol",{className:`jetpack-instant-search__search-results-list is-format-${this.props.resultFormat}`},s.map(((e,t)=>i().createElement(y.A,{index:t,key:t,staticFilters:this.props.staticFilters,isPhotonEnabled:this.props.isPhotonEnabled,locale:this.props.locale,railcar:this.props.isVisible?e.railcar:null,result:e,resultFormat:this.props.resultFormat,searchQuery:this.props.searchQuery,isMultiSite:_,showPostDate:this.props.showPostDate})))),g&&this.props.hasNextPage&&i().createElement("div",{className:"jetpack-instant-search__search-results-pagination"},i().createElement(m.A,{enableLoadOnScroll:this.props.enableLoadOnScroll,isLoading:this.props.isLoading,onLoadNextPage:this.props.onLoadNextPage})))}renderSecondarySection(){return i().createElement(f.A,{filters:this.props.filters,staticFilters:this.props.staticFilters,isLoading:this.props.isLoading,locale:this.props.locale,postTypes:this.props.postTypes,response:this.props.response,widgets:this.props.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay})}closeOverlay=e=>{e.preventDefault(),this.props.closeOverlay()};onKeyPressHandler=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.closeOverlay())};render(){return i().createElement("div",{className:(0,a.A)("jetpack-instant-search__search-results-wrapper",{"has-colophon":this.props.showPoweredBy})},i().createElement("div",{"aria-hidden":!0===this.props.isLoading,className:"jetpack-instant-search__search-results"},i().createElement("div",{className:"jetpack-instant-search__search-results-controls",role:"form"},i().createElement(_.A,{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-results-search-form",isVisible:this.props.isVisible,onChangeSearch:this.props.onChangeSearch,searchQuery:this.props.searchQuery}),i().createElement("button",{className:"jetpack-instant-search__overlay-close",onClick:this.closeOverlay,onKeyPress:this.onKeyPressHandler,tabIndex:"0","aria-label":__("Close search results","jetpack-search-pkg")},i().createElement(h.A,{icon:"cross",size:"24","aria-hidden":"true",focusable:"false"}))),i().createElement(g.A,{enableSort:this.props.enableSort,onChangeSort:this.props.onChangeSort,resultFormat:this.props.resultFormat,sort:this.props.sort},(this.hasFilterOptions()||this.props.hasNonSearchWidgets)&&i().createElement("div",{role:"button",onClick:this.toggleMobileSecondary,onKeyDown:this.toggleMobileSecondary,tabIndex:"0",className:"jetpack-instant-search__search-results-filter-button"},__("Filters","jetpack-search-pkg"),i().createElement(h.A,{icon:"chevron-down",size:16,alt:__("Show search filters","jetpack-search-pkg"),"aria-hidden":"true"}),i().createElement("span",{className:"screen-reader-text assistive-text"},this.state.shouldShowMobileSecondary?__("Hide filters","jetpack-search-pkg"):__("Show filters","jetpack-search-pkg")))),i().createElement("div",{"aria-live":"polite",className:"jetpack-instant-search__search-results-content",id:"jetpack-instant-search__search-results-content"},i().createElement("div",{className:"jetpack-instant-search__search-results-primary"},this.renderPrimarySection()),i().createElement("div",{className:["jetpack-instant-search__search-results-secondary",(this.state.shouldShowMobileSecondary?"jetpack-instant-search__search-results-secondary--show-as-modal":"")+" "].join(" ")},this.renderSecondarySection())),i().createElement("button",{id:l.m2,onClick:this.closeOverlay},"Close Search")),this.props.showPoweredBy&&i().createElement(u.A,{locale:this.props.locale}))}}const k=v},1168:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(7723),a=s(9362),n=s.n(a),i=s(3476);const __=r.__;class o extends a.Component{handleClick=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.dataset.value))};handleSelectChange=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.value))};render(){const e=(0,i.$)(this.props.resultFormat),t=e.size;let s=0;return e.size>3?n().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-select"},n().createElement("label",{htmlFor:"jetpack-instant-search__search-sort-select"},__("Sort:","jetpack-search-pkg")),n().createElement("select",{className:"jetpack-instant-search__search-sort-select",id:"jetpack-instant-search__search-sort-select",onBlur:this.handleSelectChange,onChange:this.handleSelectChange},[...e.entries()].map((([e,t])=>n().createElement("option",{value:e,key:e,selected:this.props.value===e?"selected":""},t))))):n().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-links"},n().createElement("div",{className:"screen-reader-text"},__("Sort by:","jetpack-search-pkg")," "),[...e.entries()].map((([e,r])=>n().createElement(n().Fragment,null,n().createElement("button",{"aria-current":this.props.value===e?"true":"false",className:"jetpack-instant-search__search-sort-option "+(this.props.value===e?"is-selected":""),"data-value":e,key:e,onClick:this.handleClick},r),++s{s.d(t,{A:()=>o});var r=s(9362),a=s.n(r),n=s(1503),i=s(6465);const o=e=>a().createElement("div",{className:"jetpack-instant-search__sidebar"},a().createElement(n.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!0,widget:e.widgetOutsideOverlay}),a().createElement(i.A,null),e.widgets.map((t=>(0,r.createPortal)(a().createElement("div",{id:`${t.widget_id}-portaled-wrapper`,className:"jetpack-instant-search__portaled-wrapper"},a().createElement(n.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!1,showTitle:!1,widget:t})),document.getElementById(`${t.widget_id}-wrapper`)))))},1080:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(9362),a=s.n(r),n=s(4952),i=s(3089),o=s(999),l=s(5450);class c extends r.Component{onChangeStaticFilter=(e,t)=>{this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:a().createElement(l.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,i.sm)(e),value:this.props.staticFilters[(0,i.xf)(e)],variation:"tabbed"});render(){const e=(0,i.PM)("tabbed");return e.length?a().createElement("div",{className:"jetpack-instant-search__search-tabbed-filters"},e.map(this.renderStaticFilterComponent)):null}}const p=(0,n.Ng)((e=>({staticFilters:e.staticFilters})),{setStaticFilter:o.$6})(c)},6465:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9362),a=s.n(r);class n extends r.Component{container=(0,r.createRef)();componentDidMount(){const e=document.getElementsByClassName("jetpack-instant-search__widget-area")[0];e&&(e.style.removeProperty("display"),this.container.current.appendChild(e))}shouldComponentUpdate(){return!1}render(){return a().createElement("div",{className:"jetpack-instant-search__widget-area-container",ref:this.container})}}},9355:(e,t,s)=>{function r(e,t,s){if(!e)return"";const r=decodeURIComponent(e);return(!t||"false"!==r)&&(!(!t||"true"!==r)||(s&&0*+r==0?+r:r))}function a(e,t,s){let a,n;const i={},o=e.split("&");for(t=void 0===t||t,s=void 0===s||s;a=o.shift();)a=a.split("="),n=a.shift(),void 0!==i[n]?i[n]=[].concat(i[n],r(a.shift(),t,s)):i[n]=r(a.shift(),t,s);return i}s.d(t,{D:()=>a})},9470:(e,t,s)=>{s.r(t),s.d(t,{initialize:()=>d});s(7778);var r=s(8864),a=s(1918),n=s(4952),i=s(459),o=s(5678),l=s(7479),c=s(1017),p=s(7574),h=s(1388);const u=()=>{(0,r.render)(a.Ay.createElement(n.Kq,{store:h.A},a.Ay.createElement(i.A,{aggregations:(0,o.q1)([...window[l.O5].widgets,...window[l.O5].widgetsOutsideOverlay]),enableAnalytics:!0,hasOverlayWidgets:!!window[l.O5].hasOverlayWidgets,initialHref:window.location.href,initialIsVisible:window[l.O5].showResults,isInCustomizer:(0,c.XH)(),overlayOptions:window[l.O5].overlayOptions,options:window[l.O5],shouldCreatePortal:!0,shouldIntegrateWithDom:!0,themeOptions:(0,p.E)(window[l.O5])})),document.body)};function d(){window[l.O5]&&"siteId"in window[l.O5]&&u()}},7152:(e,t,s)=>{function r(){return!window.matchMedia("(prefers-reduced-motion: no-preference)").matches}s.d(t,{y:()=>r})},5678:(e,t,s)=>{s.d(t,{$P:()=>S,pA:()=>g,q1:()=>m});s(9060);var r=s(4224),a=s.n(r),n=s(1473),i=s(6195),o=s(5114),l=s(7479),c=s(3089);let p;const h=e=>Array.isArray(e)&&e.length>0,u=(0,o.A)(30,5*l.Az),d=(0,o.A)(30,30*l.Az);function m(e=[]){const t={};return e.forEach((({filters:e})=>e.forEach((e=>{t[e.filter_id]=function(e){switch(e.type){case"date_histogram":return{date_histogram:{field:"post_date_gmt"===e.field?"date_gmt":"date",interval:e.interval}};case"taxonomy":{let t=`taxonomy.${e.taxonomy}.slug_slash_name`;return"post_tag"===e.taxonomy?t="tag.slug_slash_name":"category"===e.taxonomy&&(t="category.slug_slash_name"),{terms:{field:t,size:e.count}}}case"post_type":case"blog_id":return{terms:{field:e.type,size:e.count}};case"author":return{terms:{field:"author_login_slash_name",size:e.count}}}}(e)})))),t}function g(e){return e=e??{},Object.fromEntries(Object.entries(e).filter((([,e])=>e?.buckets?.length>0)).map((([e,t])=>{const s=t.buckets.map((e=>({...e,doc_count:0})));return[e,{...t,buckets:s}]})))}w();const _=/(\d{4})-(\d{2})-(\d{2})/;function y(e,t,s){let r,a;"year"===s&&([,r,,]=t.match(_)),"month"===s&&([,r,a]=t.match(_));let n="",i="";if(a){const e=+a+1;n=`${r}-${a}-01`,i=e<=12?`${r}-${e<10?`0${e}`:`${e}`}-01`:+r+1+"-01-01"}else r&&(n=`${r}-01-01`,i=+r+1+"-01-01");return{range:{[e]:{gte:n,lt:i}}}}const f=new Map([["post_types",e=>({term:{post_type:e}})],["authors",e=>({term:{author_login:e}})],["blog_ids",e=>({term:{blog_id:e}})],["category",e=>({term:{"category.slug":e}})],["post_tag",e=>({term:{"tag.slug":e}})],["month_post_date",e=>y("date",e,"month")],["month_post_date_gmt",e=>y("date_gmt",e,"month")],["month_post_modified",e=>y("date",e,"month")],["month_post_modified_gmt",e=>y("date_gmt",e,"month")],["year_post_date",e=>y("date",e,"year")],["year_post_date_gmt",e=>y("date_gmt",e,"year")],["year_post_modified",e=>y("date",e,"year")],["year_post_modified_gmt",e=>y("date_gmt",e,"year")]]);function E(e){const t={};return Object.keys(e).forEach((s=>{const r=e[s];"group_id"===s&&r!==l.$K&&(t[s]=r)})),t}function v(e,t,s){const r={bool:{must:[]}};return(0,c.Xt)().filter((t=>h(e[t]))).forEach((t=>{e[t].forEach((e=>{f.has(t)?r.bool.must.push(f.get(t)(e)):r.bool.must.push({term:{[`taxonomy.${t}.slug`]:e}})}))})),t&&r.bool.must.push(t),s?.length>0&&r.bool.must.push({bool:{must_not:s.map((e=>f.get("post_types")(e)))}}),r}const k=new Map([["oldest","date_asc"],["newest","date_desc"],["relevance","score_default"]]);function b(e){return["price_asc","price_desc","rating_desc"].includes(e)?e:k.get(e,"score_default")}function w(){p&&p.abort(),p=new AbortController}function S(e,t){const s=a()(Array.from(arguments));if(!navigator.onLine&&d.get(s))return Promise.resolve(d.get(s)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!0,...e})));if(u.get(s))return Promise.resolve(u.get(s)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!1,...e})));const r=function({aggregations:e,excludedPostTypes:t,filter:s,staticFilters:r,pageHandle:a,query:o,resultFormat:c,sort:p,postsPerPage:h=10,adminQueryFilter:u,isInCustomizer:d=!1,additionalBlogIds:m=[],highlightFields:g=["title","content","comments"],customResults:_=[]}){null===o&&(o="");let y=["date","permalink.url.raw","tag.name.default","category.name.default","post_type","shortcode_types","forum.topic_resolved"];(c!==l.UM||d)&&(y=y.concat(["has.image","image.url.raw","image.alt_text"])),(c===l.s6||d)&&(y=y.concat(["meta._wc_average_rating.double","meta._wc_review_count.long","wc.formatted_price","wc.formatted_regular_price","wc.formatted_sale_price","wc.price","wc.sale_price"])),r&&r.group_id&&r.group_id!==l.$K&&(y=y.concat(["author","blog_name","blog_icon_url"]));let f={aggregations:e,fields:y,highlight_fields:g,filter:v(s,u,t),query:encodeURIComponent(o),sort:b(p),page_handle:a,size:h};return m?.length>0&&(f.fields=y.concat(["author","blog_name","blog_icon_url","blog_id"]),f.additional_blog_ids=m),_.every((e=>{let t=e.pattern;const s=e.ids;if(t.startsWith("regex:")){if(t="^"+t.replace("regex:","")+"$",o.match(t))return f.custom_results=s,!1}else if(o===t)return f.custom_results=s,!1;return!0})),r&&Object.keys(r).length>0&&(f={...f,...E(r)}),(0,i.l)((0,n.U)(f))}(e),o=(c=s,function(e){const t=u.get(c)||d.get(c);if("AbortError"===e.name)return t?{_isCached:!0,_isError:!1,_isOffline:!1,...t}:null;if(t)return{_isCached:!0,_isError:!0,_isOffline:!1,...t};throw e});var c;const h=function(e,t){return function(s){const r={...s,requestId:t};return u.set(e,r),d.set(e,r),r}}(s,t),m=`/sites/${e.siteId}/search?${r}`,{apiNonce:g,apiRoot:_,homeUrl:y,isPrivateSite:f,isWpcom:k}=window[l.O5];let S=`https://public-api.wordpress.com/rest/v1.3${m}`;return f&&k?S=`${y}/wp-json/wpcom-origin/v1.3${m}`:f&&(S=`${_}jetpack/v4/search?${r}`),w(),fetch(S,{headers:f?{"X-WP-Nonce":g}:{},credentials:f?"include":"same-origin",signal:p.signal}).then((e=>200!==e.status?e.json().then((e=>{throw new Error(e.error)})):e)).then((e=>e.json())).then(h).catch(o)}},113:(e,t,s)=>{function r(e,t){Array.isArray(e)||(e=[e]);return 0!==e.filter((e=>t.includes(e))).length}s.d(t,{A:()=>r})},7084:(e,t,s)=>{function r(e){const t=function(e){let t;return"#"===e[0]&&(t=e.substring(1)),3===t.length&&(t=t.split("").map((e=>`${e}${e}`)).join("")),t}(e);return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"black":"white"}s.d(t,{d:()=>r})},7574:(e,t,s)=>{function r(e){return[...e.querySelectorAll('input[type="checkbox"]').values()].filter((e=>e.checked)).map((e=>e.name))}function a(e){const t={searchInputSelector:['input[name="s"]:not(.jetpack-instant-search__box-input)',"#searchform input.search-field:not(.jetpack-instant-search__box-input)",".search-form input.search-field:not(.jetpack-instant-search__box-input)",".searchform input.search-field:not(.jetpack-instant-search__box-input)"].join(", "),filterInputSelector:["a.jetpack-search-filter__link"],overlayTriggerSelector:[".jetpack-instant-search__open-overlay-button","header#site-header .search-toggle[data-toggle-target]"].join(",")};return e.theme_options?{...t,...e.theme_options}:t}s.d(t,{E:()=>a,e:()=>r})},9440:(e,t,s)=>{s.d(t,{A:()=>a});const r=()=>{},a=()=>r},6299:(e,t,s)=>{s.d(t,{u:()=>a});var r=s(7723);const __=r.__;function a(e){switch(e?.message){case"service_unavailable":return(0,r.sprintf)( // translators: %s: Error code. __("Jetpack Search is currently unavailable. Please try again later. [%s]","jetpack-search-pkg"),e?.message);case"offline":return __("It looks like you're offline. Please reconnect to load the latest results.","jetpack-search-pkg");default:return(0,r.sprintf)( // translators: %s: Error code. diff --git a/build/instant-search/jp-search.js b/build/instant-search/jp-search.js index 480b54e..1fd8ac4 100644 --- a/build/instant-search/jp-search.js +++ b/build/instant-search/jp-search.js @@ -1 +1 @@ -(()=>{var e,t,r,a={7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>m,$K:()=>n,Az:()=>g,Hs:()=>_,Md:()=>l,O5:()=>o,QB:()=>b,Ri:()=>d,SK:()=>v,UM:()=>h,Wq:()=>k,ZJ:()=>c,m2:()=>p,s6:()=>f,tr:()=>s,w4:()=>i,x6:()=>w,yj:()=>u});var a=r(7723);const __=a.__,n="__NO_GROUP__",o="JetpackInstantSearchOptions",i="jetpack-instant-search__overlay",s="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",p="jetpack-instant-search__overlay-focus-anchor",d="ASC",u="expanded",h="minimal",f="product",g=6e4,w="relevance",m=1e3,_=["newest","oldest",w,"price_asc","price_desc","rating_desc"],v=[u,h,f],b=new Map([[w,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),k=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},1017:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>i,UC:()=>s,XH:()=>o});var a=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function o(){return"function"==typeof window?.wp?.customize}function i(e){o()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function s(e){o()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[a.O5].showResults=!0,window[a.O5].overlayOptions={...window[a.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7778:(e,t,r)=>{r.p=window.JetpackInstantSearchOptions.webpackPublicPath},7723:e=>{"use strict";e.exports=window.wp.i18n},4252:e=>{"use strict";e.exports=window.wp.jpI18nLoader},3832:e=>{"use strict";e.exports=window.wp.url}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}o.m=a,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({106:"jp-search.chunk-main-payload",344:"jp-search.defaultVendors"}[e]+".js?minify=false&ver="+{106:"acc19763e948c78c0336",344:"5cb4ff48164a727880e9"}[e]),o.miniCssF=e=>"jp-search.chunk-main-payload.css?minify=false&ver=9d1725f327b1ce30525f",(()=>{if(!o.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;o.miniCssF=(e=o.miniCssF,t=>{var r="rtl"===document.dir,a=e(t);return r?a.replace(/\.css(?:$|\?)/,".rtl$&"):a})})(),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="jetpack-search:",o.l=(r,a,n,i)=>{if(e[r])e[r].push(a);else{var s,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(a))),t)return t(a)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),c&&document.head.appendChild(s)}},r={106:0},o.f.wpI18n=(e,t)=>{r[e]?t.push(r[e]):0===r[e]&&t.push(r[e]=(e=>{var t=o(4252);return t&&t.downloadI18n?t.downloadI18n("build/instant-search/"+o.u(e),"jetpack-search-pkg","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then((()=>{r[e]=!1}),(t=>{r[e]=0,console.error("Failed to fetch i18n data: ",t)})))},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var a=o.miniCssF(e),n=o.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),a=0;a{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",o.nc&&(i.nonce=o.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)a();else{var o=r&&r.type,s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=s,i.parentNode&&i.parentNode.removeChild(i),n(c)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,n,null,t,r)})),t={498:0};o.f.miniCss=(r,a)=>{t[r]?a.push(t[r]):0!==t[r]&&{106:1}[r]&&a.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={498:0};o.f.j=(t,r)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var n=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=n);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",s.name="ChunkLoadError",s.type=n,s.request=i,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(a in s)o.o(s,a)&&(o.m[a]=s[a]);if(c)c(o)}for(t&&t(r);l{"use strict";o(7778);var e=o(7479),t=o(1017);function r(){Promise.all([o.e(344),o.e(106)]).then(o.bind(o,9470)).then((e=>e.initialize()))}window[e.O5]&&(0,t.UC)(),"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)})()})(); \ No newline at end of file +(()=>{var e,t,r,a={7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>m,$K:()=>n,Az:()=>g,Hs:()=>_,Md:()=>l,O5:()=>o,QB:()=>b,Ri:()=>d,SK:()=>v,UM:()=>h,Wq:()=>k,ZJ:()=>c,m2:()=>p,s6:()=>f,tr:()=>s,w4:()=>i,x6:()=>w,yj:()=>u});var a=r(7723);const __=a.__,n="__NO_GROUP__",o="JetpackInstantSearchOptions",i="jetpack-instant-search__overlay",s="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",p="jetpack-instant-search__overlay-focus-anchor",d="ASC",u="expanded",h="minimal",f="product",g=6e4,w="relevance",m=1e3,_=["newest","oldest",w,"price_asc","price_desc","rating_desc"],v=[u,h,f],b=new Map([[w,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),k=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},1017:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>i,UC:()=>s,XH:()=>o});var a=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function o(){return"function"==typeof window?.wp?.customize}function i(e){o()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function s(e){o()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[a.O5].showResults=!0,window[a.O5].overlayOptions={...window[a.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7778:(e,t,r)=>{r.p=window.JetpackInstantSearchOptions.webpackPublicPath},7723:e=>{"use strict";e.exports=window.wp.i18n},4252:e=>{"use strict";e.exports=window.wp.jpI18nLoader},3832:e=>{"use strict";e.exports=window.wp.url}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}o.m=a,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({106:"jp-search.chunk-main-payload",344:"jp-search.defaultVendors"}[e]+".js?minify=false&ver="+{106:"e08dfa5bc9f56a86b4aa",344:"5cb4ff48164a727880e9"}[e]),o.miniCssF=e=>"jp-search.chunk-main-payload.css?minify=false&ver=9d1725f327b1ce30525f",(()=>{if(!o.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;o.miniCssF=(e=o.miniCssF,t=>{var r="rtl"===document.dir,a=e(t);return r?a.replace(/\.css(?:$|\?)/,".rtl$&"):a})})(),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="jetpack-search:",o.l=(r,a,n,i)=>{if(e[r])e[r].push(a);else{var s,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(a))),t)return t(a)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),c&&document.head.appendChild(s)}},r={106:0},o.f.wpI18n=(e,t)=>{r[e]?t.push(r[e]):0===r[e]&&t.push(r[e]=(e=>{var t=o(4252);return t&&t.downloadI18n?t.downloadI18n("build/instant-search/"+o.u(e),"jetpack-search-pkg","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then((()=>{r[e]=!1}),(t=>{r[e]=0,console.error("Failed to fetch i18n data: ",t)})))},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var a=o.miniCssF(e),n=o.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),a=0;a{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",o.nc&&(i.nonce=o.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)a();else{var o=r&&r.type,s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=s,i.parentNode&&i.parentNode.removeChild(i),n(c)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,n,null,t,r)})),t={498:0};o.f.miniCss=(r,a)=>{t[r]?a.push(t[r]):0!==t[r]&&{106:1}[r]&&a.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={498:0};o.f.j=(t,r)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var n=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=n);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",s.name="ChunkLoadError",s.type=n,s.request=i,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(a in s)o.o(s,a)&&(o.m[a]=s[a]);if(c)c(o)}for(t&&t(r);l{"use strict";o(7778);var e=o(7479),t=o(1017);function r(){Promise.all([o.e(344),o.e(106)]).then(o.bind(o,9470)).then((e=>e.initialize()))}window[e.O5]&&(0,t.UC)(),"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)})()})(); \ No newline at end of file