PageSourceSearch

https://sprprotect.co.uk/_nuxt/af1903b.js

js sprprotect.co.uk collected 2026-10-06 20:33:20 UTC 15,813 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[120],{1059:function(t,e,n){var content=n(1628);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(20).default)("613dd7e2",content,!0,{sourceMap:!1})},1627:function(t,e,n){"use strict";n(1059)},1628:function(t,e,n){var o=n(19)(!1);o.push([t.i,".websitesforfree,.websitesforfreeusa{--color-primary:#fd3e7a;--color-secondary:#253069;--color-highlight:#fd3e7a;--color-header:#253069;--color-table:#f8f2fe}.ROXO{--color-primary:#221f1a;--color-secondary:#a8531f;--color-highlight:#a8531f;--color-header:#221f1a}.section-gallery-layout1{padding:60px 0}.section-layouts .section-gallery-layout1{padding:0}.section-layouts .section-gallery-layout1 img{height:5vw;max-height:100px!important}.section-layouts .section-gallery-layout1 .items-wrapper .list-group-item{margin:5px;width:calc(25% - 10px)}.section-layouts .section-gallery-layout1 .margin-tb-large{margin:15px 0}.section-gallery-layout1 img{border-radius:5px;display:block;height:88vw;max-height:400px;-o-object-fit:cover;object-fit:cover;width:100%}.section-gallery-layout1 .items-wrapper{display:flex;flex-wrap:wrap}.section-gallery-layout1 .items-wrapper .list-group-item{margin:5px;width:100%}.is-tablet .section-gallery-layout1 .items-wrapper .list-group-item{width:calc(50% - 10px)}.is-tablet .section-gallery-layout1 .items-wrapper .list-group-item img{height:44vw}.is-desktop .section-gallery-layout1 .items-wrapper .list-group-item{margin:15px;width:calc(25% - 30px)}.is-desktop .section-gallery-layout1 .items-wrapper .list-group-item img{height:18vw;max-height:280px}.section-gallery-layout1 .content-item{width:100%}",""]),t.exports=o},2209:function(t,e,n){"use strict";n.r(e);var o={name:"GalleryLayout1",mixins:[n(319).a]},r=(n(1627),n(6)),component=Object(r.a)(o,function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"align-center justify-center border-wrapper"},[e("div",{staticClass:"border-decoration border-dark"}),t._v(" "),t.editMode?e("client-only",[e("TextEditor",{attrs:{menuClass:"align-center",modelKey:"heading",modelValue:t.localSectionContent.content.heading,placeholder:"About Us"},on:{update:t.updateSectionContent}})],1):e("div",{staticClass:"site-section-item-input has-decoration",domProps:{innerHTML:t._s(t.localSectionContent.content.heading)}}),t._v(" "),e("div",{staticClass:"border-decoration border-dark"})],1),t._v(" "),e("Items",{staticClass:"margin-tb-large",attrs:{sectionId:t.sectionId,list:t.items,layoutComponent:"GalleryItem",layoutSettings:t.layoutSettings}}
1)],1)},[],!1,null,null,null);e.default=component.exports;installComponents(component,{TextEditor:n(317).default,Items:n(343).default})},316:function(t,e,n){"use strict";n.r(e);var o=n(5),r={name:"BtnConfirm",data:()=>({isActive:!1}),components:{Btn:n(111).default},props:{btnLabel:String,btnIcon:String,proceedLabel:String,warningLabel:String,cancelLabel:String,btnClass:String,showExtraWaring:Boolean,extraWarning:String,isLoading:Boolean,darkSpinner:Boolean,disabled:Boolean},methods:{...Object(o.b)(["toggleOverlay"]),initateAction(){this.isActive=!0,this.toggleOverlay(!0)},cancel(){this.isActive=!1,this.toggleOverlay(!1)},proceed(){this.$emit("proceed"),this.isActive=!1,this.toggleOverlay(!1)}}},l=(n(322),n(6)),component=Object(l.a)(r,function(){var t=this,e=t._self._c;return e("div",{staticClass:"btn-confirm",class:{"is-active":this.isActive}},[e("div",{staticClass:"btn-decisions",class:[t.btnClass,{"is-loading":t.isLoading,disabled:t.disabled}],on:{click:function(e){return e.preventDefault(),t.initateAction.apply(null,arguments)}}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.isLoading?e("span",{key:"loading"},[t.darkSpinner?e("img",{attrs:{src:n(112)}}):e("img",{attrs:{src:n(113)}})]):e("span",{key:"value"},[t.btnIcon?e("Sprite",{attrs:{name:t.btnIcon}}):t._e(),t._v(" "),t.btnLabel?e("span",[t._v(t._s(t.btnLabel))]):t._e()],1)])],1),t._v(" "),e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.isActive?e("Overlay",{staticClass:"centered btn-confirm-overlay",attrs:{widthSize:"small",teleportToBody:""},on:{closeOverlay:t.cancel}},[t.showExtraWaring?e("p",{staticClass:"default-font extra-warning"},[t._v(t._s(t.extraWarning))]):t._e(),t._v(" "),t.warningLabel?e("p",{staticClass:"default-font warning-label"},[t._v(t._s(t.warningLabel))]):t._e(),t._v(" "),e("Btn",{staticClass:"btn proceed-delete",on:{click:t.proceed}},[t._v(t._s(t.proceedLabel))]),t._v(" "),e("Btn",{staticClass:"btn",on:{click:t.cancel}},[t._v(t._s(t.cancelLabel))])],1):t._e()],1)],1)},[],!1,null,null,null);e.default=component.exports;installComponents(component,{Sprite:n(79).default,Btn:n(111).default,Overlay:n(315).default})},318:function(t){t.exports=JSON.parse('[{"type":"pages","singular":"page","plural":"pages"},{"type":"blogs","singular":"blog post","plural":"posts"},{"type":"events","singular":"event","plural":"events"},{"type":"products","singular":"product","plural":"products"},{"type":"projects","singular":"project","plural":"projects"},{"type":"vehicles","singular":"vehicle","plural":"vehicles"},{"type":"courses","singular":"course","plural":"courses"},{"type":"properties","singular":"property","plural":"properties"}]')},319:function(t,e,n){"use strict";var o=n(5),r=(n(317),n(318));e.a={props:{sectionId:String,itemId:String,items:Array,itemIndex:Number,layoutSettings:Object,hasLink:Boolean,sectionContent:Object,sectionItem:Object,sectionSettings:Object},data:()=>({localItemContent:{},localSectionContent:{},localSectionSettings:{},pageTypeTranslations:r}),created(){(this.itemId||this.sectionItem)&&this.fetchItemContent(),this.fetchSectionContent()},methods:{fetchItemContent(){this.item?this.localItemContent={...this.item.content}:this.sectionItem&&(this.localItemContent={...this.sectionItem})},fetchSectionContent(){this.section&&this.section.content?this.$set(this.localSectionContent,"content",{...this.section.content}):this.sectionContent&&this.$set(this.localSectionContent,"content",{...this.sectionContent}),this.localSectionSettings=this.sectionSettings||{}},updateItemContent(data){this.$store.dispatch("updateChangesMade",!0),this.$set(this.localItemContent,data.key,data.value),this.$store.dispatch("updateItemContent",{sectionId:this.sectionId,itemId:this.itemId,key:data.key,value:data.value})},updateSectionContent(data){this.$store.dispatch("updateChangesMade",!0),this.$set(this.localSectionContent.content,data.key,data.value),this.$store.dispatch("updateSectionContent",{sectionId:this.sectionId,key:data.key,value:data.value})},updateSectionSettings(t){this.$store.dispatch("updateChangesMade",!0);const e={sectionId:this.sectionId,key:t,value:this.localSectionSettings[t]};console.log(e),this.$store.dispatch("updateSectionSettings",e)},changePage(t){this.$emit("changePage",t)}},computed:{...Object(o.d)(["editMode"]),section(){return this.$store.state.pageContent.sections.find(s=>s.id===this.sectionId)||null},pageType(){return t=>this.pageTypeTranslations.find(e=>e.type===t)},item(){const section=this.$store.state.pageContent.sections.find(s=>s.id===this.sectionId);return section?section.items.find(i=>i.id===this.itemId):null},dynamicWidth:()=>(t,e)=>{t.length>4?t.length:e.length;return`width: ${t.length}ch`},stripHtml:()=>t=>"string"!=typeof t?"":t.replace(/<[^>]*>/g,""),itemImagePath(){return t=>this.item?this.item.content[t]:this.localItemContent[t]},sectionImagePath(){return t=>this.section?this.section.content[t]:this.localSectionContent.content[t]}}}},320:function(t,e,n){var content=n(323);
1content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(20).default)("574dbe08",content,!0,{sourceMap:!1})},322:function(t,e,n){"use strict";n(320)},323:function(t,e,n){var o=n(19)(!1);o.push([t.i,".websitesforfree,.websitesforfreeusa{--color-primary:#fd3e7a;--color-secondary:#253069;--color-highlight:#fd3e7a;--color-header:#253069;--color-table:#f8f2fe}.ROXO{--color-primary:#221f1a;--color-secondary:#a8531f;--color-highlight:#a8531f;--color-header:#221f1a}.btn-confirm-overlay{z-index:600000!important}.btn-confirm .extra-warning,.btn-confirm .warning-label{margin-bottom:15px}.btn-confirm .extra-warning{color:#ff2c2c;font-weight:700}.btn-confirm.is-active{opacity:1!important;pointer-events:auto!important}.btn-decisions{cursor:pointer;justify-content:center;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .1s ease}.btn-decisions,.btn-decisions>span{align-items:center;display:inline-flex}.btn-decisions>span{gap:6px}.btn-decisions.btn-delete{border:1px solid #d80606}.btn-decisions.btn-delete .sprite{fill:#d80606}.btn-decisions.disabled{opacity:.4;pointer-events:none}.btn.proceed-delete{background:#d80606;border-color:transparent;box-shadow:0 1px 3px rgba(0,0,0,.15),0 2px 8px rgba(0,0,0,.1);color:#fff;margin-bottom:15px}.btn.proceed-delete:hover{border-color:transparent;filter:brightness(1.08)}.btn.proceed-delete:active{filter:brightness(.95);transform:translateY(1px)}@media screen and (min-width:1200px){.btn.proceed-delete{margin-right:15px}}",""]),t.exports=o},329:function(t,e,n){var content=n(342);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(20).default)("9fc48db4",content,!0,{sourceMap:!1})},341:function(t,e,n){"use strict";n(329)},342:function(t,e,n){var o=n(19)(!1);o.push([t.i,".sortable-chosen{background:#fff}.sortable-ghost{background:#fbfbfb}.flip-list-move{transition:transform .5s}.no-move{transition:transform 0s}.ghost{background:transparent;opacity:.2}.item-delete{transition:z-index .3s ease-in-out}.item-delete.is-active{z-index:10000!important}.btn-confirm.is-active,.item-button.is-active,.item-delete.is-active{opacity:1!important;pointer-events:auto!important}.item-editable .list-group-item{border-radius:10px;position:relative;transition:background .3s ease-in-out}.item-editable .list-group-item-inner{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.item-editable .list-group-item-inner .item-button{pointer-events:auto}.item-editable .drag-handle{cursor:move}.link-item{cursor:pointer}.list-group-item{transition:all .5s ease}",""]),t.exports=o},343:function(t,e,n){"use strict";n.r(e);var o=n(345),r=n.n(o),l=n(316),c=n(5),d={name:"Items",data:()=>({drag:!1,activeItem:{content:{link:""}},linkPopupActive:!1,selectInternal:!0}),components:{draggable:r.a,BtnConfirm:l.default},inject:{isLayoutPreview:{default:!1}},props:{sectionId:String,list:Array,layoutComponent:String,layoutSettings:Object,hasLink:Boolean},computed:{...Object(c.d)(["editMode","websiteInfo","websitePages","pageContent","siteId"]),showControls(){return this.editMode&&!this.isLayoutPreview},dragOptions(){return{animation:200,disabled:!this.showControls,ghostClass:"ghost"}},controlsClass(){return this.layoutSettings.direction||""},currentSection(){return this.pageContent.sections.find(section=>section.id===this.sectionId)||{}},sitePages(){return this.websitePages||[]},isSelected(){return t=>t.slug===this.activeItem.link}},methods:{...Object(c.b)(["deleteItem","updateChangesMade","handleNotification"]),activateDrag(){this.drag=!0},activateLinkPopup(t){this.activeItem={...t,link:t.content.link||""},t.content.link&&t.content.link.includes("http")&&(this.selectInternal=!1),this.linkPopupActive=!0},closeLinkPopup(){this.activeItem={content:{link:""}},this.linkPopupActive=!1},orderList(){this.$store.dispatch("reorderItems",this.sectionId),this.updateChangesMade(!0)},handleAddItemBefore(t){const data={sectionId:this.sectionId,item:t};this.$store.dispatch("addItemBefore",data),this.updateChangesMade(!0)},handleAddItemAfter(t){const data={sectionId:this.sectionId,item:t};this.$store.dispatch("addItemAfter",data),this.updateChangesMade(!0)},toggleLinkType(){this.selectInternal=!this.selectInternal},updateLink(t){let e=this.activeItem,n=t.target.value;this.$store.dispatch("updateItemContent",{sectionId:this.sectionId,itemId:e.id,key:"link",value:n}),this.updateChangesMade(!0)},cancelDelete(){this.deletingItem=!1},deleteSectionItem(t){const data={siteId:this.siteId,pageId:this.pageContent.pageId,sectionId:this.sectionId,itemId:t.id};this.deleteItem(data)},changePage(t){this.$emit("changePage",t)}},watch:{currentSection:{handler:function(){this.currentSection.isModified=!0},deep:!0}}},h=(n(341),n(6)),component=Object(h.a)(d,function(){var t=this,e=t._self._c;return e("div",[t.linkPopupActive?e("Overlay",{attrs:{widthSize:"small"},on:{closeOverlay:t.closeLinkPopup}},[e("div",{staticClass:"overlay-header"},[e("h2",{staticClass:"default-font"},[t._v("Link an Item")])]),t._v(" "),e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.selectInternal?e("div",{key:"interal"},[e("div",{staticClass:"p-margin"},[e("p",[t._v("Select a page to link to when this item is clicked or "),e("u",{staticClass:"link-item",on:{click:t.toggleLinkType}},[t._v("enter link manually")]),t._v(".")])]),t._v(" "),e("div",{staticClass:"input-wrapper"},[e("label",[t._v("Select a page")]),t._v(" "),e("select",{on:{change:t.updateLink}},t._l(t.sitePages,function(n){return e("option",{domProps:{value:n.slug,selected:t.isSelected(n)}},[t._v("\n              "+t._s(n.title)+"\n            ")])}),0)])]):e("div",{key:"external"},[e("div",{staticClass:"p-margin"},[e("p",[t._v("Enter an external link (e.g. "),e("em",[t._v("https://google.com")]),t._v(") or "),e("u",{staticClass:"link-item",on:{click:t.toggleLinkType}},[t._v("select a page")]),t._v(".")])]),t._v(" "),e("div",{staticClass:"input-wrapper"},[e("input",{attrs:{type:"text",placeholder:"https://google.com"},domProps:{value:t.activeItem.content.link},on:{input:t.updateLink}})])])]),t._v(" "),e("Btn",{staticClass:"primary",on:{click:t.closeLinkPopup}},[t._v("Apply Link")])],1):t._e(),t._v(" "),e("draggable",t._b({staticClass:"list-group",attrs:{list:t.list,handle:".drag-handle"},on:{start:t.activateDrag,end:t.orderList}},"draggable",t.dragOptions,!1),[e("transition-group",{staticClass:"items-wrapper list-group",class:{"
1item-editable":t.showControls},attrs:{type:"transition",tag:"div",name:"list"}},t._l(t.list,function(n,o){return e(t.layoutComponent,{key:`manage-${n.id}-${t.sectionId}-visual`,ref:"listGroupItems",refInFor:!0,tag:"component",staticClass:"list-group-item js-animate",attrs:{itemIndex:o,"data-item-id":n.id,sectionId:t.sectionId,itemId:n.id,sectionItem:n},on:{changePage:t.changePage}},[t.showControls?e("div",{staticClass:"list-group-item-inner"},[e("div",{staticClass:"item-controls move-delete"},[e("div",{staticClass:"drag-handle item-button item-move"},[e("Sprite",{attrs:{name:"move"}})],1),t._v(" "),e("BtnConfirm",{staticClass:"item-delete item-button",attrs:{btnIcon:"trash",warningLabel:"Are you sure you'd like to delete this item?",cancelLabel:"Keep item",proceedLabel:"Yes, delete"},on:{proceed:function(e){return t.deleteSectionItem(n)},cancel:t.cancelDelete}}),t._v(" "),t.hasLink?e("div",{staticClass:"item-button add-link",on:{click:function(e){return t.activateLinkPopup(n)}}},[e("Sprite",{attrs:{name:"link"}})],1):t._e()],1),t._v(" "),e("div",{staticClass:"item-controls",class:t.controlsClass},[e("div",{staticClass:"item-button add-item-before",on:{click:function(e){return t.handleAddItemBefore(n)}}},[e("Sprite",{attrs:{name:"plus"}})],1),t._v(" "),e("div",{staticClass:"item-button add-item-after",on:{click:function(e){return t.handleAddItemAfter(n)}}},[e("Sprite",{attrs:{name:"plus"}})],1)])]):t._e()])}),1)],1)],1)},[],!1,null,null,null);e.default=component.exports;installComponents(component,{Btn:n(111).default,Overlay:n(315).default,Sprite:n(79).default,BtnConfirm:n(316).default})}}]);

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.