1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41539,31040],{44901:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/excel-app/add-in-india/auth/angel-one-login",function(){return t(83486)}])},78676:function(e,n,t){"use strict";t.d(n,{Ed:function(){return o},UI:function(){return a},XW:function(){return s}});var r=t(67294);function a(e,n){let t=0;return r.Children.map(e,e=>r.isValidElement(e)?n(e,t++):e)}function o(e,n){let t=0;r.Children.forEach(e,e=>{r.isValidElement(e)&&n(e,t++)})}function s(e,n){return r.Children.toArray(e).some(e=>r.isValidElement(e)&&e.type===n)}},69547:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var r=t(94184),a=t.n(r),o=t(45697),s=t.n(o),l=t(67294),c=t(10792),i=t(70584),d=(0,t(85242).Z)("form-floating"),f=t(89420),u=t(85893);let m=l.forwardRef((e,n)=>{let{controlId:t,as:r="div",...a}=e,o=(0,l.useMemo)(()=>({controlId:t}),[t]);return(0,u.jsx)(f.Z.Provider,{value:o,children:(0,u.jsx)(r,{...a,ref:n})})});m.displayName="FormGroup",t(42473);var x=t(84091),p=t(98814);let h=l.forwardRef((e,n)=>{let{as:t="label",bsPrefix:r,column:o,visuallyHidden:s,className:c,htmlFor:i,...d}=e,{controlId:m}=(0,l.useContext)(f.Z);r=(0,p.vE)(r,"form-label");let h="col-form-label";"string"==typeof o&&(h="".concat(h," ").concat(h,"-").concat(o));let j=a()(c,r,s&&"visually-hidden",o&&h);return(i=i||m,o)?(0,u.jsx)(x.Z,{ref:n,as:"label",className:j,htmlFor:i,...d}):(0,u.jsx)(t,{ref:n,className:j,htmlFor:i,...d})});h.displayName="FormLabel",h.defaultProps={column:!1,visuallyHidden:!1};let j=l.forwardRef((e,n)=>{let{bsPrefix:t,className:r,id:o,...s}=e,{controlId:c}=(0,l.useContext)(f.Z);return t=(0,p.vE)(t,"form-range"),(0,u.jsx)("input",{...s,type:"range",ref:n,className:a()(r,t),id:o||c})});j.displayName="FormRange";let v=l.forwardRef((e,n)=>{let{bsPrefix:t,size:r,htmlSize:o,className:s,isValid:c=!1,isInvalid:i=!1,id:d,...m}=e,{controlId:x}=(0,l.useContext)(f.Z);return t=(0,p.vE)(t,"form-select"),(0,u.jsx)("select",{...m,size:o,ref:n,className:a()(s,t,r&&"".concat(t,"-").concat(r),c&&"is-valid",i&&"is-invalid"),id:d||x})});v.displayName="FormSelect";let y=l.forwardRef((e,n)=>{let{bsPrefix:t,className:r,as:o="small",muted:s,...l}=e;return t=(0,p.vE)(t,"form-text"),(0,u.jsx)(o,{...l,ref:n,className:a()(r,t,s&&"text-muted")})});y.displayName="FormText";let g=l.forwardRef((e,n)=>(0,u.jsx)(c.Z,{...e,ref:n,type:"switch"}));g.displayName="Switch";var b=Object.assign(g,{Input:c.Z.Input,Label:c.Z.Label});let w=l.forwardRef((e,n)=>{let{bsPrefix:t,className:r,children:o,controlId:s,label:l,...c}=e;return t=(0,p.vE)(t,"form-floating"),(0,u.jsxs)(m,{ref:n,className:a()(r,t),controlId:s,...c,children:[o,(0,u.jsx)("label",{htmlFor:s,children:l})]})});w.displayName="FloatingLabel";let Z={_ref:s().any,validated:s().bool,as:s().elementType},E=l.forwardRef((e,n)=>{let{className:t,validated:r,as:o="form",...s}=e;return(0,u.jsx)(o,{...s,ref:n,className:a()(t,r&&"was-validated")})});E.displayName="Form",E.propTypes=Z;var N=Object.assign(E,{Group:m,Control:i.Z,Floating:d,Check:c.Z,Switch:b,Label:h,Text:y,Range:j,Select:v,FloatingLabel:w})},10792:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var r=t(94184),a=t.n(r),o=t(67294),s=t(68366),l=t(74948),c=t(89420),i=t(98814),d=t(85893);let f=o.forwardRef((e,n)=>{let{bsPrefix:t,className:r,htmlFor:s,...l}=e,{controlId:f}=(0,o.useContext)(c.Z);return t=(0,i.vE)(t,"form-check-label"),(0,d.jsx)("label",{...l,ref:n,htmlFor:s||f,className:a()(r,t)})});f.displayName="FormCheckLabel";var u=t(78676);let m=o.forwardRef((e,n)=>{let{id:t,bsPrefix:r,bsSwitchPrefix:m,inline:x=!1,reverse:p=!1,disabled:h=!1,isValid:j=!1,isInvalid:v=!1,feedbackTooltip:y=!1,feedback:g,feedbackType:b,className:w,style:Z,title:E="",type:N="checkbox",label:C,children:F,as:I="input",...L}=e;r=(0,i.vE)(r,"form-check"),m=(0,i.vE)(m,"form-switch");let{controlId:k}=(0,o.useContext)(c.Z),O=(0,o.useMemo)(()=>({controlId:t||k}),[k,t]),A=!F&&null!=C&&!1!==C||(0,u.XW)(F,f),S=(0,d.jsx)(l.Z,{...L,type:"switch"===N?"checkbox":N,ref:n,isValid:j,isInvalid:v,disabled:h,as:I});return(0,d.jsx)(c.Z.Provider,{value:O,children:(0,d.jsx)("div",{style:Z,className:a()(w,A&&r,x&&"".concat(r,"-inline"),p&&"".concat(r,"-reverse"),"switch"===N&&m),children:F||(0,d.jsxs)(d.Fragment,{children:[S,A&&(0,d.jsx)(f,{title:E,children:C}),g&&(0,d.jsx)(s.Z,{type:b,tooltip:y,children:g})]})})})});m.displayName="FormCheck";var x=Object.assign(m,{Input:l.Z,Label:f})},74948:function(e,n,t){"use strict";var r=t(94184),a=t.n(r),o=t(67294),s=t(89420),l=t(98814),c=t(85893);
1let i=o.forwardRef((e,n)=>{let{id:t,bsPrefix:r,className:i,type:d="checkbox",isValid:f=!1,isInvalid:u=!1,as:m="input",...x}=e,{controlId:p}=(0,o.useContext)(s.Z);return r=(0,l.vE)(r,"form-check-input"),(0,c.jsx)(m,{...x,ref:n,type:d,id:t||p,className:a()(i,r,f&&"is-valid",u&&"is-invalid")})});i.displayName="FormCheckInput",n.Z=i},31040:function(e,n,t){"use strict";var r=t(94184),a=t.n(r),o=t(67294),s=t(98814),l=t(85893);let c=o.forwardRef((e,n)=>{let{bsPrefix:t,variant:r,animation:o="border",size:c,as:i="div",className:d,...f}=e;t=(0,s.vE)(t,"spinner");let u="".concat(t,"-").concat(o);return(0,l.jsx)(i,{ref:n,...f,className:a()(d,u,c&&"".concat(u,"-").concat(c),r&&"text-".concat(r))})});c.displayName="Spinner",n.Z=c},85466:function(e,n,t){"use strict";var r=t(85893),a=t(4298),o=t.n(a),s=t(67294);n.Z=e=>{let{children:n,bootFallback:t=null,loadCustomFunctionsRuntime:a,loadCommands:l,onLoadChange:c,onExcelTabChange:i}=e,[d,f]=(0,s.useState)(!1),[u,m]=(0,s.useState)(!1),[x,p]=(0,s.useState)(!1),h=()=>{Office?Office.onReady(e=>{m(!0),"undefined"!=typeof Excel&&Excel.run(async e=>(e.workbook.worksheets.onActivated.add(e=>(i&&i(),Promise.resolve(e))),e.sync().then(function(){}))).catch(e=>{console.error("[OfficeAddIn] Error:",e)})}):console.warn("[OfficeAddIn] Office is not available")};(0,s.useEffect)(()=>{f(!0)},[]),(0,s.useEffect)(()=>{x&&h()},[x]),(0,s.useEffect)(()=>{u&&c&&c(u)},[u]);let j="1790068151724",v=j?"?v=".concat(j):"",y=window.location.pathname.includes("/add-in-india")?"/excel_india":window.location.pathname.includes("/add-in-advisorxls")?"/axls":"/excel";return d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o(),{type:"text/javascript",src:"https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js",onLoad:()=>{p(!0)}}),u?(0,r.jsxs)(r.Fragment,{children:[a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o(),{src:"".concat(y,"/polyfill.js").concat(v),onLoad:()=>console.log("[OfficeAddIn] polyfill.js loaded from",y),onError:e=>console.error("[OfficeAddIn] polyfill.js FAILED to load",e)}),(0,r.jsx)(o(),{src:"".concat(y,"/functions.js").concat(v),onLoad:()=>console.log("[OfficeAddIn] functions.js loaded from",y),onError:e=>console.error("[OfficeAddIn] functions.js FAILED to load",e)})]}),l&&(0,r.jsx)(o(),{src:"".concat(y,"/commands.js").concat(v),onLoad:()=>console.log("[OfficeAddIn] commands.js loaded from",y),onError:e=>console.error("[OfficeAddIn] commands.js FAILED to load",e)}),(0,r.jsx)(o(),{src:"".concat(y,"/ribbon-functions.js").concat(v),onLoad:()=>console.log("[OfficeAddIn] ribbon-functions.js loaded from",y),onError:e=>console.error("[OfficeAddIn] ribbon-functions.js FAILED to load",e)}),n]}):(0,r.jsx)(r.Fragment,{children:t})]}):(0,r.jsx)(r.Fragment,{children:t})}},83486:function(e,n,t){"use strict";t.r(n);var r=t(85893),a=t(67294),o=t(31040),s=t(69547),l=t(7644),c=t(85466);n.default=()=>{let[e,n]=(0,a.useState)(!1),[t,i]=(0,a.useState)(""),[d,f]=(0,a.useState)(""),[u,m]=(0,a.useState)(""),[x,p]=(0,a.useState)(""),[h,j]=(0,a.useState)(!1);return(0,r.jsx)(c.Z,{onLoadChange:n,children:(0,r.jsx)("div",{style:{maxWidth:"400px",margin:"24px auto",padding:"0 16px",fontFamily:"Segoe UI, Arial, sans-serif"},children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{style:{marginBottom:"8px"},children:"Angel One Credentials"}),(0,r.jsx)("p",{style:{fontSize:"13px",color:"#666",marginBottom:"16px"},children:(0,r.jsx)("a",{href:"https://marketxls-downloads.s3.us-west-2.amazonaws.com/MarketXLS+API+Document.pdf",target:"_blank",rel:"noopener noreferrer",children:"Learn how to get your credentials"})}),(0,r.jsxs)(s.Z,{onSubmit:e=>{if(e.preventDefault(),t&&d&&u&&x){j(!0);try{let e=JSON.stringify({type:"angel_one_credentials",apiKey:t,clientId:d,password:u,token:x});Office.context.ui.messageParent(e)}catch(e){console.error("Failed to send credentials to parent:",e),j(!1)}}},children:[(0,r.jsxs)(s.Z.Group,{className:"mb-3",children:[(0,r.jsx)(s.Z.Label,{children:"API Key"}),(0,r.jsx)(s.Z.Control,{type:"text",placeholder:"API Key",value:t,onChange:e=>i(e.target.value),required:!0})]}),(0,r.jsxs)(s.Z.Group,{className:"mb-3",children:[(0,r.jsx)(s.Z.Label,{children:"Client ID"}),(0,r.jsx)(s.Z.Control,{type:"text",placeholder:"Client ID",value:d,onChange:e=>f(e.target.value),required:!0})]}),(0,r.jsxs)(s.Z.Group,{className:"mb-3",children:[(0,r.jsx)(s.Z.Label,{children:"Password"}),(0,r.jsx)(s.Z.Control,{type:"password",placeholder:"Password",value:u,onChange:e=>m(e.target.value),required:!0})]}),(0,r.jsxs)(s.Z.Group,{className:"mb-3",children:[(0,r.jsx)(s.Z.Label,{children:"TOTP Token"}),(0,r.jsx)(s.Z.Control,{type:"text",placeholder:"Token",value:x,onChange:e=>p(e.target.value),required:!0})]}),(0,r.jsx)(l.Z,{type:"submit",disabled:h,className:"me-2",children:h?"Connecting...":"Connect"})]})]}):(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:"40px"},children:[(0,r.jsx)(o.Z,{animation:"border",variant:"primary"}),(0,r.jsx)("p",{style:{marginTop:"16px",color:"#666"},children:"Loading..."})]})})})}}},function(e){e.O(0,[92888,49774,40179],function(){return e(e.s=44901)}),_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.