PageSourceSearch

https://citioapp.com/_next/static/chunks/7203.1f23382a84533415.js

js citioapp.com collected 2026-10-02 00:30:54 UTC 9,324 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7203],{27118:(e,t,r)=>{r.d(t,{Xs:()=>p});var n,i=r(12115),s=r(95155),o=(0,i.forwardRef)((e,t)=>{let{as:r="div",...n}=e;return(0,s.jsx)(r,{...n,ref:t})}),a="cf-turnstile-script",l="onloadTurnstileCallback",c=e=>!!document.getElementById(e),u={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},d="unloaded",f=new Promise((e,t)=>{n={resolve:e,reject:t},"ready"===d&&e(void 0)}),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return"unloaded"===d&&(d="loading",window[e]=()=>{n.resolve(),d="ready",delete window[e]}),f},p=(0,i.forwardRef)((e,t)=>{let{scriptOptions:r,options:n={},siteKey:f,onWidgetLoad:p,onSuccess:x,onExpire:b,onError:h,onBeforeInteractive:y,onAfterInteractive:v,onUnsupported:g,onTimeout:w,onLoadScript:k,id:E,style:j,as:N="div",injectScript:S=!0,...T}=e,A=n.size,C=(0,i.useCallback)(()=>typeof A>"u"?{}:"execute"===n.execution?u.invisible:"interaction-only"===n.appearance?u.interactionOnly:u[A],[n.execution,A,n.appearance]),[R,I]=(0,i.useState)(C()),O=(0,i.useRef)(null),[q,L]=(0,i.useState)(!1),M=(0,i.useRef)(),P=(0,i.useRef)(!1),F=E||"cf-turnstile",_=(null==r?void 0:r.id)||a,D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,[t,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let t=()=>{c(e)&&r(!0)},n=new MutationObserver(t);return n.observe(document,{childList:!0,subtree:!0}),t(),()=>{n.disconnect()}},[e]),t}(_),z=(null==r?void 0:r.onLoadCallbackName)||l,B=n.appearance||"always",K=(0,i.useMemo)(()=>({sitekey:f,action:n.action,cData:n.cData,callback:e=>{P.current=!0,null==x||x(e)},"error-callback":h,"expired-callback":b,"before-interactive-callback":y,"after-interactive-callback":v,"unsupported-callback":g,theme:n.theme||"auto",language:n.language||"auto",tabindex:n.tabIndex,"response-field":n.responseField,"response-field-name":n.responseFieldName,size:function(e){if("invisible"!==e&&"interactionOnly"!==e)return e}(A),retry:n.retry||"auto","retry-interval":n.retryInterval||8e3,"refresh-expired":n.refreshExpired||"auto","refresh-timeout":n.refreshTimeout||"auto",execution:n.execution||"render",appearance:n.appearance||"always","feedback-enabled":n.feedbackEnabled||!0,"timeout-callback":w}),[n.action,n.appearance,n.cData,n.execution,n.language,n.refreshExpired,n.responseField,n.responseFieldName,n.retry,n.retryInterval,n.tabIndex,n.theme,n.feedbackEnabled,n.refreshTimeout,f,A]),V=(0,i.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,i.useEffect)(function(){S&&!q&&(e=>{let{render:t="explicit",onLoadCallbackName:r=l,scriptOptions:{nonce:n="",defer:i=!0,async:s=!0,id:o="",appendTo:u,onError:d,crossOrigin:f=""}={}}=e,m=o||a;if(c(m))return;let p=document.createElement("script");p.id=m,p.src="".concat("https://challenges.cloudflare.com/turnstile/v0/api.js","?onload=").concat(r,"&render=").concat(t),document.querySelector('script[src="'.concat(p.src,'"]'))||(p.defer=!!i,p.async=!!s,n&&(p.nonce=n),f&&(p.crossOrigin=f),d&&(p.onerror=d,delete window[r]),("body"===u?document.body:document.getElementsByTagName("head")[0]).appendChild(p))})({onLoadCallbackName:z,scriptOptions:{...r,id:_}})},[S,q,r,_]),(0,i.useEffect)(function(){"ready"!==d&&m(z).then(()=>L(!0)).catch(console.error)},[]),(0,i.useEffect)(function(){if(!O.current||!q)return;let e=!1;return(async()=>{!e&&O.current&&(M.current=window.turnstile.render(O.current,K),M.current&&(null==p||p(M.current)))})(),()=>{e=!0,M.current&&(window.turnstile.remove(M.current),P.current=!1)}},[F,q,K]),(0,i.useImperativeHandle)(t,()=>{let{turnstile:e}=window;return{getResponse(){if((null==e?void 0:e.getResponse)&&M.current&&V())return e.getResponse(M.current)},async getResponsePromise(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return new Promise((r,n)=>{let i,s=async()=>{if(P.current&&window.turnstile&&M.current)try{let e=window.turnstile.getResponse(M.current);return i&&clearTimeout(i),e?r(e):n(Error("No response received"))}catch(e){return i&&clearTimeout(i),console.warn("Failed to get response",e),n(Error("Failed to get response"))}i||(i=setTimeout(()=>{i&&clearTimeout(i),n(Error("Timeout"))},e)),await new Promise(e=>setTimeout(e,t)),await s()};s()})},reset(){if((null==e?void 0:e.reset)&&M.current&&V()){"execute"===n.execution&&I(u.invisible);try{P.current=!1,e.reset(M.current)}catch(e){}}},remove(){(null==e?void 0:e.remove)&&M.current&&V()&&(I(u.invisible),P.current=!1,e.remove(M.current),M.current=null)}
1,render(){if(!(null==e?void 0:e.render)||!O.current||!V()||M.current)return;let t=e.render(O.current,K);return M.current=t,M.current&&(null==p||p(M.current)),"execute"!==n.execution&&I(A?u[A]:{}),t},execute(){"execute"===n.execution&&(null==e?void 0:e.execute)&&O.current&&M.current&&V()&&(e.execute(O.current,K),I(A?u[A]:{}))},isExpired:()=>(null==e?void 0:e.isExpired)&&M.current&&V()?e.isExpired(M.current):(console.warn("Turnstile has not been loaded"),!1)}},[M,n.execution,A,K,O,V,q,p]),(0,i.useEffect)(()=>{D&&!q&&window.turnstile&&L(!0)},[q,D]),(0,i.useEffect)(()=>{I(C())},[n.execution,A,B]),(0,i.useEffect)(()=>{D&&"function"==typeof k&&k()},[D]),(0,s.jsx)(o,{ref:O,as:N,id:F,style:{...R,...j},...T})});p.displayName="Turnstile"},27203:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f});var n=r(95155),i=r(12115),s=r(18955),o=r(34302),a=r(20063),l=r(71508),c=r(26403),u=r(97226),d=r(94716);let f=e=>{let{open:t,onClose:r}=e,{locale:f}=(0,a.useParams)(),m=(0,s.c3)("RequestConfirmModal"),p=(0,s.c3)("ValidationMessages"),{serviceDetail:x,transformCartPayload:b}=(0,c.A)(),h=(0,l.useRouter)(),[y,v]=(0,i.useState)(!1),[g,w]=(0,i.useState)(null),[k,E]=(0,i.useState)(""),[j,N]=(0,i.useState)(0),[S,T]=(0,i.useState)(0),A=async()=>{if(w(null),T(e=>e+1),!k)return;v(!0);let e={cart:b(),serviceID:null==x?void 0:x._id,token:k,paymentMethod:"request",metadata:{paymentMethod:"request"}};try{await (0,o.k)(e),sessionStorage.setItem("lastOrderItems",JSON.stringify([null==x?void 0:x._id])),h.push("/".concat(f,"/request-success"))}catch(e){var t;w((null==e||null==(t=e.data)?void 0:t.message)||(null==e?void 0:e.message)||(null==e?void 0:e.toString())||p("submissionError")),E(""),N(e=>e+1),v(!1)}};return(0,i.useEffect)(()=>{t||(E(""),N(0),w(null))},[t]),(0,i.useEffect)(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[t]),(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center ".concat(t?"block":"hidden"),children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm",onClick:r}),(0,n.jsxs)("div",{className:"relative bg-white rounded-xl w-full max-w-md mx-4 p-6 shadow-xl flex flex-col",children:[(0,n.jsx)("span",{className:"text-xl font-semibold text-citio text-center mb-4",children:m("title")}),(0,n.jsx)("div",{className:"text-center mb-6",children:(0,n.jsx)("p",{className:"text-sm text-gray-600",children:m("description")})}),g&&(0,n.jsx)("div",{className:"bg-red-50 text-red-500 p-3 rounded-lg border border-red-100 text-sm mb-4",children:!k&&S>0?m("captchaRequired"):g}),(0,n.jsx)("div",{className:"mb-4",children:(0,n.jsx)("div",{className:"bg-gray-50 p-3 rounded-lg",children:(0,n.jsx)(d.A,{turnstileKey:j.toString(),open:t,onVerify:e=>{E(e)}})})}),(0,n.jsxs)("div",{className:"flex flex-col md:flex-row gap-3 mt-2",children:[(0,n.jsx)(u.A,{onClick:r,className:"bg-white text-citio border-2 border-citio hover:bg-citio/5 focus:outline-none text-sm px-6 py-2.5 rounded-lg w-full transition-all duration-200",disabled:y,children:m("cancel")}),(0,n.jsx)(u.A,{onClick:A,className:"bg-citio text-white hover:bg-citio-dark focus:outline-none text-sm px-6 py-2.5 rounded-lg w-full transition-all duration-200 disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed",disabled:y||!k,isLoading:y,children:m("confirm")})]})]})]})}},34302:(e,t,r)=>{r.d(t,{f:()=>s,k:()=>o});var n=r(56748),i=r(94524);let s=async e=>{let t=i.A.getInstance().getToken();return await (0,n.uE)("/checkoutsession",{method:"POST",body:e,token:t})},o=async e=>{let t=i.A.getInstance().getToken();return await (0,n.uE)("/paymentfulfillment/".concat(e.metadata.paymentMethod),{method:"POST",body:e,token:t})}},94716:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(95155),i=r(12115),s=r(27118);let o=r(28602).p8?"0x4AAAAAAAY5ecijuqCq4-tc":"1x00000000000000000000AA",a=e=>{let{onVerify:t,open:r,turnstileKey:a="turnstile-key"}=e,l=(0,i.useRef)(null);return(0,i.useEffect)(()=>{r&&l.current&&l.current.reset()},[r]),a&&(0,n.jsx)(s.Xs,{ref:l,siteKey:o,onSuccess:e=>t(e),options:{theme:"light"}})}},97226:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(95155),i=r(51140);r(12115);let s=e=>{let{onClick:t,children:r,className:s,disabled:o,isLoading:a,startIcon:l,type:c}=e;return(0,n.jsx)("button",{onClick:t,type:c,className:s||"text-white bg-citio border text-sm border-citio rounded-lg justify-between items-center !disabled:opacity-50 cursor-pointer",disabled:!!a||o,children:(0,n.jsxs)("span",{className:"flex flex-row items-center justify-center gap-1",children:[a?(0,n.jsx)(i.y,{className:"text-white"}):l&&l,r]})})}}}]);

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.