1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2814],{87549:function(e,t,n){"use strict";n.d(t,{Field:function(){return m},Forms:function(){return d},Input:function(){return p}});var s=n(85893),a=n(67294),i=n(45697),l=n.n(i),r=n(87536),o=n(47533),c=n(16310);function d(e){let{id:t,name:n,children:i,onSubmit:l,className:c,defaultValues:d,validation:u,mode:m}=e,[p,h]=(0,a.useState)({}),{watch:f,control:g,trigger:v,setValue:N,register:x,setError:w,getValues:j,handleSubmit:b,reset:y,formState:{errors:C,isValid:_}}=(0,r.cI)({mode:m,defaultValues:d,resolver:(0,o.X)(u)});return(0,a.useEffect)(()=>{let e=f(e=>{h(t=>({...t,...e}))});return d&&h(d),()=>e.unsubscribe()},[j,f,d]),(0,s.jsx)("form",{id:t,className:c,name:n,onSubmit:b(e=>l(e,y,N)),children:"function"==typeof i?i({watch:f,values:p,errors:C,isValid:_,control:g,trigger:v,setValue:N,setError:w,register:x,getValues:j,defaultValues:d}):a.Children.map(i,e=>a.cloneElement(e,{watch:f,values:p,errors:C,isValid:_,control:g,trigger:v,setValue:N,setError:w,register:x,getValues:j,defaultValues:d}))})}d.propTypes={id:l().string,name:l().string,children:l().any,className:l().string,defaultValues:l().object,mode:l().string,validation:l().func},d.defaultProps={defaultValues:{},mode:"onChange",validation:c.Ry({})};var u=n(38020);function m(e){let{fieldName:t,setError:n,errors:i,control:l,children:o,setValue:c,validation:d,defaultValues:m}=e;return(0,a.useEffect)(()=>{(0,u.isEmpty)(m)||c(t,m[t])},[m,t,c]),(0,s.jsx)(r.Qr,{control:l,name:t,rules:d,defaultValue:m[t],render:e=>{let{field:t}=e,{name:l,value:r,onChange:d,onBlur:p}=t,h=!(0,u.isEmpty)(i)&&i[l],f=m[l];return(0,s.jsx)(s.Fragment,{children:"function"==typeof o?o({name:l,value:r,selected:r,onChange:d,onBlur:p,setError:n,errors:i,errorHooks:h,defaultValue:f,setValue:c}):a.cloneElement(o,{name:l,value:r,selected:r,onChange:d,onBlur:p,setError:n,errors:i,errorHooks:h,defaultValue:f,setValue:c})})}})}function p(e){let{id:t,name:n,variant:a,theme:i,as:l,type:r,label:o,placeholder:c,value:d,formText:u,onChange:m,onBlur:p,errors:h,iconRight:f,iconLeft:g,floatingLabel:v,className:N,wrapperClassName:x,labelClassName:w,inputClassName:j,children:b,disabled:y,hideValidationText:C,rows:_,autoComplete:L,step:k}=e;return(0,s.jsxs)("div",{className:"field ".concat("underline"===a?"field-underline":"field-basic"," \n ").concat(i," \n ").concat(v?"field-floating":""," \n ").concat(h&&h[n]?"is-invalid":"","\n ").concat(N," "),children:[o&&(0,s.jsx)("label",{className:w,htmlFor:t,children:o}),"input"===l&&(0,s.jsxs)("div",{className:"form-control-wrapper\n ".concat(f?"ic-right":"","\n ").concat(g?"ic-left":"","\n ").concat(x),children:[(0,s.jsx)("input",{id:t,name:n,type:r,placeholder:c,className:"form-control ".concat(j),value:d,onBlur:p,onChange:m,disabled:y,autoComplete:L,step:k}),v&&(0,s.jsx)("label",{className:w,htmlFor:t,children:o}),(0,s.jsx)("i",{className:"el-underline"}),b]}),"textarea"===l&&(0,s.jsxs)("div",{className:"form-control-wrapper\n ".concat(f?"ic-right":"","\n ").concat(g?"ic-left":"","\n ").concat(x),children:[(0,s.jsx)("textarea",{id:t,name:n,placeholder:c,className:"form-control ".concat(j),value:d,onBlur:p,onChange:m,disabled:y,rows:_}),v&&(0,s.jsx)("label",{className:w,htmlFor:t,children:o}),(0,s.jsx)("i",{className:"el-underline"}),b]}),"select"===l&&(0,s.jsxs)("div",{className:"form-select-wrapper\n ".concat(f?"ic-right":"","\n ").concat(g?"ic-left":"","\n ").concat(x),children:[v&&(0,s.jsx)("label",{className:w,htmlFor:t,children:o}),(0,s.jsx)("select",{id:t,name:n,className:"form-control ".concat(j),disabled:y,value:d,onBlur:p,onChange:m,children:b}),(0,s.jsx)("i",{className:"el-underline"})]}),!C&&(0,s.jsx)(s.Fragment,{children:h&&h[n]&&(0,s.jsx)("div",{className:"invalid-feedback",children:h[n].message})}),u&&(0,s.jsx)("div",{className:"form-text",children:u})]})}m.propTypes={fieldName:l().string.isRequired,children:l().any},p.propTypes={id:l().string.isRequired,name:l().string,variant:l().oneOf(["basic","underline"]),theme:l().oneOf(["light","dark"]),type:l().string,label:l().string,placeholder:l().string,as:l().string,value:l().string,floatingLabel:l().bool,className:l().string,labelClassName:l().string,inputClassName:l().string,wrapperClassName:l().string,children:l().any,hideValidationText:l().bool},p.defaultProps={type:"text",variant:"basic",theme:"light",label:null,as:"input",placeholder:"Enter text",className:"",labelClassName:"",inputClassName:"",wrapperClassName:"",hideValidationText:!1}}
1,45707:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var s=n(85893);n(67294);var a=n(45697),i=n.n(a);function l(e){let{className:t,groupClassName:n,height:a,width:i,ratio:l,rows:o,rowsCount:c}=e;return(0,s.jsx)(s.Fragment,{children:o?(0,s.jsx)("div",{className:"skeleton-group ".concat(n),children:Array(c).fill().map(e=>(0,s.jsx)(r,{className:t,ratio:l,height:a,width:i},e))}):(0,s.jsx)(r,{className:t,ratio:l,height:a,width:i})})}function r(e){let{className:t,ratio:n,height:a,width:i}=e;return(0,s.jsxs)("div",{className:"skeleton-item",style:{height:"".concat(a),width:"".concat(i)},children:[(0,s.jsx)("div",{className:"skeleton-loader"}),(0,s.jsx)("div",{className:"skeleton ".concat(t," ").concat(n&&"ratio ".concat(n)),children:"-"})]})}l.propTypes={className:i().string,groupClassName:i().string,rows:i().bool,rowsCount:i().bool},l.defaultProps={className:"",groupClassName:"",rowsCount:4},r.propTypes={className:i().string,width:i().string,height:i().string,ratio:i().string},r.defaultProps={className:"",height:null,width:null,ratio:""}},49953:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var s=n(85893),a=n(87549),i=n(45707),l=n(67294),r=n(48905),o=n(34155);function c(e){let{data:t}=e,[n,c]=(0,r.U)(),[u,m]=(0,l.useState)(!1),[p,h]=(0,l.useState)([]),[f,g]=(0,l.useState)({}),v=e=>{if("object"==typeof window.google&&"object"==typeof window.google.maps)e();else{let t=document.createElement("script");t.src="https://maps.googleapis.com/maps/api/js?key=".concat(o.env.NEXT_GMAPS_API_KEY),window.document.body.appendChild(t),t.addEventListener("load",e)}},N=async e=>{if(e.length){let n=t.ListLocation.filter(t=>t.Address.toLowerCase().includes(e.toLowerCase())||t.DetailAddress.toLowerCase().includes(e.toLowerCase()));h(n)}else h(t.ListLocation)};return(0,l.useEffect)(()=>{v(()=>{m(!0)})},[]),(0,l.useEffect)(()=>{t.ListLocation.length&&h(null==t?void 0:t.ListLocation)},[t]),(0,s.jsx)("section",{className:"sc-partnership-location py-main",ref:n,children:(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)("h2",{className:"partnership-location__title ".concat(c(1)),children:null==t?void 0:t.SectionTitle}),(0,s.jsxs)("div",{className:"row row-content",children:[(0,s.jsx)("div",{className:"col-md-8 col-maps mb-3 mb-md-0",children:u?(0,s.jsx)(d,{list:null==p?void 0:p.map(e=>({lat:+e.Latitude,lng:+e.Longitude}))}):(0,s.jsx)(i.O,{height:"100%",className:"partnership-location__maps-loader"})}),(0,s.jsxs)("div",{className:"col-md-4 col-list order-md-first",children:[(0,s.jsx)(a.Input,{iconLeft:!0,onChange:e=>N(e.target.value),placeholder:"Cari Lokasi",className:"partnership-location__search-box"}),f?(0,s.jsxs)("div",{className:"partnership-location__list-back-btn ".concat(c(2)),role:"presentation",onClick:()=>{g(null),h(t.ListLocation)},children:[(0,s.jsx)("i",{className:"air ai-chevron-left"})," Back to list"]}):null,(0,s.jsx)("div",{className:"partnership-location__list",children:null==p?void 0:p.map((e,t)=>(0,s.jsxs)("div",{role:"button",tabIndex:0,className:"partnership-location-card ".concat(c(3+t)),onClick:()=>{g(e),h([{...e}])},children:[(0,s.jsx)("h5",{className:"partnership-location-card__address",children:e.Address}),(0,s.jsx)("p",{className:"partnership-location-card__detail-address",children:e.DetailAddress}),(0,s.jsxs)("p",{className:"partnership-location-card__cta",children:["Lihat Lokasi ",(0,s.jsx)("i",{className:"air ai-arrow-right"})," "]})]},"partnership-location-card-".concat(t)))})]})]})]})})}function d(e){let{list:t}=e,n=(0,l.useRef)(null),a=null,i=()=>new window.google.maps.Map(n.current,{center:{lat:-34.397,lng:150.644},zoom:8,maxZoom:15}),r=e=>new window.google.maps.Marker({position:{lat:e.lat,lng:e.lng},map:a,icon:{url:"/img/icon/img_icon-location-2.svg",scaledSize:new window.google.maps.Size(50,50)}});return(0,l.useEffect)(()=>{a=i();let e=new window.google.maps.LatLngBounds;t.map(t=>{let n=r(t);return e.extend(n.position),""}),a.fitBounds(e)},[t]),(0,s.jsx)("div",{ref:n,className:"partnership-location__maps"})}},83029:function(){},97650:function(e,t,n){"use strict";let s;n.d(t,{YD:function(){return o}});var a=n(67294);let i=new Map,l=new WeakMap,r=0;function o({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:c,triggerOnce:d,skip:u,initialInView:m,fallbackInView:p,onChange:h}={}){var f;let[g,v]=a.useState(null),N=a.useRef(),[x,w]=a.useState({inView:!!m,entry:void 0});N.current=h,a.useEffect(()=>{let a;if(!u&&g)return a=function(e,t,n={},a=s){if(void 0===window.IntersectionObserver&&void 0!==a){let o=e.getBoundingClientRect();return t(a,{isIntersecting:a,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:c,observer:d,elements:u}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(l.has(n)||(r+=1,l.set(n,r.toString())),l.get(n)):"0":e[t]}`}).toString(),n=i.get(t);if(!n){let s;let a=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{var n;let i=t.isIntersecting&&s.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=a.get(t.target))||n.forEac
1h(e=>{e(i,t)})})},e);s=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:a},i.set(t,n)}return n}(n),m=u.get(e)||[];return u.has(e)||u.set(e,m),m.push(t),d.observe(e),function(){m.splice(m.indexOf(t),1),0===m.length&&(u.delete(e),d.unobserve(e)),0===u.size&&(d.disconnect(),i.delete(c))}}(g,(e,t)=>{w({inView:e,entry:t}),N.current&&N.current(e,t),t.isIntersecting&&d&&a&&(a(),a=void 0)},{root:c,rootMargin:o,threshold:e,trackVisibility:n,delay:t},p),()=>{a&&a()}},[Array.isArray(e)?e.toString():e,g,c,o,d,u,n,p,t]);let j=null==(f=x.entry)?void 0:f.target;a.useEffect(()=>{g||!j||d||u||w({inView:!!m,entry:void 0})},[g,j,d,u,m]);let b=[v,x.inView,x.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}}}]);
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.