var AdvonCommerceTopFiveSearch=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function i(t){return"function"==typeof t}function l(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function s(t,e,n,r){if(t){const o=c(t,e,n,r);return t[0](o)}}function c(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function u(t,e,n,r,o,i,l){const a=function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;rt.removeEventListener(e,n,r)}function x(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function _(t){return Array.from(t.childNodes)}function y(t,e,n,r){for(let r=0;r{V.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function G(t){t&&t.c()}function J(t,e){t&&t.l(e)}function K(t,e,r){const{fragment:l,on_mount:a,on_destroy:s,after_update:c}=t.$$;l&&l.m(e,r),N((()=>{const e=a.map(n).filter(i);s?s.push(...e):o(e),t.$$.on_mount=[]})),c.forEach(N)}function Q(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function X(t,e){-1===t.$$.dirty[0]&&(P.push(t),L||(L=!0,O.then(H)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=r.length?r[0]:n;return h.ctx&&a(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),f&&X(e,t)),n})):[],h.update(),f=!0,o(h.before_update),h.fragment=!!l&&l(h.ctx),n.target){if(n.hydrate){const t=_(n.target);h.fragment&&h.fragment.l(t),t.forEach(p)}else h.fragment&&h.fragment.c();n.intro&&W(e.$$.fragment),K(e,n.target,n.anchor),H()}A(u)}class tt{$destroy(){Q(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const et={"Carousel Button":"background-color: rgba(0,0,0,0.25);\nborder: none;\nborder-radius: 5px;\npadding: 0;\nbackground-color: rgba(0, 0, 0, 0.25);\n"},nt={Title:"font-size: 14px;\nfont-weight: 600;\nline-height: 2em;\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;","Intro Text":"font-size: 12px;\nline-height: 1.25em;\nmargin-bottom: 10px;\nmin-height:7.5em;\norder: 2;","Article Image Container":"position: relative;\nflex: 1 1 auto;\norder: 1;","Article Image":"display: block;\nmax-height: 100%;\nmax-width: 100%;\nposition: absolute;\ntop: 50%;\nleft: 0;\ntransform: translateY(-50%);\nmargin: 0;",CTA:"color: #6d6e71;\nfont-size: 12px;\nline-height: 1.2;\nmargin-top: 5px;\norder: 4;","Publisher Name":"order: 3;"},rt={Award:"background-color: #e6f1fc;\nborder-radius: 2px;\ncolor: #00479e;\ndisplay: inline-block;\nflex: 0;\nfont-size: 12px;\nleft: 1em;\nline-height: 20px;\npadding: 0 8px;",Headline:"font-size: 12px;\nheight: 1em;\nmargin-bottom: 5px;\ncolor: #247139;","Product Image Container":"flex: 1 1 auto;\nmax-height: 200px;\nmin-height:100px;\norder: 3;\nposition: relative;\nwidth: 100%;","Product Image":"left: 50%;\nmax-height: 80%;\nmax-width: 100%;\nposition: absolute;\ntop: 50%;\ntransform: translate(-50%, -50%);","Product Name":"font-size: 14px;\nline-height: 1.2;\norder: 3;\nmargin-top: 10px;\nwidth:100%;\noverflow:hidden;\ntext-overflow:ellipsis;",Summary:"font-size: 12px;\nheight: 6em;\nline-height: normal;\norder: 4;\ncolor: #6d6e71;\nmargin-top: 5px;\nwhite-space: initial;",Price:"font-weight: 700;\nmargin-top: 8px;\nfont-size: 20px;\nfont-weight: 400;\norder: 5;","Add To Cart":"width: 100%;\npadding: 5px;\nmargin: 5px 0px;\norder: 6;"},ot={Rating:"order: 5;\nmargin-top: 8px;","Rating Stars":"display: inline-block;\nmargin-right: 4px;","Full Star":'background-image: url(\'data:image/svg+xml;utf8,\');\nbackground-repeat: no-repeat;\nbackground-size: 100%;\ndisplay: inline-block;\nheight: 1rem;\nline-height: 1rem;\nvertical-align: text-bottom;\nwidth: 1rem;',"Half Star":'background-image: url(\'data:image/svg+xml;utf8,\');\nbackground-repeat: no-repeat;\nbackground-size: 100%;\ndisplay: inline-block;\nheight: 1rem;\nline-height: 1rem;\nvertical-align: text-bottom;\nwidth: 1rem;',"Empty Star":'background-image: url(\'data:image/svg+xml;utf8,\');\nbackground-repeat: no-repeat;\nbackground-size: 100%;\ncolor: rgba(0,0,0,0.1);\ndisplay: inline-block;\nheight: 1rem;\nline-height: 1rem;\nvertical-align: text-bottom;\nwidth: 1rem;',Reviews:"color: #6d6e71;\nfont-size: 16px;","Review Count":"font-size: 0.8em;","Review Label":"text-transform: lowercase;"},it={"Publisher Tag":"border-top: 1px solid #d2d4da;\norder: 7;\nwidth: 100%;\nmargin-top: 12px;\npadding-top: 12px;","Publisher Tag Figure":"display: inline-block;\nmargin-right: 8px;","Publisher Tag Figure Image":"height: auto;\nwidth:32px;","Publisher Tag Label":"display: inline-block;\nfont-size: 14px;\nfont-weight: 600;\nline-height: 32px;\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;\nvertical-align: center;"},lt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},{"Article Container":"logo",Title:"logo_title","Intro Text":"logo_intro","Article Image Container":"logo_fig","Article Image":"logo_fig_img","Publisher Name":"logo_publisher_name",CTA:"logo_cta"}),{Carousel:"carousel","Carousel Button":"carousel_btn","Left Button":"carousel_btn_left","Right Button":"carousel_btn_right","Carousel Content":"carousel_content",Slider:"carousel_slider"}),{Link:"link_product","Product Container":"product",Award:"product_award",Headline:"product_headline","Product Image Container":"product_fig","Product Image":"product_fig_img","Product Name":"product_title",Summary:"product_summary",Price:"product_price","Add To Cart":"add_to_cart"}),{"Main Content":"main_content"}),{Rating:"rating","Rating Stars":"rating_stars","Full Star":"rating_star-full","Half Star":"rating_star-half","Empty Star":"rating_star-empty",Value:"rating_value",Reviews:"rating_reviews","Review Count":"rating_reviews_count","Review Label":"rating_reviews_label"}),{"Publisher Tag":"product_publisher","Publisher Tag Figure":"product_publisher_fig","Publisher Tag Figure Image":"product_publisher_fig_img","Publisher Tag Label":"product_publisher_label"}),at=[];function st(e,n=t){let r;const o=[];function i(t){if(l(e,t)&&(e=t,r)){const t=!at.length;for(let t=0;t{const t=o.indexOf(s);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}const ct=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nt),rt),et),it),ot),ut={api:{productSearchTerm:"baby",url:"https://widget-demo-daick67vca-uc.a.run.app/"},display:Object.assign({addToCart:!1,addToCartLabel:"Add To Cart",classPrefix:"demo-widget",displayCallToAction:!1,hasCarousel:!0,maxProductDisplayCount:3,starRatingRoundDirection:"UP",showStarRatings:!0},{charStarRatingEmpty:"",charStarRatingFull:"",charStarRatingHalf:"",starRatingRoundDirection:"UP",showNumericRating:!1,starReviewTypeLabel:"reviews",showStarRatingHalves:!0,showTotalReviewCount:!0}),redirect:{queryParam:"to",url:"http://localhost:8040/redirect"}},dt=st(!1),ht=st(ut.api),ft=st(ut.display),pt=st(ut.redirect),gt=st({articles:[]});function mt(t){let e,n,r;const o=t[3].default,i=s(o,t,t[2],null);return{c(){e=m("article"),i&&i.c(),this.h()},l(t){e=y(t,"ARTICLE",{class:!0,style:!0});var n=_(e);i&&i.l(n),n.forEach(p),this.h()},h(){x(e,"class",n="demo_paper "+(t[1].class??"")+" svelte-1c8hwqm"),x(e,"style",t[0])},m(t,n){f(t,e,n),i&&i.m(e,null),r=!0},p(t,[l]){i&&i.p&&4&l&&u(i,o,t,t[2],l,null,null),(!r||2&l&&n!==(n="demo_paper "+(t[1].class??"")+" svelte-1c8hwqm"))&&x(e,"class",n),(!r||1&l)&&x(e,"style",t[0])},i(t){r||(W(i,t),r=!0)},o(t){Y(i,t),r=!1},d(t){t&&p(e),i&&i.d(t)}}}function $t(t,n,r){let{$$slots:o={},$$scope:i}=n,{style:l}=n;return t.$$set=t=>{r(1,n=e(e({},n),d(t))),"style"in t&&r(0,l=t.style),"$$scope"in t&&r(2,i=t.$$scope)},n=d(n),[l,n,i,o]}class bt extends tt{constructor(t){super(),Z(this,t,$t,mt,l,{style:0})}}const vt=t=>({}),wt=t=>({});function xt(t){let e,n,r,o,i,l,a,c,d,g;const v=t[5].foot,k=s(v,t,t[4],wt);return{c(){e=m("div"),n=m("label"),r=$(t[2]),o=b(),i=m("input"),l=b(),k&&k.c(),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=_(e);n=y(s,"LABEL",{class:!0,for:!0});var c=_(n);r=T(c,t[2]),c.forEach(p),o=C(s),i=y(s,"INPUT",{type:!0,name:!0,id:!0}),l=C(s),k&&k.l(s),s.forEach(p),this.h()},h(){x(n,"class","demo_textField_label svelte-9pjuap"),x(n,"for",t[1]),x(i,"type","text"),x(i,"name",t[1]),x(i,"id",t[1]),x(e,"class",a="demo_textField "+(t[3].class??"")+" svelte-9pjuap")},m(a,s){f(a,e,s),h(e,n),h(n,r),h(e,o),h(e,i),E(i,t[0]),h(e,l),k&&k.m(e,null),c=!0,d||(g=w(i,"input",t[6]),d=!0)},p(t,[o]){(!c||4&o)&&function(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}(r,t[2]),(!c||2&o)&&x(n,"for",t[1]),(!c||2&o)&&x(i,"name",t[1]),(!c||2&o)&&x(i,"id",t[1]),1&o&&i.value!==t[0]&&E(i,t[0]),k&&k.p&&16&o&&u(k,v,t,t[4],o,vt,wt),(!c||8&o&&a!==(a="demo_textField "+(t[3].class??"")+" svelte-9pjuap"))&&x(e,"class",a)},i(t){c||(W(k,t),c=!0)},o(t){Y(k,t),c=!1},d(t){t&&p(e),k&&k.d(t),d=!1,g()}}}function _t(t,n,r){let{$$slots:o={},$$scope:i}=n,{name:l}=n,{value:a}=n,{label:s}=n;return t.$$set=t=>{r(3,n=e(e({},n),d(t))),"name"in t&&r(1,l=t.name),"value"in t&&r(0,a=t.value),"label"in t&&r(2,s=t.label),"$$scope"in t&&r(4,i=t.$$scope)},n=d(n),[a,l,s,n,i,o,function(){a=this.value,r(0,a)}]}class yt extends tt{constructor(t){super(),Z(this,t,_t,xt,l,{name:1,value:0,label:2})}}function Tt(t,e,n){const r=t.slice();return r[4]=e[n],r}function Ct(e){let n;return{c(){n=m("div"),this.h()},l(t){n=y(t,"DIV",{class:!0,style:!0}),_(n).forEach(p),this.h()},h(){x(n,"class","rect svelte-diosat"),k(n,"animation-delay",(e[4]-1)*(1.2/12)+"s")},m(t,e){f(t,n,e)},p:t,d(t){t&&p(n)}}}function Et(e){let n,r=[...Array(5).keys()].map(kt),o=[];for(let t=0;tt+1;function St(t,e,n){let{color:r="#FF3E00"}=e,{unit:o="px"}=e,{duration:i="1.2s"}=e,{size:l="60"}=e;return t.$$set=t=>{"color"in t&&n(0,r=t.color),"unit"in t&&n(1,o=t.unit),"duration"in t&&n(2,i=t.duration),"size"in t&&n(3,l=t.size)},[r,o,i,l]}class Rt extends tt{constructor(t){super(),Z(this,t,St,Et,l,{color:0,unit:1,duration:2,size:3})}}Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nt),rt),et),it),ot);const At={productSearchTerm:"crib toys",url:"https://widget-demo-daick67vca-uc.a.run.app/"};Object.assign({addToCart:!1,addToCartLabel:"Add To Cart",classPrefix:"demo-widget",displayCallToAction:!1,hasCarousel:!0,maxProductDisplayCount:3,starRatingRoundDirection:"UP",showStarRatings:!0},{charStarRatingEmpty:"",charStarRatingFull:"",charStarRatingHalf:"",starRatingRoundDirection:"UP",showNumericRating:!1,starReviewTypeLabel:"reviews",showStarRatingHalves:!0,showTotalReviewCount:!0});function Pt(t,e,n){const r=t.slice();return r[13]=e[n],r[14]=e,r[15]=n,r}function jt(e){let n,r;return{c(){n=m("h1"),r=$("AdvonCommerceWidget required.")},l(t){n=y(t,"H1",{});var e=_(n);r=T(e,"AdvonCommerceWidget required."),e.forEach(p)},m(t,e){f(t,n,e),h(n,r)},p:t,i:t,o:t,d(t){t&&p(n)}}}function zt(t){let e,n,r,o,i,l,a,s,c,u,d,g,v;return a=new bt({props:{class:"demo_config_block demo_config_base",$$slots:{default:[Ot]},$$scope:{ctx:t}}}),g=new bt({props:{class:"demo_content_widget",$$slots:{default:[Bt]},$$scope:{ctx:t}}}),{c(){e=m("header"),n=m("div"),r=m("h1"),o=$("Embedded Expert - Top Five Search"),i=b(),l=m("div"),G(a.$$.fragment),s=b(),c=m("h4"),u=$("Articles:"),d=b(),G(g.$$.fragment),this.h()},l(t){e=y(t,"HEADER",{class:!0});var h=_(e);n=y(h,"DIV",{class:!0});var f=_(n);r=y(f,"H1",{class:!0});var m=_(r);o=T(m,"Embedded Expert - Top Five Search"),m.forEach(p),f.forEach(p),h.forEach(p),i=C(t),l=y(t,"DIV",{});var $=_(l);J(a.$$.fragment,$),s=C($),c=y($,"H4",{class:!0});var b=_(c);u=T(b,"Articles:"),b.forEach(p),d=C($),J(g.$$.fragment,$),$.forEach(p),this.h()},h(){x(r,"class","demo_header_title svelte-bcin8"),x(n,"class","demo_header_block svelte-bcin8"),x(e,"class","demo_header svelte-bcin8"),x(c,"class","demo_headline svelte-bcin8")},m(t,p){f(t,e,p),h(e,n),h(n,r),h(r,o),f(t,i,p),f(t,l,p),K(a,l,null),h(l,s),h(l,c),h(c,u),h(l,d),K(g,l,null),v=!0},p(t,e){const n={};65544&e&&(n.$$scope={dirty:e,ctx:t}),a.$set(n);const r={};65587&e&&(r.$$scope={dirty:e,ctx:t}),g.$set(r)},i(t){v||(W(a.$$.fragment,t),W(g.$$.fragment,t),v=!0)},o(t){Y(a.$$.fragment,t),Y(g.$$.fragment,t),v=!1},d(t){t&&p(e),t&&p(i),t&&p(l),Q(a),Q(g)}}}function It(e){let n,r,o,i;return{c(){n=m("button"),r=$("Search"),this.h()},l(t){n=y(t,"BUTTON",{class:!0,slot:!0});var e=_(n);r=T(e,"Search"),e.forEach(p),this.h()},h(){x(n,"class","demo_search_btn svelte-bcin8"),x(n,"slot","foot")},m(t,l){f(t,n,l),h(n,r),o||(i=w(n,"click",e[6]),o=!0)},p:t,d(t){t&&p(n),o=!1,i()}}}function Ot(t){let e,n,r,o;function i(e){t[8].call(null,e)}let l={name:"searchTerm",label:"Search Term:",$$slots:{foot:[It]},$$scope:{ctx:t}};return void 0!==t[3].productSearchTerm&&(l.value=t[3].productSearchTerm),n=new yt({props:l}),j.push((()=>function(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}(n,"value",i))),{c(){e=m("div"),G(n.$$.fragment),this.h()},l(t){e=y(t,"DIV",{style:!0});var r=_(e);J(n.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"padding","10px"),k(e,"min-height","50px")},m(t,r){f(t,e,r),K(n,e,null),o=!0},p(t,e){const o={};var i;65536&e&&(o.$$scope={dirty:e,ctx:t}),!r&&8&e&&(r=!0,o.value=t[3].productSearchTerm,i=()=>r=!1,I.push(i)),n.$set(o)},i(t){o||(W(n.$$.fragment,t),o=!0)},o(t){Y(n.$$.fragment,t),o=!1},d(t){t&&p(e),Q(n)}}}function Lt(e){let n,r,o;return r=new Rt({props:{size:100}}),{c(){n=m("div"),G(r.$$.fragment),this.h()},l(t){n=y(t,"DIV",{class:!0});var e=_(n);J(r.$$.fragment,e),e.forEach(p),this.h()},h(){x(n,"class","demo_content_widget_loading svelte-bcin8")},m(t,e){f(t,n,e),K(r,n,null),o=!0},p:t,i(t){o||(W(r.$$.fragment,t),o=!0)},o(t){Y(r.$$.fragment,t),o=!1},d(t){t&&p(n),Q(r)}}}function Nt(t){let e,n,r,o=(!t[1]||!t[1].length)&&Dt(),i=t[1],l=[];for(let e=0;eY(l[t],1,1,(()=>{l[t]=null}));return{c(){o&&o.c(),e=b();for(let t=0;tt[9](n,i),a=()=>t[9](null,i);var s=t[4];function c(t){return{props:{config:t[7],data:t[13]}}}return s&&(n=new s(c(t)),l()),{c(){e=m("div"),n&&G(n.$$.fragment),r=b(),this.h()},l(t){e=y(t,"DIV",{class:!0});var o=_(e);n&&J(n.$$.fragment,o),r=C(o),o.forEach(p),this.h()},h(){x(e,"class","demo_content_widget_wrapper svelte-bcin8")},m(t,i){f(t,e,i),n&&K(n,e,null),h(e,r),o=!0},p(t,o){i!==t[15]&&(a(),i=t[15],l());const u={};if(2&o&&(u.data=t[13]),s!==(s=t[4])){if(n){q();const t=n;Y(t.$$.fragment,1,0,(()=>{Q(t,1)})),U()}s?(n=new s(c(t)),l(),G(n.$$.fragment),W(n.$$.fragment,1),K(n,e,r)):n=null}else s&&n.$set(u)},i(t){o||(n&&W(n.$$.fragment,t),o=!0)},o(t){n&&Y(n.$$.fragment,t),o=!1},d(t){t&&p(e),a(),n&&Q(n)}}}function Ht(t){let e,n,r=t[13]&&t[13].reviews.length&&Ft(t);return{c(){r&&r.c(),e=v()},l(t){r&&r.l(t),e=v()},m(t,o){r&&r.m(t,o),f(t,e,o),n=!0},p(t,n){t[13]&&t[13].reviews.length?r?(r.p(t,n),2&n&&W(r,1)):(r=Ft(t),r.c(),W(r,1),r.m(e.parentNode,e)):r&&(q(),Y(r,1,1,(()=>{r=null})),U())},i(t){n||(W(r),n=!0)},o(t){Y(r),n=!1},d(t){r&&r.d(t),t&&p(e)}}}function Bt(t){let e,n,r,o;const i=[Nt,Lt],l=[];function a(t,e){return t[5]?1:0}return e=a(t),n=l[e]=i[e](t),{c(){n.c(),r=v()},l(t){n.l(t),r=v()},m(t,n){l[e].m(t,n),f(t,r,n),o=!0},p(t,o){let s=e;e=a(t),e===s?l[e].p(t,o):(q(),Y(l[s],1,1,(()=>{l[s]=null})),U(),n=l[e],n?n.p(t,o):(n=l[e]=i[e](t),n.c()),W(n,1),n.m(r.parentNode,r))},i(t){o||(W(n),o=!0)},o(t){Y(n),o=!1},d(t){l[e].d(t),t&&p(r)}}}function Vt(t){let e,n,r,o,i,l,a,s=``;const c=[zt,jt],u=[];function d(t,e){return null!=t[4]?0:1}return i=d(t),l=u[i]=c[i](t),{c(){n=v(),r=b(),o=m("section"),l.c(),this.h()},l(t){const e=function(t,e=document.body){return Array.from(e.querySelectorAll(t))}('[data-svelte="svelte-1gkxtdh"]',document.head);n=v(),e.forEach(p),r=C(t),o=y(t,"SECTION",{class:!0});var i=_(o);l.l(i),i.forEach(p),this.h()},h(){e=new S(n),x(o,"class","demo svelte-bcin8")},m(t,l){e.m(s,document.head),h(document.head,n),f(t,r,l),f(t,o,l),u[i].m(o,null),a=!0},p(t,[n]){(!a||4&n)&&s!==(s=``)&&e.p(s);let r=i;i=d(t),i===r?u[i].p(t,n):(q(),Y(u[r],1,1,(()=>{u[r]=null})),U(),l=u[i],l?l.p(t,n):(l=u[i]=c[i](t),l.c()),W(l,1),l.m(o,null))},i(t){a||(W(l),a=!0)},o(t){Y(l),a=!1},d(t){p(n),t&&e.d(),t&&p(r),t&&p(o),u[i].d()}}}function Mt(t,e,n){let r,o,i,l;a(t,ft,(t=>n(11,r=t))),a(t,ht,(t=>n(3,o=t))),a(t,pt,(t=>n(12,i=t))),a(t,dt,(t=>n(5,l=t)));let s=[null,null,null,null,null];const c=()=>{const t=o.productSearchTerm?`?keyword=${encodeURIComponent(o.productSearchTerm)}`:"",e=`${At.url}widget/v1/api/top-five-articles${t}`;s.forEach((t=>{t&&t.$destroy()})),dt.set(!0),fetch(e).then((t=>t.json())).then((t=>{gt.set(t.data)})).catch((t=>{const e=new Error(t);console.error(e)})).finally((()=>{dt.set(!1)}))};c();let u=[];gt.subscribe((t=>{n(1,u=t.articles),console.log(u)}));const d={api:o,display:r,redirect:i};let h,f,p;return t.$$.update=()=>{2048&t.$$.dirty&&n(10,h=r.classPrefix),1024&t.$$.dirty&&n(2,f=Object.entries(lt).filter((t=>ct[t[0]])).map((t=>`.${h}_main .${h}_${t[1]} {\n${ct[t[0]]}\n}`)).join("\n"))},n(4,p=window.AdvonCommerceWidget),[s,u,f,o,p,l,c,d,function(t){o.productSearchTerm=t,ht.set(o)},function(t,e){j[t?"unshift":"push"]((()=>{s[e]=t,n(0,s)}))}]}return class extends tt{constructor(t){super(),Z(this,t,Mt,Vt,l,{})}}}();