diff --git a/dist/addsearch-search-ui.min.css b/dist/addsearch-search-ui.min.css index 7e8c372..8bfc1b2 100644 --- a/dist/addsearch-search-ui.min.css +++ b/dist/addsearch-search-ui.min.css @@ -1 +1 @@ -/*! addsearch-search-ui 0.5.3 */.addsearch-filtergroup *,.addsearch-pagination *,.addsearch-searchfield *,.addsearch-searchresults *{color:#1b1b32;font-size:100%;font:inherit;vertical-align:baseline;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.addsearch-active-filters{display:block;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.addsearch-active-filters,.addsearch-active-filters .item{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.addsearch-active-filters .item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin:3px 3px 0 0;font-size:11px;border:1px solid #dedede;border-radius:3px;display:inline-block;overflow:hidden;white-space:nowrap;max-width:100%;padding:2px 4px}.addsearch-active-filters .item>span{text-overflow:ellipsis;display:inline-block;max-width:90%;overflow:hidden;position:relative;padding-left:4px}.addsearch-active-filters .item button{border:none;background:transparent;cursor:pointer;font-size:14px;padding:0 .5em}@media screen and (max-width:480px){.addsearch-active-filters .item{padding:4px 6px;font-size:14px}.addsearch-active-filters .item button{font-size:18px}.addsearch-active-filters .item button[data-clearall=true]{font-size:16px;padding:1px 6px;margin-left:0}}.addsearch-filters-tabs button,.addsearch-filters-tags button{-webkit-appearance:none;-moz-appearance:none;margin:0;padding:.5em 1.5em;display:inline-block;cursor:pointer;background:#fff}.addsearch-filters-tabs .tabs{display:block;text-align:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.addsearch-filters-tabs .tabs button{border:1px solid #dedede;border-right:0;font-size:16px;float:left}.addsearch-filters-tabs .tabs button.active{background-color:#eee}.addsearch-filters-tabs .tabs button:first-child{border-radius:5px 0 0 5px}.addsearch-filters-tabs .tabs button:last-child{border-radius:0 5px 5px 0;border-right:1px solid #dedede}@media (max-width:960px){.addsearch-filters-tabs .tabs{overflow-x:scroll;white-space:nowrap;padding:0 0 10px}.addsearch-filters-tabs .tabs button{padding:7px 15px;font-size:14px}}.addsearch-filters-tabs .tabs:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.addsearch-filters-tags button{margin:2px 0;border-radius:5px;border:1px solid #dedede;font-size:12px;padding:.25em .75em;text-transform:uppercase;color:#444}@media screen and (max-width:960px){.addsearch-filters-tags button{font-size:14px;padding:6px 8px}}.addsearch-filters-tags button.active{background-color:#eee}.addsearch-filters-checkboxgroup label,.addsearch-filters-radiogroup label{display:block;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:2px 0}@media (max-width:960px){.addsearch-filters-checkboxgroup label,.addsearch-filters-radiogroup label{padding:4px 0}}.addsearch-filters-checkboxgroup input,.addsearch-filters-radiogroup input{margin-right:8px}.addsearch-filters-radiogroup input{margin:0 8px 0 0}.addsearch-filters-checkboxgroup input[type=checkbox]{margin-right:7px}.addsearch-filters-range label{display:block;padding:4px 0}.addsearch-filters-range input{width:30%}.addsearch-filters-range input[data-valid=false]{border-color:red}.addsearch-autocomplete{position:absolute;background-color:#fff;min-width:300px}.addsearch-autocomplete ul{border:1px solid #dedede;list-style:none;margin:0;padding:0;border-radius:0 0 2px 2px}.addsearch-autocomplete li{cursor:pointer;padding:5px 8px}.addsearch-autocomplete li.active{background-color:#eee}.addsearch-facets ul{list-style:none;padding:0}.addsearch-facets ul li{white-space:nowrap;overflow:hidden;display:block}.addsearch-facets ul li label{padding:2px 0;display:block;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;white-space:nowrap;max-width:100%}@media (max-width:960px){.addsearch-facets ul li label{padding:4px 0}}.addsearch-facets ul li label>span{text-overflow:ellipsis;display:inline-block;max-width:80%;overflow:hidden;position:relative;padding-right:3px}.addsearch-facets ul li input[type=checkbox]{margin-right:7px}.addsearch-facets em{font-style:normal;color:#666;font-size:80%}.addsearch-loadmore button{border:1px solid #dedede;border-radius:3px;padding:7px 12px 7px 13px;background:#f7f7f7;cursor:pointer;border-radius:5px}.addsearch-loadmore button,.addsearch-loadmore span{margin:1em;font-size:16px;display:inline-block;height:36px}.addsearch-loadmore span{padding:7px 0}.addsearch-pagination{clear:both;padding:1em 0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap}.addsearch-pagination,.addsearch-pagination button{display:-webkit-box;display:-webkit-flex;display:flex}.addsearch-pagination button{background-color:#fff;border:1px solid #dedede;cursor:pointer;border-radius:2px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-flex-shrink:0;flex-shrink:0;margin-right:2px;padding:0;min-width:34px;height:34px;line-height:34px}.addsearch-pagination button[data-active=true]{font-weight:700;background-color:#f1f1f1}.addsearch-pagination button[data-page=next],.addsearch-pagination button[data-page=previous]{font-size:14px;-webkit-flex-shrink:0;flex-shrink:0}.addsearch-searchfield-container{-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.addsearch-searchfield,.addsearch-searchfield-container{display:inline-block;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.addsearch-searchfield{min-width:260px}@media (max-width:480px){.addsearch-searchfield{width:100%}}.addsearch-searchfield button,.addsearch-searchfield input[type=search]{border:1px solid #dedede;border-radius:3px}.addsearch-searchfield .search-field-wrapper{float:left}.addsearch-searchfield .search-field-wrapper,.addsearch-searchfield input[type=search]{display:inline-block;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.addsearch-searchfield input[type=search]{height:36px;width:100%;min-width:300px;max-width:400px;font-size:16px;padding:0 7px;border:1px solid #dedede;border-radius:5px;text-align:left;margin-right:3px}@media (max-width:480px){.addsearch-searchfield input[type=search]{min-width:150px}}.addsearch-searchfield input[type=search].icon{padding:0 7px 2px 32px!important;background-image:url("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ic2VhcmNoLWljb24iIHdpZHRoPSIyMCIgaGVpZ2h0PSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjYjFiMWIxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik05Ljg4MiA2LjA3YTQuMDk3IDQuMDk3IDAgMDE0LjA5NC00LjA5NCA0LjA5NyA0LjA5NyAwIDAxNC4wOTUgNC4wOTUgNC4wOTcgNC4wOTcgMCAwMS00LjA5NSA0LjA5NGMtMi4yNTgtLjA0Ny00LjA5NC0xLjg4My00LjA5NC00LjA5NG0xMC4wMjQgMEE1Ljk4NSA1Ljk4NSAwIDAwMTMuOTI5LjA5NEMxMC42ODIuMDk0IDggMi43NzYgOCA2LjA3MWE1Ljk4NSA1Ljk4NSAwIDAwNS45NzYgNS45NzZjLjU2NSAwIDEuMDgzLS4wOTQgMS41NTMtLjIzNWwxLjc4OSAzLjk1MyAxLjY5NC0uOC0xLjc4OC0zLjk1M2MxLjY0Ny0xLjA4MyAyLjY4Mi0yLjg3IDIuNjgyLTQuOTQxTTQgMi45NjVIMi4xMTh2Mi4xNjRIMHYxLjgzNmgyLjExOHYyLjE2NEg0VjYuOTY1aDIuMTE4VjUuMTI5SDR6Ii8+PC9nPjwvc3ZnPg==");background-position:5px 50%;background-repeat:no-repeat}.addsearch-searchfield button{padding:7px 15px;background:#f7f7f7;font-size:16px;cursor:pointer;border-radius:5px;display:inline-block;height:36px}@media (max-width:480px){.addsearch-searchfield button,.addsearch-searchfield input[type=search]{font-size:16px;border-radius:3px;padding:5px 7px}}.addsearch-searchresults .number-of-results{margin:1em 0 .5em;padding:0 1em}.addsearch-searchresults h3{padding-top:13px;font-size:110%;font-weight:700;margin-top:0}.addsearch-searchresults h3 a{text-decoration:none}.addsearch-searchresults h3 a:hover{text-decoration:underline}@media (max-width:480px){.addsearch-searchresults h3{font-size:90%}}@media (max-width:480px){.addsearch-searchresults .highlight{font-size:80%}}.addsearch-searchresults em{font-weight:700}.addsearch-searchresults .hit{clear:both;padding:0 1em}.addsearch-searchresults .hit:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.addsearch-searchresults .hit div{overflow-wrap:break-word}.addsearch-searchresults .hit .category{margin-top:2em;margin-bottom:1em;font-size:12px;text-transform:uppercase;background-color:#eee;border-radius:5px;padding:.25em .5em;display:inline-block;border:1px solid #dedede}@media (max-width:480px){.addsearch-searchresults .hit .category{margin-top:1em}}.addsearch-searchresults .hit .main-image{display:inline-block;float:left;height:100px;width:100px;background-color:#fff;background-size:100% 100%;background-repeat:no-repeat;margin:0 20px 20px 0;overflow:hidden;word-break:break-all;border:1px solid #e4e4e4}.addsearch-searchresults .hit .main-image.doc,.addsearch-searchresults .hit .main-image.docx,.addsearch-searchresults .hit .main-image.noimage,.addsearch-searchresults .hit .main-image.pdf,.addsearch-searchresults .hit .main-image.ppt,.addsearch-searchresults .hit .main-image.pptx,.addsearch-searchresults .hit .main-image.xls,.addsearch-searchresults .hit .main-image.xlsx{background-position:50% 50%;background-size:60%}.addsearch-searchresults .hit .main-image.noimage{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0ia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xMS4xaDEuNjY1Yy4yNTIgMCAuNDc3LS4wMzUuNjc1LS4xMDYuMTk5LS4wNy4zNjctLjE2OC41MDQtLjI5NGExLjI1IDEuMjUgMCAwMC4zMTUtLjQ0OGMuMDczLS4xNzMuMTA5LS4zNjEuMTA5LS41NjQgMC0uMjA3LS4wMzYtLjM5NC0uMTEtLjU2YTEuMTUgMS4xNSAwIDAwLS4zMTQtLjQyNSAxLjQzIDEuNDMgMCAwMC0uNTA0LS4yNyAyLjE5MiAyLjE5MiAwIDAwLS42NzUtLjA5NnpNOS4xMDIgMTAuMzg4VjcuNTRoLjQyNWMuMzQ3IDAgLjYxMi4xMTYuNzk0LjM0NS4xODEuMjMuMjcyLjU1Ny4yNzIuOTgydi4yYzAgLjQzMy0uMDkuNzYyLS4yNjkuOTg2LS4xOC4yMjQtLjQ0My4zMzUtLjc4OC4zMzV6bS0uODc5LTMuNTU0VjExLjFoMS4zMTNjLjI4NyAwIC41NS0uMDUuNzktLjE0OC4yMzgtLjA5OC40NDMtLjIzNy42MTQtLjQxNi4xNzEtLjE3OC4zMDUtLjM5My40LS42NDMuMDk2LS4yNS4xNDQtLjUyNy4xNDQtLjgzMnYtLjE5NGMwLS4zMDQtLjA0OC0uNTgxLS4xNDMtLjgzYTEuODUgMS44NSAwIDAwLS40LS42NDEgMS43NjcgMS43NjcgMCAwMC0uNjItLjQxNSAyLjA4MyAyLjA4MyAwIDAwLS43OTQtLjE0N3pNMTQuNjkgOC41NzdoLTEuNjg3VjYuODM0aC0uODhWMTEuMWgyLjc3OHYtLjcxaC0xLjg5OFY5LjI4NWgxLjY4N3oiLz48L2c+PC9zdmc+")}.addsearch-searchresults .hit .main-image.doc,.addsearch-searchresults .hit .main-image.docx{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzIiIHdpZHRoPSIzMiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIiBjbGlwUG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DIuMDMyIDAgMDAtLjM5NC4xMDcgMS43NDggMS43NDggMCAwMC0uMzQ5LjE4MSAxLjIxNCAxLjIxNCAwIDAwLS41MzUgMS4wNDNoLjk3OGMwLS4xMTkuMDE1LS4yMTguMDQ3LS4yOThhLjQ2OC40NjggMCAwMS4xMzgtLjE5Ni41NDMuNTQzIDAgMDEuMjI0LS4xMDcgMS4yNiAxLjI2IDAgMDEuMzA0LS4wMzJjLjA5MiAwIC4xNzEuMDEuMjM3LjAzMi4wNjYuMDIxLjEyLjA1LjE2My4wODZhLjMzLjMzIDAgMDEuMDkzLjEyNy40MDcuNDA3IDAgMDEuMDMuMTUyIi8+PC9nPjwvc3ZnPg==")}.addsearch-searchresults .hit .main-image.ppt,.addsearch-searchresults .hit .main-image.pptx{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzIiIHdpZHRoPSIzMiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIiBjbGlwUGF0aFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMjRoMjRWMEgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNhKSIgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMyAwIDAgLTEuMzMzMzMgMCAzMikiPjxwYXRoIGQ9Ik0yMSAxNy41di0xNWMwLS42LS40LTEtLjktMUg0LjljLS41IDAtLjkuNS0uOSAxdjE5YzAgLjUuNCAxIC45IDFoMTF6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTIxIDE3LjV2LTE1YzAtLjYtLjQtMS0uOS0xSDQuOWMtLjUgMC0uOS41LS45IDF2MTljMCAuNS40IDEgLjkgMWgxMXoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIi8+PHBhdGggZD0iTTIxIDE3LjVoLT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i4xMTItLjU2NWExLjMyIDEuMzIgMCAwMC0uMTExLS41NDkgMS4xOTUgMS4xOTUgMCAwMC0uMzIxLS40MjEgMS40OTcgMS40OTcgMCAwMC0uNTEtLjI3NCAyLjI0MiAyLjI0MiAwIDAwLS42NzUtLjA5NXpNMTUuMTUgMTAuMzA4SDEzLjlWNi45MTdoLTEuMDA1djMuMzloLTEuMjI4di43NzZoMy40ODN6Ii8+PC9nPjwvc3ZnPg==")}.addsearch-searchresults .hit img{width:100%;height:100%}.addsearch-searchresults .hit:hover{background-color:#f7f7f7}.addsearch-searchresults .hit:hover .category{background-color:#dedede}.addsearch-sortby-radiogroup label{display:block;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:2px 0}.addsearch-sortby-radiogroup input{margin:0 8px 0 0} \ No newline at end of file +/*! addsearch-search-ui 0.5.4 */.addsearch-filtergroup *,.addsearch-pagination *,.addsearch-searchfield *,.addsearch-searchresults *{color:#1b1b32;font-size:100%;font:inherit;vertical-align:baseline;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.addsearch-active-filters{display:block;display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start}.addsearch-active-filters .item{display:flex;flex-direction:row;align-items:center;margin:3px 3px 0 0;font-size:11px;border:1px solid #dedede;border-radius:3px;display:inline-block;overflow:hidden;white-space:nowrap;max-width:100%;padding:2px 4px}.addsearch-active-filters .item>span{text-overflow:ellipsis;display:inline-block;max-width:90%;overflow:hidden;position:relative;padding-left:4px}.addsearch-active-filters .item button{border:none;background:transparent;cursor:pointer;font-size:14px;padding:0 .5em}@media screen and (max-width:480px){.addsearch-active-filters .item{padding:4px 6px;font-size:14px}.addsearch-active-filters .item button{font-size:18px}.addsearch-active-filters .item button[data-clearall=true]{font-size:16px;padding:1px 6px;margin-left:0}}.addsearch-filters-tabs button,.addsearch-filters-tags button{-webkit-appearance:none;-moz-appearance:none;margin:0;padding:.5em 1.5em;display:inline-block;cursor:pointer;background:#fff}.addsearch-filters-tabs .tabs{display:block;text-align:left;display:flex;flex-direction:row;flex-wrap:nowrap}.addsearch-filters-tabs .tabs button{border:1px solid #dedede;border-right:0;font-size:16px;float:left}.addsearch-filters-tabs .tabs button.active{background-color:#eee}.addsearch-filters-tabs .tabs button:first-child{border-radius:5px 0 0 5px}.addsearch-filters-tabs .tabs button:last-child{border-radius:0 5px 5px 0;border-right:1px solid #dedede}@media (max-width:960px){.addsearch-filters-tabs .tabs{overflow-x:scroll;white-space:nowrap;padding:0 0 10px}.addsearch-filters-tabs .tabs button{padding:7px 15px;font-size:14px}}.addsearch-filters-tabs .tabs:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.addsearch-filters-tags button{margin:2px 0;border-radius:5px;border:1px solid #dedede;font-size:12px;padding:.25em .75em;text-transform:uppercase;color:#444}@media screen and (max-width:960px){.addsearch-filters-tags button{font-size:14px;padding:6px 8px}}.addsearch-filters-tags button.active{background-color:#eee}.addsearch-filters-checkboxgroup label,.addsearch-filters-radiogroup label{display:block;display:flex;align-items:center;padding:2px 0}@media (max-width:960px){.addsearch-filters-checkboxgroup label,.addsearch-filters-radiogroup label{padding:4px 0}}.addsearch-filters-checkboxgroup input,.addsearch-filters-radiogroup input{margin-right:8px}.addsearch-filters-radiogroup input{margin:0 8px 0 0}.addsearch-filters-checkboxgroup input[type=checkbox]{margin-right:7px}.addsearch-filters-range label{display:block;padding:4px 0}.addsearch-filters-range input{width:30%}.addsearch-filters-range input[data-valid=false]{border-color:red}.addsearch-autocomplete{position:absolute;background-color:#fff;min-width:300px}.addsearch-autocomplete ul{border:1px solid #dedede;list-style:none;margin:0;padding:0;border-radius:0 0 2px 2px}.addsearch-autocomplete li{cursor:pointer;padding:5px 8px}.addsearch-autocomplete li.active{background-color:#eee}.addsearch-facets ul{list-style:none;padding:0}.addsearch-facets ul li{white-space:nowrap;overflow:hidden;display:block}.addsearch-facets ul li label{padding:2px 0;display:block;display:flex;align-items:center;overflow:hidden;white-space:nowrap;max-width:100%}@media (max-width:960px){.addsearch-facets ul li label{padding:4px 0}}.addsearch-facets ul li label>span{text-overflow:ellipsis;display:inline-block;max-width:80%;overflow:hidden;position:relative;padding-right:3px}.addsearch-facets ul li input[type=checkbox]{margin-right:7px}.addsearch-facets em{font-style:normal;color:#666;font-size:80%}.addsearch-loadmore button{border:1px solid #dedede;border-radius:3px;padding:7px 12px 7px 13px;background:#f7f7f7;cursor:pointer;border-radius:5px}.addsearch-loadmore button,.addsearch-loadmore span{margin:1em;font-size:16px;display:inline-block;height:36px}.addsearch-loadmore span{padding:7px 0}.addsearch-pagination{clear:both;padding:1em 0;display:flex;flex-direction:row;flex-wrap:wrap}.addsearch-pagination button{background-color:#fff;border:1px solid #dedede;cursor:pointer;border-radius:2px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:2px;padding:0;min-width:34px;height:34px;line-height:34px}.addsearch-pagination button[data-active=true]{font-weight:700;background-color:#f1f1f1}.addsearch-pagination button[data-page=next],.addsearch-pagination button[data-page=previous]{font-size:14px;flex-shrink:0}.addsearch-searchfield-container{flex-wrap:nowrap;flex-grow:1}.addsearch-searchfield,.addsearch-searchfield-container{display:inline-block;display:flex;flex-direction:row;align-items:center}.addsearch-searchfield{min-width:260px}@media (max-width:480px){.addsearch-searchfield{width:100%}}.addsearch-searchfield button,.addsearch-searchfield input[type=search]{border:1px solid #dedede;border-radius:3px}.addsearch-searchfield .search-field-wrapper{float:left}.addsearch-searchfield .search-field-wrapper,.addsearch-searchfield input[type=search]{display:inline-block;display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;flex-grow:1}.addsearch-searchfield input[type=search]{height:36px;width:100%;min-width:300px;max-width:400px;font-size:16px;padding:0 7px;border:1px solid #dedede;border-radius:5px;text-align:left;margin-right:3px}@media (max-width:480px){.addsearch-searchfield input[type=search]{min-width:150px}}.addsearch-searchfield input[type=search].icon{padding:0 7px 2px 32px!important;background-image:url("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ic2VhcmNoLWljb24iIHdpZHRoPSIyMCIgaGVpZ2h0PSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjYjFiMWIxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik05Ljg4MiA2LjA3YTQuMDk3IDQuMDk3IDAgMDE0LjA5NC00LjA5NCA0LjA5NyA0LjA5NyAwIDAxNC4wOTUgNC4wOTUgNC4wOTcgNC4wOTcgMCAwMS00LjA5NSA0LjA5NGMtMi4yNTgtLjA0Ny00LjA5NC0xLjg4My00LjA5NC00LjA5NG0xMC4wMjQgMEE1Ljk4NSA1Ljk4NSAwIDAwMTMuOTI5LjA5NEMxMC42ODIuMDk0IDggMi43NzYgOCA2LjA3MWE1Ljk4NSA1Ljk4NSAwIDAwNS45NzYgNS45NzZjLjU2NSAwIDEuMDgzLS4wOTQgMS41NTMtLjIzNWwxLjc4OSAzLjk1MyAxLjY5NC0uOC0xLjc4OC0zLjk1M2MxLjY0Ny0xLjA4MyAyLjY4Mi0yLjg3IDIuNjgyLTQuOTQxTTQgMi45NjVIMi4xMTh2Mi4xNjRIMHYxLjgzNmgyLjExOHYyLjE2NEg0VjYuOTY1aDIuMTE4VjUuMTI5SDR6Ii8+PC9nPjwvc3ZnPg==");background-position:5px 50%;background-repeat:no-repeat}.addsearch-searchfield button{padding:7px 15px;background:#f7f7f7;font-size:16px;cursor:pointer;border-radius:5px;display:inline-block;height:36px}@media (max-width:480px){.addsearch-searchfield button,.addsearch-searchfield input[type=search]{font-size:16px;border-radius:3px;padding:5px 7px}}.addsearch-searchresults .number-of-results{margin:1em 0 .5em;padding:0 1em}.addsearch-searchresults h3{padding-top:13px;font-size:110%;font-weight:700;margin-top:0}.addsearch-searchresults h3 a{text-decoration:none}.addsearch-searchresults h3 a:hover{text-decoration:underline}@media (max-width:480px){.addsearch-searchresults h3{font-size:90%}}@media (max-width:480px){.addsearch-searchresults .highlight{font-size:80%}}.addsearch-searchresults em{font-weight:700}.addsearch-searchresults .hit{clear:both;padding:0 1em}.addsearch-searchresults .hit:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.addsearch-searchresults .hit div{overflow-wrap:break-word}.addsearch-searchresults .hit .category{margin-top:2em;margin-bottom:1em;font-size:12px;text-transform:uppercase;background-color:#eee;border-radius:5px;padding:.25em .5em;display:inline-block;border:1px solid #dedede}@media (max-width:480px){.addsearch-searchresults .hit .category{margin-top:1em}}.addsearch-searchresults .hit .main-image{display:inline-block;float:left;height:100px;width:100px;background-color:#fff;background-size:100% 100%;background-repeat:no-repeat;margin:0 20px 20px 0;overflow:hidden;word-break:break-all;border:1px solid #e4e4e4}.addsearch-searchresults .hit .main-image.doc,.addsearch-searchresults .hit .main-image.docx,.addsearch-searchresults .hit .main-image.noimage,.addsearch-searchresults .hit .main-image.pdf,.addsearch-searchresults .hit .main-image.ppt,.addsearch-searchresults .hit .main-image.pptx,.addsearch-searchresults .hit .main-image.xls,.addsearch-searchresults .hit .main-image.xlsx{background-position:50% 50%;background-size:60%}.addsearch-searchresults .hit .main-image.noimage{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzIiIHdpZHRoPSIzMiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIiBjbGlwUGF0aFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMjRoMjRWMEgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNhKSIgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMyAwIDAgLTEuMzMzMzMgMCAzMikiPjxwYXRoIGQ9Ik0yMC41IDUuNXMuMy4xLjQuMmMuMi4yLjMuNS4zLjd2MTAuMmMwIC42LS41IDEuMS0xLjEgMS4xaC0yLjhMMTQuOCAyMGMtLjIuMi0uNC4zLS42LjNIMT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jkuOTg2LS4xOC4yMjQtLjQ0My4zMzUtLjc4OC4zMzV6bS0uODc5LTMuNTU0VjExLjFoMS4zMTNjLjI4NyAwIC41NS0uMDUuNzktLjE0OC4yMzgtLjA5OC40NDMtLjIzNy42MTQtLjQxNi4xNzEtLjE3OC4zMDUtLjM5My40LS42NDMuMDk2LS4yNS4xNDQtLjUyNy4xNDQtLjgzMnYtLjE5NGMwLS4zMDQtLjA0OC0uNTgxLS4xNDMtLjgzYTEuODUgMS44NSAwIDAwLS40LS42NDEgMS43NjcgMS43NjcgMCAwMC0uNjItLjQxNSAyLjA4MyAyLjA4MyAwIDAwLS43OTQtLjE0N3pNMTQuNjkgOC41NzdoLTEuNjg3VjYuODM0aC0uODhWMTEuMWgyLjc3OHYtLjcxaC0xLjg5OFY5LjI4NWgxLjY4N3oiLz48L2c+PC9zdmc+")}.addsearch-searchresults .hit .main-image.doc,.addsearch-searchresults .hit .main-image.docx{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzIiIHdpZHRoPSIzMiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIiBjbGlwUGF0aFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMjRoMjRWMEgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNhKSIgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMyAwIDAgLTEuMzMzMzMgMCAzMikiPjxwYXRoIGQ9Ik0yMSAxNy41di0xNWMwLS42LS40LTEtLjktMUg0LjljLS41IDAtLjkuNS0uOSAxdjE5YzAgLjUuNCAxIC45IDFoMTF6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTIxIDE3LjV2LTE1YzAtLjYtLjQtMS0uOS0xSDQuOWMtLjUgMC0uOS41LS45IDF2MTljMCAuNS40IDEgLjkgMWgxMXoiIGZpbGw9Im5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uMjcgMCAuNTA5LS4wMzUuNzE2LS4xMDcuMjA4LS4wNzEuMzg0LS4xNy41My0uMjk3LjE0NS0uMTI3LjI1OC0uMjguMzQtLjQ1NGExLjg0IDEuODQgMCAwMC4xNTUtLjU3MWgtLjg5NWMtLjAxLjEyLS4wMzIuMjI3LS4wNjcuMzE5YS42MTcuNjE3IDAgMDEtLjE1LjIzNC42My42MyAwIDAxLS4yNTMuMTQzIDEuMjUyIDEuMjUyIDAgMDEtLjM3Ni4wNDljLS4zMDIgMC0uNTI3LS4xMDItLjY3NS0uMzA3LS4xNS0uMjA1LS4yMjItLjUyMy0uMjIyLS45NTN2LS4yNzJjMC0uMjEuMDE2LS4zOTQuMDQ5LS41NTEuMDMzLS4xNTguMDg0LS4yOS4xNTUtLjM5NWEuNjY5LjY2OSAwIDAxLjI3NC0uMjM4Ljk2Mi45NjIgMCAwMS40MDctLjA4Yy4xNDIgMCAuMjYzLjAxNi4zNjUuMDQ1YS42MTEuNjExIDAgMDEuNDE2LjM2MmMuMDM3LjA5LjA2Mi4xOTcuMDcuMzE3eiIvPjwvZz48L3N2Zz4=")}.addsearch-searchresults .hit .main-image.xls,.addsearch-searchresults .hit .main-image.xlsx{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzIiIHdpZHRoPSIzMiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIiBjbGlwUGF0aFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMjRoMjRWMEgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNhKSIgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMyAwIDAgLTEuMzMzMzMgMCAzMikiPjxwYXRoIGQ9Ik0yMSAxNy41di0xNWMwLS42LS40LTEtLjktMUg0LjljLS41IDAtLjkuNS0uOSAxdjE5YzAgLjUuNCAxIC45I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TE3SDQuMjV2NC4xNjZoMS42NjJjLjI1IDAgLjQ3NS0uMDM2LjY3NS0uMTA2LjIwMS0uMDcuMzcxLS4xNjkuNTEtLjI5NWExLjI5IDEuMjkgMCAwMC4zMjEtLjQ0OGMuMDc0LS4xNzIuMTExLS4zNi4xMTEtLjU2NWExLjMyIDEuMzIgMCAwMC0uMTEtLjU0OSAxLjE5NSAxLjE5NSAwIDAwLS4zMjItLjQyMSAxLjQ5NyAxLjQ5NyAwIDAwLS41MS0uMjc0IDIuMjQyIDIuMjQyIDAgMDAtLjY3NS0uMDk1ek05LjA2OSA5LjEwNWguNjU4Yy4xMDUgMCAuMTk2LjAxNS4yNy4wNDJhLjQ1LjQ1IDAgMDEuMjkzLjI5My44NDYuODQ2IDAgMDEwIC40NjguNTQuNTQgMCAwMS0uMjkzLjM0Ni42MjQuNjI0IDAgMDEtLjI3LjA1M2gtLjY1OHptMC0uNzc1VjYuOTE3SDguMDY1djQuMTY2aDEuNjYyYy4yNSAwIC40NzUtLjAzNi42NzUtLjEwNi4yLS4wNy4zNy0uMTY5LjUxLS4yOTVhMS4yOSAxLjI5IDAgMDAuMzItLjQ0OGMuMDc1LS4xNzIuMTEyLS4zNi4xMTItLjU2NWExLjMyIDEuMzIgMCAwMC0uMTExLS41NDkgMS4xOTUgMS4xOTUgMCAwMC0uMzIxLS40MjEgMS40OTcgMS40OTcgMCAwMC0uNTEtLjI3NCAyLjI0MiAyLjI0MiAwIDAwLS42NzUtLjA5NXpNMTUuMTUgMTAuMzA4SDEzLjlWNi45MTdoLTEuMDA1djMuMzloLTEuMjI4di43NzZoMy40ODN6Ii8+PC9nPjwvc3ZnPg==")}.addsearch-searchresults .hit img{width:100%;height:100%}.addsearch-searchresults .hit:hover{background-color:#f7f7f7}.addsearch-searchresults .hit:hover .category{background-color:#dedede}.addsearch-sortby-radiogroup label{display:block;display:flex;align-items:center;padding:2px 0}.addsearch-sortby-radiogroup input{margin:0 8px 0 0} \ No newline at end of file diff --git a/dist/addsearch-search-ui.min.js b/dist/addsearch-search-ui.min.js index 3b487fe..67aff35 100644 --- a/dist/addsearch-search-ui.min.js +++ b/dist/addsearch-search-ui.min.js @@ -1,2 +1,2 @@ -/*! addsearch-search-ui 0.5.3 */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.AddSearchUI=e():t.AddSearchUI=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=30)}([function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"j",(function(){return i})),n.d(e,"i",(function(){return s})),n.d(e,"g",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"h",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return d})),n.d(e,"m",(function(){return g})),n.d(e,"n",(function(){return v})),n.d(e,"r",(function(){return m})),n.d(e,"p",(function(){return y})),n.d(e,"q",(function(){return S})),n.d(e,"o",(function(){return k})),n.d(e,"s",(function(){return O})),n.d(e,"t",(function(){return _})),n.d(e,"u",(function(){return E})),n.d(e,"v",(function(){return x}));var r="AUTOCOMPLETE_FETCH_START",i="AUTOCOMPLETE_SUGGESTIONS_RESULTS",s="AUTOCOMPLETE_SUGGESTIONS_CLEAR",a="AUTOCOMPLETE_SEARCH_RESULTS",o="AUTOCOMPLETE_SEARCH_CLEAR",c="AUTOCOMPLETE_SHOW",l="AUTOCOMPLETE_HIDE",u="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",h="HIDE_AUTOMATICALLY",p="KEYBOARD_EVENT",f="ARROW_UP",d="ARROW_DOWN",g="SET_ACTIVE_SUGGESTION",v="suggestions";function m(t,e){return e&&""!==e?function(n){n(b(v)),t.suggestions(e,(function(t){return n(function(t,e){return{type:i,keyword:t,results:e}}(e,t))}))}:{type:s}}function y(t,e,n,r){return n&&""!==n?function(i){i(b(e)),t.search(n,(function(t){return i(function(t,e,n,r){return{type:a,keyword:t,results:e,jsonKey:n,appendResults:r}}(n,t,e,r))}))}:{type:o}}function b(t){return{type:r,jsonKey:t}}function S(){return{type:c}}function k(){return{type:l}}function O(){return{type:u}}function _(t){return{type:p,direction:t}}function E(t,e){return{type:g,index:t,setSuggestionToSearchField:e}}function x(t){return{type:h,hideAutomatically:t}}},function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"i",(function(){return u})),n.d(e,"n",(function(){return h})),n.d(e,"l",(function(){return p})),n.d(e,"k",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"m",(function(){return g})),n.d(e,"h",(function(){return v}));var r="TOGGLE_FILTER",i="SET_RANGE_FILTER",s="REGISTER_FILTER",a="SET_ACTIVE_FILTERS",o="SET_ACTIVE_FACETS",c="TOGGLE_FACET_FILTER",l="CLEAR_SELECTED_FILTERS_AND_FACETS";function u(t){return{type:s,filterObj:t}}function h(t,e,n){return{type:r,filterName:t,value:e,refreshSearch:n}}function p(t,e,n){return{type:i,field:t,from:e,to:n}}function f(t){return{type:a,json:t}}function d(t){return{type:o,json:t}}function g(t,e,n){return{type:c,field:t,value:e,refreshSearch:n}}function v(t){return{type:l,refreshSearch:t}}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:v,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case f.c:var n=d(t.pendingRequests);return-1===n.indexOf(e.jsonKey)&&n.push(e.jsonKey),Object.assign({},t,{pendingRequests:n,dropRendering:!1});case f.i:return Object.assign({},t,{suggestions:[],activeSuggestionIndex:null});case f.j:var r=d(t.pendingRequests);return-1!==r.indexOf(f.n)&&r.splice(r.indexOf(f.n),1),Object.assign({},t,{keyword:e.keyword,pendingRequests:r,suggestions:e.results.suggestions,activeSuggestionIndex:null,visible:!0});case f.f:return Object.assign({},t,{searchResults:{},searchResultsStats:{}});case f.g:var i=Object.assign({},t.searchResults);i[e.jsonKey]=e.results.hits;var s=Object.assign({},t.searchResultsStats);!0===e.appendResults&&t.searchResults[e.jsonKey]?i[e.jsonKey]=[].concat(d(t.searchResults[e.jsonKey]),d(e.results.hits)):(s[e.jsonKey]||(s[e.jsonKey]={}),s[e.jsonKey].total_hits=e.results.total_hits,s[e.jsonKey].processing_time_ms=e.results.processing_time_ms);var a=d(t.pendingRequests);return-1!==a.indexOf(e.jsonKey)&&a.splice(a.indexOf(e.jsonKey),1),Object.assign({},t,{keyword:e.keyword,pendingRequests:a,searchResults:i,searchResultsStats:s,visible:!0,appendResults:!0===e.appendResults});case f.d:return Object.assign({},t,{visible:!1,activeSuggestionIndex:null});case f.e:return Object.assign({},t,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case f.h:return Object.assign({},t,{visible:!0});case f.k:return Object.assign({},t,{hideAutomatically:e.hideAutomatically});case f.m:return Object.assign({},t,{activeSuggestionIndex:e.index,setSuggestionToSearchField:e.setSuggestionToSearchField});case f.l:var o=t.activeSuggestionIndex;return e.direction===f.a?null===o&&t.suggestions.length>0?o=0:o===t.suggestions.length-1?o=null:o+=1:e.direction===f.b&&(null===o&&t.suggestions.length>0?o=t.suggestions.length-1:0===o?o=null:o-=1),Object.assign({},t,{visible:!0,activeSuggestionIndex:o,setSuggestionToSearchField:!0});default:return t}},filters:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case m.b:var n=t.allAvailableFilters.slice();if(e.filterObj.type===y.FILTER_TYPE.RANGE){var r={};r[e.filterObj.field]={label:e.filterObj.labelShort?e.filterObj.labelShort:e.filterObj.label},n.push(r)}else if(e.filterObj.options){var i=Object.assign({},e.filterObj.options);n.push(i)}return Object.assign({},t,{allAvailableFilters:n});case m.g:var s=Object.assign({},t.activeFilters);return s[e.filterName]?delete s[e.filterName]:s[e.filterName]=e.value,Object.assign({},t,{activeFilters:s,refreshSearch:!1!==e.refreshSearch});case m.e:var a=Object.assign({},t.activeRangeFilters);return a[e.field]={},null!==e.from&&(a[e.field].gte=e.from),null!==e.to&&(a[e.field].lte=e.to),null===e.from&&null===e.to&&delete a[e.field],Object.assign({},t,{activeRangeFilters:a,refreshSearch:!0});case m.a:return Object.assign({},t,{activeFacets:{},activeFilters:{},activeRangeFilters:{},refreshSearch:!1!==e.refreshSearch});case m.d:return Object.assign({},t,{activeFilters:e.json||{},refreshSearch:!1});case m.c:return Object.assign({},t,{activeFacets:e.json||{},refreshSearch:!1});case m.f:var o=Object.assign({},t.activeFacets);return o[e.field]||(o[e.field]={}),o[e.field][e.value]?delete o[e.field][e.value]:o[e.field][e.value]="true",o.v=o.v?o.v+1:1,Object.assign({},t,{activeFacets:o,refreshSearch:!1!==e.refreshSearch});default:return t}},keyword:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case S.a:return Object.assign({},t,{value:e.value,skipAutocomplete:!0===e.skipAutocomplete,searchFieldContainerId:e.searchFieldContainerId});default:return t}},pagination:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case O.a:return Object.assign({},t,{page:e.page});default:return t}},search:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case x.e:return Object.assign({},t,{started:!0});case x.a:return Object.assign({},t,{keyword:null,results:{},loading:!1,dropReturningResults:!0});case x.b:return Object.assign({},t,{loading:!0,dropReturningResults:!1});case x.c:if(t.started||console.log("WARNING: AddSearch UI not started with the start() function"),!0===t.dropReturningResults)return t;if(0===e.keyword.indexOf(E.WARMUP_QUERY_PREFIX))return Object.assign({},t,{loading:!1});var n=e.results;if(!0===e.appendResults&&t.results.hits){var r=[].concat(P(t.results.hits),P(e.results.hits));n.hits=r}return Object.assign({},t,{keyword:e.keyword,results:n,loading:!1});case x.d:return Object.assign({},t,{searchResultsPageUrl:e.url});default:return t}},segmentedsearch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case R.c:var n=j(t.pendingSegments);return-1===n.indexOf(e.jsonKey)&&n.push(e.jsonKey),Object.assign({},t,{pendingSegments:n,dropReturningResults:!1});case R.b:if(0===e.keyword.indexOf(E.WARMUP_QUERY_PREFIX)||!0===t.dropReturningResults)return t;var r={};r[e.jsonKey]=e.results;var i=j(t.pendingSegments);return-1!==i.indexOf(e.jsonKey)&&i.splice(i.indexOf(e.jsonKey),1),Object.assign({},t,r,{pendingSegments:i});case R.a:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return t}},sortby:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case T.b:return Object.assign({},t,{field:e.field,order:e.order});default:return t}},configuration:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;return t}});function M(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var H=M();H.withExtraArgument=M;var B=H;function D(t){var e={configuration:t},n=p;return t.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(n=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),h(F,e,n(function(){for(var t=arguments.length,e=new Array(t),n=0;n0){var r=null;e.length>1&&(r=(r=e[1]||"").replace(/\+/g,"%20"),r=decodeURIComponent(r)),n[e[0]]=r}})),n}function g(t){try{return JSON.parse(t)}catch(t){}return null}function v(t){return Object.keys(t).length>0?JSON.stringify(t):null}function m(t,e){-1===t.indexOf("?")?window.location.href=t+"?"+c.SEARCH+"="+encodeURIComponent(e):window.location.href=t+"&"+c.SEARCH+"="+encodeURIComponent(e)}},function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return d}));var r=n(11),i=n(4),s=n(10),a="START",o="SET_SEARCH_RESULTS_PAGE_URL",c="SEARCH_FETCH_START",l="SEARCH_RESULTS",u="CLEAR_SEARCH_RESULTS";function h(){return{type:a}}function p(t,e,n,a,o,h,p){return Object(i.e)(i.a.SEARCH,e,o,h),e&&""!==e?function(i){i({type:c}),t.search(e,(function(o){if(p&&o&&o.hits&&o.hits.length){var c=p.replace("custom_fields.",""),u=o.hits.find((function(t){return t.custom_fields&&t.custom_fields[c]&&e.toLowerCase()===t.custom_fields[c].toLowerCase()}));u&&(window.location.href=u.url)}i(function(t,e,n,i,a){"top"===i&&window.scrollTo(0,0);if(e&&-1===e.indexOf(r.WARMUP_QUERY_PREFIX)){var o=n?n.total_hits:0,c=n?n.processing_time_ms:0;Object(s.c)(t,e,o,c)}return{type:l,keyword:e,results:n,appendResults:a}}(t,e,o,n,a))}))}:{type:u}}function f(t){return"top"===t&&window.scrollTo(0,0),{type:u}}function d(t){return{type:o,url:t}}},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=t.querySelectorAll("["+e+"]"),s=0;s":">",'"':""","'":"'","`":"`","=":"="},i=/[&<>"'`=]/g,s=/[&<>"'`=]/;function a(t){return r[t]}function o(t){for(var e=1;e0)for(var r=0;r \n {{#each active}}\n
{{label}}
\n {{/each}}\n {{#if clearAll}}\n {{#gt active.length 1}}\n
\n {{/gt}}\n {{/if}}\n \n')(u);if(this.renderedHtml!==d){var g=document.getElementById(this.conf.containerId);g.innerHTML=d,this.renderedHtml=d;for(var v=g.querySelectorAll("[data-type]"),m=0;m\n
    \n {{#each facets}}\n
  • \n \n
  • \n {{/each}}\n
\n \n')(o);if(this.renderedHtml!==c||s!==this.renderedActiveFacets){this.renderedActiveFacets=s;var l=document.getElementById(this.conf.containerId);l.innerHTML=c,this.renderedHtml=c;for(var u=l.getElementsByTagName("input"),h=0;h0&&n.and.push(i)})),t.activeRangeFilters)n.and.push({range:_({},i,Object.assign({},t.activeRangeFilters[i]))});for(var s in t.activeFacets){var a={or:[]};for(var o in t.activeFacets[s]){var c={};c[s]=encodeURIComponent(o),a.or.push(c)}a.or.length>0&&n.and.push(a)}return n.and.length>0?n:null}var x=function(){function t(e,n,r,i,s){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.client=e,this.reduxStore=n,this.createFilterObjectFunction=r,this.onFilterChange=i,Object(l.b)(this.reduxStore,"filters",(function(t){return a.onFilterStateChange(t,s)}))}var e,n,r;return e=t,(n=[{key:"onFilterStateChange",value:function(t,e){if(t.refreshSearch){Object(k.e)(k.a.FILTERS,Object(k.c)(t.activeFilters),null,this.reduxStore),Object(k.e)(k.a.FACETS,Object(k.c)(t.activeFacets),null,this.reduxStore);var n=this.createFilterObjectFunction(t,e);this.client.setFilterObject(n);var r=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch(Object(S.b)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch(Object(v.g)(this.client,r,null,null,null,this.reduxStore))}this.onFilterChange&&this.onFilterChange(t.activeFilters)}}])&&O(e.prototype,n),r&&O(e,r),t}(),P=n(19);n(57);function w(t,e){for(var n=0;ne)return null;for(var n=[],r=0;r9&&t<7)return n.slice(0,9);if(e>9&&t>=e-3)return n.slice(e-9);var i=n.indexOf(t);return i-4>=0&&i+5<=n.length?n.slice(i-4,i+5):null}(n,s),c={currentPage:n,lastPage:o?o[o.length-1]:0,totalPages:s,pages:o},l=a.a.compile(this.conf.template||'\n
\n {{#gt currentPage 1}}\n \n {{/gt}}\n {{#each pages}}\n \n {{/each}}\n {{#lt currentPage lastPage}}\n \n {{/lt}}\n
\n')(c);if(this.renderedHtml!==l){var u=document.getElementById(this.conf.containerId);u.innerHTML=l,this.renderedHtml=l;for(var h=u.getElementsByTagName("button"),p=0;p0&&t.setSuggestionToSearchField)if(null!==t.activeSuggestionIndex&&t.setSuggestionToSearchField){var e=t.suggestions[t.activeSuggestionIndex].value;this.render(e)}else null===t.activeSuggestionIndex&&this.render(this.reduxStore.getState().keyword.value)}},{key:"executeSearch",value:function(t,e,n){this.reduxStore.dispatch(Object(R.s)());var r=e;""===r&&this.matchAllQuery&&(r=Q),0!==r.indexOf(W)&&this.reduxStore.dispatch(Object(S.b)(t,1,null,this.reduxStore)),this.onSearch(r,!1,n,this.conf.fieldForInstantRedirect)}},{key:"redirectOrSearch",value:function(t){var e=this.reduxStore.getState().search.searchResultsPageUrl;e&&!0!==this.conf.ignoreSearchResultsPageUrl&&t&&t.length>0?Object(k.d)(e,t):this.executeSearch(this.client,t,!1)}},{key:"render",value:function(t){var e=this,n=document.getElementById(this.conf.containerId);n.querySelector("input")?null!==t&&t!==Q&&n.querySelector("input").value!==t&&(n.querySelector("input").value=t):(n.innerHTML=a.a.compile(this.conf.template||'\n
\n \n
\n')(this.conf),this.field=n.querySelector("input"),t!==Q&&(this.field.value=t),this.field.oninput=function(t){return e.oninput(t)},this.field.onkeypress=function(t){return e.onkeypress(t)},this.field.onkeyup=function(t){return e.onkeyup(t)},this.field.onfocus=function(t){return e.onfocus(t)},this.field.onblur=function(t){return setTimeout((function(){return e.onblur()}),200)},n.querySelector("button")&&(n.querySelector("button").onclick=function(){var t=e.field.value;""===t&&e.matchAllQuery&&(t=Q),e.reduxStore.dispatch(Object(j.b)(t,!0)),e.reduxStore.dispatch(Object(R.o)()),e.redirectOrSearch(t)}),n.querySelector("form")&&(n.querySelector("form").onsubmit=function(t){return t.preventDefault()}),!1!==this.conf.autofocus&&!1===this.firstRenderDone&&(this.field.focus(),this.firstRenderDone=!0))}},{key:"oninput",value:function(t){var e=this.reduxStore,n=t.target.value;""===n&&this.matchAllQuery&&(n=Q),t.keyCode!==N&&t.keyCode!==F||e.dispatch(Object(R.u)(null,!1));var r=!0===this.conf.ignoreAutocomplete;e.dispatch(Object(j.b)(n,r,this.conf.containerId)),!0===this.conf.searchAsYouType&&this.executeSearch(this.client,n,!0)}},{key:"onkeyup",value:function(t){var e=this.reduxStore;t.keyCode===C?e.dispatch(Object(R.t)(R.a)):t.keyCode===T&&e.dispatch(Object(R.t)(R.b))}},{key:"onkeypress",value:function(t){if(t.keyCode===L){var e=this.reduxStore,n=t.target.value;e.dispatch(Object(j.b)(n,!0)),e.dispatch(Object(R.o)()),this.redirectOrSearch(n)}}},{key:"onfocus",value:function(t){""===t.target.value&&(this.conf.onfocusAutocompleteMatchAllQuery?this.reduxStore.dispatch(Object(j.b)(Q,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,W+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch(Object(R.q)())}},{key:"onblur",value:function(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch(Object(R.o)())}}])&&I(e.prototype,n),r&&I(e,r),t}(),H=(n(59),n(10)),B=n(14);function D(t,e){for(var n=0;n\n {{#gt page 1}}Page {{../page}} of {{/gt}}\n {{total_hits}}{{#equals total_hits 10000}}+{{/equals}} results\n \n'),a.a.registerPartial("searchResultImageTemplate",this.conf.template_image||'\n \n {{#if images.main}}{{title}}\n {{else if style.image_url}}{{title}}{{/if}} \n \n'),a.a.registerHelper("removeTrailingQueriesFromUrl",(function(t){return t.replace(/\?.*$/,"")}));var s=this.conf.categorySelectionFunction||B.a;a.a.registerHelper("selectCategory",(function(t){return s(t,i.conf.categoryAliases)})),Object(c.b)(r.containerId)&&Object(l.b)(this.reduxStore,"search",(function(){return i.render()}))}var e,n,r;return e=t,(n=[{key:"render",value:function(){var t=this.reduxStore.getState().search,e=t.results||{};e.resultcount=e.hits&&!1!==this.conf.showNumberOfResults,e.keyword=t.keyword;var n=this.conf.template||'\n
\n {{#if resultcount}}\n {{> numberOfResultsTemplate }}\n {{/if}}\n \n {{#each hits}}\n
\n

\n {{#if title}} {{title}} {{else}} {{removeTrailingQueriesFromUrl url}} {{/if}}\n

\n
\n {{> searchResultImageTemplate}}\n {{{highlight}}}{{#not type "PROMOTED"}}…{{/not}}\n
\n {{#gt categories.length 1}}\n
\n {{selectCategory ..}}\n
\n {{/gt}}\n
\n {{/each}}\n
\n';e.hits&&0===e.hits.length&&(n=this.conf.template_noresults||'\n
\n

No search results with keyword {{keyword}}

\n
\n');var r=a.a.compile(n)(e);if(this.renderedHtml!==r){var i=document.getElementById(this.conf.containerId);i.innerHTML=r,this.renderedHtml=r;var s=i.querySelectorAll("[data-analytics-click]");Object(H.a)(this.client,s,e)}}}])&&D(e.prototype,n),r&&D(e,r),t}();function $(t,e){for(var n=0;ni?n[i]:"").replace(/^[0-9]+[x]{1}/,""),i++}while(r.length<3&&n.length>i);return e&&e[r]?e[r]:r.replace(/[-_]+/g," ")}var a=null;function o(){var t=this;c("equals",(function(e,n,r){return e+""==n+""?r.fn(t):r.inverse(t)})),c("not",(function(e,n,r){return e+""!=n+""?r.fn(t):r.inverse(t)})),c("gt",(function(e,n,r){return e>n?r.fn(t):r.inverse(t)})),c("lt",(function(e,n,r){return e\n
\n {{#each options}}\n \n {{/each}}\n
\n \n';else if(this.conf.type===d.TAGS)o='\n
\n {{#each options}}\n \n {{/each}}\n
\n';else if(this.conf.type===d.CHECKBOX_GROUP)o='\n
\n {{#each options}}\n \n {{/each}}\n
\n';else if(this.conf.type===d.RADIO_GROUP)o='\n
\n {{#each options}}\n \n {{/each}}\n
\n';else if(this.conf.type===d.SELECT_LIST)o='\n
\n \n
\n';else if(this.conf.type===d.RANGE){t.activeRangeFilters[this.conf.field]&&(n.from=t.activeRangeFilters[this.conf.field].gte,n.to=t.activeRangeFilters[this.conf.field].lte);var l=this.reduxStore.getState().search.results;if(l&&l.fieldStats&&l.fieldStats[this.conf.field]){var u=l.fieldStats[this.conf.field],h=u.min,p=u.max;n.fromPlaceholder="Infinity"===h?"":h,n.toPlaceholder="-Infinity"===p?"":p}o='\n
\n \n - \n {{#or from to}}{{/or}}\n
\n'}var f=i.a.compile(this.conf.template||o)(n);if(this.renderedHtml!==f){var g=document.getElementById(this.conf.containerId);if(g.innerHTML=f,this.renderedHtml=f,this.conf.type===d.SELECT_LIST)g.querySelector("select").addEventListener("change",(function(t){return e.singleActiveChangeEvent(t.target.value)}));else if(this.conf.type===d.TABS)for(var v=g.querySelectorAll("[data-filter]"),m=0;m= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function u(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},a.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:c.default,log:c.default.log,registerHelper:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===i.toString.call(t))i.extend(this.partials,t);else{if(void 0===e)throw new s.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}};var h=c.default.log;e.log=h,e.createFrame=i.createFrame,e.logger=c.default},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d})),n.d(e,"AUTOCOMPLETE_TYPE",(function(){return g}));n(54);var r=n(3),i=n.n(r),s=n(0),a=n(5),o=n(7),c=n(2),l=n(6),u=n(10),h=n(4),p=n(14);function f(t,e){for(var n=0;n\n {{#gt suggestions.length 0}}\n
    \n {{#each ../suggestions}}\n
  • \n {{value}}\n
  • \n {{/each}}\n
\n {{/gt}}\n \n')(s);if(this.renderedHtml!==a){var o=document.getElementById(this.conf.containerId);o.innerHTML=a,this.renderedHtml=a;for(var c=o.querySelector(".suggestions")?o.querySelectorAll(".suggestions > li"):[],l=0;l0&&Math.ceil(t.offsetHeight+t.scrollTop)>=t.scrollHeight){var e=this.reduxStore.getState().keyword.value;this.loadMore(e)}}}}])&&f(e.prototype,n),r&&f(e,r),t}(),g={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS"}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u})),n.d(e,"LOAD_MORE_TYPE",(function(){return h}));n(56);var r=n(3),i=n.n(r),s=n(8),a=n(5),o=n(2),c=n(6);function l(t,e){for(var n=0;n\n {{#if isLoading}}\n {{#gt totalHits 0}}\n Loading more..\n {{/gt}}\n {{else if hasMorePages}}\n {{#equals type "BUTTON"}}\n \n {{/equals}}\n {{#equals type "INFINITE_SCROLL"}}\n \n {{/equals}}\n {{/if}}\n \n')(o);if(this.renderedHtml!==c){var l=document.getElementById(this.conf.containerId);if(l.innerHTML=c,this.renderedHtml=c,this.conf.type===h.BUTTON){var u=l.querySelector("button");u&&(u.onclick=function(t){return e.loadMore()})}else this.conf.type===h.INFINITE_SCROLL&&this.conf.infiniteScrollElement.tagName&&1===t.results.page&&!t.loading&&(this.conf.infiniteScrollElement.scrollTop=0)}}},{key:"loadMore",value:function(){var t=(this.reduxStore.getState().pagination.page||1)+1;this.reduxStore.dispatch(Object(s.b)(this.client,t,!1,this.reduxStore));var e=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch(Object(a.g)(this.client,e,null,!0,null,this.reduxStore))}},{key:"onScroll",value:function(){var t=this.reduxStore.getState().search.loading,e=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!t&&e)if(this.conf.infiniteScrollElement.tagName){var n=this.conf.infiniteScrollElement;Math.ceil(n.offsetHeight+n.scrollTop)>=n.scrollHeight&&this.loadMore()}else{var r=window.innerHeight,i=e.getBoundingClientRect().top;i>0&&i\n {{#each options}}\n \n {{/each}}\n \n':'\n
\n \n
\n';var a=Object.assign({},this.conf);a.options.forEach((function(t){t.sortBy===n&&t.order===r?t.active=!0:t.active=!1}));var o=i.a.compile(s)(a);if(this.renderedHtml!==o){var c=document.getElementById(this.conf.containerId);if(c.innerHTML=o,this.renderedHtml=o,this.conf.type===p.RADIO_GROUP)for(var l=c.querySelectorAll("input"),u=0;u=0?e:parseInt(t,10)}return t},log:function(t){if(t=i.lookupLevel(t),"undefined"!=typeof console&&i.lookupLevel(i.level)<=t){var e=i.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):i(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return s(e,n)}))},t.exports=e.default},function(t,e,n){"use strict";(function(r){e.__esModule=!0;var i,s=n(9),a=n(12),o=(i=a)&&i.__esModule?i:{default:i};e.default=function(t){t.registerHelper("each",(function(t,e){if(!e)throw new o.default("Must pass iterator to #each");var n,i=e.fn,a=e.inverse,c=0,l="",u=void 0,h=void 0;function p(e,n,r){u&&(u.key=e,u.index=n,u.first=0===n,u.last=!!r,h&&(u.contextPath=h+e)),l+=i(t[e],{data:u,blockParams:s.blockParams([t[e],e],[h+e,null])})}if(e.data&&e.ids&&(h=s.appendContextPath(e.data.contextPath,e.ids[0])+"."),s.isFunction(t)&&(t=t.call(this)),e.data&&(u=s.createFrame(e.data)),t&&"object"==typeof t)if(s.isArray(t))for(var f=t.length;c=o.LAST_COMPATIBLE_COMPILER_REVISION&&e<=o.COMPILER_REVISION)return;if(e2&&S.push("'"+this.terminals_[m]+"'");_=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:u,expected:S})}}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+d+", token: "+p);switch(g[0]){case 1:n.push(p),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),p=null,f?(p=f,f=null):(c=this.lexer.yyleng,a=this.lexer.yytext,o=this.lexer.yylineno,u=this.lexer.yylloc,l>0&&l--);break;case 2:if(y=this.productions_[g[1]][1],O.$=r[r.length-y],O._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},h&&(O._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),void 0!==(v=this.performAction.call(O,a,c,o,this.yy,g[1],r,i)))return v;y&&(n=n.slice(0,-1*y*2),r=r.slice(0,-1*y),i=i.slice(0,-1*y)),n.push(this.productions_[g[1]][0]),r.push(O.$),i.push(O._$),b=s[n[n.length-2]][n[n.length-1]],n.push(b);break;case 3:return!0}}return!0}},e=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;ae[0].length)||(e=n,r=a,this.options.flex));a++);return e?((i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,s[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,n,r){function i(t,n){return e.yytext=e.yytext.substring(t,e.yyleng-n+t)}switch(n){case 0:if("\\\\"===e.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(e.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return e.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return e.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return e.yytext=e.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return t}();function n(){this.yy={}}return t.lexer=e,n.prototype=t,t.Parser=n,new n}();e.default=r,t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(27),s=(r=i)&&r.__esModule?r:{default:r};function a(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=t}function o(t,e,n){void 0===e&&(e=t.length);var r=t[e-1],i=t[e-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function c(t,e,n){void 0===e&&(e=-1);var r=t[e+1],i=t[e+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function l(t,e,n){var r=t[null==e?0:e+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function u(t,e,n){var r=t[null==e?t.length-1:e-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}a.prototype=new s.default,a.prototype.Program=function(t){var e=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=t.body,i=0,s=r.length;i0)throw new s.default("Invalid path: "+r,{loc:n});".."===l&&a++}}return{type:"PathExpression",data:t,depth:a,parts:i,original:r,loc:n}},e.prepareMustache=function(t,e,n,r,i,s){var a=r.charAt(3)||r.charAt(2),o="{"!==a&&"&"!==a;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:t,params:e,hash:n,escaped:o,strip:i,loc:this.locInfo(s)}},e.prepareRawBlock=function(t,e,n,r){a(t,n),r=this.locInfo(r);var i={type:"Program",body:e,strip:{},loc:r};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},e.prepareBlock=function(t,e,n,r,i,o){r&&r.path&&a(t,r);var c=/\*/.test(t.open);e.blockParams=t.blockParams;var l=void 0,u=void 0;if(n){if(c)throw new s.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),u=n.strip,l=n.program}i&&(i=l,l=e,e=i);return{type:c?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(o)}},e.prepareProgram=function(t,e){if(!e&&t.length){var n=t[0].loc,r=t[t.length-1].loc;n&&r&&(e={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:t,strip:{},loc:e}},e.preparePartialBlock=function(t,e,n,r){return a(t,n),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var r,i=n(12),s=(r=i)&&r.__esModule?r:{default:r};function a(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var n={loc:t.path.loc};throw new s.default(t.path.original+" doesn't match "+e,n)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.Compiler=c,e.precompile=function(t,e,n){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);"data"in(e=e||{})||(e.data=!0);e.compat&&(e.useDepths=!0);var r=n.parse(t,e),s=(new n.Compiler).compile(r,e);return(new n.JavaScriptCompiler).compile(s,e)},e.compile=function(t,e,n){void 0===e&&(e={});if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);"data"in(e=s.extend({},e))||(e.data=!0);e.compat&&(e.useDepths=!0);var r=void 0;function a(){var r=n.parse(t,e),i=(new n.Compiler).compile(r,e),s=(new n.JavaScriptCompiler).compile(i,e,void 0,!0);return n.template(s)}function o(t,e){return r||(r=a()),r.call(this,t,e)}return o._setup=function(t){return r||(r=a()),r._setup(t)},o._child=function(t,e,n,i){return r||(r=a()),r._child(t,e,n,i)},o};var i=r(n(12)),s=n(9),a=r(n(26)),o=[].slice;function c(){}function l(t,e){if(t===e)return!0;if(s.isArray(t)&&s.isArray(e)&&t.length===e.length){for(var n=0;n1)throw new i.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,s="SubExpression"===t.name.type;s&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){u(t);var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,e,n){var r=t.path,i=r.parts[0],s=null!=e||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,s)},simpleSexpr:function(t){var e=t.path;e.strict=!0,this.accept(e),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,n){var r=this.setupFullMustacheParams(t,e,n),s=t.path,o=s.parts[0];if(this.options.knownHelpers[o])this.opcode("invokeKnownHelper",r.length,o);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+o,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",r.length,s.original,a.default.helpers.simpleId(s))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],n=a.default.helpers.scopedId(t),r=!t.depth&&!n&&this.blockParamIndex(e);r?this.opcode("lookupBlockParam",r,t.parts):e?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var e=t.pairs,n=0,r=e.length;for(this.opcode("pushHash");n=0)return[e,i]}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(17),s=r(n(12)),a=n(9),o=r(n(53));function c(t){this.value=t}function l(){}l.prototype={nameLookup:function(t,e){return this.internalNameLookup(t,e)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=i.COMPILER_REVISION;return[t,i.REVISION_CHANGES[t]]},appendToBuffer:function(t,e,n){return a.isArray(t)||(t=[t]),t=this.source.wrap(t,e),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,e){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(e),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,e,n,r){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var i=t.opcodes,a=void 0,o=void 0,c=void 0,l=void 0;for(c=0,l=i.length;c0&&(n+=", "+r.join(", "));var i=0;Object.keys(this.aliases).forEach((function(t){var r=e.aliases[t];r.children&&r.referenceCount>1&&(n+=", alias"+ ++i+"="+t,r.children[0]="alias"+i)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var a=this.mergeSource(n);return t?(s.push(a),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",a,"}"])},mergeSource:function(t){var e=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,s=void 0,a=void 0;return this.source.each((function(t){t.appendToBuffer?(s?t.prepend(" + "):s=t,a=t):(s&&(i?s.prepend("buffer += "):r=!0,a.add(";"),s=a=void 0),i=!0,e||(n=!1))})),n?s?(s.prepend("return "),a.add(";")):i||this.source.push('return "";'):(t+=", buffer = "+(r?"":this.initializeBuffer()),s?(s.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(e,"call",n))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)];this.setupHelperArgs("",0,e,!0),this.flushInline();var n=this.topStack();e.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",e),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack((function(t){return[" != null ? ",t,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[i++])),this.resolvePath("context",t,i,e,n)},lookupBlockParam:function(t,e){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1)},lookupData:function(t,e,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",e,0,!0,n)},resolvePath:function(t,e,n,r,i){var s=this;if(this.options.strict||this.options.assumeObjects)this.push(function(t,e,n,r){var i=e.popStack(),s=0,a=n.length;t&&a--;for(;sthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,n=t.length;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:v,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case f.c:var n=d(t.pendingRequests);return-1===n.indexOf(e.jsonKey)&&n.push(e.jsonKey),Object.assign({},t,{pendingRequests:n,dropRendering:!1});case f.i:return Object.assign({},t,{suggestions:[],activeSuggestionIndex:null});case f.j:var r=d(t.pendingRequests);return-1!==r.indexOf(f.n)&&r.splice(r.indexOf(f.n),1),Object.assign({},t,{keyword:e.keyword,pendingRequests:r,suggestions:e.results.suggestions,activeSuggestionIndex:null,visible:!0});case f.f:return Object.assign({},t,{searchResults:{},searchResultsStats:{}});case f.g:var i=Object.assign({},t.searchResults);i[e.jsonKey]=e.results.hits;var s=Object.assign({},t.searchResultsStats);!0===e.appendResults&&t.searchResults[e.jsonKey]?i[e.jsonKey]=[].concat(d(t.searchResults[e.jsonKey]),d(e.results.hits)):(s[e.jsonKey]||(s[e.jsonKey]={}),s[e.jsonKey].total_hits=e.results.total_hits,s[e.jsonKey].processing_time_ms=e.results.processing_time_ms);var a=d(t.pendingRequests);return-1!==a.indexOf(e.jsonKey)&&a.splice(a.indexOf(e.jsonKey),1),Object.assign({},t,{keyword:e.keyword,pendingRequests:a,searchResults:i,searchResultsStats:s,visible:!0,appendResults:!0===e.appendResults});case f.d:return Object.assign({},t,{visible:!1,activeSuggestionIndex:null});case f.e:return Object.assign({},t,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case f.h:return Object.assign({},t,{visible:!0});case f.k:return Object.assign({},t,{hideAutomatically:e.hideAutomatically});case f.m:return Object.assign({},t,{activeSuggestionIndex:e.index,setSuggestionToSearchField:e.setSuggestionToSearchField});case f.l:var o=t.activeSuggestionIndex;return e.direction===f.a?null===o&&t.suggestions.length>0?o=0:o===t.suggestions.length-1?o=null:o+=1:e.direction===f.b&&(null===o&&t.suggestions.length>0?o=t.suggestions.length-1:0===o?o=null:o-=1),Object.assign({},t,{visible:!0,activeSuggestionIndex:o,setSuggestionToSearchField:!0});default:return t}},filters:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case m.b:var n=t.allAvailableFilters.slice();if(e.filterObj.type===y.FILTER_TYPE.RANGE){var r={};r[e.filterObj.field]={label:e.filterObj.labelShort?e.filterObj.labelShort:e.filterObj.label},n.push(r)}else if(e.filterObj.options){var i=Object.assign({},e.filterObj.options);n.push(i)}return Object.assign({},t,{allAvailableFilters:n});case m.g:var s=Object.assign({},t.activeFilters);return s[e.filterName]?delete s[e.filterName]:s[e.filterName]=e.value,Object.assign({},t,{activeFilters:s,refreshSearch:!1!==e.refreshSearch});case m.e:var a=Object.assign({},t.activeRangeFilters);return a[e.field]={},null!==e.from&&(a[e.field].gte=e.from),null!==e.to&&(a[e.field].lte=e.to),null===e.from&&null===e.to&&delete a[e.field],Object.assign({},t,{activeRangeFilters:a,refreshSearch:!0});case m.a:return Object.assign({},t,{activeFacets:{},activeFilters:{},activeRangeFilters:{},refreshSearch:!1!==e.refreshSearch});case m.d:return Object.assign({},t,{activeFilters:e.json||{},refreshSearch:!1});case m.c:return Object.assign({},t,{activeFacets:e.json||{},refreshSearch:!1});case m.f:var o=Object.assign({},t.activeFacets);return o[e.field]||(o[e.field]={}),o[e.field][e.value]?delete o[e.field][e.value]:o[e.field][e.value]="true",o.v=o.v?o.v+1:1,Object.assign({},t,{activeFacets:o,refreshSearch:!1!==e.refreshSearch});default:return t}},keyword:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case S.a:return Object.assign({},t,{value:e.value,skipAutocomplete:!0===e.skipAutocomplete,searchFieldContainerId:e.searchFieldContainerId});default:return t}},pagination:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case O.a:return Object.assign({},t,{page:e.page});default:return t}},search:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case x.e:return Object.assign({},t,{started:!0});case x.a:return Object.assign({},t,{keyword:null,results:{},loading:!1,dropReturningResults:!0});case x.b:return Object.assign({},t,{loading:!0,dropReturningResults:!1});case x.c:if(t.started||console.log("WARNING: AddSearch UI not started with the start() function"),!0===t.dropReturningResults)return t;if(0===e.keyword.indexOf(E.WARMUP_QUERY_PREFIX))return Object.assign({},t,{loading:!1});var n=e.results;if(!0===e.appendResults&&t.results.hits){var r=[].concat(P(t.results.hits),P(e.results.hits));n.hits=r}return Object.assign({},t,{keyword:e.keyword,results:n,loading:!1});case x.d:return Object.assign({},t,{searchResultsPageUrl:e.url});default:return t}},segmentedsearch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case R.c:var n=j(t.pendingSegments);return-1===n.indexOf(e.jsonKey)&&n.push(e.jsonKey),Object.assign({},t,{pendingSegments:n,dropReturningResults:!1});case R.b:if(0===e.keyword.indexOf(E.WARMUP_QUERY_PREFIX)||!0===t.dropReturningResults)return t;var r={};r[e.jsonKey]=e.results;var i=j(t.pendingSegments);return-1!==i.indexOf(e.jsonKey)&&i.splice(i.indexOf(e.jsonKey),1),Object.assign({},t,r,{pendingSegments:i});case R.a:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return t}},sortby:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case T.b:return Object.assign({},t,{field:e.field,order:e.order});default:return t}},configuration:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;return t}});function M(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var H=M();H.withExtraArgument=M;var B=H;function D(t){var e={configuration:t},n=p;return t.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(n=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),h(F,e,n(function(){for(var t=arguments.length,e=new Array(t),n=0;n0){var r=null;e.length>1&&(r=(r=e[1]||"").replace(/\+/g,"%20"),r=decodeURIComponent(r)),n[e[0]]=r}})),n}function g(t){try{return JSON.parse(t)}catch(t){}return null}function v(t){return Object.keys(t).length>0?JSON.stringify(t):null}function m(t,e){-1===t.indexOf("?")?window.location.href=t+"?"+c.SEARCH+"="+encodeURIComponent(e):window.location.href=t+"&"+c.SEARCH+"="+encodeURIComponent(e)}},function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return d}));var r=n(11),i=n(4),s=n(10),a="START",o="SET_SEARCH_RESULTS_PAGE_URL",c="SEARCH_FETCH_START",l="SEARCH_RESULTS",u="CLEAR_SEARCH_RESULTS";function h(){return{type:a}}function p(t,e,n,a,o,h,p){return Object(i.e)(i.a.SEARCH,e,o,h),e&&""!==e?function(i){i({type:c}),t.search(e,(function(o){if(p&&o&&o.hits&&o.hits.length){var c=p.replace("custom_fields.",""),u=o.hits.find((function(t){return t.custom_fields&&t.custom_fields[c]&&e.toLowerCase()===t.custom_fields[c].toLowerCase()}));u&&(window.location.href=u.url)}i(function(t,e,n,i,a){"top"===i&&window.scrollTo(0,0);if(e&&-1===e.indexOf(r.WARMUP_QUERY_PREFIX)){var o=n?n.total_hits:0,c=n?n.processing_time_ms:0;Object(s.c)(t,e,o,c)}return{type:l,keyword:e,results:n,appendResults:a}}(t,e,o,n,a))}))}:{type:u}}function f(t){return"top"===t&&window.scrollTo(0,0),{type:u}}function d(t){return{type:o,url:t}}},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=t.querySelectorAll("["+e+"]"),s=0;s":">",'"':""","'":"'","`":"`","=":"="},i=/[&<>"'`=]/g,s=/[&<>"'`=]/;function a(t){return r[t]}function o(t){for(var e=1;e0)for(var r=0;r \n {{#each active}}\n
{{label}}
\n {{/each}}\n {{#if clearAll}}\n {{#gt active.length 1}}\n
\n {{/gt}}\n {{/if}}\n \n')(u);if(this.renderedHtml!==d){var g=document.getElementById(this.conf.containerId);g.innerHTML=d,this.renderedHtml=d;for(var v=g.querySelectorAll("[data-type]"),m=0;m\n
    \n {{#each facets}}\n
  • \n \n
  • \n {{/each}}\n
\n \n')(o);if(this.renderedHtml!==c||s!==this.renderedActiveFacets){this.renderedActiveFacets=s;var l=document.getElementById(this.conf.containerId);l.innerHTML=c,this.renderedHtml=c;for(var u=l.getElementsByTagName("input"),h=0;h0&&n.and.push(i)})),t.activeRangeFilters)n.and.push({range:_({},i,Object.assign({},t.activeRangeFilters[i]))});for(var s in t.activeFacets){var a={or:[]};for(var o in t.activeFacets[s]){var c={};c[s]=o,a.or.push(c)}a.or.length>0&&n.and.push(a)}return n.and.length>0?n:null}var x=function(){function t(e,n,r,i,s){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.client=e,this.reduxStore=n,this.createFilterObjectFunction=r,this.onFilterChange=i,Object(l.b)(this.reduxStore,"filters",(function(t){return a.onFilterStateChange(t,s)}))}var e,n,r;return e=t,(n=[{key:"onFilterStateChange",value:function(t,e){if(t.refreshSearch){Object(k.e)(k.a.FILTERS,Object(k.c)(t.activeFilters),null,this.reduxStore),Object(k.e)(k.a.FACETS,Object(k.c)(t.activeFacets),null,this.reduxStore);var n=this.createFilterObjectFunction(t,e);this.client.setFilterObject(n);var r=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch(Object(S.b)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch(Object(v.g)(this.client,r,null,null,null,this.reduxStore))}this.onFilterChange&&this.onFilterChange(t.activeFilters)}}])&&O(e.prototype,n),r&&O(e,r),t}(),P=n(19);n(57);function w(t,e){for(var n=0;ne)return null;for(var n=[],r=0;r9&&t<7)return n.slice(0,9);if(e>9&&t>=e-3)return n.slice(e-9);var i=n.indexOf(t);return i-4>=0&&i+5<=n.length?n.slice(i-4,i+5):null}(n,s),c={currentPage:n,lastPage:o?o[o.length-1]:0,totalPages:s,pages:o},l=a.a.compile(this.conf.template||'\n
\n {{#gt currentPage 1}}\n \n {{/gt}}\n {{#each pages}}\n \n {{/each}}\n {{#lt currentPage lastPage}}\n \n {{/lt}}\n
\n')(c);if(this.renderedHtml!==l){var u=document.getElementById(this.conf.containerId);u.innerHTML=l,this.renderedHtml=l;for(var h=u.getElementsByTagName("button"),p=0;p0&&t.setSuggestionToSearchField)if(null!==t.activeSuggestionIndex&&t.setSuggestionToSearchField){var e=t.suggestions[t.activeSuggestionIndex].value;this.render(e)}else null===t.activeSuggestionIndex&&this.render(this.reduxStore.getState().keyword.value)}},{key:"executeSearch",value:function(t,e,n){this.reduxStore.dispatch(Object(R.s)());var r=e;""===r&&this.matchAllQuery&&(r=Q),0!==r.indexOf(W)&&this.reduxStore.dispatch(Object(S.b)(t,1,null,this.reduxStore)),this.onSearch(r,!1,n,this.conf.fieldForInstantRedirect)}},{key:"redirectOrSearch",value:function(t){var e=this.reduxStore.getState().search.searchResultsPageUrl;e&&!0!==this.conf.ignoreSearchResultsPageUrl&&t&&t.length>0?Object(k.d)(e,t):this.executeSearch(this.client,t,!1)}},{key:"render",value:function(t){var e=this,n=document.getElementById(this.conf.containerId);n.querySelector("input")?null!==t&&t!==Q&&n.querySelector("input").value!==t&&(n.querySelector("input").value=t):(n.innerHTML=a.a.compile(this.conf.template||'\n
\n \n
\n')(this.conf),this.field=n.querySelector("input"),t!==Q&&(this.field.value=t),this.field.oninput=function(t){return e.oninput(t)},this.field.onkeypress=function(t){return e.onkeypress(t)},this.field.onkeyup=function(t){return e.onkeyup(t)},this.field.onfocus=function(t){return e.onfocus(t)},this.field.onblur=function(t){return setTimeout((function(){return e.onblur()}),200)},n.querySelector("button")&&(n.querySelector("button").onclick=function(){var t=e.field.value;""===t&&e.matchAllQuery&&(t=Q),e.reduxStore.dispatch(Object(j.b)(t,!0)),e.reduxStore.dispatch(Object(R.o)()),e.redirectOrSearch(t)}),n.querySelector("form")&&(n.querySelector("form").onsubmit=function(t){return t.preventDefault()}),!1!==this.conf.autofocus&&!1===this.firstRenderDone&&(this.field.focus(),this.firstRenderDone=!0))}},{key:"oninput",value:function(t){var e=this.reduxStore,n=t.target.value;""===n&&this.matchAllQuery&&(n=Q),t.keyCode!==N&&t.keyCode!==F||e.dispatch(Object(R.u)(null,!1));var r=!0===this.conf.ignoreAutocomplete;e.dispatch(Object(j.b)(n,r,this.conf.containerId)),!0===this.conf.searchAsYouType&&this.executeSearch(this.client,n,!0)}},{key:"onkeyup",value:function(t){var e=this.reduxStore;t.keyCode===C?e.dispatch(Object(R.t)(R.a)):t.keyCode===T&&e.dispatch(Object(R.t)(R.b))}},{key:"onkeypress",value:function(t){if(t.keyCode===L){var e=this.reduxStore,n=t.target.value;e.dispatch(Object(j.b)(n,!0)),e.dispatch(Object(R.o)()),this.redirectOrSearch(n)}}},{key:"onfocus",value:function(t){""===t.target.value&&(this.conf.onfocusAutocompleteMatchAllQuery?this.reduxStore.dispatch(Object(j.b)(Q,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,W+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch(Object(R.q)())}},{key:"onblur",value:function(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch(Object(R.o)())}}])&&I(e.prototype,n),r&&I(e,r),t}(),H=(n(59),n(10)),B=n(14);function D(t,e){for(var n=0;n\n {{#gt page 1}}Page {{../page}} of {{/gt}}\n {{total_hits}}{{#equals total_hits 10000}}+{{/equals}} results\n \n'),a.a.registerPartial("searchResultImageTemplate",this.conf.template_image||'\n \n {{#if images.main}}{{title}}\n {{else if style.image_url}}{{title}}{{/if}} \n \n'),a.a.registerHelper("removeTrailingQueriesFromUrl",(function(t){return t.replace(/\?.*$/,"")}));var s=this.conf.categorySelectionFunction||B.a;a.a.registerHelper("selectCategory",(function(t){return s(t,i.conf.categoryAliases)})),Object(c.b)(r.containerId)&&Object(l.b)(this.reduxStore,"search",(function(){return i.render()}))}var e,n,r;return e=t,(n=[{key:"render",value:function(){var t=this.reduxStore.getState().search,e=t.results||{};e.resultcount=e.hits&&!1!==this.conf.showNumberOfResults,e.keyword=t.keyword;var n=this.conf.template||'\n
\n {{#if resultcount}}\n {{> numberOfResultsTemplate }}\n {{/if}}\n \n {{#each hits}}\n
\n

\n {{#if title}} {{title}} {{else}} {{removeTrailingQueriesFromUrl url}} {{/if}}\n

\n
\n {{> searchResultImageTemplate}}\n {{{highlight}}}{{#not type "PROMOTED"}}…{{/not}}\n
\n {{#gt categories.length 1}}\n
\n {{selectCategory ..}}\n
\n {{/gt}}\n
\n {{/each}}\n
\n';e.hits&&0===e.hits.length&&(n=this.conf.template_noresults||'\n
\n

No search results with keyword {{keyword}}

\n
\n');var r=a.a.compile(n)(e);if(this.renderedHtml!==r){var i=document.getElementById(this.conf.containerId);i.innerHTML=r,this.renderedHtml=r;var s=i.querySelectorAll("[data-analytics-click]");Object(H.a)(this.client,s,e)}}}])&&D(e.prototype,n),r&&D(e,r),t}();function $(t,e){for(var n=0;ni?n[i]:"").replace(/^[0-9]+[x]{1}/,""),i++}while(r.length<3&&n.length>i);return e&&e[r]?e[r]:r.replace(/[-_]+/g," ")}var a=null;function o(){var t=this;c("equals",(function(e,n,r){return e+""==n+""?r.fn(t):r.inverse(t)})),c("not",(function(e,n,r){return e+""!=n+""?r.fn(t):r.inverse(t)})),c("gt",(function(e,n,r){return e>n?r.fn(t):r.inverse(t)})),c("lt",(function(e,n,r){return e\n
\n {{#each options}}\n \n {{/each}}\n
\n \n';else if(this.conf.type===d.TAGS)o='\n
\n {{#each options}}\n \n {{/each}}\n
\n';else if(this.conf.type===d.CHECKBOX_GROUP)o='\n
\n {{#each options}}\n \n {{/each}}\n
\n';else if(this.conf.type===d.RADIO_GROUP)o='\n
\n {{#each options}}\n \n {{/each}}\n
\n';else if(this.conf.type===d.SELECT_LIST)o='\n
\n \n
\n';else if(this.conf.type===d.RANGE){t.activeRangeFilters[this.conf.field]&&(n.from=t.activeRangeFilters[this.conf.field].gte,n.to=t.activeRangeFilters[this.conf.field].lte);var l=this.reduxStore.getState().search.results;if(l&&l.fieldStats&&l.fieldStats[this.conf.field]){var u=l.fieldStats[this.conf.field],h=u.min,p=u.max;n.fromPlaceholder="Infinity"===h?"":h,n.toPlaceholder="-Infinity"===p?"":p}o='\n
\n \n - \n {{#or from to}}{{/or}}\n
\n'}var f=i.a.compile(this.conf.template||o)(n);if(this.renderedHtml!==f){var g=document.getElementById(this.conf.containerId);if(g.innerHTML=f,this.renderedHtml=f,this.conf.type===d.SELECT_LIST)g.querySelector("select").addEventListener("change",(function(t){return e.singleActiveChangeEvent(t.target.value)}));else if(this.conf.type===d.TABS)for(var v=g.querySelectorAll("[data-filter]"),m=0;m= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function u(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},a.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:c.default,log:c.default.log,registerHelper:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===i.toString.call(t))i.extend(this.partials,t);else{if(void 0===e)throw new s.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}};var h=c.default.log;e.log=h,e.createFrame=i.createFrame,e.logger=c.default},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d})),n.d(e,"AUTOCOMPLETE_TYPE",(function(){return g}));n(54);var r=n(3),i=n.n(r),s=n(0),a=n(5),o=n(7),c=n(2),l=n(6),u=n(10),h=n(4),p=n(14);function f(t,e){for(var n=0;n\n {{#gt suggestions.length 0}}\n
    \n {{#each ../suggestions}}\n
  • \n {{value}}\n
  • \n {{/each}}\n
\n {{/gt}}\n \n')(s);if(this.renderedHtml!==a){var o=document.getElementById(this.conf.containerId);o.innerHTML=a,this.renderedHtml=a;for(var c=o.querySelector(".suggestions")?o.querySelectorAll(".suggestions > li"):[],l=0;l0&&Math.ceil(t.offsetHeight+t.scrollTop)>=t.scrollHeight){var e=this.reduxStore.getState().keyword.value;this.loadMore(e)}}}}])&&f(e.prototype,n),r&&f(e,r),t}(),g={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS"}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u})),n.d(e,"LOAD_MORE_TYPE",(function(){return h}));n(56);var r=n(3),i=n.n(r),s=n(8),a=n(5),o=n(2),c=n(6);function l(t,e){for(var n=0;n\n {{#if isLoading}}\n {{#gt totalHits 0}}\n Loading more..\n {{/gt}}\n {{else if hasMorePages}}\n {{#equals type "BUTTON"}}\n \n {{/equals}}\n {{#equals type "INFINITE_SCROLL"}}\n \n {{/equals}}\n {{/if}}\n \n')(o);if(this.renderedHtml!==c){var l=document.getElementById(this.conf.containerId);if(l.innerHTML=c,this.renderedHtml=c,this.conf.type===h.BUTTON){var u=l.querySelector("button");u&&(u.onclick=function(t){return e.loadMore()})}else this.conf.type===h.INFINITE_SCROLL&&this.conf.infiniteScrollElement.tagName&&1===t.results.page&&!t.loading&&(this.conf.infiniteScrollElement.scrollTop=0)}}},{key:"loadMore",value:function(){var t=(this.reduxStore.getState().pagination.page||1)+1;this.reduxStore.dispatch(Object(s.b)(this.client,t,!1,this.reduxStore));var e=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch(Object(a.g)(this.client,e,null,!0,null,this.reduxStore))}},{key:"onScroll",value:function(){var t=this.reduxStore.getState().search.loading,e=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!t&&e)if(this.conf.infiniteScrollElement.tagName){var n=this.conf.infiniteScrollElement;Math.ceil(n.offsetHeight+n.scrollTop)>=n.scrollHeight&&this.loadMore()}else{var r=window.innerHeight,i=e.getBoundingClientRect().top;i>0&&i\n {{#each options}}\n \n {{/each}}\n \n':'\n
\n \n
\n';var a=Object.assign({},this.conf);a.options.forEach((function(t){t.sortBy===n&&t.order===r?t.active=!0:t.active=!1}));var o=i.a.compile(s)(a);if(this.renderedHtml!==o){var c=document.getElementById(this.conf.containerId);if(c.innerHTML=o,this.renderedHtml=o,this.conf.type===p.RADIO_GROUP)for(var l=c.querySelectorAll("input"),u=0;u=0?e:parseInt(t,10)}return t},log:function(t){if(t=i.lookupLevel(t),"undefined"!=typeof console&&i.lookupLevel(i.level)<=t){var e=i.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):i(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return s(e,n)}))},t.exports=e.default},function(t,e,n){"use strict";(function(r){e.__esModule=!0;var i,s=n(9),a=n(12),o=(i=a)&&i.__esModule?i:{default:i};e.default=function(t){t.registerHelper("each",(function(t,e){if(!e)throw new o.default("Must pass iterator to #each");var n,i=e.fn,a=e.inverse,c=0,l="",u=void 0,h=void 0;function p(e,n,r){u&&(u.key=e,u.index=n,u.first=0===n,u.last=!!r,h&&(u.contextPath=h+e)),l+=i(t[e],{data:u,blockParams:s.blockParams([t[e],e],[h+e,null])})}if(e.data&&e.ids&&(h=s.appendContextPath(e.data.contextPath,e.ids[0])+"."),s.isFunction(t)&&(t=t.call(this)),e.data&&(u=s.createFrame(e.data)),t&&"object"==typeof t)if(s.isArray(t))for(var f=t.length;c=o.LAST_COMPATIBLE_COMPILER_REVISION&&e<=o.COMPILER_REVISION)return;if(e2&&S.push("'"+this.terminals_[m]+"'");_=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:u,expected:S})}}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+d+", token: "+p);switch(g[0]){case 1:n.push(p),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),p=null,f?(p=f,f=null):(c=this.lexer.yyleng,a=this.lexer.yytext,o=this.lexer.yylineno,u=this.lexer.yylloc,l>0&&l--);break;case 2:if(y=this.productions_[g[1]][1],O.$=r[r.length-y],O._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},h&&(O._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),void 0!==(v=this.performAction.call(O,a,c,o,this.yy,g[1],r,i)))return v;y&&(n=n.slice(0,-1*y*2),r=r.slice(0,-1*y),i=i.slice(0,-1*y)),n.push(this.productions_[g[1]][0]),r.push(O.$),i.push(O._$),b=s[n[n.length-2]][n[n.length-1]],n.push(b);break;case 3:return!0}}return!0}},e=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;ae[0].length)||(e=n,r=a,this.options.flex));a++);return e?((i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,s[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,n,r){function i(t,n){return e.yytext=e.yytext.substring(t,e.yyleng-n+t)}switch(n){case 0:if("\\\\"===e.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(e.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return e.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return e.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return e.yytext=e.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return t}();function n(){this.yy={}}return t.lexer=e,n.prototype=t,t.Parser=n,new n}();e.default=r,t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(27),s=(r=i)&&r.__esModule?r:{default:r};function a(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=t}function o(t,e,n){void 0===e&&(e=t.length);var r=t[e-1],i=t[e-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function c(t,e,n){void 0===e&&(e=-1);var r=t[e+1],i=t[e+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function l(t,e,n){var r=t[null==e?0:e+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function u(t,e,n){var r=t[null==e?t.length-1:e-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}a.prototype=new s.default,a.prototype.Program=function(t){var e=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=t.body,i=0,s=r.length;i0)throw new s.default("Invalid path: "+r,{loc:n});".."===l&&a++}}return{type:"PathExpression",data:t,depth:a,parts:i,original:r,loc:n}},e.prepareMustache=function(t,e,n,r,i,s){var a=r.charAt(3)||r.charAt(2),o="{"!==a&&"&"!==a;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:t,params:e,hash:n,escaped:o,strip:i,loc:this.locInfo(s)}},e.prepareRawBlock=function(t,e,n,r){a(t,n),r=this.locInfo(r);var i={type:"Program",body:e,strip:{},loc:r};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},e.prepareBlock=function(t,e,n,r,i,o){r&&r.path&&a(t,r);var c=/\*/.test(t.open);e.blockParams=t.blockParams;var l=void 0,u=void 0;if(n){if(c)throw new s.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),u=n.strip,l=n.program}i&&(i=l,l=e,e=i);return{type:c?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(o)}},e.prepareProgram=function(t,e){if(!e&&t.length){var n=t[0].loc,r=t[t.length-1].loc;n&&r&&(e={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:t,strip:{},loc:e}},e.preparePartialBlock=function(t,e,n,r){return a(t,n),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var r,i=n(12),s=(r=i)&&r.__esModule?r:{default:r};function a(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var n={loc:t.path.loc};throw new s.default(t.path.original+" doesn't match "+e,n)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.Compiler=c,e.precompile=function(t,e,n){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);"data"in(e=e||{})||(e.data=!0);e.compat&&(e.useDepths=!0);var r=n.parse(t,e),s=(new n.Compiler).compile(r,e);return(new n.JavaScriptCompiler).compile(s,e)},e.compile=function(t,e,n){void 0===e&&(e={});if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);"data"in(e=s.extend({},e))||(e.data=!0);e.compat&&(e.useDepths=!0);var r=void 0;function a(){var r=n.parse(t,e),i=(new n.Compiler).compile(r,e),s=(new n.JavaScriptCompiler).compile(i,e,void 0,!0);return n.template(s)}function o(t,e){return r||(r=a()),r.call(this,t,e)}return o._setup=function(t){return r||(r=a()),r._setup(t)},o._child=function(t,e,n,i){return r||(r=a()),r._child(t,e,n,i)},o};var i=r(n(12)),s=n(9),a=r(n(26)),o=[].slice;function c(){}function l(t,e){if(t===e)return!0;if(s.isArray(t)&&s.isArray(e)&&t.length===e.length){for(var n=0;n1)throw new i.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,s="SubExpression"===t.name.type;s&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){u(t);var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,e,n){var r=t.path,i=r.parts[0],s=null!=e||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,s)},simpleSexpr:function(t){var e=t.path;e.strict=!0,this.accept(e),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,n){var r=this.setupFullMustacheParams(t,e,n),s=t.path,o=s.parts[0];if(this.options.knownHelpers[o])this.opcode("invokeKnownHelper",r.length,o);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+o,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",r.length,s.original,a.default.helpers.simpleId(s))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],n=a.default.helpers.scopedId(t),r=!t.depth&&!n&&this.blockParamIndex(e);r?this.opcode("lookupBlockParam",r,t.parts):e?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var e=t.pairs,n=0,r=e.length;for(this.opcode("pushHash");n=0)return[e,i]}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(17),s=r(n(12)),a=n(9),o=r(n(53));function c(t){this.value=t}function l(){}l.prototype={nameLookup:function(t,e){return this.internalNameLookup(t,e)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=i.COMPILER_REVISION;return[t,i.REVISION_CHANGES[t]]},appendToBuffer:function(t,e,n){return a.isArray(t)||(t=[t]),t=this.source.wrap(t,e),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,e){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(e),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,e,n,r){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var i=t.opcodes,a=void 0,o=void 0,c=void 0,l=void 0;for(c=0,l=i.length;c0&&(n+=", "+r.join(", "));var i=0;Object.keys(this.aliases).forEach((function(t){var r=e.aliases[t];r.children&&r.referenceCount>1&&(n+=", alias"+ ++i+"="+t,r.children[0]="alias"+i)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var a=this.mergeSource(n);return t?(s.push(a),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",a,"}"])},mergeSource:function(t){var e=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,s=void 0,a=void 0;return this.source.each((function(t){t.appendToBuffer?(s?t.prepend(" + "):s=t,a=t):(s&&(i?s.prepend("buffer += "):r=!0,a.add(";"),s=a=void 0),i=!0,e||(n=!1))})),n?s?(s.prepend("return "),a.add(";")):i||this.source.push('return "";'):(t+=", buffer = "+(r?"":this.initializeBuffer()),s?(s.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(e,"call",n))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)];this.setupHelperArgs("",0,e,!0),this.flushInline();var n=this.topStack();e.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",e),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack((function(t){return[" != null ? ",t,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[i++])),this.resolvePath("context",t,i,e,n)},lookupBlockParam:function(t,e){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1)},lookupData:function(t,e,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",e,0,!0,n)},resolvePath:function(t,e,n,r,i){var s=this;if(this.options.strict||this.options.assumeObjects)this.push(function(t,e,n,r){var i=e.popStack(),s=0,a=n.length;t&&a--;for(;sthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,n=t.length;e