PageSourceSearch

https://www.stockandland.com.au/assets/_next/static/chunks/1918.80584f4b451ae539.js

js stockandland.com.au collected 2026-10-02 06:04:11 UTC 10,983 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1918],{10697:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(60143),a=r(92584),l=r(54166),i=r(68919),o=r(53014);function n(e){var t=e.avatarSrc,r=e.description,n=e.isOpen,c=e.location,d=void 0===c?"":c,u=e.onClose,m=e.pillText,f=(e.previewImages,e.previewText),x=e.title,h=e.userName;return n?(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/25",children:(0,s.jsx)("div",{className:"relative z-50 flex size-full flex-col overflow-y-auto rounded bg-white p-6 shadow-lg lg:scale-100",children:(0,s.jsxs)("div",{className:"self-center md:w-3/4 lg:w-1/2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-start",children:[(0,s.jsx)("h2",{className:"mr-6 text-2xl",children:f}),(0,s.jsx)(i.A,{bgColor:"bg-black disabled:bg-gray-300",buttonClassName:"shadow-md w-28",className:"mt-0",fontSize:"text-sm",height:"h-10.5",hoverColor:"hover:bg-gray-300 disabled:hover:bg-gray-300",onClick:function(){return u()},text:"Back to Edit",textColor:"text-white",type:"button"})]}),(0,s.jsx)("div",{className:"my-6 border-b-1 border-gray-300"}),(0,s.jsxs)("div",{className:"mt-4 space-y-8",children:[(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsx)("div",{className:"inline-block rounded-3xl bg-gray-100 px-2 py-1 text-xs font-medium text-gray-800",children:m}),(0,s.jsx)("h1",{className:"text-2xl font-semibold leading-7 md:text-3xl",children:x}),d&&(0,s.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,s.jsx)(l.y,{className:"mr-2 text-green-600",icon:a.Pcr}),d]})]}),(0,s.jsxs)("div",{className:"flex items-center text-sm text-gray-500",children:[t&&(0,s.jsx)("img",{alt:"user avatar",className:"mr-5 size-12 rounded-full object-cover",src:t}),(0,s.jsx)("div",{children:(0,s.jsxs)("div",{children:["By ",(0,s.jsx)("span",{className:"text-gray-900",children:h})]})})]}),(0,s.jsx)(o.A,{text:r})]})]})})}):null}},33224:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(60143);function a(e){var t=e.alt,r=e.label,a=e.src;return(0,s.jsxs)("div",{className:"text-sm text-slate-600",children:[(0,s.jsx)("span",{className:"mb-1 block",children:r}),(0,s.jsx)("img",{alt:t,className:"flex",height:"80",src:a,width:"80"})]})}},74929:(e,t,r)=>{r.d(t,{A:()=>C});var s=r(85406),a=r(91167),l=r(49303),i=r(60143),o=r(92584),n=r(29722),c=r(45159),d=r(54166),u=r(99003),m=r(62715),f=r(68919),x=r(80293),h=r(59533),g=r(85990),v=r(64095),b=r(31817),p=r(79894),N=r(76365),j=r(4462),y=r(33224),w=r(10793),A=r(73519),E=r(10816),_=r(69301),S=r(10697);function C(e){var t=e.formType,r=(0,m.GV)(function(e){return e.piano.initialized}),C=(0,m.GV)(function(e){return e.piano.user}),T=(0,m.GV)(function(e){return e.page.csrftoken}),P=(0,m.GV)(function(e){return e.settings.transformUrl}),k=(0,a._)((0,c.useState)([]),2),F=k[0],I=k[1],R=(0,a._)((0,c.useState)(""),2),O=R[0],V=R[1],L=(0,a._)((0,c.useState)(""),2),U=L[0],z=L[1],M=(0,a._)((0,c.useState)(""),2),D=M[0],G=M[1],W=(0,a._)((0,c.useState)(""),2),Y=W[0],q=W[1],B=(0,a._)((0,c.useState)(""),2),H=B[0],X=B[1],J=(0,a._)((0,c.useState)(!1),2),Z=J[0],K=J[1],Q=(0,a._)((0,c.useState)(!0),2),$=Q[0],ee=Q[1],et=(0,a._)((0,c.useState)(null),2),er=et[0],es=et[1],ea=(0,a._)((0,c.useState)(null),2),el=ea[0],ei=ea[1],eo=(0,a._)((0,c.useState)(""),2),en=eo[0],ec=eo[1],ed=(0,a._)((0,c.useState)(!1),2),eu=ed[0],em=ed[1],ef=(0,a._)((0,c.useState)(!1),2),ex=ef[0],eh=ef[1],eg=(0,a._)((0,c.useState)([]),2),ev=eg[0],eb=eg[1],ep=(0,a._)((0,c.useState)(""),2),eN=ep[0],ej=ep[1],ey=(0,u.mN)({defaultValues:{user_email:"",user_name:""},shouldFocusError:!1}),ew=ey.clearErrors,eA=ey.formState.errors,eE=ey.handleSubmit,e_=ey.register,eS=ey.reset,eC=ey.setError,eT=ey.setValue,eP=ey.trigger,ek=function(e){ee(!1),(0,v.Gd)(e)};(0,c.useEffect)(function(){if(C){var e,t=(null==C?void 0:C.firstName)?"".concat(null==C?void 0:C.firstName," ").concat(null==C?void 0:C.lastName):"";eS({user_email:null==C?void 0:C.email,user_name:t}),V(t),z(null!=(e=C.email)?e:"")}},[C,eS]),(0,c.useEffect)(function(){C&&(ee(!0),z(C.email),(0,N.P6)(C.email).then(function(e){if(e&&!e.is_active)return void em(!0);var t,r=e?e.user_name:(0,p.Jf)(C);V(r),ec(null!=(t=null==e?void 0:e.avatar)?t:""),ee(!1),eS({user_email:C.email,user_name:r})}).catch(function(e){console.error("Failed to fetch user profile:",e),ee(!1)}))},[eS,C]),(0,c.useEffect)(function(){r&&!C&&(0,v.Zu)(window.location.href,{referrer:"ugc-form"})},[r,C]),(0,c.useEffect)(function(){eT(g.c.DESCRIPTION,H,{shouldValidate:!0})},[H,eT]),(0,c.useEffect)(function(){ee(!0),(0,N.jE)(t).then(function(e){e&&I(e),ee(!1)}).catch(function(e){console.error(e),ek("Failed to load the form. Please try again later.")})},[t]);var eF="photos"===t,eI=function(){if(Object.keys(eA).length>0){var e,t,r=Object.keys(eA)[0],s=null==(e=eA[r])?void 0:e.ref;(null==s?void 0:s.name)===g.c.USER_AVATAR&&window.scrollTo({behavior:"smooth",top:0}),null==s||null==(t=s.scrollIntoView)||t.call(s,{behavior:"smooth",block:"center",inline:"nearest"})}};return C?(0,i.jsx)(x.A,{footer:null,free:!0,hideSmartBanner:!0,nav:(0,i.jsx)(h.A,{showContact:!1,showHelp:!1,showLogin:!1,showPageName:!1}),showGutterAd:!1,showNavigationAd:!1,showOutages:!1,children:(0,i.jsxs)("div",{className:"flex flex-col items-center border-t border-gray-300 p-4",children:[(0,i.jsx)("div",{className:"flex max-w-[600px] flex-col items-center font-inter text-gray-900",children:eu?(0,i.jsx)(j.A,{}):(0,i.jsx)(i.Fragment,{children:Z?(0,i.jsx)(_.A,{email:C.email}):(0,i.jsxs)("div",{className:(0,n.A)("m-4 flex w-full flex-col space-y-4 rounded border border-gray-300 p-[23px] shadow-lg",$||!F?"opacity-25":"opacity-100"),children:[$&&(0,i.jsx)("div",{className:"absolute inset-0 top-2/3 z-10 flex items-center justify-center",children:(0,i.jsx)(d.y,{className:"text-5xl text-slate-800",icon:o.s4k,spin:!0})}),(0,i.jsx)("h2",{className:"font-inter text-3xl font-semibold leading-9 text-slate-900",children:eF?"Share photos":"Share a story"}),(0,i.jsxs)("p",{className:"font-inter text-sm text-slate-600",children:["You can now contribute content to our Noticeboard."," ",(0,i.jsx)("br",{className:"hidden md:block"}),"All content"," ",(0,i.jsx)("span",{className:"font-semibold",children:"will be moderated"})," ","before being published."]}),(0,i.jsx)("form",{onSubmit:eE(function(e){return(0,s._)(function(){var r,s,o;return(0,l.YH)(this,function(l){switch(l.label){case 0:if(!C||!T)return ek((0,i.jsx)(E.A,{})),[2];ee(!0),l.label=1;case 1:return l.trys.push([1,3,4,5]),s=new FormData,Object.entries({[g.c.CONTENT_TYPE]:t,[g.c.PIANO_USER_ID]:C.uid,[g.c.USER_NAME]:e.user_name,[g.c.USER_EMAIL]:C.email,[g.c.TITLE]:e.title,[g.c.CATEGORY]:e.category.toString(),[g.c.LOCATION]:null!=(r=e.location)?r:"",[g.c.DESCRIPTION]:e.description}
1).forEach(function(e){var t=(0,a._)(e,2),r=t[0],l=t[1];s.append(r,l)}),er&&er[0]&&s.append(g.c.USER_AVATAR,er[0]),el&&Array.from(el).forEach(function(e){s.append("images",e)}),[4,(0,N.rM)(s,T)];case 2:if(null==(o=l.sent())?void 0:o.success)return K(!0),[2];return(null==o?void 0:o.errors)&&console.error("Form submission errors:",o.errors),[3,5];case 3:return console.error(l.sent()),ek((0,i.jsx)(E.A,{})),[3,5];case 4:return ee(!1),[7];case 5:return[2]}})})()},function(){eI()}),children:(0,i.jsxs)("div",{className:"space-y-6",children:[(0,i.jsx)(A.Ay,{errors:eA,fieldName:g.c.USER_NAME,fieldValue:O,name:"Your Display Name",register:e_,required:!0,setField:V}),(0,i.jsx)(A.so,{clearErrors:ew,errors:eA,fieldName:g.c.USER_AVATAR,maxFileCount:1,name:"Your Photo / Avatar",onFileChange:function(e){es(e);var t=e[0];if(t){var r=new FileReader;r.onload=function(e){var t;(null==(t=e.target)?void 0:t.result)&&ej(e.target.result)},r.readAsDataURL(t)}else ej("avatarPlaceholder.png")},register:e_,required:!en,setError:eC,setValue:eT,uploadText:en?"Change":"Upload"}),en&&(0,i.jsx)(y.A,{alt:"Current Avatar",label:"Current avatar:",src:(0,b.WO)({fit:b.Pz.MAX,height:160,image:{uri:en},outputFormat:b.py.WEBP,transformUrl:P,width:160})}),(0,i.jsx)(A.Ay,{disabled:!0,errors:eA,fieldName:g.c.USER_EMAIL,fieldValue:U,name:"Email",register:e_,required:!0,setField:z}),(0,i.jsx)(A.Ay,{errors:eA,fieldName:g.c.TITLE,fieldValue:D,name:eF?"Photo Gallery Title":"Story Title",register:e_,required:!0,setField:G}),F&&(0,i.jsx)(w.A,{errors:eA,fieldName:"category",items:F,label:eF?"Photo Category":"Your Expertise/Category",register:e_,required:!0}),eF&&(0,i.jsx)(A.Ay,{errors:eA,fieldName:g.c.LOCATION,fieldValue:Y,name:"Photo Location",register:e_,required:eF,setField:q}),(0,i.jsx)(A.Ay,{errors:eA,fieldName:g.c.DESCRIPTION,fieldValue:H,name:"Description",register:e_,required:!0,setField:X,type:"textarea"}),(0,i.jsx)(A.so,{clearErrors:ew,errors:eA,fieldName:g.c.IMAGES,maxFileCount:5,name:"Pictures (max 5)",onFileChange:function(e){ei(e);var t=[],r=0;Array.from(e).forEach(function(s,a){var l=new FileReader;l.onload=function(s){var l;(null==(l=s.target)?void 0:l.result)&&(r+=1,t[a]=s.target.result,r===e.length&&eb(t))},l.readAsDataURL(s)})},register:e_,required:!0,setError:eC,setValue:eT,uploadText:"Upload pictures"}),(0,i.jsxs)("div",{className:"flex gap-x-2",children:[(0,i.jsx)(f.A,{bgColor:"bg-white disabled:bg-gray-300",buttonClassName:"shadow-md",className:"mt-4",desktopFullWidth:!0,fontSize:"text-sm",height:"h-10.5",hoverColor:"hover:bg-gray-300 disabled:hover:bg-gray-300",mobileFullWidth:!0,onClick:function(){return(0,s._)(function(){return(0,l.YH)(this,function(e){switch(e.label){case 0:return[4,eP()];case 1:return e.sent()&&eh(!0),eA&&eI(),[2]}})})()},text:"Preview",textColor:"text-gray",type:"button"}),(0,i.jsx)(f.A,{bgColor:"bg-red-600 disabled:bg-gray-300",buttonClassName:"shadow-md",className:"mt-4",desktopFullWidth:!0,fontSize:"text-sm",height:"h-10.5",hoverColor:"hover:bg-red-700 disabled:hover:bg-gray-300",mobileFullWidth:!0,text:"Submit",textColor:"text-white",type:"submit"})]})]})}),(0,i.jsx)("p",{className:"font-inter text-sm text-slate-600",children:"All content will be moderated before being published. You will be notified when your story is published."})]})})}),(0,i.jsx)(S.A,{avatarSrc:eN||en&&(0,b.WO)({fit:b.Pz.MAX,height:160,image:{uri:en},outputFormat:b.py.WEBP,transformUrl:P,width:160}),description:H,isOpen:ex,location:eF?Y:void 0,onClose:function(){return eh(!1)},pillText:eF?"Photos":"Local Expert",previewImages:ev,previewText:eF?"Photos Preview":"Story Preview",title:D,userName:O})]})}):null}},90030:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(22514),a=r(91167),l=r(19927),i=r(45159);let o=i.forwardRef(function(e,t){var r=(0,l._)([e,t]),o=r[0],n=r.slice(1),c=o.title,d=o.titleId,u=(0,s._)(o,["title","titleId"]),m=(0,a._)(n,1)[0];return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:m,"aria-labelledby":d},u),c?i.createElement("title",{id:d},c):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 
118 6M6 6l12 12"}))})}}]);

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.