enqueueScripts([function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([[5],{36:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n-1&&this.setState({canRenderHTML:!1})}},{key:"componentDidMount",value:function(){var e=this;this.setState({canRenderHTML:!0},(function(){e.insertScriptsIfNeeded(),e.prepareAnchors()}))}},{key:"componentWillReceiveProps",value:function(e){e.html!==this.props.html&&(this.scriptElements=l(this.scriptElements))}},{key:"shouldComponentUpdate",value:function(e,t){return e.html!==this.props.html||t.canRenderHTML!==this.state.canRenderHTML}},{key:"componentDidUpdate",value:function(e,t){(e.html!==this.props.html||!t.canRenderHTML&&this.state.canRenderHTML)&&(this.insertScriptsIfNeeded(),this.prepareAnchors())}},{key:"componentWillUnmount",value:function(){this.scriptElements=l(this.scriptElements)}},{key:"insertScriptsIfNeeded",value:function(){var e=this.props.html;e.indexOf("script")>-1&&this.element&&(this.element.innerHTML=e,function e(t,n){if("SCRIPT"!==t.tagName||t.id&&0===t.id.indexOf("script-"))for(var r=0,i=t.childNodes;r=t||n<0||v&&e-l>=o}function T(){var e=h();if(_(e))return M(e);u=setTimeout(T,function(e){var n=t-(e-c);return v?p(n,o-(e-l)):n}(e))}function M(e){return u=void 0,y&&r?b(e):(r=i=void 0,a)}function O(){var e=h(),n=_(e);if(r=arguments,i=this,c=e,n){if(void 0===u)return g(c);if(v)return u=setTimeout(T,t),b(c)}return void 0===u&&(u=setTimeout(T,t)),a}return t=d(t)||0,m(n)&&(s=!!n.leading,o=(v="maxWait"in n)?f(d(n.maxWait)||0,t):o,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=c=i=u=void 0},O.flush=function(){return void 0===u?a:M(h())},O}}}]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([[0],{11:function(e,t,o){"use strict";o.d(t,"a",(function(){return i})),o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return c})),o.d(t,"e",(function(){return d})),o.d(t,"d",(function(){return p}));var n,r=o(5),i="ciudad";!function(e){e.ALWAYS="always",e.NEVER="never",e.MOBILE="mobile",e.TABLET="tablet",e.DESKTOP="desktop"}(n||(n={}));var a=Object(r.defineMessages)({responsiveOptionAlways:{id:"admin/editor.dependency-selector.responsiveOptionAlways"},responsiveOptionNever:{id:"admin/editor.dependency-selector.responsiveOptionNever"},responsiveOptionMobile:{id:"admin/editor.dependency-selector.responsiveOptionMobile"},responsiveOptionDesktop:{id:"admin/editor.dependency-selector.responsiveOptionDesktop"},responsiveOptionTablet:{id:"admin/editor.dependency-selector.responsiveOptionTablet"}}),c={ALWAYS:{title:a.responsiveOptionAlways.id,value:n.ALWAYS},NEVER:{title:a.responsiveOptionNever.id,value:n.NEVER},MOBILE:{title:a.responsiveOptionMobile.id,value:n.MOBILE},TABLET:{title:a.responsiveOptionTablet.id,value:n.TABLET},DESKTOP:{title:a.responsiveOptionDesktop.id,value:n.DESKTOP}},b=o(2),l=o(0),s=o(4),u=["store.search"];function d(e){var t,o=Object(s.useRuntime)(),n=o.navigate,r=o.page,i=o.history,a=o.query,c=e.city,d=e.configCityFilter,p=Object(l.useRef)(null),g=null===(t=null==i?void 0:i.location)||void 0===t?void 0:t.pathname,f=null==d?void 0:d.facetName,m=String((null==a?void 0:a.map)||""),v=Object(l.useMemo)((function(){return f&&function(e){return u.includes(e.split("#")[0])}(r)}),[r,f]),w=Object(l.useMemo)((function(){return m.includes(f)}),[a,f]),y=Object(l.useState)(!1),h=Object(b.a)(y,2),O=h[0],S=h[1];Object(l.useEffect)((function(){if(v){var e=x();if(w)return S(!1);!e&&S(!0)}}),[a,v]),Object(l.useEffect)((function(){if(v&&a&&c){var e=function(e){try{return e.split("/").filter((function(e){return e})).map((function(){return"c"})).join(",")}catch(e){return 0}},t=!(!p.current||c===p.current);if(!w||t)!function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=Object.assign({},a);if(t){var r="".concat(m||e(g),",").concat(f);o.map=r}var i=Object.keys(o).map((function(e){return encodeURIComponent(e)+"="+o[e]})).join("&"),b="".concat(g,"/").concat(c,"?").concat(i),l="".concat(g.replaceAll(p.current,c),"?").concat(i),s=t?b:l,u=x();!u&&n({to:s})}(!w);p.current=c}}),[a,c]);var x=function(){var e=navigator.userAgent;return new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)").test(e)};return{loading:O}}var p=function(e){return{phone:e===n.ALWAYS||e===n.MOBILE,tablet:e===n.ALWAYS||e===n.TABLET,desktop:e===n.ALWAYS||e===n.DESKTOP}}},15:function(e,t,o){"use strict";o.d(t,"d",(function(){return r})),o.d(t,"a",(function(){return i})),o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return b})),o.d(t,"g",(function(){return l})),o.d(t,"e",(function(){return s})),o.d(t,"f",(function(){return u}));var n=o(0),r="geolocation-wrapper-data",i="@setDependency",a="change-dependency",c=Object(n.createContext)(null),b=c.Provider,l=function(){return Object(n.useContext)(c)},s=function(e){return JSON.parse((null===localStorage||void 0===localStorage?void 0:localStorage.getItem(e||r))||"null")},u=function(e,t){return localStorage.setItem(t||r,JSON.stringify(e))}},7:function(e,t,o){"use strict";o.d(t,"b",(function(){return n.d})),o.d(t,"c",(function(){return n.g})),o.d(t,"a",(function(){return S}));var n=o(15),r=o(2),i=o(3),a=o.n(i),c=o(9),b=o.n(c),l=o(0),s=o(13),u=o.n(s),d=o(11),p=o(8),g=o.n(p),f=o(14),m=o.n(f),v=a.a.pathOr,w=["loadingSpinnerOuterContainer","loadingSpinnerInnerContainer"],y=function(e){var t=g()(w),o=v([],["props","children",3],e.children),n=v([],["props","children",0],e.children);return React.createElement(React.Fragment,null,n,React.createElement("div",{className:"".concat(t.loadingSpinnerOuterContainer," w-100 flex justify-center")},React.createElement("div",{className:"".concat(t.loadingSpinnerInnerContainer," w3 ma0")},React.createElement(m.a,null))),o)},h=a.a.pathOr,O=u.a.useOrderForm,S=function(e){var t,o=O(),i=Object(l.useState)(null),a=Object(r.a)(i,2),c=a[0],s=a[1],u=Object(l.useState)(!1),p=Object(r.a)(u,2),g=p[0],f=p[1],m=Object(l.useState)(!1),v=Object(r.a)(m,2),w=v[0],S=v[1],x=Object(l.useState)(null),A=Object(r.a)(x,2),k=A[0],j=A[1],B=Object(l.useMemo)((function(){var e;return(null===(e=null==c?void 0:c.value)||void 0===e?void 0:e.id)||null}),[c]),C=h("",["orderForm","id"],o),E=Object(d.e)(Object.assign(Object.assign({},e),{configCityFilter:k,city:B})).loading;Object(l.useEffect)((function(){var e=Object(n.e)(),o=M();return e&&!o&&s(e.selectedDependency),t=b.a.getEvent(n.a).subscribe((function(e){!M()&&s(e.data)})),function(){t&&t.unsubscribe()}}),[C]);var T=Object(l.useCallback)((function(e){M()||(b.a.sendEvent({name:n.a,data:e}),Object(n.f)(!0,n.c),Object(n.f)({selectedDependency:e}))}),[]),M=function(){var e=navigator.userAgent;return new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)").test(e)},I=Object(l.useMemo)((function(){return{selectedDependency:c,selectedDependencyId:B,isOpenModal:g,showCloseBtn:w,configCityFilter:k,setDependency:T,openModal:f,setShowCloseBtn:S,setConfigCityFilter:j}}),[c,g,w]);return React.createElement(n.b,{value:I},E?React.createElement(y,null,e.children):e.children)};S.displayName="GeolocationWrapper"}}]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([[1],{19:function(e,t,a){"use strict";a.d(t,"b",(function(){return h}));var n=a(2),o=a(3),i=a.n(o),r=a(20),c=a.n(r),l=a(9),u=a.n(l),b=a(0),s=a(51),d=a.n(s),p=a(7),m=a(15),v=i.a.pathOr,f=i.a.path,g=c.a.useLazyQuery,k=Object(b.createContext)(null),y=k.Provider,h=function(){return Object(b.useContext)(k)};t.a=function(e){var t,a=g(d.a),o=Object(n.a)(a,2),i=o[0],r=o[1],c=r.data,l=r.loading,s=v([],["searchQuery","products"],e),k=Object(b.useState)([]),h=Object(n.a)(k,2),w=h[0],S=h[1],x=Object(b.useState)([]),O=Object(n.a)(x,2),N=O[0],I=O[1],j=Object(b.useState)([]),A=Object(n.a)(j,2),B=A[0],C=A[1],D=Object(b.useState)(""),_=Object(n.a)(D,2),E=_[0],T=_[1];Object(b.useEffect)((function(){s&&s.length&&S(s.map((function(e){return v("",["items",0,"itemId"],e)})))}),[s]),Object(b.useEffect)((function(){var e=function(e,t,a,n,o){var r=e||F(),c=t||M(),l=a||G(),u=n||J(),b=o||W(),s=L();w&&w.length&&r&&!s&&i({variables:{data:w.map((function(e){return{sku:e,warehouseId:r,account:c,appKey:l,appToken:u,useWhiteLabel:b}}))}})};return t=u.a.getEvent(m.a).subscribe((function(t){var a=L(),n=f(["data","value","warehouseIds"],t),o=f(["data","value","account"],t),i=f(["data","value","appKey"],t),r=f(["data","value","appToken"],t),c=f(["data","value","useWhiteLabel"],t);!a&&e(n,o,i,r,c),!a&&e(n)})),e(),function(){t&&t.unsubscribe()}}),[w]),Object(b.useEffect)((function(){if(c){var e=v([],["inventoryProducts"],c);I(e)}}),[c]);var L=function(){var e=navigator.userAgent;return new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)").test(e)},P=Object(b.useCallback)((function(e){var t=null,a=N.find((function(t){return t.sku===e}));return a&&(t=a.availableQuantity),t}),[N]),F=function(){var e=JSON.parse(localStorage.getItem(p.b)||"{}");return v("",["selectedDependency","value","warehouseIds"],e)},G=function(){var e=JSON.parse(localStorage.getItem(p.b)||"{}");return v("",["selectedDependency","value","appKey"],e)},J=function(){var e=JSON.parse(localStorage.getItem(p.b)||"{}");return v("",["selectedDependency","value","appToken"],e)},M=function(){var e=JSON.parse(localStorage.getItem(p.b)||"{}");return v("floria",["selectedDependency","value","account"],e)},W=function(){var e=JSON.parse(localStorage.getItem(p.b)||"{}");return v(!1,["selectedDependency","value","useWhiteLabel"],e)},z={getInventoryBySku:P,productByWarehouse:N,loading:l,products:s,getWarehouseIds:F,getAppKey:G,getAppToken:J,getAccount:M,getUseWhiteLabel:W,cities:B,setCities:C,selectedCity:E,setSelectedCity:T};return React.createElement(y,{value:z},e.children)}},51:function(e,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InventoryProductsInput"}}}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"floria.geolocation@0.1.6",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inventoryProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"1fb11337f54ddc73d134abaac3c5c56c1c2447b6b0ab8b6602d0b0e33e551f46",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availableQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:261}};a.loc.source={body:'query ($data: [InventoryProductsInput!]) @context(sender: "floria.geolocation@0.1.6") {\n inventoryProducts(data: $data) @runtimeMeta(hash: "1fb11337f54ddc73d134abaac3c5c56c1c2447b6b0ab8b6602d0b0e33e551f46") {\n availableQuantity\n sku\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};a.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,a){if("FragmentSpread"===t.kind)a.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&a.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,a)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,a)})),t.definitions&&t.definitions.forEach((function(t){e(t,a)}))}(e,t),n[e.name.value]=t}})),e.exports=a}}]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([[4],{18:function(e,t,n){e.exports={dsBackdrop:"floria-geolocation-0-x-dsBackdrop",dsMain:"floria-geolocation-0-x-dsMain",dsSelectorContainer:"floria-geolocation-0-x-dsSelectorContainer",dsLogo:"floria-geolocation-0-x-dsLogo",dsTitle:"floria-geolocation-0-x-dsTitle",dsSelectContainer:"floria-geolocation-0-x-dsSelectContainer",dsSelector:"floria-geolocation-0-x-dsSelector",dsButton:"floria-geolocation-0-x-dsButton",dsCancelButton:"floria-geolocation-0-x-dsCancelButton",dsCancelButtonSvg:"floria-geolocation-0-x-dsCancelButtonSvg"}},28:function(e,t,n){"use strict";n(31);var i=n(42);n.o(i,"activeRenderContainerScroll")&&n.d(t,"activeRenderContainerScroll",(function(){return i.activeRenderContainerScroll})),n.o(i,"getOptions")&&n.d(t,"getOptions",(function(){return i.getOptions})),n.o(i,"sendDependencySelectorData")&&n.d(t,"sendDependencySelectorData",(function(){return i.sendDependencySelectorData})),n.o(i,"subscribeDependencySelectorData")&&n.d(t,"subscribeDependencySelectorData",(function(){return i.subscribeDependencySelectorData}));var a=n(43);n.d(t,"activeRenderContainerScroll",(function(){return a.a})),n.d(t,"getOptions",(function(){return a.b})),n.d(t,"sendDependencySelectorData",(function(){return a.c})),n.d(t,"subscribeDependencySelectorData",(function(){return a.d}))},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i="@DependencySelectorData"},34:function(e,t,n){"use strict";var i=n(44);n.d(t,"DependencySelector",(function(){return i.a})),n.d(t,"Select",(function(){return i.b}));n(45);var a=n(28);n.o(a,"subscribeDependencySelectorData")&&n.d(t,"subscribeDependencySelectorData",(function(){return a.subscribeDependencySelectorData}))},42:function(e,t){},43:function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return p}));var i=n(50),a=n(2),o=n(35),l=n(9),c=n.n(l),r=n(6),s=n(31),d=function(e){var t=null;return{options:e.map((function(e){var n,l=e.label,c=Object(o.a)(e,["label"]),s=null===(n=c.value)||void 0===n?void 0:n.split(/\n/).reduce((function(e,t){var n=t.split(":"),o=Object(a.a)(n,2),l=o[0],c=o[1];return Object.assign(Object.assign({},e),l&&Object(i.a)({},l,c.trim()))}),{}),d={label:l,value:Object.assign(Object.assign({},s),{useWhiteLabel:Object(r.pathOr)(!1,["useWhiteLabel"],c),appKey:Object(r.pathOr)("",["appKey"],s),account:Object(r.pathOr)("floria",["account"],s),appToken:Object(r.pathOr)("",["appToken"],s)})};return(null==c?void 0:c.isDefault)&&(t=d),d})),defaultOption:t}},u=function(e){var t=document.getElementsByClassName("render-container")[0];e?(t.style.height="inherit",t.style.overflow="inherit"):(t.style.height="100vh",t.style.overflow="hidden")};function m(e){c.a.sendEvent({name:s.a,data:e})}function p(e){return c.a.getEvent(s.a).subscribe((function(t){return e(t.data)}))}},44:function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return w}));var i=n(38),a=n.n(i),o=n(29),l=n.n(o),c=n(0),r=n.n(c),s=n(36),d=n.n(s),u=n(16),m=n.n(u),p=n(25),b=n.n(p),f=n(26),g=n.n(f),v=n(11),y=n(18),C=n.n(y),h=n(23),O=n(39),D=n.n(O),j=n(40),S=n.n(j),w=Object(c.memo)((function(e){var t=e.buttonTitle,n=e.placeholder,i=e.classes,a=e.onAccept;return r.a.createElement("div",{className:i.main},r.a.createElement("div",{className:i.select},r.a.createElement(S.a,Object(h.a)({},e,{placeholder:n||"Selecciona una elemento",multi:!1}))),r.a.createElement("div",{className:i.acceptButton},r.a.createElement(D.a,{variation:"primary",onClick:a},t)))})),k=Object(c.memo)((function(e){var t,n,i,o,c,s,u=m()().isMobile,p=b()(Object(v.d)(null===(t=null==e?void 0:e.customContent)||void 0===t?void 0:t.before.show)),f=b()(Object(v.d)(null===(n=null==e?void 0:e.customContent)||void 0===n?void 0:n.after.show)),y=e.title,h=e.logo,O=e.buttonTitle,D=e.backdrop,j=e.selectorContainerClasses,S=e.customContent,k=e.showCloseBtn,B=e.selectError,I=e.selectPlaceholder,_=e.options,E=e.selectedOption,T=e.isOpen,N=e.open,M=e.handleSelectChange,x=e.handleAcceptButton,A=u?null==D?void 0:D.image.mobile:null==D?void 0:D.image.desktop,L=a()((function(){return k&&N(!1)})),P=l()(C.a.dsBackdrop,!!(null==D?void 0:D.classes)&&D.classes),R=Object.assign({},(null==D?void 0:D.image)&&{backgroundImage:"url(".concat(A,")")}),V=Object.assign({},(null==D?void 0:D.color)&&{backgroundColor:"url(".concat(null==D?void 0:D.color,")")}),F=l()(C.a.dsSelectorContainer,!!j&&j);return T&&r.a.createElement("div",{className:P,style:R},r.a.createElement("div",{className:C.a.dsMain,style:V},p&&!!(null===(i=null==S?void 0:S.before)||void 0===i?void 0:i.html)&&r.a.createElement(d.a,{html:S.before.html,className:l()(null===(o=S.before)||void 0===o?void 0:o.classes)}),r.a.createElement("div",{className:F,ref:L},h&&r.a.createElement("div",{className:C.a.dsLogo},r.a.createElement("img",{src:h,alt:"logo"})),k&&r.a.createElement("div",{className:C.a.dsCancelButton,onClick:function(){return N(!1)}},r.a.createElement(g.a,{id:"sti-close--line",size:35,activeClassName:C.a.dsCancelButtonSvg})),r.a.createElement("div",{className:C.a.dsTitle},r.a.createElement(d.a,{html:y})),r.a.createElement(w,{options:_,placeholder:I,value:E,errorMessage:B,buttonTitle:O,classes:{main:C.a.dsSelectContainer,select:C.a.dsSelector,acceptButton:C.a.dsButton},onChange:M,onAccept:x})),f&&!!(null===(c=null==S?void 0:S.after)||void 0===c?void 0:c.html)&&r.a.createElement(d.a,{html:S.after.html,className:l()(null===(s=S.after)||void 0===s?void 0:s.classes)})))})),B=n(2),I=n(49),_=n.n(I),E=n(5),T=n(7),N=Object(E.defineMessages)({blockTitle:{id:"admin/editor.dependency-selector.blockTitle"},title:{id:"admin/editor.dependency-selector.title"},titleDescription:{id:"admin/editor.dependency-selector.titleDescription"},buttonTitle:{id:"admin/editor.dependency-selector.buttonTitle"},titleItems:{id:"admin/editor.dependency-selector.titleItems"},editorItemTitle:{id:"admin/editor.dependency-selector.editorItemTitle"},itemLabel:{id:"admin/editor.dependency-selector.itemLabel"},itemLabelDescription:{id:"admin/editor.dependency-selector.itemLabelDescription"},itemValue:{id:"admin/editor.dependency-selector.itemValue"},itemValueDescription:{id:"admin/editor.dependency-selector.itemValueDescription"},itemIsDefault:{id:"admin/editor.dependency-selector.itemIsDefault"},itemIsDefaultDescription:{id:"admin/editor.dependency-selector.itemIsDefaultDescription"},logo:{id:"admin/editor.dependency-selector.logo"},backdropColor:{id:"admin/editor.dependency-selector.backdropColor"},backdropImageMobile:{id:"admin/editor.dependency-selector.backdropImageMobile"},backdropImageDesktop:{id:"admin/editor.dependency-selector.backdropImageDesktop"},backdropClasses:{id:"admin/editor.dependency-selector.backdropClasses"},selectorContainerClasses:{id:"admin/editor.dependency-selector.selectorContainerClasses"},customContentBeforeHtml:{id:"admin/editor.dependency-selector.customContentBeforeHtml"},customContentBeforeClasses:{id:"admin/editor.dependency-selector.customContentBeforeClasses"},customContentBeforeShow:{id:"admin/editor.dependency-selector.customContentBeforeShow"},customContentAfterHtml:{id:"admin/editor.dependency-selector.customContentAfterHtml"},customContentAfterClasses:{id:"admin/editor.dependency-selector.customContentAfterClasses"},customContentAfterShow:{id:"admin/editor.dependency-selector.customContentAfterShow"},cityFacetName:{id:"admin/editor.dependency-selector.cityFacetName"},selectPlaceholder:{id:"admin/editor.dependency-selector.selectPlaceholder"}}),M=[{__editorItemTitle:"Armenia",label:"Armenia",value:"id: armenia"},{__editorItemTitle:"Barranquilla",label:"Barranquilla",value:"id: barranquilla"},{__editorItemTitle:"Bogotá",label:"Bogotá",isDefault:!0,value:"\n id: bogota\n postalCode: 11001\n "},{__editorItemTitle:"Bucaramanga",label:"Bucaramanga",value:"id: bucaramanga"},{__editorItemTitle:"Cali",label:"Cali",value:"id: cali"},{__editorItemTitle:"Cartagena",label:"Cartagena",value:"id: cartagena"},{__editorItemTitle:"Ibagué",label:"Ibagué",value:"id: ibague"},{__editorItemTitle:"Manizales",label:"Manizales",value:"id: manizales"},{__editorItemTitle:"Medellín",label:"Medellín",value:"id: medellin"},{__editorItemTitle:"Neiva",label:"Neiva",value:"id: neiva"},{__editorItemTitle:"Pasto",label:"Pasto",value:"id: pasto"},{__editorItemTitle:"Pereira",label:"Pereira",value:"id: pereira"}],x={title:'\n

\n

¿En cuál ciudad

\n

quieres comprar?

\n

\n ',buttonTitle:"Ingresar",selectorContainerClasses:"",cityFacetName:v.a,items:M},A=n(28),L=n(19),P=n(6),R=Object(c.memo)((function(e){var t=Object(T.c)(),n=Object(L.b)(),i=Object(P.pathOr)((function(e){}),["setSelectedCity"],n),a=Object(P.pathOr)((function(e){}),["setCities"],n),o=Object(E.useIntl)(),l=t.isOpenModal,r=t.selectedDependency,s=t.showCloseBtn,d=t.setDependency,u=t.openModal,m=t.setShowCloseBtn,p=t.setConfigCityFilter,b=e.cityFacetName,f=e.items,g=(null==e?void 0:e.permitCloseModal)||!1,v=Object(c.useState)(""),y=Object(B.a)(v,2),C=y[0],O=y[1],D=Object(c.useMemo)((function(){return Object(A.getOptions)(f||[])}),[f]),j=D.options,S=D.defaultOption,w=Object(c.useState)(null),I=Object(B.a)(w,2),N=I[0],M=I[1],x=N?{label:N.key,value:N.value}:null;Object(c.useEffect)((function(){a(f),m(g),b&&p({facetName:b})}),[]),Object(c.useEffect)((function(){i(Object(P.pathOr)("",["value","id"],r)),r&&C&&O(""),V(!(r||!S))}),[r]),Object(c.useEffect)((function(){Object(A.activeRenderContainerScroll)(!l)}),[l]),Object(c.useEffect)((function(){var e;j.length&&(x?e=x:r&&(e={label:r.key,value:r.value}),Object(A.sendDependencySelectorData)({options:j,selectedOption:e,selectError:C,handleAcceptButton:R,handleSelectChange:F}))}),[j,r,N]);var R=function(){N?(d(N),u(!1)):!C&&O(o.formatMessage({id:"store/dependency-selector.error-select"}))},V=Object(c.useCallback)(_()((function(e){e&&(F(S),d({key:S.label,value:S.value}))}),2e3),[]),F=function(e){var t=e.label,n=e.value;M({key:t,value:n})};return t&&React.createElement(k,Object(h.a)({},e,{options:j,selectedOption:x,isOpen:l,permitCloseModal:g,selectError:C,showCloseBtn:s,open:u,handleAcceptButton:R,handleSelectChange:F}))}));R.defaultProps=x,R.getSchema=function(e){return{title:e.__editorItemTitle||N.blockTitle.id,type:"object",properties:{logo:{title:N.logo.id,type:"string",widget:{"ui:widget":"image-uploader"}},title:{title:N.title.id,description:N.titleDescription.id,type:"string",widget:{"ui:widget":"textarea"}},buttonTitle:{title:N.buttonTitle.id,type:"string"},selectPlaceholder:{title:N.selectPlaceholder.id,type:"string"},backdrop:{type:"object",properties:{color:{title:N.backdropColor.id,type:"string"},image:{type:"object",properties:{mobile:{title:N.backdropImageMobile.id,type:"string",widget:{"ui:widget":"image-uploader"}},desktop:{title:N.backdropImageDesktop.id,type:"string",widget:{"ui:widget":"image-uploader"}}}},classes:{title:N.backdropClasses.id,type:"string"}}},selectorContainerClasses:{title:N.selectorContainerClasses.id,type:"string"},cityFacetName:{title:N.cityFacetName.id,type:"string",default:"ciudad"},items:{title:N.titleItems.id,type:"array",minItems:2,default:M,items:{type:"object",properties:{__editorItemTitle:{title:N.editorItemTitle.id,type:"string"},label:{title:N.itemLabel.id,description:N.itemLabelDescription.id,type:"string"},value:{title:N.itemValue.id,description:N.itemValueDescription.id,type:"string",widget:{"ui:widget":"textarea"}},isDefault:{title:N.itemIsDefault.id,description:N.itemIsDefaultDescription.id,type:"boolean",default:!1},useWhiteLabel:{title:"use white label",type:"boolean",default:!1}}}},customContent:{type:"object",properties:{before:{type:"object",properties:{html:{title:N.customContentBeforeHtml.id,type:"string",widget:{"ui:widget":"textarea"}},classes:{title:N.customContentBeforeClasses.id,type:"string"},show:{title:N.customContentBeforeShow.id,type:"string",enumNames:Object.values(v.c).map((function(e){return e.title})),enum:Object.values(v.c).map((function(e){return e.value})),default:v.b.NEVER,widget:{"ui:widget":"select"}}}},after:{type:"object",properties:{html:{title:N.customContentAfterHtml.id,type:"string",widget:{"ui:widget":"textarea"}},classes:{title:N.customContentAfterClasses.id,type:"string"},show:{title:N.customContentBeforeShow.id,type:"string",enumNames:Object.values(v.c).map((function(e){return e.title})),enum:Object.values(v.c).map((function(e){return e.value})),default:v.b.NEVER,widget:{"ui:widget":"select"}}}}}}}}}},45:function(e,t,n){"use strict";n(2);var i=n(3),a=n.n(i);n(0),n(4),a.a.pick}}]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([["DependencySelector"],[function(e,t){e.exports=React},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/ramdaCore"]},function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t){e.exports=ReactIntl},function(e,t){e.exports=R},,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/RxEvent"]},,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/reactApollo"]},,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValue"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/Icon"]},,,function(e,t){e.exports=Classnames},,,,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/useClickOutside"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/EXPERIMENTAL_Select"]},function(e,t){e.exports=PropTypes},,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";o.r(t),function(e){var t=o(1);o.p=Object(t.getPublicPath)("floria.geolocation@0.1.6");var _=Object(t.register)((function(){return o(62)}),e,"floria.geolocation@0.1.6","floria.geolocation@0.x","DependencySelector");_.renderHotReload,_.setupHMR}.call(this,o(12)(e))},function(e,t,o){"use strict";o.r(t);var _=o(34);t.default=_.DependencySelector}],[[61,"common",2,5,0,1,4]]]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([["GeolocationWrapper"],{0:function(o,t){o.exports=React},13:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},14:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},3:function(o,t){o.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/ramdaCore"]},4:function(o,t){o.exports=__RENDER_8_RUNTIME__},5:function(o,t){o.exports=ReactIntl},63:function(o,t,e){"use strict";e.r(t),function(o){var t=e(1);e.p=Object(t.getPublicPath)("floria.geolocation@0.1.6");var n=Object(t.register)((function(){return e(64)}),o,"floria.geolocation@0.1.6","floria.geolocation@0.x","GeolocationWrapper");n.renderHotReload,n.setupHMR}.call(this,e(12)(o))},64:function(o,t,e){"use strict";e.r(t);var n=e(7);t.default=n.a},8:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},9:function(o,t){o.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/RxEvent"]}},[[63,"common",0]]]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([["SearchWithGeolocationWrapper"],{0:function(o,t){o.exports=React},13:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},14:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},20:function(o,t){o.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/reactApollo"]},3:function(o,t){o.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/ramdaCore"]},4:function(o,t){o.exports=__RENDER_8_RUNTIME__},5:function(o,t){o.exports=ReactIntl},68:function(o,t,e){"use strict";e.r(t),function(o){var t=e(1);e.p=Object(t.getPublicPath)("floria.geolocation@0.1.6");var n=Object(t.register)((function(){return e(69)}),o,"floria.geolocation@0.1.6","floria.geolocation@0.x","SearchWithGeolocationWrapper");n.renderHotReload,n.setupHMR}.call(this,e(12)(o))},69:function(o,t,e){"use strict";e.r(t);var n=e(19);t.default=n.a},8:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},9:function(o,t){o.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/RxEvent"]}},[[68,"common",0,1]]]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([["CustomQueryWithGeolocation"],{0:function(e,t){e.exports=React},13:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},14:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},3:function(e,t){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/ramdaCore"]},4:function(e,t){e.exports=__RENDER_8_RUNTIME__},48:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.search-result@3.x/index"]},5:function(e,t){e.exports=ReactIntl},60:function(e,t,o){"use strict";o.r(t),function(e){var t=o(1);o.p=Object(t.getPublicPath)("floria.geolocation@0.1.6");var r=Object(t.register)((function(){return o(80)}),e,"floria.geolocation@0.1.6","floria.geolocation@0.x","CustomQueryWithGeolocation");r.renderHotReload,r.setupHMR}.call(this,o(12)(e))},8:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},80:function(e,t,o){"use strict";o.r(t);var r=o(2),i=o(35),n=o(3),a=o.n(n),c=o(0),b=o(5),l=o(48),s=o.n(l),u=o(7),d=a.a.pathOr,p=function(e){var t=Object(u.c)(),o=t.selectedDependency,i=t.configCityFilter,n=null==i?void 0:i.facetName,a=Object(c.useMemo)((function(){var e;return(null===(e=null==o?void 0:o.value)||void 0===e?void 0:e.id)||null}),[o]),b=d("",["querySchema"],e),l=Object(c.useState)({}),s=Object(r.a)(l,2),p=s[0],m=s[1],g=Object(c.useState)(!0),_=Object(r.a)(g,2),f=_[0],w=_[1];Object(c.useEffect)((function(){if(o){w(!1);var e=d("",["mapField"],b),t=d("",["queryField"],b),r=a+t,i=n+","+e;!x()&&m(Object.assign(Object.assign({},b),{mapField:i,queryField:r})),setTimeout((function(){w(!0)}),100)}}),[o,b,n]);var x=function(){var e=navigator.userAgent;return new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)").test(e)};return b?f?Object(c.cloneElement)(e.children[0],{querySchema:p}):React.createElement(c.Fragment,null):React.createElement("div",null,"Sin query")},m=Object(b.defineMessages)({title:{id:"admin/editor.custom-query-with-geolocation.title"}});p.getSchema=function(){var e=s.a.getSchema({}),t=(e.description,Object(i.a)(e,["description"]));return Object.assign(Object.assign({},t),{title:m.title.id})};var g=p;t.default=g},9:function(e,t){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/RxEvent"]}},[[60,"common",2,0]]]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([["useGeolocation"],{0:function(o,t){o.exports=React},13:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},14:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},3:function(o,t){o.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/ramdaCore"]},4:function(o,t){o.exports=__RENDER_8_RUNTIME__},5:function(o,t){o.exports=ReactIntl},75:function(o,t,e){"use strict";e.r(t),function(o){var t=e(1);e.p=Object(t.getPublicPath)("floria.geolocation@0.1.6");var n=Object(t.register)((function(){return e(76)}),o,"floria.geolocation@0.1.6","floria.geolocation@0.x","useGeolocation");n.renderHotReload,n.setupHMR}.call(this,e(12)(o))},76:function(o,t,e){"use strict";e.r(t);var n=e(7);t.default=n.c},8:function(o,t){o.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},9:function(o,t){o.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/RxEvent"]}},[[75,"common",0]]]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([["SearchResultAvailability"],{0:function(t,e){t.exports=React},13:function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},14:function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},20:function(t,e){t.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/reactApollo"]},3:function(t,e){t.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/ramdaCore"]},33:function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},4:function(t,e){t.exports=__RENDER_8_RUNTIME__},5:function(t,e){t.exports=ReactIntl},53:function(t,e){t.exports=__RENDER_8_COMPONENTS__["chefcompany.product-details@0.x/Availability"]},66:function(t,e,o){"use strict";o.r(e),function(t){var e=o(1);o.p=Object(e.getPublicPath)("floria.geolocation@0.1.6");var n=Object(e.register)((function(){return o(82)}),t,"floria.geolocation@0.1.6","floria.geolocation@0.x","SearchResultAvailability");n.renderHotReload,n.setupHMR}.call(this,o(12)(t))},8:function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},82:function(t,e,o){"use strict";o.r(e);var n=o(23),c=o(2),_=o(53),r=o.n(_),a=o(3),i=o.n(a),u=o(0),s=o(33),l=o.n(s),E=o(19),f=i.a.pathOr,p=function(t){var e=l()(),o=Object(E.b)(),_=f((function(){}),["getInventoryBySku"],o),a=f([],["productByWarehouse"],o),i=f([],["products"],o),s=f("",["selectedItem","itemId"],e),p=Object(u.useState)(null),R=Object(c.a)(p,2),x=R[0],N=R[1];return Object(u.useEffect)((function(){a&&a.length&&s&&_&&N(_(s))}),[a,s]),i.length||x?React.createElement(r.a,Object(n.a)({quantity:x},t)):React.createElement(u.Fragment,null)};e.default=p},9:function(t,e){t.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/RxEvent"]}},[[66,"common",0,1]]]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([["SearchResultBuyButtonGeolocation"],{0:function(e,a){e.exports=React},13:function(e,a){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},14:function(e,a){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},20:function(e,a){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/reactApollo"]},3:function(e,a){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/ramdaCore"]},33:function(e,a){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},4:function(e,a){e.exports=__RENDER_8_RUNTIME__},5:function(e,a){e.exports=ReactIntl},54:function(e,a){e.exports=__RENDER_8_COMPONENTS__["chefcompany.product-details@0.x/WithAddToCartManagerSummay"]},55:function(e,a){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/rx-event"]},56:function(e,a){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sku"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"warehouseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"account"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appKey"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appToken"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"useWhiteLabel"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"floria.geolocation@0.1.6",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inventoryProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sku"},value:{kind:"Variable",name:{kind:"Name",value:"sku"}}},{kind:"Argument",name:{kind:"Name",value:"warehouseId"},value:{kind:"Variable",name:{kind:"Name",value:"warehouseId"}}},{kind:"Argument",name:{kind:"Name",value:"account"},value:{kind:"Variable",name:{kind:"Name",value:"account"}}},{kind:"Argument",name:{kind:"Name",value:"appKey"},value:{kind:"Variable",name:{kind:"Name",value:"appKey"}}},{kind:"Argument",name:{kind:"Name",value:"appToken"},value:{kind:"Variable",name:{kind:"Name",value:"appToken"}}},{kind:"Argument",name:{kind:"Name",value:"useWhiteLabel"},value:{kind:"Variable",name:{kind:"Name",value:"useWhiteLabel"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"433554e16b59e30de685739252c092b862024ddca6b12690e29cf91158926e1f",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availableQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:448}};n.loc.source={body:'query ($sku: ID!, $warehouseId: ID!, $account: String, $appKey: String, $appToken: String, $useWhiteLabel: Boolean) @context(sender: "floria.geolocation@0.1.6") {\n inventoryProduct(sku: $sku, warehouseId: $warehouseId, account: $account, appKey: $appKey, appToken: $appToken, useWhiteLabel: $useWhiteLabel) @runtimeMeta(hash: "433554e16b59e30de685739252c092b862024ddca6b12690e29cf91158926e1f") {\n availableQuantity\n sku\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};n.definitions.forEach((function(e){if(e.name){var a=new Set;!function e(a,n){if("FragmentSpread"===a.kind)n.add(a.name.value);else if("VariableDefinition"===a.kind){var i=a.type;"NamedType"===i.kind&&n.add(i.name.value)}a.selectionSet&&a.selectionSet.selections.forEach((function(a){e(a,n)})),a.variableDefinitions&&a.variableDefinitions.forEach((function(a){e(a,n)})),a.definitions&&a.definitions.forEach((function(a){e(a,n)}))}(e,a),i[e.name.value]=a}})),e.exports=n},67:function(e,a,n){"use strict";n.r(a),function(e){var a=n(1);n.p=Object(a.getPublicPath)("floria.geolocation@0.1.6");var i=Object(a.register)((function(){return n(83)}),e,"floria.geolocation@0.1.6","floria.geolocation@0.x","SearchResultBuyButtonGeolocation");i.renderHotReload,i.setupHMR}.call(this,n(12)(e))},8:function(e,a){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},83:function(e,a,n){"use strict";n.r(a);var i=n(23),t=n(2),o=n(54),u=n.n(o),r=n(3),l=n.n(r),d=n(20),c=n.n(d),s=n(55),m=n.n(s),k=n(0),v=n(33),p=n.n(v),f=n(56),N=n.n(f),_=n(15),b=n(19),y=c.a.useLazyQuery,g=l.a.pathOr,h=l.a.path,E=function(e){var a,n=p()(),o=g(!1,["unique"],e),r=y(N.a),l=Object(t.a)(r,2),d=l[0],c=l[1].data,s=Object(b.b)(),v=s.getInventoryBySku,f=s.productByWarehouse,E=s.getWarehouseIds,x=s.getAccount,S=s.getAppKey,O=s.getAppToken,R=s.getUseWhiteLabel,T=g("",["selectedItem","itemId"],n),D=Object(k.useState)(void 0),V=Object(t.a)(D,2),I=V[0],w=V[1];return Object(k.useEffect)((function(){f&&f.length&&T&&w(v(T))}),[f,T]),Object(k.useEffect)((function(){if(o&&T){var e=function(e,a,n,i,t){var o=e||E(),u=a||x(),r=n||S(),l=i||O(),c=t||R();o&&d({variables:{sku:T,warehouseId:o,account:u,appKey:r,appToken:l,useWhiteLabel:c}})};a=m.a.getEvent(_.a).subscribe((function(a){var n=h(["data","value","warehouseIds"],a),i=h(["data","value","account"],a),t=h(["data","value","appKey"],a),o=h(["data","value","appToken"],a),u=h(["data","value","useWhiteLabel"],a);e(n,i,t,o,u)})),e()}return function(){a&&a.unsubscribe()}}),[o,T]),Object(k.useEffect)((function(){c&&w(h(["inventoryProduct","availableQuantity"],c))}),[c]),React.createElement(u.a,Object(i.a)({forceMaxAvailable:I},e))};a.default=E},9:function(e,a){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/RxEvent"]}},[[67,"common",0,1]]]); },function(){ !function(e){function t(t){for(var n,u,a=t[0],c=t[1],l=t[2],d=0,s=[];de.length)&&(t=e.length);for(var r=0,n=new Array(t);r