PageSourceSearch

https://mytattoohub.com.br/static/js/FlashSearchPage.1ad0d58e.chunk.js

js mytattoohub.com.br collected 2026-09-24 14:11:46 UTC 13,333 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1889,5756],{6597:(e,s,i)=>{i.r(s),i.d(s,{default:()=>C});i(72791);var t=i(47375),r=i(42789),a=i(58272),n=i(6639),l=i(86134),o=i(29305),c=i(21102),d=i(35074),u=i(18498),h=i(25863),g=i(46902),p=i(69765),m=i(90909),f=i(80184);const y="flash_tattoo",C=(0,r.qC)((0,t.$j)((e=>{const{currentUser:s}=e.user,{currentPageResultIds:i,pagination:t,searchInProgress:r,searchListingsError:a,searchParams:n}=e.SearchPage;return{currentUser:s,listings:(0,h.gg)(e,i),pagination:t,scrollingDisabled:(0,g.uS)(e),searchInProgress:r,searchListingsError:a,searchParams:n}}),(e=>({onManageDisableScrolling:(s,i)=>e((0,g.R4)(s,i))}))))((e=>{const s=(0,n.mX)(),i=(0,l.a5)(),t=(0,o.YB)(),r=(0,a.useHistory)(),h=(0,a.useLocation)(),g=e.searchListingsError;if((0,d.QW)(g))return(0,f.jsx)(p.d9,{name:"SignupPage",state:{from:`${h.pathname}${h.search}${h.hash}`}});const{currentUser:C,...b}=e,P=!0===s.accessControl.marketplace.private,S=C&&!(0,u.cQ)(C),F=C&&!(0,u.r2)(C),v=(0,d.Jl)(g),M=(0,d.Av)(g);if(P&&S||v)return(0,f.jsx)(p.d9,{name:"NoAccessPage",params:{missingAccessRight:c.hb}});if(F||M)return(0,f.jsx)(p.d9,{name:"NoAccessPage",params:{missingAccessRight:c.AI}});const A=(s.listing.listingFields||[]).filter((e=>{const{listingTypeConfig:s}=e;return null===s||void 0===s||!s.limitToListingTypeIds||s.listingTypeIds.includes(y)})),x=new Map;A.forEach((e=>{if(x.has(e.key)){var s;const i=x.get(e.key);x.set(e.key,{...i,...e,enumOptions:null!==(s=e.enumOptions)&&void 0!==s&&s.length?e.enumOptions:i.enumOptions})}else x.set(e.key,e)}));const j=[...x.values()],k={key:"flashPrice",scope:"public",schemaType:"long",minimum:1,maximum:5e3,step:10,listingTypeConfig:{limitToListingTypeIds:!0,listingTypeIds:[y]},filterConfig:{indexForSearch:!0,label:"Pre\xe7o (R$)",group:"primary"}},L={key:"flashSizeCategory",scope:"public",schemaType:"enum",enumOptions:[{option:"key_size",label:"Chave \ud83d\udd11"},{option:"credit_card_size",label:"Cart\xe3o de cr\xe9dito \ud83e\udeaa"},{option:"wrist_size",label:"Punho \u270a"},{option:"hand_size",label:"M\xe3o \ud83d\udd90\ufe0f"},{option:"half_sleeve_or_larger",label:"Meia manga ou maior \ud83d\udcaa"}],listingTypeConfig:{limitToListingTypeIds:!0,listingTypeIds:[y]},filterConfig:{indexForSearch:!0,filterType:"SelectSingleFilter",label:"Tamanho",group:"primary"},showConfig:{label:"Tamanho",isDetail:!0},saveConfig:{label:"Tamanho da tattoo",isRequired:!1}},N={...s,listing:{...s.listing,listingFields:[...j,L,k]},search:{...s.search,defaultFilters:(s.search.defaultFilters||[]).filter((e=>!["dates","seats","price"].includes(e.key)))}};return(0,f.jsx)(m.SearchPageComponent,{config:N,routeConfiguration:i,routeName:"FlashSearchPage",hideFilterSidebar:!0,intl:t,history:r,location:h,...b})}))},90909:(e,s,i)=>{i.r(s),i.d(s,{SearchPageComponent:()=>H,default:()=>Q});var t=i(72791),r=i(47375),a=i(42789),n=i(58272),l=i(55269),o=i(24242),c=i.n(o),d=i(41418),u=i.n(d),h=i(6639),g=i(86134),p=i(29305),m=i(21956),f=i(21102),y=i(53002),C=i(73665),b=i(35074),P=i(18498),S=i(25863),F=i(46902),v=i(69765),M=i(52745),A=i(618),x=i(31938),j=i(87419),k=i(76775),L=i(85678),N=i(75876),Z=i(97803),T=i(69407),I=i(58351),_=i(18681),E=i(80184);class H extends t.Component{constructor(e){super(e),this.state={isMobileModalOpen:!1,currentQueryParams:(0,j.K3)(e)},this.onOpenMobileModal=this.onOpenMobileModal.bind(this),this.onCloseMobileModal=this.onCloseMobileModal.bind(this),this.resetAll=this.resetAll.bind(this),this.getHandleChangedValueFn=this.getHandleChangedValueFn.bind(this),this.handleSortBy=this.handleSortBy.bind(this)}onOpenMobileModal(){this.setState({isMobileModalOpen:!0})}onCloseMobileModal(){this.setState({isMobileModalOpen:!1})}resetAll(e){const{history:s,routeConfiguration:i,config:t,routeName:r="SearchPage"}=this.props,{listingFields:a}=(null===t||void 0===t?void 0:t.listing)||{},{defaultFilters:n}=(null===t||void 0===t?void 0:t.search)||{},l=(0,j.K3)(this.props),o=(0,m.sU)(a,n);this.setState({currentQueryParams:{}});const d=c()(l,[...o,"address","bounds","origin"]);s.push((0,y.EW)(r,i,{},d))}getHandleChangedValueFn(e){const{history:s,routeConfiguration:i,config:t,routeName:r="SearchPage"}=this.props,{listingFields:a}=(null===t||void 0===t?void 0:t.listing)||{},{defaultFilters:n,sortConfig:l}=(null===t||void 0===t?void 0:t.search)||{},o={listingFieldsConfig:a,defaultFiltersConfig:n,listingCategories:t.categoryConfiguration.categories},c=(0,j.K3)(this.props);return a=>{this.setState((e=>{const{address:s,bounds:i,keywords:r}=c,n={...c,...e.currentQueryParams},l=(0,m.Sy)(t)?{keywords:r}:{},d=(0,j.tl)(n,a);return{currentQueryParams:(0,j.Mu)({...n,...a,...l,...d,address:s,bounds:i},o)}}),(()=>{if(e){const e=this.state.currentQueryParams,t=(0,j.zU)(e,o,l);s.push((0,y.EW)(r,i,{},t))}}))}}handleSortBy(e,s){const{history:i,routeConfiguration:t,routeName:r="SearchPage"}=this.props,a=(0,j.K3)(this.props),n=s?{...a,[e]:s}:c()(a,e);i.push((0,y.EW)(r,t,{},n))}handleResetAll(e){this.resetAll(e),e&&e.currentTarget&&e.currentTarget.blur()}
1renderLocationFilter(e,s,i){const{history:r,routeConfiguration:a,config:n}=this.props,o=this.props.routeName||"SearchPage",{address:c}=(0,j.K3)(this.props);return(0,E.jsx)(l.l0,{onSubmit:()=>{},render:l=>{let{handleSubmit:c,values:d}=l;return(0,t.useEffect)((()=>{var e;if(null!==d&&void 0!==d&&null!==(e=d.location)&&void 0!==e&&e.selectedPlace){const{search:e,selectedPlace:{origin:s,bounds:t}}=d.location,l={bounds:t,address:e};if((0,m.QS)(n)&&s&&(l.origin=`${s.lat},${s.lng}`),i)i(l);else{const e=(0,y.EW)(o,a,{},l);r.push(e)}}}),[d]),(0,E.jsx)(v.l0,{role:"search",onSubmit:c,children:(0,E.jsx)("div",{className:e,children:(0,E.jsx)(x.Z,{setSubmitDisabled:()=>{},alignLeft:()=>{},className:_.Z.locationFilterComponent,compact:s})},"locationSearch")})}},c||"no-location")}render(){var e;const{intl:s,listings:i,location:t,onManageDisableScrolling:r,pagination:a,scrollingDisabled:n,searchInProgress:l,searchListingsError:o,searchParams:c,routeConfiguration:d,config:h,hideFilterSidebar:g=!1}=this.props,{listingFields:y}=(null===h||void 0===h?void 0:h.listing)||{},{defaultFilters:b,sortConfig:P}=(null===h||void 0===h?void 0:h.search)||{},S=null===h||void 0===h||null===(e=h.listing)||void 0===e?void 0:e.listingTypes.map((e=>e.listingType)),F=h.currency,x=h.categoryConfiguration,H=x.categories,Q=(0,j.JM)({listingFields:y,locationSearch:t.search,categoryConfiguration:x}),V={listingFieldsConfig:Q,defaultFiltersConfig:b,listingCategories:H},{searchParamsAreInSync:D,urlQueryParams:O,searchParamsInURL:B}=(0,j.uG)(t.search,c,V,P,(0,m.QS)(h)),$=O,w=(0,m.Sy)(h),R=b.filter((e=>["categoryLevel"].includes(e.key))),U=w?b.filter((e=>!["keywords","categoryLevel"].includes(e.key))):b.filter((e=>!["categoryLevel"].includes(e.key))),[W,K]=(0,j.Wo)(Q,S),z=[...R,...W,...U,...K],q=e=>{var i;switch(e.key){case"keywords":return s.formatMessage({id:"FilterComponent.keywordsLabel"});case"dates":return s.formatMessage({id:"FilterComponent.datesLabel"});case"price":return s.formatMessage({id:"FilterComponent.priceLabel"});case"seats":return s.formatMessage({id:"FilterComponent.seatsLabel"});default:return(null===(i=e.filterConfig)||void 0===i?void 0:i.label)||e.label||e.key}},J=g?z.filter((e=>"categoryLevel"!==e.key)).map((e=>({id:e.key,label:q(e),config:e,renderContent:i=>{let{localQueryParams:t,getHandleChangedValueFn:r,onValidityChange:a,registerFlush:n}=i;return(0,E.jsx)(k.Z,{idPrefix:"SearchFiltersBottomSheet",config:e,listingCategories:H,marketplaceCurrency:F,urlQueryParams:t,initialValues:(e,s)=>(Array.isArray(e)?e:[]).reduce(((e,s)=>{const i=t[s];return null!=i?{...e,[s]:i}:e}),{}),getHandleChangedValueFn:r,intl:s,liveEdit:!0,showAsPopup:!1,...e.schemaType===C.F5?{onValidityChange:a,registerFlush:n}:{}},`BottomSheet.${e.scope||"built-in"}.${e.key}`)}}))).concat([{id:"location",label:s.formatMessage({id:"PageBuilder.SearchCTA.locationPlaceholder"}),config:null,renderContent:e=>{let{getHandleChangedValueFn:s}=e;return this.renderLocationFilter(_.Z.filterField,!0,(e=>s(!1)(e)))}}]):[],G=$,X=null==B.dates||null!=B.dates&&B.dates===G.dates,Y=Object.keys(G).filter((e=>e!==P.queryParamName)),ee=w?Y.filter((e=>"keywords"!==e)).length:Y.length,se=!!a&&null!=a.totalItems,ie=D&&se?a.totalItems:null!==a&&void 0!==a&&a.paginationUnsupported?i.length:0,te=!l&&D&&!!(se||null!==a&&void 0!==a&&a.paginationUnsupported),re=(0,m._)(P.conflictingFilters,$,V),ae=e=>{var s;return P.active?(0,E.jsx)(Z.Z,{sort:$[P.queryParamName],isConflictingFilterActive:!!re,hasConflictingFilters:!!((null===(s=P.conflictingFilters)||void 0===s?void 0:s.length)>0),selectedFilters:G,onSelect:this.handleSortBy,showAsPopup:!0,mode:e,contentPlacementOffset:-14}):null},ne=(0,E.jsx)(I.Z,{listingsAreLoaded:te,totalItems:ie,location:t,resetAll:this.resetAll}),{title:le,description:oe,schema:ce}=(0,j.A6)(i,B||{},s,d,h),de=this.state.isMobileModalOpen?u()(_.Z.topbarBehindModal,_.Z.topbar):_.Z.topbar;return(0,E.jsxs)(v.T3,{scrollingDisabled:n,description:oe,title:le,schema:ce,children:[(0,E.jsx)(M.Z,{rootClassName:de,currentSearchParams:$}),(0,E.jsxs)("div",{className:_.Z.layoutWrapperContainer,children:[!g&&(0,E.jsx)("aside",{className:_.Z.layoutWrapperFilterColumn,"data-testid":"filterColumnAside",children:(0,E.jsxs)("div",{className:_.Z.filterColumnContent,children:[z.map((e=>{const i=`SearchFiltersDesktop.${e.scope||"built-in"}.${e.key}`;return(0,E.jsx)(k.Z,{idPrefix:"SearchFiltersDesktop",className:_.Z.filter,config:e,listingCategories:H,marketplaceCurrency:F,urlQueryParams:$,initialValues:(0,j.Sc)(this.props,this.state.currentQueryParams),getHandleChangedValueFn:this.getHandleChangedValueFn,intl:s,liveEdit:!0,showAsPopup:!1,isDesktop:!0},i)})),(0,E.jsx)("button",{className:_.Z.resetAllButton,onClick:e=>this.handleResetAll(e),children:(0,E.jsx)(p._H,{id:"SearchFiltersMobile.resetAll"})})]})}),(0,E.jsx)("div",{className:u()(_.Z.layoutWrapperMain,{[_.Z.layoutWrapperMainFullWidth]:g}),role:"main",children:(0,E.jsxs)("div",{className:_.Z.searchResultContainer,children:[g&&(0,E.jsxs)("div",{className:_.Z.topFiltersBar,children:[z.map((e=>{const i=`SearchFiltersTop.${e.scope||"built-in"}.${e.key}`;return(0,E.jsx)(k.Z,{idPrefix:"SearchFiltersTop",config:e,listingCategories:H,marketplaceCurrency:F,urlQueryParams:$,initialValues:(0,j.Sc)(this.props,this.state.currentQueryParams),getHandleChangedValueFn:this.getHandleChangedValueFn,intl:s,liveEdit:!0,showAsPopup:!0,isDesktop:!0},i)})),this.renderLocationFilter(_.Z.filterField),(0,E.jsx)("button",{className:_.Z.resetAllButtonTop,onClick:e=>this.handleResetAll(e),children:(0,E.jsx)(p._H,{id:"SearchFiltersMobile.resetAll"})})]}),(0,E.jsx)(N.Z,{className:_.Z.searchFiltersMobileList,urlQueryParams:$,sortByComponent:ae("mobile"),listingsAreLoaded:te,resultsCount:ie,searchInProgress:l,searchListingsError:o,showAsModalMaxWidth:768,onManageDisableScrolling:r,onOpenModal:this.onOpenMobileModal,onCloseModal:this.onCloseMobileModal,resetAll:this.resetAll,selectedFiltersCount:ee,isMapVariant:!1,noResultsInfo:ne,routeName:this.props.routeName||"SearchPage",isBottomSheetVariant:g,filterItems:J,children:z.map((e=>{const i=`SearchFiltersMobile.${e.scope||"built-in"}.${e.key}`;return(0,E.jsx)(k.Z,{idPrefix:"SearchFiltersMobile",config:e,listingCategories:H,marketplaceCurrency:F,urlQueryParams:$,initialValues:(0,j.Sc)(this.props,this.state.currentQueryParams),getHandleChangedValueFn:this.getHandleChangedValueFn,intl:s,liveEdit:!0,showAsPopup:!1},i)}))}),(0,E.jsx)(L.Z,{className:_.Z.mainPanel,sortByComponent:ae("desktop"),isSortByActive:P.active,listingsAreLoaded:te,resultsCount:ie,searchInProgress:l,searchListingsError:o,noResultsInfo:ne}),(0,E.jsxs)("div",{className:u()(_.Z.listingsForGridVariant,{[_.Z.newSearchInProgress]:!(te||o)}),children:[o?(0,E.jsx)(v.H3,{className:_.Z.error,children:(0,E.jsx)(p._H,{id:"SearchPage.searchError"})}):null,X?null:(0,E.jsx)(v.H5,{children:(0,E.jsx)(p._H,{id:"SearchPage.invali
1dDatesFilter"})}),(0,E.jsx)(T.Z,{className:_.Z.searchListingsPanel,listings:i,pagination:te?a:null,search:(0,f.Qc)(t.search),isMapVariant:!1,pageName:this.props.routeName||"SearchPage"})]})]})})]}),(0,E.jsx)(A.Z,{})]})}}H.defaultProps={listings:[],pagination:null,searchListingsError:null,searchParams:{},routeName:"SearchPage",hideFilterSidebar:!1};const Q=(0,a.qC)((0,r.$j)((e=>{const{currentUser:s}=e.user,{currentPageResultIds:i,pagination:t,searchInProgress:r,searchListingsError:a,searchParams:n}=e.SearchPage;return{currentUser:s,listings:(0,S.gg)(e,i),pagination:t,scrollingDisabled:(0,F.uS)(e),searchInProgress:r,searchListingsError:a,searchParams:n}}),(e=>({onManageDisableScrolling:(s,i)=>e((0,F.R4)(s,i))}))))((e=>{const s=(0,h.mX)(),i=(0,g.a5)(),t=(0,p.YB)(),r=(0,n.useHistory)(),a=(0,n.useLocation)(),l=e.searchListingsError;if((0,b.QW)(l))return(0,E.jsx)(v.d9,{name:"SignupPage",state:{from:`${a.pathname}${a.search}${a.hash}`}});const{currentUser:o,...c}=e,d=!0===s.accessControl.marketplace.private,u=o&&!(0,P.cQ)(o),m=o&&!(0,P.r2)(o),y=(0,b.Jl)(l),C=(0,b.Av)(l);return d&&u||y?(0,E.jsx)(v.d9,{name:"NoAccessPage",params:{missingAccessRight:f.hb}}):m||C?(0,E.jsx)(v.d9,{name:"NoAccessPage",params:{missingAccessRight:f.AI}}):(0,E.jsx)(H,{config:s,routeConfiguration:i,intl:t,history:r,location:a,...c})}))}}]);
2//# sourceMappingURL=FlashSearchPage.1ad0d58e.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.