PageSourceSearch

https://www.examunity.com/dist/DomainPwa-cb33d795913d2a3d459c.chunk.js

js examunity.com collected 2026-10-09 01:23:19 UTC 5,765 bytes, 56 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4501],{14422(e,a,t){t.r(a),t.d(a,{default:()=>y});var n=t(96540),i=t(33149),l=t(18503),p=t(21875),o=t(72364),r=t(587),c=t(88669),s=t(19099),_=t(60254),d=t(18177),m=t(46866),u=t(67005);const w=s.J1`
2  mutation CreateDomainPwa($input: DomainPwaCreateInput!) {
3    domainPwa_create(input: $input) {
4      name
5      description
6      originalIcon {
7        id
8      }
9      smallIcon {
10        name
11        extension
12        info {
13          image {
14            height
15            width
16          }
17        }
18      }
19    }
20  }
21`;const b=s.J1`
22  mutation UpdateDomainPwa($id: ClientID!, $input: DomainPwaUpdateInput!) {
23    domainPwa_update(id: $id, input: $input) {
24      name
25      description
26      originalIcon {
27        id
28      }
29      smallIcon {
30        name
31        extension
32        info {
33          image {
34            height
35            width
36          }
37        }
38      }
39    }
40  }
41`;const f=s.J1`
42  mutation DeleteDomainPwa($id: ClientID!) {
43    domainPwa_delete(id: $id)
44  }
45`;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_extends.apply(null,arguments)}const h=l.vv.create({marker:l.AH`
46    background-color: $success;
47    width: 0.5rem;
48    height: 0.5rem;
49    border-radius: 0.25rem;
50  `,image:l.AH`
51    width: 192px;
52    height: 192px;
53    border-radius: 1rem;
54    border-width: 0.125rem;
55    border-color: $gray-300;
56  `}),g=(0,d.hA)("views.(app).organizations.[slug].domain.pwa.DomainPwa",{domain_web_app:"Domain Web App",domain_web_app_info:"You can use a web app (also known as progressive web app or pwa) for this domain. A web app enables the user to use the website like an app by adding an icon to the home screen.",web_app_is_active:"Web app is active",app_name:"App name",app_name_placeholder:"App name...",app_description:"App description",app_description_placeholder:"App description...",update_web_app:"Update web app",create_web_app:"Create web app",web_app_successfully_updated:"Web app successfully updated.",web_app_successfully_created:"Web app successfully created.",choose_file_dots:"Choose file...",ideally_choose_an_image_with_a_resolution_of_512_x_512_pixels:"Ideally choose an image with a resolution of 512 x 512 pixels.",app_icon:"App icon",the_app_icon_field_is_required:"The app icon field is required.",delete_web_app:"Delete web app",do_you_really_want_to_delete_the_web_app:"Do you really want to delete the web app?",web_app_successfully_deleted:"Web app successfully deleted."});function Pwa(e){let{organization:a}=e;const{domain:t}=a,{pwa:l}=t,[y]=(0,_.vV)(),E=(0,s.wA)(),x=(0,c.Zz)(),D=(0,r.Hn)(!!l),P=(0,s.n_)(),I=(0,r.Hn)(!1),v=(0,n.useCallback)((e,a,t)=>{l||a||t(g("the_app_icon_field_is_required"))},[l]);return n.createElement(n.Fragment,null,n.createElement(i.Zp,null,n.createElement(i.Zp.Body,null,n.createElement(d.x6,_extends({},g("domain_web_app_info"),{styleName:"mb-3"})),!l&&!D.on&&n.createElement(i.N_,{onPress:()=>{D.setOn()}},n.createElement(d.x6,g("create_web_app"))),l&&n.createElement(u.Pq,{styleName:"flex-row jc-between ai-center mb-3"},n.createElement(i.Ss,{styleName:"flex-row ai-center"},n.createElement(i.Ss,{style:h.marker,styleName:"mr-2"}),n.createElement(d.x6,g("web_app_is_active"))),n.createElement(i.$n,{color:"danger",onPress:()=>{I.setOn()}},n.createElement(d.x6,g("delete_web_app")))),D.on&&n.createElement(p.l,{initialValues:{name:l?l.name:null,description:l?l.description:null,file:null},validate:{name:"required",description:"required",file:[v]},onSubmit:async e=>{const a=e.file||!l?await y(e.file):l.originalIcon.id;l?await E(function updateDomainPwa(e,a,t,n){return(0,s.WL)(b,{variables:{id:e,input:{name:a,description:t,fileId:n}}})}(l.id,e.name,e.description,a)):await E(function createDomainPwa(e,a,t,n){return(0,s.WL)(w,{variables:{input:{domainId:e,name:a,description:t,fileId:n}},updater:(a,t)=>{a.update((0,s.KR)("Domain",e),e=>{e.set("pwa",new s.N_(t.domainPwa_create))})}})}
56(t.id,e.name,e.description,a)),await m.lg.fetch(m.$n.url("/api-cache/clear")),x.add({color:"success",content:n.createElement(d.x6,g(l?"web_app_successfully_updated":"web_app_successfully_created"))})},key:l?l.originalIcon.id:t.id},n.createElement(p.l.Input,{name:"name",title:g("app_name"),placeholder:g("app_name_placeholder")}),n.createElement(o.K,{name:"description",title:g("app_description"),placeholder:g("app_description_placeholder")}),n.createElement(p.l.FileInput,{name:"file",title:g("app_icon"),label:g("choose_file_dots"),info:g("ideally_choose_an_image_with_a_resolution_of_512_x_512_pixels"),accept:["image/jpeg","image/png"]}),l&&l.smallIcon&&n.createElement(i._V,{source:`/files/${l.smallIcon.id}/${l.smallIcon.name}`,resizeMode:"cover",style:h.image,styleName:"mb-3"}),n.createElement(i.Ss,{styleName:"flex-row jc-end"},n.createElement(p.l.Button,{type:"submit",color:l?"primary":"success",styleName:"as-end"},n.createElement(d.x6,g(l?"update_web_app":"create_web_app"))))))),n.createElement(u.Rw,{color:"danger",title:n.createElement(d.x6,g("delete_web_app")),button:n.createElement(d.x6,g("delete_web_app")),visible:I.on,onClose:I.toggle,loading:P.loading,onSubmit:async()=>{await P.dispatch(function deleteDomainPwa(e){return(0,s.WL)(f,{variables:{id:e},updater:a=>{a.update((0,s.KR)("Domain",e),e=>{e.set("pwa",null)})}})}(t.id)),await m.lg.fetch(m.$n.url("/api-cache/clear")),x.add({color:"success",content:n.createElement(d.x6,g("web_app_successfully_deleted"))}),D.setOff(),I.setOff()}},n.createElement(d.x6,g("do_you_really_want_to_delete_the_web_app"))))}Pwa.meta=()=>({title:g("domain_web_app")});const y=Pwa}}]);

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.