1(this["webpackJsonpmy-app"]=this["webpackJsonpmy-app"]||[]).push([[0],{268:function(e,t,a){},269:function(e,t,a){},496:function(e,t,a){"use strict";a.r(t);var n=a(0),c=a(29),i=a.n(c),o=(a(268),a(269),a(270),a(34)),s=a(39),r=a(23),l=a(499),d=a(498),j=a(47),m=a(509),h=a(500),b=a(501),u=(a(75),a(506)),O=a(507),f=a(155),g=a(245),x=a.n(g).a.create({baseURL:"https://api.shareaustralia.com.au/",headers:{"X-Custom-Header":"foobar"}}),p="DOMAIN/GET_HOME_DOMAIN_INFO_SUCCESS",v="DOMAIN/GET_DOMAIN_INFO_SUCCESS",N="DOMAIN/SEARCH_DOMAIN_INFO_SUCCESS",y="LOADING/START",I="LOADING/END",S="LOADING/SEARCH_DOMAIN_START",_="LOADING/SEARCH_DOMAIN_END",C="TAG/GET_TAG_LIST_SUCCESS",P="TAG/CREATE_TAG_SUCCESS",L="POST/GET_POST_LIST_START",w="POST/GET_POST_LIST_SUCCESS",k="POST/CREATE_POST_START",T="POST/CREATE_POST_END",E="POST/CREATE_POST_SUCCESS",D="POST/POST_CLEAR",A="POST/GET_POST_SUCCESS",F="SINGLE_PAGE/GET_SINGLE_PAGE_SUCCESS";function R(e,t){return function(a){a(z()),x.get("/domain/info?domainName="+e+"&domainFolder="+t).then((function(e){var t;a((t=e.data,{type:v,payload:t})),a(B())})).catch((function(e){console.log(e)}))}}function U(){return function(e){e(z()),x.get("/home/info").then((function(t){var a;e((a=t.data.body,{type:p,payload:a})),e(B())})).catch((function(e){console.log(e)}))}}function G(e){return function(t){t({type:S}),x.get("/domain/search?searchString="+e).then((function(e){var a;console.log(e.data),t((a=e.data.body,{type:N,payload:a})),t({type:_})})).catch((function(e){console.log(e)}))}}function z(){return{type:y}}function B(){return{type:I}}var H=a(1);var M=function(e){var t=Object(n.useState)(e.demandNotification),a=Object(r.a)(t,2),c=a[0],i=a[1],o=Object(n.useState)(null),s=Object(r.a)(o,2),l=s[0],d=s[1],j=window.innerWidth;Object(n.useEffect)((function(){b()}),[e.searchDomainInfo]);var m=function(e){return e.domainFolder?"http://"+e.domainName+"/"+e.domainFolder+"/home":"http://"+e.domainName},h=function(e){return e.location+", "+e.state+" "+e.postCode},b=function(){var t=[];e.searchDomainInfo.forEach((function(e){t.push({value:m(e),label:h(e)})})),i(t)},g=function(t,a){"{}"==JSON.stringify(a)?(d(t),t.length>2&&e.searchHomeInfo(t)):window.location.href=a.value},x=function(){return Object(H.jsx)(u.a,{value:l,options:c,onChange:g,children:Object(H.jsx)(O.a,{placeholder:"Postcode or Suburb",prefix:Object(H.jsx)(f.a,{})})})};return e.small?Object(H.jsxs)("div",{children:[x(),Object(H.jsx)("div",{style:{fontSize:12,fontStyle:"italic",fontWeight:"bold",marginRight:-30,position:"absolute",marginTop:35},onClick:function(){window.location.href="http://shareaustralia.com.au/"},children:Object(H.jsxs)("a",{children:[" Powered by ",Object(H.jsx)("img",{src:"https://storage.googleapis.com/share-australia/images/ShareAustraliaLogo.png",width:100})]})})]}):j<481?x():Object(H.jsx)(u.a,{value:l,options:c,style:{width:500},onChange:g,className:"custom-search-input",children:Object(H.jsx)(O.a,{size:"large",placeholder:" Type in Postcode or Suburb to start ...",prefix:Object(H.jsx)(f.a,{className:"icon_pin_alt",fill:"#999999"}),bordered:!1})})};var W=Object(s.b)((function(e){return{searchDomainInfo:e.domainReducer.searchDomainInfo}}),(function(e){return{searchHomeInfo:function(t){return e(G(t))}}}))(M),J=a(504),K=a(505);var Q=function(e){var t="https://storage.googleapis.com/share-australia/images/No-Image-Placeholder.svg.png";return Object(H.jsx)(K.a,{width:e.width,preview:!1,height:e.height,src:e.src?e.src:t,bordered:e.bordered,fallback:t})};var X=function(e){return J.a.Meta,Object(H.jsxs)("div",{hoverable:!0,bordered:!1,onClick:e.onClick,className:"strip",children:[Object(H.jsx)(Q,{height:150,src:e.imageUrl,preview:!1}),Object(H.jsx)("div",{className:"t_item_title",children:Object(H.jsx)("h3",{children:e.title})})]})};var q=function(e){return e.disabled?null:Object(H.jsx)("div",{className:"loading",children:Object(H.jsx)(d.a,{size:"large"})})},V=a(112),Y=a.n(V),Z=a(113);var $=function(e){var t=e.post,a=/(<([^>]+)>)/gi;return t.imageUrl?Object(H.jsx)("article",{className:"blog",children:Object(H.jsxs)("a",{onClick:e.onClick,children:[Object(H.jsx)("figure",{children:Object(H.jsxs)("a",{onClick:e.onClick,children:[Object(H.jsx)("img",{alt:" No Image",className:"img-fluid",src:t.imageUrl}),Object(H.jsx)("div",{className:"preview",children:Object(H.jsx)("span",{children:"Read more"})})]})}),Object(H.jsxs)("div",{className:"post_info",children:[Object(H.jsx)("h2",{children:Object(H.jsx)("a",{onClick:e.onClick,children:t.title})}),Object(H.jsxs)("p",{children:[Object(H.jsx)(Y.a,{componentDecorator:function(e,t,a){return Object(H.jsxs)("a",{target:"blank",href:e,children:[" ",t," "]},a)},children:Object(Z.a)(t.description.replace(a," ").slice(0,150))}),"..."]}),Object(H.jsx)("small",{children:"#"+t.tagName.split(" ").join()+" #"+t.location.split(" ").join("")})]})]})}):Object(H.jsx)("article",{className:"blog",children:Object(H.jsxs)("a",{onClick:e.onClick,children:[Object(H.jsx)("figure",{children:Object(H.jsxs)("a",{onClick:e.onClick,children:[Object(H.jsx)("img",{alt:" No Image",className:"img-fluid",src:"https://storage.googleapis.com/share-australia/images/No-Image-Placeholder.svg.png"}),Object(H.jsx)("div",{className:"preview",children:Object(H.jsx)("span",{children:"Read more"})})]})}),Object(H.jsxs)("div",{className:"post_info",children:[Object(H.jsx)("h2",{children:Object(H.jsx)("a",{onClick:e.onClick,children:t.title})}),Object(H.jsxs)("p",{children:[Object(H.jsx)(Y.a,{componentDecorator:function(e,t,a){return Object(H.jsxs)("a",{target:"blank",href:e,children:[" ",t," "]},a)},children:Object(Z.a)(t.description.replace(a," ").slice(0,150))}),"..."]}),Object(H.jsx)("small",{children:"#"+t.tagName.split(" ").join()+" #"+t.location.split(" ").join("")})]})]})})};var ee=function(){var e=1,t=2,a=3,n=4,c=5;return Object(H.jsx)("footer",{children:Object(H.jsx)("div",{className:"container",children:Object(H.jsxs)("div",{className:"row add_bottom_25",children:[Object(H.jsx)("div",{className:"col-lg-6"}),Object(H.jsx)("div",{className:"col-lg-6",children:Object(H.jsxs)("ul",{className:"additional_links",children:[Object(H.jsx)("li",{children:Object(H.jsx)("a",{href:"/page/"+a,children:"Advertise With Us"})}),Object(H.jsx)("li",{children:Object(H.jsx)("a",{href:"/page/"+e,children:"Contact Us"})}),Object(H.jsx)("li",{children:Object(H.jsx)("a",{href:"/page/"+t,children:"About Us"})}),Object(H.jsx)("li",{children:Object(H.jsx)("a",{href:"/page/"+n,children:"Terms of Use"})}),Object(H.jsx)("li",{children:Object(H.jsx)("a",{href:"/page/"+c,children:"Privacy"})}),Object(H.jsx)("li",{children:Object(H.jsx)("span",{children:"\xa9 Geo Domains"})})]})})]})})})};function te(){var e=document.domain.split("."),t="";return e.forEach((function(e,a){if("www"==e&&0==a)return!1;t=""==t?t+e:t+"."+e})),t}var ae=function(e){var t=Object(n.useState)([]),a=Object(r.a)(t,2),c=a[0],i=a[1],o=Object(n.useState)(!0),s=Object(r.a)(o,2),u=s[0],O=s[1],f=Object(n.useState)(40),g=Object(r.a)(f,1)[0];Object(n.useEffect)((function(){e.getHomeInfo(),e.getPostList(1,0,1,g)}),[]),Object(n.useEffect)((function(){var t=te();console.log(t),!e.isLoading&&e.homeDomainInfo&&"www.shareaustralia.com.au"!=t&&"shareaustralia.com.au"!=t&&e.history.push("/home")}),[e.isLoading]),Object(n.useEffect)((function(){"[]"!=JSON.stringify(e.postList)&&(i(c.concat(e.postList)),e.postList.length<g?O(!1):O(!0),e.clearPost())}),[e.postList]);var x=function(){if(!e.homePopular)return null;var t=[];return e.homePopular.forEach((function(e){t.push(Object(H.jsx)(h.a,{md:2,
1sm:4,xs:6,style:{marginBottom:20},children:Object(H.jsx)(X,{imageUrl:e.imageUrl,title:e.title,onClick:function(){window.location.href=e.link}})},e.id))})),t},p=function(){var t=[];return c.forEach((function(a){t.push(function(t){return Object(H.jsx)("div",{className:"col-md-3",children:Object(H.jsx)($,{post:t,onClick:function(){var a={post:t,domainInfo:e.domainInfo},n={pathname:(e.match.params.domainFolder?"/"+e.match.params.domainFolder:"")+"/postDetail/"+t.id,state:a};e.history.push(n)}})})}(a))})),t},v=e.homeDomainInfo,N=e.isLoading;return Object(H.jsxs)("div",{children:[N?Object(H.jsx)(q,{disabled:N}):Object(H.jsxs)("div",{children:[Object(H.jsx)("header",{className:"header clearfix element_to_stick",style:{position:"absolute"},children:Object(H.jsx)("div",{className:"container",children:Object(H.jsx)("div",{id:"logo",children:Object(H.jsx)("a",{href:"#",children:Object(H.jsx)("img",{src:v?v.logoUrl:"",height:"50",alt:"",className:"logo_normal"})})})})}),Object(H.jsxs)("div",{className:"header-video",children:[Object(H.jsx)("div",{id:"",children:Object(H.jsx)("div",{className:"opacity-mask d-flex align-items-center","data-opacity-mask":"rgba(0, 0, 0, 0.6)",children:Object(H.jsx)("div",{className:"container",children:Object(H.jsx)("div",{className:"row justify-content-center text-center",children:Object(H.jsxs)("div",{className:"col-xl-8 col-lg-10 col-md-8",children:[Object(H.jsx)("h1",{style:{marginTop:30,marginBottom:20},children:v?v.title:null}),Object(H.jsx)(W,{})]})})})})}),Object(H.jsx)("img",{src:"https://storage.googleapis.com/share-australia/images/index2.jpg",alt:"",className:"header-video--media","data-vi
1deo-src":"video/intro","data-teaser-source":"video/intro","data-provider":""})]}),Object(H.jsx)("div",{className:"bg_black",children:Object(H.jsx)("div",{className:"container margin_90_10",children:Object(H.jsxs)("div",{className:"main_title center",children:[Object(H.jsx)("span",{children:Object(H.jsx)("em",{})}),Object(H.jsx)("h2",{children:v?v.data:null}),Object(H.jsx)(b.a,{style:{marginRight:3,marginLeft:3,marginTop:20},children:x()})]})})}),Object(H.jsx)("div",{className:"container margin_90_10",children:Object(H.jsxs)(b.a,{style:{marginRight:3,marginLeft:3},children:[Object(H.jsx)(h.a,{className:"col-3",children:Object(H.jsxs)("div",{className:"main_title version_2",style:{textAlign:"left"},children:[Object(H.jsx)("span",{children:Object(H.jsx)("em",{})}),Object(H.jsx)("h2",{children:"Global Posts"})]})}),Object(H.jsxs)(b.a,{children:[p(),u?e.postLoading?Object(H.jsx)(l.a,{plain:!0,children:Object(H.jsx)(d.a,{size:"large"})}):Object(H.jsx)(l.a,{plain:!0,children:Object(H.jsx)(j.a,{shape:"round",type:"primary",onClick:function(){e.getPostList(1,0,c.length/g+1,g)},style:{fontWeight:"bold",backgroundColor:"#589442",borderColor:"#589442"},children:"Show More"})}):Object(H.jsx)(l.a,{plain:!0,children:"No More"})]})]})})]}),Object(H.jsx)(ee,{}),Object(H.jsx)(m.a,{duration:40})]})};function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50;return function(c){c(re()),x.get("/post/list?domainId="+e+"&tagId="+(8==t?0:t)+"&page="+a+"&pageSize="+n).then((function(e){c(se(e.data))})).catch((function(e){console.log(e)}))}}function ce(e){return function(t){x.get("/post?postId="+e).then((function(e){var a;t((a=e.data,{type:A,payload:a}))})).catch((function(e){console.log(e)}))}}function ie(e,t){return function(a){a({type:k}),x.post("/post/create",e).then((function(e){a({type:T}),a({type:E}),t&&t(e.data.body)})).catch((function(e){console.log(e)}))}}function oe(){return function(e){e({type:D})}}function se(e){return{type:w,payload:e}}function re(){return{type:L}}var le=Object(s.b)((function(e){return{homeDomainInfo:e.domainReducer.homeDomainInfo,homePopular:e.domainReducer.homePopular,isLoading:e.domainReducer.isLoading,postList:e.postReducer.postList,postLoading:e.postReducer.postLoading}}),(function(e){return{getHomeInfo:function(){return e(U())},clearPost:function(){return e(oe())},getPostList:function(t,a,n,c){return e(ne(t,a,n,c))}}}))(ae),de=a(502);var je=function(e){var t=document.domain;de.a.Header,de.a.Content,Object(n.useEffect)((function(){e.domainInfo||e.domainFolder?e.domainInfo||e.getDomainInfo(t,e.domainFolder):e.getDomainInfo(t,"")}),[]);var a=e.domainInfo,c=e.homeDomainInfo;return Object(H.jsx)("header",{className:"header_in clearfix",style:{backgroundColor:a?a.domainColor:""},children:Object(H.jsxs)("div",{className:"container",children:[Object(H.jsx)("div",{id:"logo",children:Object(H.jsxs)("a",{onClick:function(){if("shareaustralia.com.au"==a.domainName&&!a.domainFolder)return window.location.href="http://shareaustralia.com.au/",!1;var e="http://"+a.domainName+"/"+(a.domainFolder?a.domainFolder+"/home":"home");window.location.href=e},children:[Object(H.jsx)("img",{height:50,style:{marginRight:10},src:"https://storage.googleapis.com/share-australia/images/SuburbLogo.png"}),Object(H.jsxs)("span",{className:"headerTitle",children:[" ",a?a.brand:c?c.brand:"ShareAustralia"]})]})}),Object(H.jsxs)("div",{className:"sub_title",children:[" ",(console.log(e),a?a.title:c?c.title:"Share something in your Local Community")]}),Object(H.jsx)("nav",{className:"main-menu",children:Object(H.jsx)(W,{small:!0})})]})})};var me=Object(s.b)((function(e,t){return{domainInfo:e.domainReducer.domainInfo?e.domainReducer.domainInfo:e.domainReducer.homeDomainInfo,homeDomainInfo:e.domainReducer.homeDomainInfo}}),(function(e){return{getDomainInfo:function(t,a){return e(R(t,a))}}}))(je),he=a(510);var be=function(e){de.a.Content;var t=Object(n.useState)(e.history.location.state.domainInfo),a=Object(r.a)(t,1)[0],c=Object(n.useState)(!0),i=Object(r.a)(c,2),o=i[0],s=i[1],h=Object(n.useState)([]),u=Object(r.a)(h,2),O=u[0],f=u[1],g=Object(n.useState)(100),x=Object(r.a)(g,1)[0];Object(n.useEffect)((function(){e.getPostList(a.id,e.match.params.tagId,1,x)}),[]),Object(n.useEffect)((function(){"[]"!=JSON.stringify(e.postList)&&(f(O.concat(e.postList)),e.postList.length<x?s(!1):s(!0),e.clearPost())}),[e.postList]);var p=function(){var t=[];return O.forEach((function(a){t.push(Object(H.jsx)("div",{className:"col-md-5",children:Object(H.jsx)($,{post:a,onClick:function(){var t={post:a,domainInfo:e.domainInfo}
1,n={pathname:(e.match.params.domainFolder?"/"+e.match.params.domainFolder:"")+"/postDetail/"+a.id,state:t};e.history.push(n)}})}))})),Object(H.jsxs)(b.a,{children:[t,o?e.postLoading?Object(H.jsx)(l.a,{plain:!0,children:Object(H.jsx)(d.a,{size:"large"})}):Object(H.jsx)(l.a,{plain:!0,children:Object(H.jsx)(j.a,{shape:"round",type:"primary",onClick:function(){console.log(O.length/x+1),e.getPostList(e.domainInfo.id,0,O.length/x+1,x)},style:{fontWeight:"bold",backgroundColor:"#589442",borderColor:"#589442"},children:"Show More"})}):null]})};return Object(H.jsxs)("div",{children:[Object(H.jsx)(me,{domainFolder:e.match.params.domainFolder}),Object(H.jsxs)("div",{children:[Object(H.jsx)("div",{className:"page_header element_to_stick",children:Object(H.jsx)("div",{className:"container",children:Object(H.jsxs)("div",{className:"row",style:{textAlign:"left"},children:[Object(H.jsx)("div",{className:"col-xl-2 col-lg-3 col-md-3 d-none d-md-block",children:Object(H.jsx)("div",{className:"breadcrumbs",children:Object(H.jsxs)("ul",{children:[Object(H.jsx)("li",{children:Object(H.jsx)("a",{style:{textDecoration:"underline"},onClick:function(){var e="http://"+a.domainName+"/"+(a.domainFolder?a.domainFolder+"/home":"home");window.location.href=e+"?redirect=true"},children:"Home"})}),Object(H.jsx)("li",{children:e.match.params.tagDisplayName})]})})}),Object(H.jsx)("div",{className:"col-xl-8 col-lg-7 col-md-7 "})]})})}),Object(H.jsx)("div",{className:"container margin_detail",children:e.domainInfo&&e.domainInfo.googleAds?Object(H.jsx)(he.a,{client:"ca-pub-0604507048194960",slot:"5599067266"}):null}),Object(H.jsx)("div",{className:"container margin_detail",children:Object(H.jsx)(b.a,{children:p()})})]}),Object(H.jsx)(ee,{}),Object(H.jsx)(m.a,{duration:20})]})};function ue(){return function(e){x.get("/tag/list").then((function(t){var a;e((a=t.data,{type:C,payload:a}))})).catch((function(e){console.log(e)}))}}function Oe(e){return function(t){x.post("/tag/create",{tagName:e}).then((function(e){var a;t((a=e.data.body,{type:P,payload:a}))})).catch((function(e){console.log(e)}))}}var fe=Object(s.b)((function(e){return{domainInfo:e.domainReducer.domainInfo,postList:e.postReducer.postList}}),(function(e){return{getPostList:function(t,a,n,c){return e(ne(t,a,n,c))},clearPost:function(){return e(oe())}}}))(be);var ge=function(e){var t=te(),a=Object(n.useState)([]),c=Object(r.a)(a,2),i=c[0],o=c[1],s=Object(n.useState)(100),u=Object(r.a)(s,1)[0],O=Object(n.useState)(!1),f=Object(r.a)(O,2),g=f[0],x=f[1],p=Object(n.useState)(!0),v=Object(r.a)(p,2),N=v[0],y=v[1],I={share:"share",discover:"discover"},S=Object(n.useState)(I.discover),_=Object(r.a)(S,2),C=_[0],P=_[1],L=Object(n.useState)(!1),w=Object(r.a)(L,2),k=w[0],T=w[1];Object(n.useEffect)((function(){"{}"==JSON.stringify(e.match.params)?e.getDomainInfo(t,""):e.getDomainInfo(t,e.match.params.domainFolder),e.getTagList()}),[]),Object(n.useEffect)((function(){"[]"!=JSON.stringify(e.postList)&&(o(i.concat(e.postList)),e.postList.length<u?y(!1):y(!0),e.clearPost())}),[e.postList]),Object(n.useEffect)((function(){e.domainInfo&&!g&&(x(!0),e.getPostList(e.domainInfo.id,0,1,u))}),[e.domainInfo]),Object(n.useEffect)((function(){!(e.multipleDomainInfo&&e.multipleDomainInfo.length>1&&""==e.location.search)||e.domainInfo&&e.domainInfo.domainFolder||T(!0)}),[e.multipleDomainInfo]);var E=e.domainInfo,D=(e.isLoading,function(){var t=[];return e.tagList.forEach((function(a){t.push(Object(H.jsx)(h.a,{md:3,sm:6,xs:12,style:{marginBottom:10},children:Object(H.jsx)(X,{imageUrl:C==I.share?a.shareImageUrl:a.browseImageUrl,title:a.displayName,onClick:function(){var t={tag:a,domainInfo:E},n=e.match.params.domainFolder?"/"+e.match.params.domainFolder:"",c={pathname:n+"/post/create",state:t};C===I.browse&&(c.pathname=n+"/posts/"+a.id+"/"+a.displayName),e.history.push(c)}})},a.id))})),t}),A=function(){var t=[];return i.forEach((function(a){a.id>3&&t.push(Object(H.jsx)("div",{className:"col-md-3",children:Object(H.jsx)($,{post:a,onClick:function(){var t={post:a,domainInfo:e.domainInfo},n={pathname:(e.match.params.domainFolder?"/"+e.match.params.domainF
1older:"")+"/postDetail/"+a.id,state:t};e.history.push(n)}})}))})),Object(H.jsxs)(b.a,{children:[t,N?e.postLoading?Object(H.jsx)(l.a,{plain:!0,children:Object(H.jsx)(d.a,{size:"large"})}):Object(H.jsx)(l.a,{plain:!0,children:Object(H.jsx)(j.a,{shape:"round",type:"primary",onClick:function(){console.log(i.length/u+1),e.getPostList(e.domainInfo.id,0,i.length/u+1,u)},style:{fontWeight:"bold",backgroundColor:"#589442",borderColor:"#589442"},children:"Show More"})}):null]})},F=function(){var t=[],a=new Set;return i.forEach((function(n){n.id<5&&!a.has(n.id)&&(a.add(n.id),t.push(Object(H.jsx)("div",{className:"col-md-6",children:Object(H.jsx)($,{post:n,onClick:function(){var t={post:n,domainInfo:e.domainInfo},a={pathname:(e.match.params.domainFolder?"/"+e.match.params.domainFolder:"")+"/postDetail/"+n.id,state:t};e.history.push(a)}})})))})),Object(H.jsx)(b.a,{children:t})},R=function(){var t=[];return e.multipleDomainInfo.length>0&&e.multipleDomainInfo.forEach((function(e){t.push(Object(H.jsxs)("a",{className:"btn_1",style:{marginRight:10},onClick:function(){var t="http://"+e.domainName+"/"+(e.domainFolder?e.domainFolder+"/home":"home");window.location.href=t+"?redirect=true"},children:[e.state," ",e.postCode?e.postCode:""]}))})),t};return Object(H.jsxs)("div",{children:[Object(H.jsx)(me,{domainFolder:e.match.params.domainFolder}),k?Object(H.jsx)("main",{className:"bg_gray pattern",children:Object(H.jsx)("div",{className:"container margin_60_40",children:Object(H.jsx)("div",{className:"row justify-content-center",children:Object(H.jsx)("div",{className:"col-lg-10",children:Object(H.jsxs)("div",{className:"box_booking_2",children:[Object(H.jsx)("div",{className:"head",children:Object(H.jsx)("div",{className:"title",children:Object(H.jsx)("h3",{children:"PLEASE SELECT A STATE"})})}),Object(H.jsx)("div",{className:"main",children:Object(H.jsx)("div",{id:"confirm",children:Object(H.jsx)("div",{className:"icon icon--order-success svg add_bottom_15",children:R()})})})]})})})})}):Object(H.jsxs)("div",{children:[Object(H.jsx)("div",{className:"page_header element_to_stick",children:Object(H.jsx)("div",{className:"container",children:Object(H.jsxs)("div",{className:"row",style:{textAlign:"left"},children:[Object(H.jsx)("div",{className:"col-xl-2 col-lg-3 col-md-3 d-none d-md-block",children:Object(H.jsx)("div",{className:"breadcrumbs",children:Object(H.jsx)("ul",{children:Object(H.jsx)("li",{children:"Home"})})})}),Object(H.jsx)("div",{className:"col-xl-8 col-lg-7 col-md-7 "})]})})}),Object(H.jsx)("div",{children:E&&E.googleAds?Object(H.jsx)(b.a,{style:{marginLeft:0,marginRight:0,marginTop:0,marginBottom:50,backgroundColor:"#c6c6c6"},children:Object(H.jsx)(h.a,{xxl:12,children:Object(H.jsx)(he.a,{client:"ca-pub-0604507048194960",slot:"7573646394"})})}):null}),Object(H.jsxs)("div",{className:"container margin_detail",children:[Object(H.jsxs)("ul",{className:"nav nav-tabs",role:"tablist",children:[Object(H.jsx)("li",{className:"nav-item",children:Object(H.jsx)("a",{className:C==I.share?"nav-link active":"nav-link","data-toggle":"tab",role:"tab",onClick:function(){P(I.share)},children:"Create Post"})}),Object(H.jsx)("li",{className:"nav-item",children:Object(H.jsx)("a",{className:C==I.discover?"nav-link active":"nav-link","data-toggle":"tab",role:"tab",onClick:function(){P(I.discover)},children:"Explore Post"})})]}),Object(H.jsx)(b.a,{style:{marginTop:40,marginRight:2,marginLeft:2},children:C==I.browse?Object(H.jsx)(b.a,{children:D()}):C==I.discover?[Object(H.jsx)(b.a,{style:{marginRight:3,marginLeft:3,marginBottom:3},children:Object(H.jsx)(h.a,{className:"col-3",children:Object(H.jsxs)("div",{style:{textAlign:"left"},children:[Object(H.jsx)("span",{children:Object(H.jsx)("em",{})}),Object(H.jsx)("h2",{style:{color:"red"},children:"Premium Posts"})]})})}),F(),Object(H.jsx)("hr",{},"hr1"),Object(H.jsx)("div",{className:"container margin_90_10",children:Object(H.jsx)(b.a,{style:{marginRight:3,marginLeft:3},children:Object(H.jsx)(h.a,{className:"col-3",children:Object(H.jsxs)("div",{className:"main_title version_2",style:{textAlign:"left"},children:[Object(H.jsx)("span",{children:Object(H.jsx)("em",{})}),Object(H.jsx)("h2",{children:"Community Posts"})]})})})}),A()]:C==I.share?Object(H.jsx)(b.a,{children:D()}):[]})]})]}),Object(H.jsx)(ee,{}),Object(H.jsx)(m.a,{duration:20})]})};var xe=Object(s.b)((function(e){return{multipleDomainInfo:e.domainReducer.multipleDomainInfo,domainInfo:e.domainReducer.domainInfo,isLoading:e.domainReducer.isLoading,tagList:e.tagReducer.tagList,postList:e.postReducer.postList,postLoading:e.postReducer.postLoading}}),(function(e){return{getDomainInfo:function(t,a){return e(R(t,a))},getTagList:function(){return e(ue())},getPostList:function(t,a,n,c){return e(ne(t,a,n,c))},clearPost:function(){return e(oe())}}}))(ge),pe=a(18),ve=a(258),Ne=a(511),ye=(a(508),a(503)),Ie=a(35),Se=a(255),_e=(a(488),a(68)),Ce=a(262),Pe=a(259),Le=a(254);var we=function(e){de.a.Content;var t=Object(n.useState)(e.history.location.state.domainInfo),a=Object(r.a)(t,1)[0],c=Object(n.useState)(e.history.location.state.tag),i=Object(r.a)(c,1)[0],o=Object(n.useState)(null),s=Object(r.a)(o,2),l=s[0],d=s[1],m=Object(n.useState)(Ie.EditorState.createEmpty()),u=Object(r.a)(m,2),f=u[0],g=u[1],x=Object(n.useState)(null),p=Object(r.a)(x,2),v=p[0],N=p[1],y=Object(n.useState)(!1),I=Object(r.a)(y,2),S=I[0],_=I[1],C=Object(n.useState)(!1),P=Object(r.a)(C,2),L=P[0],w=P[1],k=Object(n.useState)(!1),T=Object(r.a)(k,2),E=T[0],D=T[1],A=Object(n.useState)(null),F=Object(r.a)(A,2),R=F[0],U=F[1],G=Object(n.useState)(null),z=Object(r.a)(G,2),B=z[0],M=z[1];Object(n.useEffect)((function(){M(e.newTagId)}),[e.newTagId]);var W={name:"file",action:"https://api.shareaustralia.com.au/file/upload",showUploadList:!1,listType:"picture-card",onChange:function(e){"uploading"===e.file.status&&w(!0),"done"===e.file.status?(w(!1),N(e.file.response.body),console.log("".concat(e.file.name," file uploaded successfully"))):"error"===e.file.status&&console.log("".concat(e.file.name," file upload failed."))},progress:{strokeColor:{"0%":"#108ee9","100%":"#87d068"},strokeWidth:3,format:function(e){return"".concat(parseFloat(e.toFixed(2)),"%")}}},J=function(){e.createTag(R),D(!1)};return Object(H.jsxs)(H.Fragment,{children:[Object(H.jsx)(me,{domainF
1older:e.match.params.domainFolder}),Object(H.jsx)("div",{className:"page_header element_to_stick",children:Object(H.jsx)("div",{className:"container",children:Object(H.jsxs)("div",{className:"row",style:{textAlign:"left"},children:[Object(H.jsx)("div",{className:"col-xl-2 col-lg-3 col-md-3 d-none d-md-block",children:Object(H.jsx)("div",{className:"breadcrumbs",children:Object(H.jsxs)("ul",{children:[Object(H.jsx)("li",{children:Object(H.jsx)("a",{style:{textDecoration:"underline"},onClick:function(){var t="https://"+e.domainInfo.domainName+"/"+(e.domainInfo.domainFolder?e.domainInfo.domainFolder+"/home":"home");window.location.href=t+"?redirect=true"},children:"Home"})}),Object(H.jsx)("li",{children:"Create Post"})]})})}),Object(H.jsx)("div",{className:"col-xl-8 col-lg-7 col-md-7 "})]})})}),Object(H.jsx)("div",{className:"container margin_30_40",children:Object(H.jsxs)("div",{className:"row",children:[Object(H.jsxs)("div",{className:"col-lg-9",children:[Object(H.jsx)("div",{className:"blank_input",style:{marginTop:10},children:Object(H.jsx)(O.a,{placeholder:"Title",size:"large",bordered:!1,value:l,onChange:function(e){d(e.target.value)}})}),Object(H.jsx)("div",{className:"blank_input",style:{marginTop:10},children:Object(H.jsx)(Ie.Editor,{placeholder:"Description",editorState:f,onChange:function(e){g(e)}})}),Object(H.jsx)("div",{className:"blank_input",style:{marginTop:10,textAlign:"left"},children:Object(H.jsxs)(b.a,{children:[Object(H.jsxs)(h.a,{xxl:2,children:["Post Image ",Object(H.jsx)("span",{style:{fontSize:12},children:"(optional)"})]}),Object(H.jsx)(h.a,{xxl:10,children:Object(H.jsx)(Le.a,{rotate:!0,aspect:2,children:Object(H.jsx)(ye.a,Object(pe.a)(Object(pe.a)({},W),{},{beforeUpload:function(e){var t=e.size/1024/1024<2;return t||ve.b.error("Image must smaller than 2MB!"),t},children:v?Object(H.jsx)("img",{src:v,alt:"avatar",style:{width:"100%"}}):L?Object(H.jsx)(_e.a,{}):Object(H.jsx)(Ce.a,{})}))})})]})}),Object(H.jsx)("div",{className:"blank_input",style:{marginTop:10,textAlign:"left",paddingBottom:10},children:Object(H.jsxs)(b.a,{children:[Object(H.jsx)(h.a,{xxl:2,children:"Post Tag"}),Object(H.jsxs)(h.a,{xxl:10,children:[Object(H.jsxs)(Ne.a,{color:"#55acee",children:["#",a.location]})," ","others"!==i.tagName||E||""!=R&&R?"others"===i.tagName&&E?Object(H.jsx)("span",{children:Object(H.jsx)(O.a,{type:"text",size:"small",style:{width:78},value:R,onChange:function(e){U(e.target.value.split(" ").join(""))},onBlur:J,onPressEnter:J})}):""!=R&&R?Object(H.jsxs)("span",{children:[" ",Object(H.jsx)(Ne.a,{color:"#3b5999",closable:!0,onClose:function(e){U(null)},children:R})]}):Object(H.jsx)("span",{children:Object(H.jsxs)(Ne.a,{color:"#3b5999",children:["#",i.tagName.split(" ").join()]})}):Object(H.jsx)("span",{children:Object(H.jsxs)(Ne.a,{onClick:function(){D(!0)},className:"site-tag-plus",color:"#3b5999",children:[" ",Object(H.jsx)(Ce.a,{})," Create Tag "]})})]})]})}),Object(H.jsx)("div",{className:"blank_input",style:{marginTop:10,textAlign:"left",paddingBottom:10,borderBottom:0},children:Object(H.jsxs)(b.a,{children:[Object(H.jsx)(h.a,{xxl:2}),Object(H.jsx)(h.a,{xxl:5,children:Object(H.jsx)(Pe.a,{sitekey:"6LfaSLUcAAAAACvBBdr6wW_QyGvF4B9d9UsBaFKg",onChange:function(e){_(!0)}})}),Object(H.jsxs)(h.a,{xxl:5,style:{textAlign:"right",paddingTop:20},children:[Object(H.jsx)(j.a,{size:"large",style:{marginRight:20},onClick:function(){e.history.goBack()},children:"Cancel"}),Object(H.jsx)(j.a,{type:"primary",size:"large",style:{marginRight:20},loading:e.isCreatePost,disabled:!S||!f||!l||""==f||""==l||L,onClick:function(){var t={did:a.id,tid:"others"===i.tagName?B:i.id,title:l,description:Object(Se.a)(f.getCurrentContent()),imageUrl:v};e.createPost(t,(function(e){window.history.go(-1)}))},children:"Create"})]})]})})]}),Object(H.jsx)("aside",{className:"col-lg-3",children:e.domainInfo&&e.domainInfo.googleAds?Object(H.jsx)(he.a,{client:"ca-pub-0604507048194960",slot:"5599067266"}):null})]})}),Object(H.jsx)(ee,{})]})};var ke=Object(s.b)((function(e){return Object(pe.a)(Object(pe.a)({domainInfo:e.domainReducer.domainInfo},e.postReducer),{},{newTagId:e.tagReducer.newTagId})}),(function(e){return{createPost:function(t,a){return e(ie(t,a))},createTag:function(t){return e(Oe(t))}}}))(we);var Te=function(e){de.a.Content;var t=Object(n.useState)(null),a=Object(r.a)(t,2),c=a[0],i=a[1];Object(n.useEffect)((function(){e.getPost(e.match.params.postId)}),[]),Object(n.useEffect)((function(){i(e.currentPost),console.log(e.currentPost)}),[e.currentPost]);var o=function(){if(c.imageUrl)return Object(H.jsx)("figure",{children:Object(H.jsx)("img",{alt:"",className:"img-fluid",src:c.imageUrl})})};return Object(H.jsxs)("div",{children:[Object(H.jsx)(me,{domainF
1older:e.match.params.domainFolder}),c?Object(H.jsxs)(H.Fragment,{children:[Object(H.jsx)("div",{className:"page_header element_to_stick",children:Object(H.jsx)("div",{className:"container",children:Object(H.jsxs)("div",{className:"row",style:{textAlign:"left"},children:[Object(H.jsx)("div",{className:" col-xl-8 col-lg-7 col-md-7 d-none d-md-block",children:Object(H.jsx)("div",{className:"breadcrumbs",children:Object(H.jsxs)("ul",{children:[Object(H.jsx)("li",{children:Object(H.jsx)("a",{style:{textDecoration:"underline"},onClick:function(){if(!e.domainInfo||"shareaustralia.com.au"==e.domainInfo.domainName&&!e.domainInfo.domainFolder)return window.location.href="http://shareaustralia.com.au/",!1;var t="http://"+e.domainInfo.domainName+"/"+(e.domainInfo.domainFolder?e.domainInfo.domainFolder+"/home":"home");window.location.href=t+"?redirect=true"},children:"Home"})}),Object(H.jsx)("li",{children:c.title})]})})}),Object(H.jsx)("div",{className:"col-xl-2 col-lg-3 col-md-3 "})]})})}),Object(H.jsx)("div",{className:"container margin_30_40",children:Object(H.jsxs)("div",{className:"row",children:[Object(H.jsx)("div",{className:"col-lg-9",children:Object(H.jsxs)("div",{className:"singlepost",style:{textAlign:"left"},children:[o(),Object(H.jsx)("h1",{children:c.title}),Object(H.jsx)("div",{className:"postmeta",children:Object(H.jsxs)("ul",{style:{fontSize:"0.875rem"},children:[Object(H.jsxs)("li",{children:[Object(H.jsx)("i",{className:"icon_pencil-edit"})," ",c.location.split(" ").join("")]}),Object(H.jsxs)("li",{children:[Object(H.jsx)("i",{className:"icon_comment_alt"})," ",c.state.split(" ").join("")]})]})}),Object(H.jsx)(Y.a,{componentDecorator:function(e,t,a){return Object(H.jsxs)("a",{target:"blank",href:e,children:[" ",t," "]},a)},children:Object(H.jsxs)("div",{className:"post-content",style:{fontSize:"0.875rem",color:"#444444"},children:[Object(Z.a)(c.description),Object(H.jsx)("p",{children:"#"+c.tagName.split(" ").join()+" #"+c.location.split(" ").join("")})]})})]})}),Object(H.jsx)("aside",{className:"col-lg-3",children:e.domainInfo&&e.domainInfo.googleAds?Object(H.jsx)(he.a,{client:"ca-pub-0604507048194960",slot:"5599067266"}):null})]})})]}):null,Object(H.jsx)(ee,{})]})};var Ee=Object(s.b)((function(e){return{domainInfo:e.domainReducer.domainInfo,currentPost:e.postReducer.currentPost}}),(function(e){return{getPost:function(t){return e(ce(t))}}}))(Te);var De=function(e){de.a.Content;var t=Object(n.useState)(null),a=Object(r.a)(t,2);return a[0],a[1],Object(n.useEffect)((function(){e.getSinglePage(e.match.params.id)}),[]),Object(H.jsxs)("div",{children:[Object(H.jsx)(me,{domainFolder:e.match.params.domainFolder}),e.singlePageInfo?Object(H.jsxs)(H.Fragment,{children:[Object(H.jsx)("div",{className:"page_header element_to_stick",children:Object(H.jsx)("div",{className:"container",children:Object(H.jsxs)("div",{className:"row",style:{textAlign:"left"},children:[Object(H.jsx)("div",{className:"col-xl-8 col-lg-7 col-md-7 d-none d-md-block",children:Object(H.jsx)("div",{className:"breadcrumbs",children:Object(H.jsxs)("ul",{children:[Object(H.jsx)("li",{children:Object(H.jsx)("a",{style:{textDecoration:"underline"},onClick:function(){if(!e.domainInfo||"shareaustralia.com.au"==e.domainInfo.domainName&&!e.domainInfo.domainFolder)return window.location.href="http://shareaustralia.com.au/",!1;var t="http://"+e.domainInfo.domainName+"/"+(e.domainInfo.domainFolder?e.domainInfo.domainFolder+"/home":"home");window.location.href=t+"?redirect=true"},children:"Home"})}),Object(H.jsx)("li",{children:e.singlePageInfo.title})]})})}),Object(H.jsx)("div",{className:"col-xl-2 col-lg-3 col-md-3 "})]})})}),Object(H.jsx)("div",{className:"container margin_30_40",children:Object(H.jsxs)("div",{className:"row",children:[Object(H.jsx)("div",{className:"col-lg-9",children:Object(H.jsxs)("div",{className:"singlepost",style:{textAlign:"left"},children:[Object(H.jsx)("h1",{children:e.singlePageInfo.title}),Object(H.jsx)("div",{className:"post-content",style:{fontSize:"0.875rem",color:"#444444"},dangerouslySetInnerHTML:{__html:e.singlePageInfo.body}})]})}),Object(H.jsx)("aside",{className:"col-lg-3"})]})})]}):null,Object(H.jsx)(ee,{})]})};function Ae(e){return function(t){x.get("/page?id="+e).then((function(e){var a;t((a=e.data,{type:F,payload:a}))})).catch((function(e){console.log(e)}))}}var Fe=Object(s.b)((function(e){return{domainInfo:e.domainReducer.domainInfo,currentPost:e.postReducer.currentPost,singlePageInfo:e.singlePageReducer.singlePageInfo}}),(function(e){return{getSinglePage:function(t){return e(Ae(t))}}}))(De),Re=function(){return Object(H.jsx)("main",{children:Object(H.jsxs)(o.c,{children:[Object(H.jsx)(o.a,{exact:!0,path:"/",component:le}),Object(H.jsx)(o.a,{exact:!0,path:"/:domainFolder/home",component:xe}),Object(H.jsx)(o.a,{exact:!0,path:"/home",component:xe}),Object(H.jsx)(o.a,{exact:!0,path:"/page/:id",component:Fe}),Object(H.jsx)(o.a,{exact:!0,path:"/post/create",component:ke}),Object(H.jsx)(o.a,{exact:!0,path:"/:domainFolder/post/create",component:ke}),Object(H.jsx)(o.a,{exact:!0,path:"/posts/:tagId/:tagDisplayName",component:fe}),Object(H.jsx)(o.a,{exact:!0,path:"/:domainFolder/posts/:tagId/:tagDisplayName",component:fe}),Object(H.jsx)(o.a,{exact:!0,path:"/postDetail/:postId",component:Ee}),Object(H.jsx)(o.a,{exact:!0,path:"/:domainFolder/postDetail/:postId",component:Ee})]})})},Ue=a(115),Ge=a(253),ze={tagList:[],newTagId:null},Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case C:return Object(pe.a)(Object(pe.a)({},e),{},{tagList:t.payload.body});case P:return Object(pe.a)(Object(pe.a)({},e),{},{newTagId:t.payload});default:return e}}
1,He={postList:[],isCreatePost:!1,createPostSuccess:!1,postLoading:!1,currentPost:null},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:He,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case w:return Object(pe.a)(Object(pe.a)({},e),{},{postList:t.payload.body,postLoading:!1});case A:return Object(pe.a)(Object(pe.a)({},e),{},{currentPost:t.payload.body});case D:return Object(pe.a)(Object(pe.a)({},e),{},{postList:[]});case L:return Object(pe.a)(Object(pe.a)({},e),{},{postLoading:!0});case k:return Object(pe.a)(Object(pe.a)({},e),{},{isCreatePost:!0});case T:return Object(pe.a)(Object(pe.a)({},e),{},{isCreatePost:!1});case E:return Object(pe.a)(Object(pe.a)({},e),{},{createPostSuccess:!0});default:return e}},We={homeDomainInfo:null,homePopular:[],isLoading:!1,searchDomainInfo:[],multipleDomainInfo:[]},Je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:We,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p:return Object(pe.a)(Object(pe.a)({},e),{},{homeDomainInfo:t.payload.homeInfo,homePopular:t.payload.homePopular});case v:return Object(pe.a)(Object(pe.a)({},e),{},{domainInfo:t.payload.body.domainInfo,multipleDomainInfo:t.payload.body.multipleDomainInfo});case N:return Object(pe.a)(Object(pe.a)({},e),{},{searchDomainInfo:t.payload});case y:return Object(pe.a)(Object(pe.a)({},e),{},{isLoading:!0});case I:return Object(pe.a)(Object(pe.a)({},e),{},{isLoading:!1});default:return e}},Ke={singlePageInfo:null},Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ke,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case F:return Object(pe.a)(Object(pe.a)({},e),{},{singlePageInfo:t.payload.body});default:return e}},Xe=Object(Ue.b)({domainReducer:Je,tagReducer:Be,postReducer:Me,singlePageReducer:Qe}),qe=function(e,t){return Xe(e,t)},Ve=[Ge.a],Ye=Object(Ue.c)(qe,Ue.a.apply(void 0,Ve));var Ze=function(){return Object(H.jsx)("div",{className:"App",children:Object(H.jsx)(s.a,{store:Ye,children:Object(H.jsx)(Re,{})})})},$e=a(180);i.a.render(Object(H.jsx)($e.a,{children:Object(H.jsx)(Ze,{})}),document.getElementById("root"))},75:function(e,t,a){}},[[496,1,2]]]); 2//# sourceMappingURL=main.9253e94c.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.