1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88036],{77945:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/parent/request/v2/play/form/[sid]",function(){return i(15088)}])},39693:function(e,t,i){"use strict";i.d(t,{c:function(){return m}});var l=i(17623),r=i(15603),o=i(18050),n=i(52220),d=i(52983),s=i(33676),u=i(61472),a=i(60871),v=i(97271),c=i(76693),_=i(68017),p=i(16039);let y=(0,v.ZP)(),h=(0,c.C)(),f=(0,_.Z)(),g=(0,n.Z)(),m=(e,t,i)=>{var n,v,c,_,m,w,q,b;h.publish({activityType:t});let E=(0,r.VY)(),k=(0,o.a)({queryKey:["recent-form",e],queryFn:()=>t===l.T8Q.PLAY?g.fetchPlayRecentForm(e,null==i?void 0:i.token):g.fetchStudyRecentForm(e,null==i?void 0:i.token),enabled:!!i.isLogin,refetchOnWindowFocus:!1,retry:1});return(0,d.useEffect)(()=>{var e,t,i;if(!k.isSuccess||!h.getValue().requiredDataLoad)return;let l=k.data,r=l.schedule,o=l.answers.map(e=>{let{survey_id:t,option_with_values:i}=e;return{surveyId:t,optionWithValues:i}});h.publish({address:l.address,children:l.children,childrenSids:l.children.map(e=>e.sid),isChildrenClassTogether:l.is_children_class_together,protectors:l.protectors,preferredGender:l.preferred_gender,tags:l.tag_ids.map((e,t)=>({tag_id:e,order:t,title:l.tag_names[t]})),receivePhoto:l.receive_photo?p.l.YES:!1===l.receive_photo?p.l.NO:void 0,desiredCost:l.desired_cost,scheduleType:null==r?void 0:r.type,isTrial:r?r.trial?p.l.YES:p.l.NO:void 0,possibleDayOfWeeks:null==r?void 0:r.possible_day_of_weeks,possibleTimeSlots:null!==(i=null==r?void 0:r.possible_time_slots)&&void 0!==i?i:[],weeklyFrequency:null==r?void 0:r.weekly_frequency,durationMinutes:null==r?void 0:r.duration_minutes,startDate:(null==r?void 0:r.start_date)?new Date(null==r?void 0:r.start_date):new Date,visitDate:null==r?void 0:null===(e=r.visit_date)||void 0===e?void 0:e.map(e=>s.FZ.localized(e).toDate()),cluster:l.category_cluster,isAnsweredAllSchedule:!0,answers:o,requiredDataLoad:!1}),f.publish({currentStep:l.surveys.length}),null===(t=y.toast)||void 0===t||t.call(y,{title:"ì ì²ì ì 보를 ë¶ë¬ììµëë¤.\në´ì©ì ë¤ì í ë² íì¸í´ 주ì¸ì."}).open()},[k.dataUpdatedAt]),(0,d.useEffect)(()=>{var e,t;k.isError&&(k.error instanceof u.j&&(0,a.M)(k.error.body)?null===(e=y.toast)||void 0===e||e.call(y,{title:k.error.body.message}).open():null===(t=y.toast)||void 0===t||t.call(y,{title:"ì ì²ì ì 보를 ë¶ë¬ì¤ëë° ì¤í¨íìµëë¤."}).open(),E.back())},[k.isError]),{isSuccess:k.isSuccess,isError:k.isError,title:null!==(m=null===(n=k.data)||void 0===n?void 0:n.title)&&void 0!==m?m:"",tag_ids:null!==(w=null===(v=k.data)||void 0===v?void 0:v.tag_ids)&&void 0!==w?w:[],tag_names:null!==(q=null===(c=k.data)||void 0===c?void 0:c.tag_names)&&void 0!==q?q:[],surveys:null!==(b=null===(_=k.data)||void 0===_?void 0:_.surveys)&&void 0!==b?b:[]}}},15088:function(e,t,i){"use strict";i.r(t);var l=i(97458),r=i(52983),o=i(15603),n=i(17623),d=i(32531),s=i(39693),u=i(36312),a=i(87401),v=i(75005);let c=(0,u.ZP)();t.default=(0,v.X)(e=>{var t,i,v,_,p;let{auth:y}=e,h=(0,o.VY)(),f=null===(t=h.query)||void 0===t?void 0:t.sid,{isSuccess:g,...m}=(0,s.c)(f,n.T8Q.PLAY,y);return(0,r.useEffect)(()=>{var e,t,i;if(!g||(null===(e=h.query)||void 0===e?void 0:e.logged)==="true")return;let l=null!==(i=null===(t=h.query)||void 0===t?void 0:t.entryPoint)&&void 0!==i?i:"ì¬ì ì_ìµê·¼ ìì±í ì ì²ì";c.submit({action:u.YK.Action.LOGGING,data:{name:"ì ì²ìì ì_ì ì ììíë©´ Viewed",parameter:{"ì§ì
ê²½ë¡":l,"ìì
ëª
":m.title,"íëíê·¸ ëª
":m.tag_names,"ìì
ìê° ì í":"ëë´"}}},[u.YK.Target.mixpanel]),h.replace({query:{...h.query,logged:"true"}},void 0,{shallow:!0})},[g,h.query]),(0,l.jsx)(d.o,{hideMenu:!0,showBackButton:!0,title:null==m?void 0:m.title,signInRequired:!0,children:(0,l.jsx)(a.p,{questions:null!==(v=null==m?void 0:m.surveys)&&void 0!==v?v:[],widenConditionsSid:(null===(i=h.query)||void 0===i?void 0:i.widen)==="true"?f:void 0,activityTitle:null!==(_=null==m?void 0:m.title)&&void 0!==_?_:"",activityType:n.T8Q.PLAY,tagNames:null!==(p=null==m?void 0:m.tag_names)&&void 0!==p?p:[]})})})}},function(e){e.O(0,[87204,59573,36119,19143,64758,52220,87972,85036,87401,92888,49774,40179],function(){return e(e.s=77945)}),_N_E=e.O()}]);
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.