PageSourceSearch

https://dailysuraj.com/build/8843.45c6e51f.js

js dailysuraj.com collected 2026-10-03 18:26:01 UTC 16,981 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8843],{45673:(e,t,n)=>{n.d(t,{K:()=>r});var r=["512 512","<path fill='var(--ci-primary-color, currentColor)' d='M29.663,482.25l.087.087a24.847,24.847,0,0,0,17.612,7.342,25.178,25.178,0,0,0,8.1-1.345l142.006-48.172,272.5-272.5A88.832,88.832,0,0,0,344.334,42.039l-272.5,272.5L23.666,456.541A24.844,24.844,0,0,0,29.663,482.25Zm337.3-417.584a56.832,56.832,0,0,1,80.371,80.373L411.5,180.873,331.127,100.5ZM99.744,331.884,308.5,123.127,388.873,203.5,180.116,412.256,58.482,453.518Z' class='ci-primary'/>"]},87904:(e,t,n)=>{n.d(t,{Z:()=>r});var r=["512 512","<path fill='var(--ci-primary-color, currentColor)' d='M96,472a23.82,23.82,0,0,0,23.579,24H392.421A23.82,23.82,0,0,0,416,472V152H96Zm32-288H384V464H128Z' class='ci-primary'/><rect width='32' height='200' x='168' y='216' fill='var(--ci-primary-color, currentColor)' class='ci-primary'/><rect width='32' height='200' x='240' y='216' fill='var(--ci-primary-color, currentColor)' class='ci-primary'/><rect width='32' height='200' x='312' y='216' fill='var(--ci-primary-color, currentColor)' class='ci-primary'/><path fill='var(--ci-primary-color, currentColor)' d='M328,88V40c0-13.458-9.488-24-21.6-24H205.6C193.488,16,184,26.542,184,40V88H64v32H448V88ZM216,48h80V88H216Z' class='ci-primary'/>"]},24908:(e,t,n)=>{n.d(t,{q:()=>c});var r=n(60429),a=n(96540),o=n(5556),i=n.n(o),l=n(96478),c=(0,a.forwardRef)((function(e,t){var n=e.children,o=e.className,i=e.validated,c=(0,r.Tt)(e,["children","className","validated"]);return a.createElement("form",(0,r.Cl)({className:(0,l.A)({"was-validated":i},o)||void 0},c,{ref:t}),n)}));c.propTypes={children:i().node,className:i().string,validated:i().bool},c.displayName="CForm"},22956:(e,t,n)=>{n.d(t,{M:()=>s});var r=n(60429),a=n(96540),o=n(5556),i=n.n(o),l=n(96478),c=n(77217),s=(0,a.forwardRef)((function(e,t){var n,o=e.children,i=e.className,s=e.feedback,d=e.feedbackInvalid,u=e.feedbackValid,f=e.floatingClassName,m=e.floatingLabel,p=e.htmlSize,h=e.id,b=e.invalid,y=e.label,v=e.options,g=e.size,x=e.text,j=e.tooltipFeedback,N=e.valid,O=(0,r.Tt)(e,["children","className","feedback","feedbackInvalid","feedbackValid","floatingClassName","floatingLabel","htmlSize","id","invalid","label","options","size","text","tooltipFeedback","valid"]);return a.createElement(c.O,{describedby:O["aria-describedby"],feedback:s,feedbackInvalid:d,feedbackValid:u,floatingClassName:f,floatingLabel:m,id:h,invalid:b,label:y,text:x,tooltipFeedback:j,valid:N},a.createElement("select",(0,r.Cl)({id:h,className:(0,l.A)("form-select",(n={},n["form-select-".concat(g)]=g,n["is-invalid"]=b,n["is-valid"]=N,n),i),size:p},O,{ref:t}),v?v.map((function(e,t){return a.createElement("option",(0,r.Cl)({},"object"==typeof e&&e.disabled&&{disabled:e.disabled},"object"==typeof e&&void 0!==e.value&&{value:e.value},{key:t}),"string"==typeof e?e:e.label)})):o))}));s.propTypes=(0,r.Cl)({className:i().string,htmlSize:i().number,options:i().array},c.O.propTypes),s.displayName="CFormSelect"},49276:(e,t,n)=>{n.d(t,{Q:()=>s});var r=n(60429),a=n(96540),o=n(5556),i=n.n(o),l=n(96478),c=n(40772),s=(0,a.forwardRef)((function(e,t){var n,o=e.className,i=e.id,s=e.invalid,d=e.label,u=e.reverse,f=e.size,m=e.type,p=void 0===m?"checkbox":m,h=e.valid,b=(0,r.Tt)(e,["className","id","invalid","label","reverse","size","type","valid"]);return a.createElement("div",{className:(0,l.A)("form-check form-switch",(n={"form-check-reverse":u},n["form-switch-".concat(f)]=f,n["is-invalid"]=s,n["is-valid"]=h,n),o)},a.createElement("input",(0,r.Cl)({type:p,className:(0,l.A)("form-check-input",{"is-invalid":s,"is-valid":h}),id:i},b,{ref:t})),d&&a.createElement(c.A,(0,r.Cl)({customClassName:"form-check-label"},i&&{htmlFor:i}),d))}));s.propTypes={className:i().string,id:i().string,invalid:i().bool,label:i().oneOfType([i().string,i().node]),reverse:i().bool,size:i().oneOf(["lg","xl"]),type:i().oneOf(["checkbox","radio"]),valid:i().bool},s.displayName="CFormSwitch"},79948:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(60429),a=n(96540),o=n(5556),i=n.n(o),l=n(96478),c=["xxl","xl","lg","md","sm","xs"],s=(0,a.forwardRef)((function(e,t){var n=e.children,o=e.className,i=(0,r.Tt)(e,["children","className"]),s=[];
1return c.forEach((function(e){var t=i[e];delete i[e];var n="xs"===e?"":"-".concat(e);"number"!=typeof t&&"string"!=typeof t||s.push("col".concat(n,"-").concat(t)),"boolean"==typeof t&&s.push("col".concat(n)),t&&"object"==typeof t&&("number"!=typeof t.span&&"string"!=typeof t.span||s.push("col".concat(n,"-").concat(t.span)),"boolean"==typeof t.span&&s.push("col".concat(n)),"number"!=typeof t.order&&"string"!=typeof t.order||s.push("order".concat(n,"-").concat(t.order)),"number"==typeof t.offset&&s.push("offset".concat(n,"-").concat(t.offset)))})),a.createElement("div",(0,r.Cl)({className:(0,l.A)(s.length>0?s:"col",o)},i,{ref:t}),n)})),d=i().oneOfType([i().bool,i().number,i().string,i().oneOf(["auto"])]),u=i().oneOfType([d,i().shape({span:d,offset:i().oneOfType([i().number,i().string]),order:i().oneOfType([i().oneOf(["first","last"]),i().number,i().string])})]);s.propTypes={children:i().node,className:i().string,xs:u,sm:u,md:u,lg:u,xl:u,xxl:u},s.displayName="CCol"},42598:(e,t,n)=>{n.d(t,{s:()=>s});var r=n(60429),a=n(96540),o=n(5556),i=n.n(o),l=n(96478),c=["xxl","xl","lg","md","sm","xs"],s=(0,a.forwardRef)((function(e,t){var n=e.children,o=e.className,i=(0,r.Tt)(e,["children","className"]),s=[];return c.forEach((function(e){var t=i[e];delete i[e];var n="xs"===e?"":"-".concat(e);"object"==typeof t&&(t.cols&&s.push("row-cols".concat(n,"-").concat(t.cols)),"number"==typeof t.gutter&&s.push("g".concat(n,"-").concat(t.gutter)),"number"==typeof t.gutterX&&s.push("gx".concat(n,"-").concat(t.gutterX)),"number"==typeof t.gutterY&&s.push("gy".concat(n,"-").concat(t.gutterY)))})),a.createElement("div",(0,r.Cl)({className:(0,l.A)("row",s,o)},i,{ref:t}),n)})),d=i().shape({cols:i().oneOfType([i().oneOf(["auto"]),i().number,i().string]),gutter:i().oneOfType([i().string,i().number]),gutterX:i().oneOfType([i().string,i().number]),gutterY:i().oneOfType([i().string,i().number])});s.propTypes={children:i().node,className:i().string,xs:d,sm:d,md:d,lg:d,xl:d,xxl:d},s.displayName="CRow"},18843:(e,t,n)=>{n.r(t),n.d(t,{default:()=>z});n(52675),n(89463),n(2259),n(45700),n(16280),n(76918),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(44114),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(5506),n(83851),n(81278),n(79432),n(26099),n(3362),n(9391),n(27495),n(90906),n(38781),n(47764),n(98992),n(54520),n(72577),n(3949),n(81454),n(23500),n(62953);var r=n(96540),a=n(42598),o=n(79948),i=n(76748),l=n(99385),c=n(34772),s=n(24908),d=n(22956),u=n(26654),f=n(49276),m=n(43172),p=n(63548),h=n(97374),b=n(99246),y=n(81009),v=n(31244),g=n(75440),x=n(96270),j=n(45673),N=n(87904),O=n(80439),k=n(71083),C=n(99571),S=n(74848);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}
1finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var P={platformName:"",profileUrl:"",visibility:!0,location:"both",displayOrder:""};const z=function(){var e=E(r.useState(!1),2),t=e[0],n=e[1],w=E(r.useState(!1),2),U=w[0],R=w[1],z=E(r.useState([]),2),V=z[0],L=z[1],D=E(r.useState([]),2),F=D[0],M=D[1],Z=E(r.useState(""),2),$=Z[0],H=Z[1],I=E(r.useState(P),2),Q=I[0],B=I[1],Y=E(r.useState(null),2),q=Y[0],_=Y[1],X=r.useCallback((function(){n(!0),k.A.get("/myadmin/social-setting/index.json").then((function(e){"success"===e.data.status?L(e.data.data||[]):C.oR.error(e.data.message||"Unable to load social settings")})).catch((function(){return C.oR.error("Unable to load social settings")})).finally((function(){return n(!1)}))}),[]),K=r.useCallback((function(){k.A.get("/myadmin/social-setting/csrf-token.json").then((function(e){var t;"success"===e.data.status&&H((null===(t=e.data.data)||void 0===t?void 0:t.token)||"")})).catch((function(){return C.oR.error("Unable to prepare secure form token")}))}),[]),W=r.useCallback((function(){k.A.get("/myadmin/social-setting/options.json").then((function(e){var t;"success"===e.data.status&&M((null===(t=e.data.data)||void 0===t?void 0:t.platforms)||[])})).catch((function(){return C.oR.error("Unable to load social setting options")}))}),[]);r.useEffect((function(){X(),K(),W()}),[X,K,W]);var G=F.find((function(e){return e.name===Q.platformName})),J=function(e){var t=e.target,n=t.name,r=t.value,a=t.type,o=t.checked;B((function(e){return A(A({},e),{},T({},n,"checkbox"===a?o:r))}))},ee=function(){B(P),_(null)},te=function(e){var t=new FormData;return t.append("_token",$),k.A.post(e,t)};return(0,S.jsxs)(a.s,{children:[(0,S.jsx)(o.U,{xs:12,children:(0,S.jsxs)(i.E,{className:"mb-4",children:[(0,S.jsx)(l.V,{children:q?"Edit Social Setting":"Create Social Setting"}),(0,S.jsx)(c.W,{children:(0,S.jsxs)(s.q,{onSubmit:function(e){e.preventDefault(),R(!0);var t,n=q?"/myadmin/social-setting/update/".concat(q,".json"):"/myadmin/social-setting/create.json";k.A.post(n,(t=new FormData,t.append("_token",$),Object.entries(Q).forEach((function(e){var n=E(e,2),r=n[0],a=n[1];t.append(r,a)})),t)).then((function(e){"success"===e.data.status?(C.oR.success(q?"Social setting updated":"Social setting created"),X(),K(),ee()):C.oR.error(e.data.message||"Unable to save social setting")})).catch((function(){return C.oR.error("Unable to save social setting")})).finally((function(){return R(!1)}))},children:[(0,S.jsxs)(a.s,{className:"mb-3",children:[(0,S.jsx)(o.U,{md:3,children:(0,S.jsxs)(d.M,{label:"Platform Name",name:"platformName",value:Q.platformName,onChange:J,required:!0,children:[(0,S.jsx)("option",{value:"",children:"Select platform"}),F.map((function(e){return(0,S.jsx)("option",{value:e.name,children:e.name},e.name)}))]})}),(0,S.jsx)(o.U,{md:5,children:(0,S.jsx)(u.O,{label:"Profile URL",name:"profileUrl",type:"url",value:Q.profileUrl,onChange:J,placeholder:"https://facebook.com/example",required:!0})}),(0,S.jsx)(o.U,{md:2,children:(0,S.jsx)(u.O,{label:"Display Order",name:"displayOrder",type:"number",min:"0",value:Q.displayOrder,onChange:J})}),(0,S.jsx)(o.U,{md:2,children:(0,S.jsxs)(d.M,{label:"Location",name:"location",value:Q.location,onChange:J,children:[(0,S.jsx)("option",{value:"top",children:"Top"}),(0,S.jsx)("option",{value:"bottom",children:"Bottom"}),(0,S.jsx)("option",{value:"both",children:"Both"})]})})]}),(0,S.jsxs)(a.s,{className:"mb-3",children:[(0,S.jsx)(o.U,{md:6,children:(0,S.jsx)(u.O,{label:"Icon",value:(null==G?void 0:G.icon)||"",disabled:!0,readOnly:!0})}),(0,S.jsx)(o.U,{md:3,className:"d-flex align-items-center",children:G&&(0,S.jsxs)("span",{className:"d-inline-flex align-items-center gap-2 text-muted",children:[(0,S.jsx)("i",{className:G.icon}),G.name]})}),(0,S.jsx)(o.U,{md:3,className:"d-flex align-items-center",children:(0,S.jsx)(f.Q,{size:"lg",name:"visibility",label:"Visible",checked:Q.visibility,onChange:J})})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)(m.Q,{type:"submit",color:"primary",className:"me-2",disabled:U||!$,children:U?"Saving...":q?"Update Social Link":"Add Social Link"}),q&&(0,S.jsx)(m.Q,{type:"button",color:"secondary",onClick:ee,disabled:U,children:"Cancel"})]})]})})]})}),(0,S.jsx)(o.U,{xs:12,children:(0,S.jsxs)(i.E,{children:[(0,S.jsxs)(l.V,{children:["Social Settings ",t&&(0,S.jsx)("small",{className:"text-muted",children:" Loading..."})]}),(0,S.jsx)(c.W,{children:(0,S.jsxs)(p._,{hover:!0,responsive:!0,children:[(0,S.jsx)(h.w,{color:"light",children:(0,S.jsxs)(b.Y,{children:[(0,S.jsx)(y.$,{scope:"col",children:"Order"}),(0,S.jsx)(y.$,{scope:"col",children:"Platform"}),(0,S.jsx)(y.$,{scope:"col",children:"Profile URL"}),(0,S.jsx)(y.$,{scope:"col",children:"Location"}),(0,S.jsx)(y.$,{scope:"col",children:"Icon"}),(0,S.jsx)(y.$,{scope:"col",children:"Visible"}),(0,S.jsx)(y.$,{scope:"col",className:"text-end",children:"Actions"})]})}),(0,S.jsxs)(v.C,{children:[0===V.length&&(0,S.jsx)(b.Y,{children:(0,S.jsx)(g.c,{colSpan:7,className:"text-center text-muted",children:"No social links configured."})}),V.map((function(e){return(0,S.jsxs)(b.Y,{children:[(0,S.jsx)(g.c,{children:e.displayOrder}),(0,S.jsx)(g.c,{children:(0,S.jsxs)("span",{className:"d-inline-flex align-items-center gap-2",children:[e.icon&&(0,S.jsx)("i",{className:e.icon}),e.platformName]})}),(0,S.jsx)(g.c,{children:(0,S.jsx)("a",{href:e.profileUrl,target:"_blank",rel:"noreferrer",children:e.profileUrl})}),(0,S.jsx)(g.c,{children:(0,S.jsx)(x.$,{color:"secondary",children:(t=e.location,"top"===t?"Top":"bottom"===t?"Bottom":"Both")})}),(0,S.jsx)(g.c,{children:e.icon||"-"}),(0,S.jsx)(g.c,{children:(0,S.jsx)(f.Q,{size:"lg",checked:Boolean(e.visibility),onChange:function(){return function(e){te("/myadmin/social-setting/toggle/".concat(e.id,".json")).then((function(e){"success"===e.data.status?(X(),K()):C.oR.error(e.data.message||"Unable to update visibility")}
1)).catch((function(){return C.oR.error("Unable to update visibility")}))}(e)},label:""})}),(0,S.jsxs)(g.c,{className:"text-end",children:[(0,S.jsx)(m.Q,{size:"sm",color:"info",className:"me-2",onClick:function(){return function(e){_(e.id),B({platformName:e.platformName||"",profileUrl:e.profileUrl||"",visibility:Boolean(e.visibility),location:e.location||"both",displayOrder:0===e.displayOrder||e.displayOrder?String(e.displayOrder):""})}(e)},children:(0,S.jsx)(O.Ay,{icon:j.K})}),(0,S.jsx)(m.Q,{size:"sm",color:"danger",onClick:function(){return function(e){window.confirm("Delete ".concat(e.platformName,"?"))&&te("/myadmin/social-setting/delete/".concat(e.id,".json")).then((function(t){"success"===t.data.status?(C.oR.success("Social setting deleted"),X(),K(),q===e.id&&ee()):C.oR.error(t.data.message||"Unable to delete social setting")})).catch((function(){return C.oR.error("Unable to delete social setting")}))}(e)},children:(0,S.jsx)(O.Ay,{icon:N.Z})})]})]},e.id);var t}))]})]})})]})})]})}},32357:(e,t,n)=>{var r=n(43724),a=n(79039),o=n(79504),i=n(42787),l=n(71072),c=n(25397),s=o(n(48773).f),d=o([].push),u=r&&a((function(){var e=Object.create(null);return e[2]=2,!s(e,2)})),f=function(e){return function(t){for(var n,a=c(t),o=l(a),f=u&&null===i(a),m=o.length,p=0,h=[];m>p;)n=o[p++],r&&!(f?n in a:s(a,n))||d(h,e?[n,a[n]]:a[n]);return h}};e.exports={entries:f(!0),values:f(!1)}},5506:(e,t,n)=>{var r=n(46518),a=n(32357).entries;r({target:"Object",stat:!0},{entries:function(e){return a(e)}})},9391:(e,t,n)=>{var r=n(46518),a=n(96395),o=n(80550),i=n(79039),l=n(97751),c=n(94901),s=n(2293),d=n(93438),u=n(36840),f=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&i((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=s(this,l("Promise")),n=c(e);return this.then(n?function(n){return d(t,e()).then((function(){return n}))}:e,n?function(n){return d(t,e()).then((function(){throw n}))}:e)}}),!a&&c(o)){var m=l("Promise").prototype.finally;f.finally!==m&&u(f,"finally",m,{unsafe:!0})}}}]);

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.